]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR26510 UBSAN: tc-z8k.c left shift of negative value
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f7c7700d
PA
12020-08-29 Pedro Alves <pedro@palves.net>
2
3 * progspace.c (print_program_space): Use all_inferiors. Switch to
4 the inferior before calling target_pid_to_str.
5
e0814aae
TT
62020-08-28 Tom Tromey <tom@tromey.com>
7
8 * xcoffread.c (xcoff_end_psymtab): Update comment.
9 * dbxread.c (dbx_end_psymtab): Update comment.
10
626d2320
TV
112020-08-28 Tom de Vries <tdevries@suse.de>
12
13 PR breakpoint/26544
14 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
15 event_location.
16 (create_breakpoint): Same.
17 (base_breakpoint_decode_location): Same.
18 (bkpt_create_sals_from_location): Same.
19 (bkpt_decode_location): Same.
20 (bkpt_probe_create_sals_from_location): Same.
21 (bkpt_probe_decode_location): Same.
22 (tracepoint_create_sals_from_location): Same.
23 (tracepoint_decode_location): Same.
24 (tracepoint_probe_decode_location): Same.
25 (strace_marker_create_sals_from_location): Same.
26 (strace_marker_decode_location): Same.
27 (create_sals_from_location_default): Same.
28 (decode_location_default): Same.
29 * breakpoint.h (struct breakpoint_ops): Same.
30 (create_breakpoint): Same.
31 * linespec.h (decode_line_full): Same.
32 * linespec.c (decode_line_full): Same. Throw error if
33 result.size () == 0.
34
df631783
PA
352020-08-27 Pedro Alves <pedro@palves.net>
36
37 PR gdb/26524
38 * breakpoint.c (until_break_fsm) <location_breakpoint,
39 caller_breakpoint>: Delete fields.
40 <breakpoints>: New field.
41 <until_break_fsm>: Adjust to save a breakpoint vector instead of
42 two individual breakpoints.
43 (until_break_fsm::should_stop): Loop over breakpoints in the
44 breakpoint vector.
45 (until_break_fsm::clean_up): Adjust to clear the breakpoints
46 vector.
47 (until_break_command): Handle location expanding into multiple
48 sals.
49
b2b38aa4
PA
502020-08-27 Pedro Alves <pedro@palves.net>
51
52 PR gdb/26523
53 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
54 bp_until breakpoints user-specified locations. Update intro
55 comment.
56
b886559f
SM
572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
60 gdb_bfd_sections): New.
61 * maint.c (print_bfd_section_info): Change param type to
62 maint_print_section_data.
63 (print_objfile_section_info): Likewise.
64 (print_bfd_section_info_maybe_relocated): Likewise.
65 (maintenance_info_sections): Use gdb_bfd_sections.
66
4c6e63bf
SV
672020-08-25 Shahab Vahedi <shahab@synopsys.com>
68
69 * MAINTAINERS: Add ARC target and maintainer.
70
8d7f0635
AK
712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
72
73 * configure.tgt: ARC support for GNU/Linux.
74 * Makefile.in (ALL_TARGET_OBJS): Likewise.
75 * arc-linux-tdep.c: New file.
76 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
77 * arc-tdep.c (arc_write_pc): Use it.
78
fdd8731b
SV
792020-08-25 Shahab Vahedi <shahab@synopsys.com>
80
81 * arc-tdep.c (arc_check_for_hardware_loop): New.
82 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
83
22459524
SV
842020-08-25 Shahab Vahedi <shahab@synopsys.com>
85
86 * arc-tdep.h: Include "gdbarch.h".
87
995d3a19
SV
882020-08-25 Shahab Vahedi <shahab@synopsys.com>
89
90 * arch/arc.h
91 (arc_gdbarch_features): New class to stir the selection of target XML.
92 (arc_create_target_description): Use FEATURES to choose XML target.
93 (arc_lookup_target_description): Use arc_create_target_description
94 to create _new_ target descriptions or return the already created
95 ones if the FEATURES is the same.
96 * arch/arc.c: Implementation of prototypes described above.
97 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
98 (arc_gdbarch_features_init): Initialize the FEATURES struct.
99 * arc-tdep.c (*_feature_name): Make feature names consistent.
100 (arc_register_feature): A new struct to hold information about
101 registers of a particular target/feature.
102 (arc_check_tdesc_feature): Check if XML provides registers in
103 compliance with ARC_REGISTER_FEATURE structs.
104 (arc_update_acc_reg_names): Add aliases for r58 and r59.
105 (determine_*_reg_feature_set): Which feature name to look for.
106 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
107 (mach_type_to_arc_isa): Convert from a set of binutils machine types
108 to expected ISA enums to be used in arc_gdbarch_features structs.
109 * features/Makefile (FEATURE_XMLFILES): Add new files.
110 * gdb/features/arc/v1-aux.c: New file.
111 * gdb/features/arc/v1-aux.xml: Likewise.
112 * gdb/features/arc/v1-core.c: Likewise.
113 * gdb/features/arc/v1-core.xml: Likewise.
114 * gdb/features/arc/v2-aux.c: Likewise.
115 * gdb/features/arc/v2-aux.xml: Likewise.
116 * gdb/features/arc/v2-core.c: Likewise.
117 * gdb/features/arc/v2-core.xml: Likewise.
118 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
119
3945d2d7
GM
1202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
121 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 PR m2/26372
fc5d6901 124 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
125 an assert. Remove single element array indexing pattern as the
126 MULTI_SUBSCRIPT support will handle this case too.
127
2677f2d3
SM
1282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * value.h (valprint_check_validity): Move declaration from
131 here...
132 * valprint.h (valprint_check_validity): ... to here.
133
c426fddb
SM
1342020-08-24 Simon Marchi <simon.marchi@efficios.com>
135
136 * debug.h: New file.
137 * debug.c (debug_prefixed_vprintf): New function.
138 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
139 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
140
1eb8556f
SM
1412020-08-24 Simon Marchi <simon.marchi@efficios.com>
142
143 * infrun.h (infrun_debug_printf_1): New function declaration.
144 (infrun_debug_printf): New macro.
145 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
146 throughout.
147 (infrun_debug_printf): New function.
148 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
149 (handle_jit_event): Likewise.
150
b8fff44e
MW
1512020-08-21 Mark Wielaard <mark@klomp.org>
152
153 * ada-lex.l: Extend register warnings diagnostics comment for g++.
154
d19c3068
SM
1552020-08-22 Simon Marchi <simon.marchi@efficios.com>
156
157 * frame.c (enum class frame_id_status): New.
158 (struct frame_info) <this_id::p>: Change type to frame_id_status.
159 (fprintf_frame): Update.
160 (compute_frame_id): Set frame id status to "computing" on entry.
161 Set it back to "not_computed" on failure and to "computed" on
162 success.
163 (get_frame_id): Assert the frame id is not being computed.
164 (create_sentinel_frame): Use frame_id_status::COMPUTED.
165 (create_new_frame): Likewise.
166 (frame_cleanup_after_sniffer): Update assert.
167
b70e516e
SM
1682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * regcache.c (pid_ptid_regcache_map): New type.
171 (target_ptid_regcache_map): Remove.
172 (target_pid_ptid_regcache_map): New type.
173 (regcaches): Change type to target_pid_ptid_regcache_map.
174 (get_thread_arch_aspace_regcache): Update.
175 (regcache_thread_ptid_changed): Update, handle pid-like ptid
176 case.
177 (regcaches_size): Update.
178 (regcache_count): Update.
179 (registers_changed_ptid_target_pid_test): New.
180 (_initialize_regcache): Register new test.
181
cdd9148a
SM
1822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * regcache.c (regcache_count): New.
185 (struct regcache_test_data): New.
186 (regcache_test_data_up): New.
187 (populate_regcaches_for_test): New.
188 (regcaches_test): Remove.
189 (get_thread_arch_aspace_regcache_test): New.
190 (registers_changed_ptid_all_test): New.
191 (registers_changed_ptid_target_test): New.
192 (registers_changed_ptid_target_ptid_test): New.
193 (regcache_thread_ptid_changed): Remove regcache_count lambda.
194 (_initialize_regcache): Register new tests.
195
dd125343
SM
1962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
199 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
200 gdbarch and aspace parameter. Use current inferior's aspace.
201 Validate regcache's arch value.
202 (regcaches_test): Update.
203
3ee93972
SM
2042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * regcache.c (regcaches_test): Call registers_changed.
207
33bf4c5c
TBA
2082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209
210 * infrun.c (process_event_stop_test): Fix typo "breapoint".
211
c2fd7fae
AKS
2122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
213
214 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
215 to find the end of prologue for flang compiled binaries.
216 * arm-tdep.c (arm_skip_prologue): Likewise.
217 * i386-tdep.c (i386_skip_prologue): Likewise.
218 * producer.c (producer_is_llvm): New function.
219 (producer_parsing_tests): Added new tests for clang/flang.
220 * producer.h (producer_is_llvm): New declaration.
221
9327494e
SM
2222020-08-18 Simon Marchi <simon.marchi@efficios.com>
223
224 * linux-nat.c (linux_nat_debug_printf): New function.
225 (linux_nat_debug_printf_1): New macro. Use throughout the file.
226
d138725a
AM
2272020-08-18 Aaron Merey <amerey@redhat.com>
228
229 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
230 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
231 (CLIBS): Add DEBUGINFOD_LIBS.
232
f9b11e6b
ST
2332020-08-17 Sergei Trofimovich <siarheit@google.com>
234
235 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
236 'gdbarch_num_regs'.
237
3ae7ab99
TT
2382020-08-17 Tom Tromey <tromey@adacore.com>
239
240 * ada-varobj.c (ada_varobj_decode_var): Handle case where
241 ada_get_decoded_value returns NULL.
242
b017825f
TT
2432020-08-17 Tom Tromey <tromey@adacore.com>
244
245 * python/py-inferior.c (infpy_search_memory): Use
246 gdb_py_object_from_ulongest.
247 * python/py-infevents.c (create_inferior_call_event_object)
248 (create_memory_changed_event_object): Use
249 gdb_py_object_from_ulongest.
250 * python/py-linetable.c (ltpy_entry_get_pc): Use
251 gdb_py_object_from_ulongest.
252
7635cf79
SM
2532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * loc.c (class symbol_needs_eval_context): Fix indentation.
256
f54be24b
SM
2572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
260 bool.
261
53d5a2a5
TV
2622020-08-17 Tom de Vries <tdevries@suse.de>
263
264 PR gdb/26393
265 * gdbtypes.c (dump_dynamic_prop): New function.
266 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
267
547ce8f0
TV
2682020-08-15 Tom de Vries <tdevries@suse.de>
269
270 PR backtrace/26390
271 * stack.c (print_frame_args): Temporarily set the selected
272 frame to FRAME while printing the frame's arguments.
273
6ea815e7
PFC
2742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
275
276 PR breakpoints/26385
277 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
278 Always clear watchpoint with PTRACE_SET_DEBUGREG.
279
6e562fa3
PFC
2802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
281
282 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
283 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
284 and >= to check return value instead of == -1 and != -1.
285
d369b608
SM
2862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * utils.h (class gdb_argv) <as_array_view>: New method.
289 * utils.c (gdb_argv_as_array_view_test): New.
290 (_initialize_utils): Register selftest.
291 * maint.c (maintenance_selftest): Use the new method.
292
b31488a3
KR
2932020-08-13 Kamil Rytarowski <n54@gmx.com>
294
295 * target.h (supports_dumpcore, dumpcore): New
296 function declarations.
297 * target.c (supports_dumpcore, dumpcore): New
298 functions.
299 * target-delegates.c: Rebuild.
300 * gcore.c (gcore_command): Use target_supports_dumpcore ()
301 and target_dumpcore ().
302
002a3166
AM
3032020-08-13 Aaron Merey <amerey@redhat.com>
304
305 * debuginfod-support.c: Replace global variables with user_data.
306
ece5bc8a
SM
3072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * maint.c (maintenance_selftest): Split args and pass array_view
310 to run_tests.
311
6d8a0a5e
LM
3122020-08-12 Luis Machado <luis.machado@linaro.org>
313
314 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
315 type's length.
316 Use %s and pulongest to print the length.
317
7cf663a9
PA
3182020-08-12 Pedro Alves <palves@redhat.com>
319
320 * NEWS: Move "Multi-target debugging support" item to the
321 "Changes since GDB 9" section.
322
27c7b875
PA
3232020-08-12 Pedro Alves <palves@redhat.com>
324
325 PR gdb/26336
326 * progspace.c (program_space::remove_objfile): Invalidate the
327 frame cache.
328
1796a2a1
TV
3292020-08-11 Tom de Vries <tdevries@suse.de>
330
331 * MAINTAINERS: Mark ms1 as deleted.
332
f8e3fe0d
LM
3332020-08-10 Luis Machado <luis.machado@linaro.org>
334
335 PR gdb/26310
336
337 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
338 act accordingly.
339 (aarch64_analyze_prologue_test): Add more unit tests to exercise
340 movz/str/stur/stp skipping behavior.
341
cc308722
LM
3422020-08-10 Luis Machado <luis.machado@linaro.org>
343
344 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
345 struct user_sve_header instead of struct sve_context.
346
041d9819
SM
3472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * read.h (dwarf2_fetch_die_loc_sect_off,
350 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
351 `void *` parameter with function_view.
352 * read.c (dwarf2_fetch_die_loc_sect_off,
353 dwarf2_fetch_die_loc_cu_off): Likewise.
354 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
355 (per_cu_dwarf_call): Adjust.
356 (get_frame_address_in_block_wrapper): Remove.
357 (indirect_synthetic_pointer): Adjust.
358 (get_ax_pc): Remove.
359 (dwarf2_compile_expr_to_ax): Adjust.
360
38f8aa06
TV
3612020-08-08 Tom de Vries <tdevries@suse.de>
362
363 PR build/26344
364 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
365 constructor.
366 * regcache.c (get_thread_arch_aspace_regcache): Same.
367
a52b3ae2
TT
3682020-08-07 Tom Tromey <tromey@adacore.com>
369
370 * ravenscar-thread.c
371 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
372 New method.
373 (ravenscar_thread_target::wait): Check
374 runtime_initialized.
375 (ravenscar_thread_target::prepare_to_store)
376 (ravenscar_thread_target::stopped_by_sw_breakpoint)
377 (ravenscar_thread_target::stopped_by_hw_breakpoint)
378 (ravenscar_thread_target::stopped_by_watchpoint)
379 (ravenscar_thread_target::stopped_data_address)
380 (ravenscar_thread_target::core_of_thread): Use
381 scoped_restore_current_thread and
382 set_base_thread_from_ravenscar_task.
383
0e29517d
TT
3842020-08-07 Tom Tromey <tromey@adacore.com>
385
386 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
387
592f9bd7
TT
3882020-08-07 Tom Tromey <tromey@adacore.com>
389
390 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
391 update_inferior_ptid before update_thread_list.
392 (temporarily_change_regcache_ptid): New class.
393 (ravenscar_thread_target::fetch_registers)
394 (ravenscar_thread_target::store_registers)
395 (ravenscar_thread_target::prepare_to_store): Use base thread when
396 forwarding operation.
397
39e2018a
TT
3982020-08-07 Tom Tromey <tromey@adacore.com>
399
400 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
401 "is_pid" case.
402
2080266b
TT
4032020-08-07 Tom Tromey <tromey@adacore.com>
404
405 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
406 New methods.
407 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
408 first.
409 (ravenscar_thread_target::add_thread): Rename from
410 ravenscar_add_thread.
411 (ravenscar_thread_target::update_thread_list): Use a lambda.
412 (ravenscar_thread_target::xfer_partial): New method.
413
78c02f21
TT
4142020-08-07 Tom Tromey <tromey@adacore.com>
415
416 * ada-lang.h (ada_task_list_iterator_ftype): Now a
417 gdb::function_view.
418 (iterate_over_live_ada_tasks): Change type of argument.
419 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
420 of argument.
421
d5d833af
TT
4222020-08-07 Tom Tromey <tromey@adacore.com>
423
424 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
425 Remove.
426 (ravenscar_thread_target::extra_thread_info): Remove.
427 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
428 defer to target beneath for non-Ravenscar threads.
429
a8ac85bb
TT
4302020-08-07 Tom Tromey <tromey@adacore.com>
431
432 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
433 get_base_thread_from_ravenscar_task>: Now methods.
434 <m_cpu_map>: New member.
435 (ravenscar_thread_target::get_thread_base_cpu): Rename from
436 ravenscar_get_thread_base_cpu. Check m_cpu_map.
437 (ravenscar_thread_target::task_is_currently_active): Update.
438 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
439 Now a method.
440 (ravenscar_thread_target::add_active_thread): Put initial thread
441 into the m_cpu_map.
442
550ab58d
TT
4432020-08-07 Tom Tromey <tromey@adacore.com>
444
445 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
446 event_ptid.
447
e9546579
TT
4482020-08-07 Tom Tromey <tromey@adacore.com>
449
450 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
451 runtime_initialized.
452
3d4470e5
TT
4532020-08-07 Tom Tromey <tromey@adacore.com>
454
455 * ravenscar-thread.c (ravenscar_thread_target): Don't call
456 add_active_thread.
457 (ravenscar_thread_target::add_active_thread): Now public.
458 (ravenscar_inferior_created): Call add_active_thread after pushing
459 the target.
460
888bdb2b
SM
4612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * regcache.c (ptid_regcache_map): New type.
464 (target_ptid_regcache_map): New type.
465 (regcaches): Change type to target_ptid_regcache_map.
466 (get_thread_arch_aspace_regcache): Update to regcaches' new
467 type.
468 (regcache_thread_ptid_changed): Likewise.
469 (registers_changed_ptid): Likewise.
470 (regcaches_size): Likewise.
471 (regcaches_test): Update.
472 (regcache_thread_ptid_changed): Update.
473 * regcache.h (regcache_up): New type.
474 * gdbsupport/ptid.h (hash_ptid): New struct.
475
b161a60d
SM
4762020-08-07 Simon Marchi <simon.marchi@efficios.com>
477
478 * observable.h (thread_ptid_changed): Add parameter
479 `process_stratum_target *`.
480 * infrun.c (infrun_thread_ptid_changed): Add parameter
481 `process_stratum_target *` and use it.
482 (selftests): New namespace.
483 (infrun_thread_ptid_changed): New function.
484 (_initialize_infrun): Register selftest.
485 * regcache.c (regcache_thread_ptid_changed): Add parameter
486 `process_stratum_target *` and use it.
487 (regcache_thread_ptid_changed): New function.
488 (_initialize_regcache): Register selftest.
489 * thread.c (thread_change_ptid): Pass target to
490 thread_ptid_changed observable.
491
d2854d8d
CT
4922020-08-06 Caroline Tice <cmtice@google.com>
493
fe4c3d43
SM
494 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
495 (struct dwp_sections): Update field comments. Add loclists and
496 rnglists fields.
497 (struct virtual_v2_dwo_sections): Rename struct to
498 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
499 size & offset fields for loclists and rnglists.
500 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
501 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
502 skipping dummy type units.
503 (create_dwp_hash_table): Update the large comment above the function to
504 discuss Version 5 DWP files as well, with references. Update all the
505 version checks in the function to check for version 5 as well. Add new
506 section at the end to create dwp hash table for version 5.
507 (create_dwp_v2_section): Rename function to
508 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
509 Add V5 to error message text.
510 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
511 into calls to create_dwp_v2_or_v5_section.
512 (create_dwo_unit_in_dwp_v5): New function.
513 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
514 check for version2; add else clause to handle version 5.
515 (open_and_init_dwo_file): Add code to check dwarf version & only call
516 create_debug_types_hash_table (with sections.types) if version is not 5;
517 else call create_debug_type_hash_table, with sections.info.
518 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
519 version 5.
520 (dwarf2_locate_v5_dwp_sections): New function.
521 (open_and_init_dwp_file): Add else-if clause for version 5 to call
522 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 523
159ed7d9
SM
5242020-08-06 Simon Marchi <simon.marchi@efficios.com>
525
526 * regcache.h (class regcache): Remove friend
527 registers_changed_ptid.
528 <regcache_thread_ptid_changed>: Remove.
529 <regcaches>: Remove.
530 * regcache.c (regcache::regcaches): Rename to...
531 (regcaches): ... this. Make static.
532 (get_thread_arch_aspace_regcache): Update.
533 (regcache::regcache_thread_ptid_changed): Rename to...
534 (regcache_thread_ptid_changed): ... this. Update.
535 (class regcache_access): Remove.
536 (regcaches_test): Update.
537 (_initialize_regcache): Update.
538 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
539 <forward_list>.
540
174981ae
SM
5412020-08-06 Simon Marchi <simon.marchi@efficios.com>
542
543 * regcache.h (class regcache) <current_regcache>: Rename to...
544 <regcaches>: ... this. Move doc here.
545 * regcache.c (regcache::current_regcache) Rename to...
546 (regcache::regcaches): ... this. Move doc to header.
547 (get_thread_arch_aspace_regcache): Update.
548 (regcache::regcache_thread_ptid_changed): Update.
549 (registers_changed_ptid): Update.
550 (class regcache_access) <current_regcache_size>: Rename to...
551 <regcaches_size>: ... this.
552 (current_regcache_test): Rename to...
553 (regcaches_test): ... this.
554 (_initialize_regcache): Update.
555
ed908db6
VC
5562020-08-06 Victor Collod <vcollod@nvidia.com>
557
558 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
559
b5582ab7
KB
5602020-08-05 Kevin Buettner <kevinb@redhat.com>
561
562 * corelow.c (core_target::build_file_mappings): Don't output
563 null pathname in warning.
564
ea946b86
SM
5652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
568 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
569 gdb.dwarf2/dw2-single-line-discriminators.exp,
570 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
571
57d02173
TT
5722020-08-05 Tom Tromey <tromey@adacore.com>
573
574 PR rust/26197:
575 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
576 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
577 Fix off-by-one and type size errors in ordinary case.
578
5555c86d
TV
5792020-08-05 Tom de Vries <tdevries@suse.de>
580
581 * gdbtypes.c (type_not_allocated, type_not_associated): Use
582 "prop->const_val () == 0" instead of "prop->const_val () != 0".
583
97916bfe
SM
5842020-08-04 Simon Marchi <simon.marchi@efficios.com>
585
586 * frame.h (frame_id_p): Return bool.
587 (frame_id_artificial_p): Return bool.
588 (frame_id_eq): Return bool.
589 (has_stack_frames): Return bool.
590 (get_selected_frame): Fix typo in comment.
591 (get_frame_pc_if_available): Return bool.
592 (get_frame_address_in_block_if_available): Return bool.
593 (get_frame_func_if_available): Return bool.
594 (read_frame_register_unsigned): Return bool.
595 (get_frame_register_bytes): Return bool.
596 (safe_frame_unwind_memory): Return bool.
597 (deprecated_frame_register_read): Return bool.
598 (frame_unwinder_is): Return bool.
599 * frame.c (struct frame_info) <prev_arch::p>: Change type to
600 bool.
601 <this_id::p>: Likewise.
602 <prev_p>: Likewise.
603 (frame_stash_add): Return bool.
604 (get_frame_id): Use bool.
605 (frame_id_build_special) Use bool.
606 (frame_id_build_unavailable_stack): Use bool.
607 (frame_id_build): Use bool.
608 (frame_id_p): Return bool, use true/false instead of 1/0.
609 (frame_id_artificial_p): Likewise.
610 (frame_id_eq): Likewise.
611 (frame_id_inner): Likewise.
612 (get_frame_func_if_available): Likewise.
613 (read_frame_register_unsigned): Likewise.
614 (deprecated_frame_register_read): Likewise.
615 (get_frame_register_bytes): Likewise.
616 (has_stack_frames): Likewise.
617 (inside_main_func): Likewise.
618 (inside_entry_func): Likewise.
619 (get_frame_pc_if_available): Likewise.
620 (get_frame_address_in_block_if_available): Likewise.
621 (frame_unwinder_is): Likewise.
622 (safe_frame_unwind_memory): Likewise.
623 (frame_unwind_arch): Likewise.
624
fedfee88
SM
6252020-08-04 Simon Marchi <simon.marchi@efficios.com>
626
627 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
628 type to cached_copy_status.
629 (fprintf_frame): Adjust.
630 (get_frame_func_if_available): Adjust.
631 (frame_cleanup_after_sniffer): Adjust.
632
6cfa9b59
MW
6332020-08-04 Mark Wielaard <mark@klomp.org>
634
635 * MAINTAINERS (Write After Approval): Update email address.
636
66d6346b
SM
6372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
640 dynamic_prop::const_val.
641
8a6d5e35
SM
6422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
645 dynamic_prop::kind.
646
51d6067d
SM
6472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
648
649 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
650
b26e2ae7
JM
6512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
652
653 * configure.tgt: Set gdb_sim for bpf-*-* targets.
654
39791af2
JM
6552020-08-04 Weimin Pan <weimin.pan@oracle.com>
656 Jose E. Marchesi <jose.marchesi@oracle.com>
657
658 * configure.tgt: Add entry for bpf-*-*.
659 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
660 (ALLDEPFILES): Add bpf-tdep.c.
661 * bpf-tdep.c: New file.
662 * MAINTAINERS: Add bpf target and maintainer.
663 * NEWS: Mention the support for the new target.
664
521894aa
TV
6652020-08-04 Tom de Vries <tdevries@suse.de>
666
667 PR symtab/23270
668 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
669 Error.
670
5d6356e9
JB
6712020-08-03 John Baldwin <jhb@FreeBSD.org>
672
673 * syscalls/freebsd.xml: Regenerate.
674
0cf82b81
JB
6752020-08-03 John Baldwin <jhb@FreeBSD.org>
676
677 * syscalls/update-freebsd.sh: Fix usage and year range.
678
8f34b746
TV
6792020-08-03 Tom de Vries <tdevries@suse.de>
680
681 PR symtab/26333
682 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
683 DW_LNE_lo_user/DW_LNE_hi_user range.
684
5e500d33
SM
6852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
686
687 PR ada/26318
688 * ada-lang.c (ada_modulus): Return 0 if property is not of const
689 kind.
690
78319c15
TBA
6912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
694
4c55e970
TBA
6952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
696
697 * breakpoint.c (set_breakpoint_condition): Update the condition
698 expressions after checking that the input condition string parses
699 successfully and does not contain junk at the end.
700
1e620590
TBA
7012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
702
703 * breakpoint.c (set_breakpoint_condition): Update the
704 condition string after parsing the new condition successfully.
705
c8693053
RO
7062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
707
708 * proc-api.c (_STRUCTURED_PROC): Don't define.
709 * proc-events.c: Likewise.
710 * proc-flags.c: Likewise.
711 * proc-why.c: Likewise.
712 * procfs.c: Likewise.
713
714 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
715 * configure, config.in: Regenerate.
716
5a99adb8
TV
7172020-07-30 Tom de Vries <tdevries@suse.de>
718
719 PR build/26320
720 * ui-style.h (struct ui_file_style::color): Wrap m_value and
721 m_red/m_green/m_blue in a union.
722
8ba83e91
TV
7232020-07-29 Tom de Vries <tdevries@suse.de>
724
725 PR tdep/26280
726 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
727
f75a0693
AB
7282020-07-28 Tom Tromey <tromey@adacore.com>
729
730 PR symtab/26270:
731 * symtab.h (find_pc_partial_function_sym): Declare.
732 * cli/cli-cmds.c (disassemble_command): Use
733 find_pc_partial_function_sym. Check asm_demangle.
734 * blockframe.c (cache_pc_function_sym): New global.
735 (cache_pc_function_name): Remove.
736 (clear_pc_function_cache): Update.
737 (find_pc_partial_function_sym): New function, from
738 find_pc_partial_function.
739 (find_pc_partial_function): Rewrite using
740 find_pc_partial_function_sym.
741
16f3242c
TT
7422020-07-28 Tom Tromey <tromey@adacore.com>
743
744 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
745 help. Add usage.
746
4888741a
TT
7472020-07-28 Tom Tromey <tromey@adacore.com>
748
749 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
750 <DW_OP_GNU_variable_value>: Cast to address type.
751
4d46f402
KR
7522020-07-28 Kamil Rytarowski <n54@gmx.com>
753
754 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
755 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
756 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
757 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
758 (nbsd_get_siginfo_type): New.
759 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
760 (_initialize_nbsd_tdep): New.
761
d70f978b
L
7622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
763
764 PR binutils/26301
765 * configure: Regenerated.
766
377170fa
L
7672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR binutils/26301
770 * configure: Regenerated.
771
43d5901d
AB
7722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * python/py-frame.c: Remove 'user-regs.h' include.
775 (frapy_read_register): Rewrite to make use of
776 gdbpy_parse_register_id.
777 * python/py-registers.c (gdbpy_parse_register_id): New function,
778 moved here from python/py-unwind.c. Updated the return type, and
779 also accepts register descriptor objects.
780 * python/py-unwind.c: Remove 'user-regs.h' include.
781 (pyuw_parse_register_id): Moved to python/py-registers.c.
782 (unwind_infopy_add_saved_register): Update to use
783 gdbpy_parse_register_id.
784 (pending_framepy_read_register): Likewise.
785 * python/python-internal.h (gdbpy_parse_register_id): Declare.
786
14fa8fb3
AB
7872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * python/py-registers.c: Add 'user-regs.h' include.
790 (register_descriptor_iter_find): New function.
791 (register_descriptor_iterator_object_methods): New static global
792 methods array.
793 (register_descriptor_iterator_object_type): Add pointer to methods
794 array.
795
ddce1758
JB
7962020-07-27 John Baldwin <jhb@FreeBSD.org>
797
798 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
799 for all architectures on FreeBSD 11.3 and later.
800
a4089f52
TT
8012020-07-27 Tom Tromey <tromey@adacore.com>
802
803 * gcore.h (load_corefile): Don't declare.
804
95420d30
TV
8052020-07-27 Tom de Vries <tdevries@suse.de>
806
807 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
808 * config.in: Regenerate.
809 * configure: Regenerate.
810
05a6b8c2
EZ
8112020-07-26 Eli Zaretskii <eliz@gnu.org>
812
813 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
814 ws2tcpip.h. When checking whether socklen_t type is defined, use
815 ws2tcpip.h if it is available and sys/socket.h isn't.
816 * configure: Regenerate.
817 * config.in: Regenerate.
818
e79eb02f
AB
8192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 PR fortran/23051
822 PR fortran/26139
823 * valops.c (value_ind): Pass address to
824 readjust_indirect_value_type.
825 * value.c (readjust_indirect_value_type): Make parameter
826 non-const, and add extra address parameter. Resolve original type
827 before using it.
828 * value.h (readjust_indirect_value_type): Update function
829 signature and comment.
830
876518dd
TV
8312020-07-25 Tom de Vries <tdevries@suse.de>
832
833 PR symtab/26243
834 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
835 entries.
836
f6720b1c
AM
8372020-07-24 Aaron Merey <amerey@redhat.com>
838
839 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
840 * configure: Rebuild.
841
513487e1
KB
8422020-07-23 Kevin Buettner <kevinb@redhat.com>
843
844 PR corefiles/26294
845 * corelow.c (_initialize_corelow): Add period to help text
846 for "maintenance print core-file-backed-mappings".
847
e7bc9db8
PA
8482020-07-23 Pedro Alves <pedro@palves.net>
849
850 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
851 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
852 meanwhile.
853 * frame.c (frame_cache_generation, get_frame_cache_generation):
854 New.
855 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
856 (get_prev_frame_if_no_cycle): On exception, don't touch
857 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
858 * frame.h (get_frame_cache_generation): Declare.
859
90fcc466
TV
8602020-07-23 Tom de Vries <tdevries@suse.de>
861
862 PR tui/26282
863 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
864 New default constructor.
865
78344df7
AB
8662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
869 exclude non-statement entries.
870
b089853a
KB
8712020-07-22 Kevin Buettner <kevinb@redhat.com>
872
873 * NEWS (New commands): Mention new command
874 "maintenance print core-file-backed-mappings".
875
09c2f5d4
KB
8762020-07-22 Kevin Buettner <kevinb@redhat.com>
877
878 * corelow.c (gdbcmd.h): Include.
879 (core_target::info_proc_mappings): New method.
880 (get_current_core_target): New function.
881 (maintenance_print_core_file_backed_mappings): New function.
882 (_initialize_corelow): Add core-file-backed-mappings to
883 "maint print" commands.
884
9c5ec5c2 8852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 886
9c5ec5c2
KB
887 * linux-tdep.c (dump_note_entry_p): New function.
888 (linux_dump_mapping_p_ftype): New typedef.
889 (linux_find_memory_regions_full): Add new parameter,
890 should_dump_mapping_p.
891 (linux_find_memory_regions): Adjust call to
892 linux_find_memory_regions_full.
893 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
894 call to linux_find_memory_regions_full.
895
db082f59
KB
8962020-07-22 Kevin Buettner <kevinb@redhat.com>
897
898 * corelow.c (solist.h, unordered_map): Include.
899 (class core_target): Add field m_core_file_mappings and
900 method build_file_mappings.
901 (core_target::core_target): Call build_file_mappings.
902 (core_target::~core_target): Free memory associated with
903 m_core_file_mappings.
904 (core_target::build_file_mappings): New method.
905 (core_target::xfer_partial): Use m_core_file_mappings
906 for memory transfers.
907 * linux-tdep.c (linux_read_core_file_mappings): New
908 function.
909 (linux_core_info_proc_mappings): Rewrite to use
910 linux_read_core_file_mappings.
911 (linux_init_abi): Register linux_read_core_file_mappings.
912
7e183d27
KB
9132020-07-22 Kevin Buettner <kevinb@redhat.com>
914
915 * arch-utils.c (default_read_core_file_mappings): New function.
916 * arch-utils.c (default_read_core_file_mappings): Declare.
917 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
918 * gdbarch.h, gdbarch.c: Regenerate.
919
2735d421
KB
9202020-07-22 Kevin Buettner <kevinb@redhat.com>
921
922 PR corefiles/25631
923 * corelow.c (core_target:xfer_partial): Revise
924 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
925 case after first checking the stratum beneath the core
926 target.
927 (has_all_memory): Return true.
928 * target.c (raw_memory_xfer_partial): Revise comment
929 regarding use of has_all_memory.
930
e56cb451
KB
9312020-07-22 Kevin Buettner <kevinb@redhat.com>
932
933 * exec.h (section_table_xfer_memory): Revise declaration,
934 replacing section name parameter with an optional callback
935 predicate.
936 * exec.c (section_table_xfer_memory): Likewise.
937 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
938 of section_table_xfer_memory.
939
32fa152e
TT
9402020-07-22 Tom Tromey <tromey@adacore.com>
941
942 * mi/mi-cmd-stack.c (list_args_or_locals): Use
943 lookup_symbol_search_name.
944
a67a1c41
AB
9452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * python/py-registers.c (gdbpy_register_object_data_init): Remove
948 redundant local variable.
949 (gdbpy_get_register_descriptor): Extract descriptor vector as a
950 reference, not pointer, update code accordingly.
951
a7b4ff4f
SM
9522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
953 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954
955 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
956 * jit.c (jit_breakpoint_re_set_internal): Use the
957 `skip_jit_symbol_lookup` field.
958
2340e834
SM
9592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
960 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
961
962 * jit.c (jit_read_descriptor): Define the descriptor address once,
963 use twice.
964 (jit_breakpoint_deleted): Move the declaration of the loop variable
965 `iter` into the loop header.
966 (jit_breakpoint_re_set_internal): Move the declaration of the local
967 variable `objf_data` to the first point of definition.
968 (jit_event_handler): Move the declaration of local variables
969 `code_entry`, `entry_addr`, and `objf` to their first point of use.
970 Rename `objf` to `jited`.
971
c1072906
SM
9722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
975 Remove.
976 * jit.c (get_jiter_objfile_data): Update.
977
c8474dc3
TBA
9782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * jit.c (struct jit_program_space_data): Remove.
982 (jit_program_space_key): Remove.
983 (jiter_objfile_data::~jiter_objfile_data): Remove program space
984 stuff.
985 (get_jit_program_space_data): Remove.
986 (jit_breakpoint_deleted): Iterate on all of the program space's
987 objfiles.
988 (jit_inferior_init): Likewise.
989 (jit_breakpoint_re_set_internal): Likewise. Also change return
990 type to void.
991 (jit_breakpoint_re_set): Pass current_program_space to
992 jit_breakpoint_re_set_internal.
993
77208eb7
SM
9942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * jit.h (struct jiter_objfile_data) <cached_code_address,
997 jit_breakpoint>: Move to here from ...
998 * jit.c (jit_program_space_data): ... here.
999 (jiter_objfile_data::~jiter_objfile_data): Update.
1000 (jit_breakpoint_deleted): Update.
1001 (jit_breakpoint_re_set_internal): Update.
1002
8c1c720f
SM
10032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1004
1005 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1006 checks.
1007 (jit_read_descriptor): Remove NULL check.
1008 (jit_event_handler): Add an assertion.
1009
0e74a041
SM
10102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * jit.h (struct jit_objfile_data): Split into...
1013 (struct jiter_objfile_data): ... this ...
1014 (struct jited_objfile_data): ... and this.
1015 * objfiles.h (struct objfile) <jit_data>: Remove.
1016 <jiter_data, jited_data>: New fields.
1017 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1018 (jiter_objfile_data::~jiter_objfile_data): ... this.
1019 (get_jit_objfile_data): Rename to ...
1020 (get_jiter_objfile_data): ... this.
1021 (add_objfile_entry): Update.
1022 (jit_read_descriptor): Use get_jiter_objfile_data.
1023 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1024 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1025 (jit_inferior_exit_hook): Use objfile's jited_data field.
1026
238b5c9f
SM
10272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * jit.h: Forward-declare `struct minimal_symbol`.
1030 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1031 constructor, destructor, and an objfile* field.
1032 * jit.c (jit_objfile_data): Remove.
1033 (struct jit_objfile_data): Migrate from here to jit.h.
1034 (jit_objfile_data::~jit_objfile_data): New destructor
1035 implementation with code moved from free_objfile_data.
1036 (free_objfile_data): Delete.
1037 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1038 (jit_find_objf_with_entry_addr): Ditto.
1039 (jit_inferior_exit_hook): Ditto.
1040 (_initialize_jit): Remove the call to
1041 register_objfile_data_with_cleanup.
1042 * objfiles.h (struct objfile) <jit_data>: New field.
1043
fe053b9e
TBA
10442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045
1046 * jit.h: Forward-declare `struct objfile`.
1047 (jit_event_handler): Add a second parameter, the JITer objfile.
1048 * jit.c (jit_read_descriptor): Change the signature to take the
1049 JITer objfile as an argument instead of the jit_program_space_data.
1050 (jit_inferior_init): Update the call to jit_read_descriptor.
1051 (jit_event_handler): Use the new JITer objfile argument when calling
1052 jit_read_descriptor.
1053 * breakpoint.c (handle_jit_event): Update the call to
1054 jit_event_handler to pass the JITer objfile.
1055
4cec0c66
JB
10562020-07-21 John Baldwin <jhb@FreeBSD.org>
1057
1058 * gdbarch.c: Regenerate.
1059 * gdbarch.h: Regenerate.
1060 * gdbarch.sh (handle_segmentation_fault): Remove method.
1061 * infrun.c (handle_segmentation_fault): Remove.
1062 (print_signal_received_reason): Remove call to
1063 handle_segmentation_fault.
1064
0e42f66a
JB
10652020-07-21 John Baldwin <jhb@FreeBSD.org>
1066
1067 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1068 Rename to sparc64_linux_report_signal_info and add siggnal
1069 argument.
1070 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1071 instead of sparc64_linux_handle_segmentation_fault.
1072
77bdfeb2
JB
10732020-07-21 John Baldwin <jhb@FreeBSD.org>
1074
1075 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1076 i386_linux_report_signal_info instead of
1077 i386_linux_handle_segmentation_fault.
1078 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1079 to i386_linux_report_signal_info and add siggnal argument.
1080 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1081 of i386_linux_handle_segmentation_fault.
1082 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1083 to i386_linux_report_signal_info and add siggnal argument.
1084
ad97bfc5
JB
10852020-07-21 John Baldwin <jhb@FreeBSD.org>
1086
1087 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1088 hook if present.
1089
272bb05c
JB
10902020-07-21 John Baldwin <jhb@FreeBSD.org>
1091
1092 * gdbarch.c: Regenerate.
1093 * gdbarch.h: Regenerate.
1094 * gdbarch.sh (report_signal_info): New method.
1095 * infrun.c (print_signal_received_reason): Invoke gdbarch
1096 report_signal_info hook if present.
1097
baf8791e
AB
10982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * python/py-registers.c : Add 'unordered_map' include.
1101 (gdbpy_new_reggroup): Renamed to...
1102 (gdbpy_get_reggroup): ...this. Update to only create register
1103 group descriptors when needed.
1104 (gdbpy_reggroup_iter_next): Update.
1105
f7306dac
AB
11062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * python/py-registers.c (gdbpy_register_object_data): New static
1109 global.
1110 (gdbpy_register_object_data_init): New function.
1111 (gdbpy_new_register_descriptor): Renamed to...
1112 (gdbpy_get_register_descriptor): ...this, and update to reuse
1113 existing register descriptors where possible.
1114 (gdbpy_register_descriptor_iter_next): Update.
1115 (gdbpy_initialize_registers): Register new gdbarch data.
1116
05c309a8
SM
11172020-07-21 Simon Marchi <simon.marchi@efficios.com>
1118
1119 * linux-nat.c (stopped_pids): Make static.
1120
d1fd641e
SM
11212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 PR ada/26235
1124 * gdbtypes.c (ada_discrete_type_low_bound,
1125 ada_discrete_type_high_bound): Handle undefined bounds.
1126
1de14d77
KR
11272020-07-21 Kamil Rytarowski <n54@gmx.com>
1128
1129 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1130 declaration.
1131 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1132 function.
1133
ed810cc7
JB
11342020-07-20 John Baldwin <jhb@FreeBSD.org>
1135
1136 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1137 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1138 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1139 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1140 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1141 method.
1142
ae5369e7
LC
11432020-07-20 Ludovic Courtès <ludo@gnu.org>
1144
1145 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1146 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1147 which are deprecated in Guile 3.0.
1148 * configure.ac (try_guile_versions): Add "guile-3.0".
1149 * configure (try_guile_versions): Regenerate.
1150 * NEWS: Update entry.
1151
68cf161c
LC
11522020-07-20 Ludovic Courtès <ludo@gnu.org>
1153 Doug Evans <dje@google.com>
1154
1155 PR gdb/21104
1156 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1157 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1158 USING_GUILE_BEFORE_2_2.
1159 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1160 Change type to 'scm_t_port_type *'.
1161 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1162 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1163 parameter and honor it. Update callers.
1164 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1165 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1166 functions.
1167 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1168 USING_GUILE_BEFORE_2_2.
1169 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1170 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1171 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1172 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1173 and 'SCM_PORT_TYPE'.
1174 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1175 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1176 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1177 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1178 [!USING_GUILE_BEFORE_2_2]: New functions.
1179 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1180 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1181 'gdbscm_memory_port_read'.
1182 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1183 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1184 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1185 function.
1186 (ioscm_init_memory_port): Remove.
1187 (ioscm_init_memory_port_stream): New function
1188 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1189 function.
1190 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1191 Return scm_from_uint (0).
1192 (gdbscm_set_memory_port_read_buffer_size_x)
1193 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1194 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1195 Return scm_from_uint (0).
1196 (gdbscm_set_memory_port_write_buffer_size_x)
1197 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1198 * configure.ac (try_guile_versions): Add "guile-2.2".
1199 * configure: Regenerate.
1200 * NEWS: Add entry.
1201
aee91db3
TT
12022020-07-18 Tom Tromey <tom@tromey.com>
1203
1204 * linux-nat.c (linux_multi_process): Remove.
1205 (linux_nat_target::supports_multi_process): Return true.
1206
0e267416
AB
12072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1210 (riscv_lookup_target_description): Return pointer out of
1211 unique_ptr.
1212 * target-descriptions.c (allocate_target_description): Add
1213 comment.
1214 (target_desc_deleter::operator()): Likewise.
1215 * target-descriptions.h (struct target_desc_deleter): Moved to
1216 gdbsupport/tdesc.h.
1217 (target_desc_up): Likewise.
1218
f80c8ec4
TT
12192020-07-17 Tom Tromey <tromey@adacore.com>
1220
1221 * linux-nat.c (linux_nat_target::supports_non_stop)
1222 (linux_nat_target::always_non_stop_p): Use "true".
1223 (linux_nat_target::supports_disable_randomization): Use "true" and
1224 "false".
1225
d0ce17d8
CT
12262020-07-16 Caroline Tice <cmtice@google.com>
1227
1228 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1229 (RNGLIST_HEADER_SIZE64): New constant definition.
1230 (struct dwop_section_names): Add rnglists_dwo.
1231 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1232 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1233 (struct dwo_sections): Add rnglists field.
1234 (read_attribut_reprocess): Add tag parameter.
1235 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1236 (cu_debug_rnglists_section): New function (decl & definition).
1237 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1238 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1239 die whose range is being checked; get rnglist section from
1240 cu_debug_rnglists_section, to get from either objfile or dwo file as
1241 appropriate. Add cases for DW_RLE_base_addressx,
1242 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1243 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1244 test inside if-condition and updating complaint message.
1245 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1246 dwarf2_rnglists_process.
1247 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1248 dwarf2_ranges_process.
1249 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1250 need_ranges_base and update comment appropriately. Also pass die tag
1251 to dwarf2_ranges_read.
1252 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1253 need_ranges_base and update comment appropriately. Also pass die tag
1254 to dwarf2_ranges_process.
1255 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1256 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1257 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1258 need_ranges_base and update comment appropriately. Also pass die tag
1259 to read_attribute_reprocess and dwarf2_ranges_read.
1260 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1261 and update function comment appropriately.
1262 (read_loclist_index): Call read_loclists_rnglists_header instead of
1263 read_loclist_header.
1264 (read_rnglist_index): New function.
1265 (read_attribute_reprocess): Add tag parameter. Add code for
1266 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1267 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1268
3dcc261c
AB
12692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1272 being resolved.
1273
ccb9eba6
AB
12742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * arch-utils.c (show_architecture): Update formatting of messages.
1277
cf88be68
SM
12782020-07-12 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * gdbtypes.h (struct type) <bounds>: Handle array and string
1281 types.
1282 * ada-lang.c (assign_aggregate): Use type::bounds on
1283 array/string type.
1284 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1285 * c-varobj.c (c_number_of_children): Likewise.
1286 (c_describe_child): Likewise.
1287 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1288 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1289 (f_type_print_base): Likewise.
1290 * f-valprint.c (f77_array_offset_tbl): Likewise.
1291 (f77_get_upperbound): Likewise.
1292 (f77_print_array_1): Likewise.
1293 * guile/scm-type.c (gdbscm_type_range): Likewise.
1294 * m2-typeprint.c (m2_array): Likewise.
1295 (m2_is_long_set_of_type): Likewise.
1296 * m2-valprint.c (get_long_set_bounds): Likewise.
1297 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1298 * python/py-type.c (typy_range): Likewise.
1299 * rust-lang.c (rust_internal_print_type): Likewise.
1300 * type-stack.c (type_stack::follow_types): Likewise.
1301 * valarith.c (value_subscripted_rvalue): Likewise.
1302 * valops.c (value_cast): Likewise.
1303
509971ae
SM
13042020-07-12 Simon Marchi <simon.marchi@efficios.com>
1305
1306 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1307 callers to use the equivalent accessor methods.
1308
107406b7
SM
13092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1312 (struct type) <bit_stride>: New method.
1313 (TYPE_BIT_STRIDE): Remove.
1314 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1315
bb789949
SM
13162020-07-12 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1319 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1320 callers to use the equivalent accessor methods instead.
1321
39498edb
SM
13222020-07-12 Simon Marchi <simon.marchi@efficios.com>
1323
1324 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1325 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1326 callers to use the equivalent accessor methods instead.
1327
3b606f38
SM
13282020-07-12 Simon Marchi <simon.marchi@efficios.com>
1329
1330 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1331 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1332 to use dynamic_prop::kind.
1333
064d9cb9
SM
13342020-07-12 Simon Marchi <simon.marchi@efficios.com>
1335
1336 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1337 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1338 to get the bound property's kind and check against
1339 PROP_UNDEFINED.
1340
5537ddd0
SM
13412020-07-12 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1344 all callers to use type::range_bounds followed by
1345 dynamic_prop::{low,high}.
1346
8c2e4e06
SM
13472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1350 const_val, set_const_val, baton, set_locexpr, set_loclist,
1351 set_addr_offset, variant_parts, set_variant_parts,
1352 original_type, set_original_type>: New methods.
1353 <kind>: Rename to...
1354 <m_kind>: ... this. Update all users to use the new methods
1355 instead.
1356 <data>: Rename to...
1357 <m_data>: ... this. Update all users to use the new methods
1358 instead.
1359
7c6f2712
SM
13602020-07-12 Simon Marchi <simon.marchi@efficios.com>
1361
1362 * gdbtypes.c (get_discrete_bounds): Return failure if
1363 the range type's bounds are not both defined and constant
1364 values.
1365 (get_array_bounds): Update comment. Remove undefined bound check.
1366
599088e3
SM
13672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1370 the type::bounds method directly.
1371
c4dfcb36
SM
13722020-07-12 Simon Marchi <simon.marchi@efficios.com>
1373
1374 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1375 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1376 are used to set the range type's bounds to use set_bounds.
1377
0a278aa7
PW
13782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1379
1380 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1381
cce20f10
PA
13822020-07-10 Pedro Alves <pedro@palves.net>
1383
1384 * gdbthread.h (inferior_ref): Define.
1385 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1386 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1387 * thread.c
1388 (scoped_restore_current_thread::restore):
1389 Adjust to gdb::ref_ptr.
1390 (scoped_restore_current_thread::~scoped_restore_current_thread):
1391 Remove manual decref handling.
1392 (scoped_restore_current_thread::scoped_restore_current_thread):
1393 Adjust to use
1394 inferior_ref::new_reference/thread_info_ref::new_reference.
1395 Incref the thread before calling get_frame_id instead of after.
1396 Let TARGET_CLOSE_ERROR propagate.
1397
6d7aa592
PA
13982020-07-10 Pedro Alves <pedro@palves.net>
1399
1400 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1401 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1402 NOT_AVAILABLE_ERROR.
1403 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1404 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1405
b3e3a4c1
SM
14062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1407 Pedro Alves <pedro@palves.net>
1408
1409 PR gdb/26199
1410 * infrun.c (threads_are_resumed_pending_p): Delete.
1411 (do_target_wait): Remove threads_are_executing and
1412 threads_are_resumed_pending_p checks from the inferior_matches
1413 lambda. Update comments.
1414
d6cc5d98
PA
14152020-07-10 Pedro Alves <pedro@palves.net>
1416
1417 PR gdb/26199
1418 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1419 executing threads.
1420
7d3badc6
PA
14212020-07-10 Pedro Alves <pedro@palves.net>
1422
1423 PR gdb/26199
1424 * infrun.c (handle_no_resumed): Handle multiple targets.
1425
42bd97a6
PA
14262020-07-10 Pedro Alves <pedro@palves.net>
1427
1428 PR gdb/26199
1429 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1430 target_is_async_p.
1431
43667cc6
PA
14322020-07-10 Pedro Alves <pedro@palves.net>
1433
1434 PR gdb/26199
1435 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1436 threads, not all threads.
1437
96118d11
PA
14382020-07-10 Pedro Alves <pedro@palves.net>
1439
1440 PR gdb/26199
1441 * remote.c (remote_target::open_1): Pass remote target pointer as
1442 data to create_async_event_handler.
1443 (remote_async_inferior_event_handler): Mark async event handler
1444 before returning if the remote target still has either pending
1445 events or unacknowledged notifications.
1446
54904d81
JB
14472020-07-10 John Baldwin <jhb@FreeBSD.org>
1448
1449 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1450 declaration.
1451 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1452 function.
1453
f37e5866
JB
14542020-07-09 John Baldwin <jhb@FreeBSD.org>
1455
1456 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1457 inferior_ptid.
1458
fc238d4a
JB
14592020-07-09 John Baldwin <jhb@FreeBSD.org>
1460
1461 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1462 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1463 AT_FREEBSD_PS_STRINGS.
1464
6e2469ff
HD
14652020-07-08 Hannes Domani <ssbssa@yahoo.de>
1466
1467 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1468 of debugfile path on Windows.
1469
d1076c41
JB
14702020-07-08 John Baldwin <jhb@FreeBSD.org>
1471
1472 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1473 argument to 'data'.
1474
15f3b077
TT
14752020-07-08 Tom Tromey <tromey@adacore.com>
1476
1477 * ada-lang.c (ada_exception_message_1): Use read_memory.
1478
9fc501fd
AB
14792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 PR python/22748
1482 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1483 special handling for inline frames.
1484 * findvar.c (value_of_register_lazy): Skip inline frames when
1485 creating lazy register values.
1486 * frame.c (frame_id_computed_p): Delete definition.
1487 * frame.h (frame_id_computed_p): Delete declaration.
1488
64cb3757
AB
14892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * NEWS: Mention additions to Python API.
1492 * python/py-arch.c (archpy_register_groups): New function.
1493 (arch_object_methods): Add 'register_groups' method.
1494 * python/py-registers.c (reggroup_iterator_object): New struct.
1495 (reggroup_object): New struct.
1496 (gdbpy_new_reggroup): New function.
1497 (gdbpy_reggroup_to_string): New function.
1498 (gdbpy_reggroup_name): New function.
1499 (gdbpy_reggroup_iter): New function.
1500 (gdbpy_reggroup_iter_next): New function.
1501 (gdbpy_new_reggroup_iterator): New function
1502 (gdbpy_initialize_registers): Register new types.
1503 (reggroup_iterator_object_type): Define new Python type.
1504 (gdbpy_reggroup_getset): New static global.
1505 (reggroup_object_type): Define new Python type.
1506 * python/python-internal.h
1507
0f767f94
AB
15082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1511 * python/py-arch.c (archpy_registers): New function.
1512 (arch_object_methods): Add 'registers' method.
1513 * python/py-registers.c: New file.
1514 * python/python-internal.h
1515 (gdbpy_new_register_descriptor_iterator): Declare.
1516 (gdbpy_initialize_registers): Declare.
1517 * python/python.c (do_start_initialization): Call
1518 gdbpy_initialize_registers.
1519 * NEWS: Mention additions to the Python API.
1520
87dbc774
AB
15212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1522
1523 * NEWS: Mention new Python API method.
1524 * python/py-unwind.c (pending_framepy_architecture): New function.
1525 (pending_frame_object_methods): Add architecture method.
1526
3bc98c0c
AB
15272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * gdbarch.c: Regenerate.
1530 * gdbarch.h: Regenerate.
1531 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1532 (gdbarch_data): Use internal_error for the case where
1533 deprecated_set_gdbarch_data was originally needed.
1534 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1535 and use passed in obstack.
1536 (libunwind_frame_set_descr): Should no longer get back NULL from
1537 gdbarch_data.
1538 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1539 type.
1540 * user-regs.c (user_regs_init): Update parameters, and use passed
1541 in obstack.
1542 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1543 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1544
d8cc8af6
TV
15452020-07-06 Tom de Vries <tdevries@suse.de>
1546
1547 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1548 End-Of-Sequence in lte_is_less_than.
1549 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1550 "gdb: Don't reorder line table entries too much when sorting".
1551
947f7597
TV
15522020-07-06 Tom de Vries <tdevries@suse.de>
1553
1554 PR tui/26205
1555 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1556
1e7c1b22
TV
15572020-07-05 Tom de Vries <tdevries@suse.de>
1558
1559 PR build/26187
1560 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1561 std::uncaught_exceptions instead of deprecated
1562 std::uncaught_exception.
1563
a36158ec
SM
15642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * macroexp.h (macro_stringify): Return
1567 gdb::unique_xmalloc_ptr<char>.
1568 * macroexp.c (macro_stringify): Likewise.
1569 * macrotab.c (fixup_definition): Update.
1570
14d960c8
SM
15712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1574 (lex_one_token): Update.
1575 * macroexp.c (struct macro_buffer) <release>: Return
1576 gdb::unique_xmalloc_ptr<char>.
1577 (macro_stringify): Update.
1578 (macro_expand): Update.
1579 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1580 * macroexp.h (macro_expand_next): Likewise.
1581
211d5b1c
SM
15822020-07-02 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * macroexp.h (macro_lookup_ftype): Remove.
1585 (macro_expand, macro_expand_once, macro_expand_next): Remove
1586 lookup function parameters, add scope parameter.
1587 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1588 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1589 * macroscope.h (standard_macro_lookup): Change parameter type
1590 to macro_scope.
1591 * macroscope.c (standard_macro_lookup): Likewise.
1592 * c-exp.y (lex_one_token): Update.
1593 * macrocmd.c (macro_expand_command): Likewise.
1594 (macro_expand_once_command): Likewise.
1595
b1a35af2
SM
15962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * inf-loop.c (inferior_event_handler): Remove client_data param.
1599 * inf-loop.h (inferior_event_handler): Likewise.
1600 * infcmd.c (step_1): Adjust.
1601 * infrun.c (proceed): Adjust.
1602 (fetch_inferior_event): Remove client_data param.
1603 (infrun_async_inferior_event_handler): Adjust.
1604 * infrun.h (fetch_inferior_event): Remove `void *` param.
1605 * linux-nat.c (handle_target_event): Adjust.
1606 * record-btrace.c (record_btrace_handle_async_inferior_event):
1607 Adjust.
1608 * record-full.c (record_full_async_inferior_event_handler):
1609 Adjust.
1610 * remote.c (remote_async_inferior_event_handler): Adjust.
1611
1cdf9e33
TT
16122020-07-01 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1615 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1616
32c1e210
TT
16172020-07-01 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1620 tui_gen_win_info.
1621 (tui_win_info::make_window): Merge with
1622 tui_gen_win_info::make_window.
1623 (tui_win_info::make_visible): Move from tui_gen_win_info.
1624 * tui/tui-win.c (tui_win_info::max_width): Move from
1625 tui_gen_win_info.
1626 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1627 type.
1628 <window_factory>: Likewise.
1629 * tui/tui-layout.c (tui_win_info::resize): Move from
1630 tui_gen_win_info.
1631 (make_standard_window): Change return type.
1632 (get_locator_window, tui_get_window_by_name): Likewise.
1633 (tui_layout_window::apply): Remove a cast.
1634 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1635 (struct tui_win_info): Merge with tui_gen_win_info.
1636 (struct tui_gen_win_info): Remove.
1637
a30cb6da
TT
16382020-07-01 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-stack.h (struct tui_locator_window): Derive from
1641 tui_win_info.
1642 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1643 <can_box>: New method.
1644
1eb2161f
TT
16452020-07-01 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1648
7134f2eb
TT
16492020-07-01 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-regs.c (tui_data_window::display_registers_from)
1652 (tui_data_window::display_registers_from)
1653 (tui_data_window::first_data_item_displayed)
1654 (tui_data_window::delete_data_content_windows): Update.
1655 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1656 Remove.
1657 (tui_data_window::check_register_values): Update.
1658 (tui_data_item_window::rerender): Add parameters. Update.
1659 (tui_data_item_window::refresh_window): Remove.
1660 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1661 virtual.
1662 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1663 tui_gen_win_info.
1664 <refresh_window, max_height, min_height>: Remove.
1665 <rerender>: Add parameters.
1666 <x, y, visible>: New members.
1667 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1668 <m_item_width>: New member.
1669
22b7b041
TT
16702020-07-01 Tom Tromey <tom@tromey.com>
1671
1672 * tui/tui-regs.c (tui_data_window::show_register_group)
1673 (tui_data_window::check_register_values): Update.
1674 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1675 from item_no.
1676
c9753adb
TT
16772020-07-01 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1680 useless "if".
1681
9ab26b4a
TT
16822020-07-01 Tom Tromey <tom@tromey.com>
1683
1684 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1685 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1686
e555083f
TT
16872020-07-01 Tom Tromey <tom@tromey.com>
1688
1689 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1690 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1691 (struct tui_line_or_address): Move from tui-data.h.
1692 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1693 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1694 (tui_cmd_window, tui_source_window_base, tui_source_window)
1695 (tui_disasm_window): Don't declare.
1696 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1697 to tui-winsource.h.
1698 (SINGLE_KEY): Move to tui-stack.c.
1699
7a02bab7
TT
17002020-07-01 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1703 std::string.
1704 * tui/tui-regs.c (class tab_expansion_file): New.
1705 (tab_expansion_file::write): New method.
1706 (tui_register_format): Change return type. Use
1707 tab_expansion_file.
1708 (tui_get_register, tui_data_window::display_registers_from)
1709 (tui_data_item_window::rerender): Update.
1710 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1711 * tui/tui-io.c (tui_expand_tabs): Remove.
1712
ea68593b
TT
17132020-07-01 Tom Tromey <tom@tromey.com>
1714
1715 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1716
a8caed5d
FS
17172020-07-01 Fangrui Song <maskray@google.com>
1718
1719 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1720
9cdf9820
AKS
17212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1722
1723 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1724 forms for DW_AT_associated and DW_AT_allocated attributes,
1725 which is already checked in function attr_to_dynamic_prop.
1726
a1520ad8
TT
17272020-06-30 Tom Tromey <tromey@adacore.com>
1728
1729 * dwarf2/read.c (quirk_rust_enum): Correctly call
1730 alloc_rust_variant for default-less enum.
1731
5ac58899
TT
17322020-06-30 Tom Tromey <tromey@adacore.com>
1733
1734 PR build/26183:
1735 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1736 gdb::to_string.
1737
19b187a9
SM
17382020-06-29 Simon Marchi <simon.marchi@efficios.com>
1739
1740 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1741 * gdbarch.h: Re-generate.
1742
cd4c4c07
TT
17432020-06-28 Tom Tromey <tom@tromey.com>
1744
1745 * command.h (cmd_types): Remove.
1746 (cmd_type): Don't declare.
1747 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1748 typedef.
1749 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1750 * cli/cli-decode.c (cmd_type): Remove.
1751
05779d57
PA
17522020-06-27 Pedro Alves <palves@redhat.com>
1753
1754 * fork-child.c (prefork_hook): Adjust.
1755 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1756 Delete.
1757 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1758 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1759 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1760 Remove declarations.
1761 (struct inferior) <set_tty, tty>: New methods.
1762 (struct inferior) <terminal>: Rename to ...
1763 (struct inferior) <m_terminal>: ... this and make private.
1764 * main.c (captured_main_1): Adjust.
1765 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1766 (mi_cmd_inferior_tty_show): Adjust.
1767 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1768 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1769
1776e3e5
NA
17702020-06-26 Nick Alcock <nick.alcock@oracle.com>
1771
1772 * configure.ac: Add --enable-libctf: handle --disable-static
1773 properly.
1774 * acinclude.m4: sinclude ../config/enable.m4.
1775 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1776 (LIBCTF): Substitute in.
1777 (CTF_DEPS): New, likewise.
1778 (CLIBS): libctf needs symbols from libbfd: move earlier.
1779 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1780 flags.
1781 * ctfread.c: Surround in ENABLE_LIBCTF.
1782 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1783 * configure: Regenerate.
1784 * config.in: Likewise.
1785
58373b80
SM
17862020-06-25 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1789
277474ee
SM
17902020-06-25 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * inferior.h (struct inferior) <terminal>: Change type to
1793 gdb::unique_xmalloc_ptr<char>.
1794 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1795 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1796 field, adjust to unique pointer.
1797 (get_inferior_io_terminal): Adjust to unique pointer.
1798
6d74da72
AB
17992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1802 registers, not just the known core set of registers.
1803
2e52d038
AB
18042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1807 fflags, frm, and fcsr registers.
1808 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1809 restore groups.
1810 (riscv_tdesc_unknown_reg): New function.
1811 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1812 tdesc_use_registers.
1813 * riscv-tdep.h (struct gdbarch_tdep): Add
1814 unknown_csrs_first_regnum, unknown_csrs_count,
1815 duplicate_fflags_regnum, duplicate_frm_regnum, and
1816 duplicate_fcsr_regnum fields.
1817
be64fd07
AB
18182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1821 callback, use the callback (when not null) to help number unknown
1822 registers.
1823 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1824 (tdesc_use_registers): Add extra parameter to declaration.
1825
3b9fce96
AB
18262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1829 in the file.
1830 (class riscv_pending_register_alias): Likewise.
1831 (riscv_register_feature::register_info): Change 'required_p' field
1832 to 'required', and change its type. Add 'check' member function.
1833 (riscv_register_feature::register_info::check): Define new member
1834 function.
1835 (riscv_xreg_feature): Change initialisation of 'required' field.
1836 (riscv_freg_feature): Likewise.
1837 (riscv_virtual_feature): Likewise.
1838 (riscv_csr_feature): Likewise.
1839 (riscv_check_tdesc_feature): Take extra parameter, the csr
1840 tdesc_feature, rewrite the function to use the new
1841 riscv_register_feature::register_info::check function.
1842 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1843
865bad26
AB
18442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * features/Makefile: Remove all references to the deleted files
1847 below.
1848 * features/riscv/32bit-csr.c: Deleted.
1849 * features/riscv/32bit-csr.xml: Deleted.
1850 * features/riscv/64bit-csr.c: Deleted.
1851 * features/riscv/64bit-csr.xml: Deleted.
1852 * features/riscv/rebuild-csr-xml.sh: Deleted.
1853
ed69cbc8
AB
18542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1857 whitespace error for declaration of names member variable.
1858 (struct riscv_register_feature): Add new prefer_first_name member
1859 variable, and fix whitespace error in declaration of registers.
1860 (riscv_xreg_feature): Initialize prefer_first_name field.
1861 (riscv_freg_feature): Likewise.
1862 (riscv_virtual_feature): Likewise.
1863 (riscv_csr_feature): Likewise.
1864 (riscv_register_name): Expand on comments. Remove register name
1865 modifications for CSR and virtual registers.
1866
4445e8f5
AB
18672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1870 errors.
1871
767a879e
AB
18722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1875 riscv-opc.h.
1876 (class riscv_pending_register_alias): New class.
1877 (riscv_check_tdesc_feature): Take vector of pending aliases and
1878 populate it as appropriate.
1879 (riscv_setup_register_aliases): Delete.
1880 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1881 to riscv_check_tdesc_feature in all cases. Use the vector to
1882 create the register aliases.
1883
bb6e55f3
RO
18842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1885
1886 * sol2-tdep.c (sol2_static_transform_name): Remove.
1887 (sol2_init_abi): Don't register it.
1888 * gdbarch.sh (static_transform_name): Remove.
1889 * gdbarch.c, gdbarch.h: Regenerate.
1890
1891 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1892 gdbarch_static_transform_name.
1893 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1894 * stabsread.c (define_symbol) <'X'>: Remove.
1895 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1896 handling.
1897 <'V'>: Likewise.
1898 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1899 <'S'>: Remove call to gdbarch_static_transform_name.
1900
c6d36836
RO
19012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903 * procfs.c (procfs_pre_trace): New function.
1904 (procfs_target::create_inferior): Pass it to fork_inferior.
1905
a7e6196b
RO
19062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1907
1908 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1909 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1910 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1911 sol2-tdep.o, sparc-sol2-tdep.o.
1912 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1913 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1914 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1915 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1916
d412e696
RO
19172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1918
1919 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1920 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1921 Call sol2_init_abi.
1922 Remove calls to set_gdbarch_skip_solib_resolver,
1923 set_gdbarch_core_pid_to_str.
1924 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1925 (i386_sol2_static_transform_name): Remove.
1926 (i386_sol2_init_abi): Call sol2_init_abi.
1927 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1928 set_gdbarch_static_transform_name,
1929 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1930 Use sol2_sigtramp_p.
1931 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1932 (sol2_sigtramp_p): New function.
1933 (sol2_static_transform_name): New function.
1934 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1935 (sol2_init_abi): New function.
1936 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1937 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1938 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1939 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1940 (sparc_sol2_static_transform_name): Remove.
1941 (sparc32_sol2_init_abi): Call sol2_init_abi.
1942 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1943 set_gdbarch_static_transform_name,
1944 set_gdbarch_skip_solib_resolver,
1945 set_gdbarch_core_pid_to_str.
1946 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1947 (sparc_sol2_static_transform_name): Remove
1948 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1949 call sol2_sigtramp_p.
1950 (sparc64_sol2_init_abi): Call sol2_init_abi.
1951 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1952 set_gdbarch_static_transform_name,
1953 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1954
a8654e7d
PW
19552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1956
1957 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1958 * exec.c (validate_exec_file): If from_tty, set both
1959 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1960 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1961 and from_tty, unconditionally ask a confirmation.
1962
caa7fd04
AB
19632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * target-descriptions.c (tdesc_architecture_name): Protect against
1966 NULL pointer dereference.
1967 (maint_print_xml_tdesc_cmd): New function.
1968 (_initialize_target_descriptions): Register new 'maint print
1969 xml-tdesc' command and give it the filename completer.
1970 * NEWS: Mention new 'maint print xml-tdesc' command.
1971
fbf42f4e
AB
19722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * target-descriptions.c (class tdesc_compatible_info): New class.
1975 (struct target_desc): Change type of compatible vector.
1976 (tdesc_compatible_p): Update for change in type of
1977 target_desc::compatible.
1978 (tdesc_compatible_info_list): New function.
1979 (tdesc_compatible_info_arch_name): New function.
1980 (tdesc_add_compatible): Update for change in type of
1981 target_desc::compatible.
1982 (print_c_tdesc::visit_pre): Likewise.
1983
20821f4e
AB
19842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1987 whitespace to underscore.
1988 (maint_print_c_tdesc_cmd): Use fake filename for target
1989 descriptions that came from the target.
1990 (_initialize_target_descriptions): Add filename command completion
1991 for 'maint print c-tdesc'.
1992
1fb5ee62
SM
19932020-06-23 Simon Marchi <simon.marchi@efficios.com>
1994
1995 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1996 lines.
1997
fc3ecb3e
SM
19982020-06-23 Simon Marchi <simon.marchi@efficios.com>
1999
2000 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2001 lines.
2002 (dwarf2_find_location_expression): Likewise.
2003 (call_site_parameter_matches): Likewise.
2004 (dwarf2_compile_expr_to_ax): Likewise.
2005 (disassemble_dwarf_expression): Likewise.
2006 (loclist_describe_location): Likewise.
2007
236ef034
PA
20082020-06-23 Pedro Alves <palves@redhat.com>
2009
2010 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2011 progspace-and-thread.h. Include scoped-mock-context.h instead.
2012 (register_to_value_test): Use scoped_mock_context.
2013 * regcache.c: Include "scoped-mock-context.h".
2014 (cooked_read_test): Don't error out if a target is already pushed.
2015 Use scoped_mock_context. Adjust.
2016 * scoped-mock-context.h: New file.
2017
39e7ecca
AB
20182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2021 initializer.
2022 (ada_language::is_string_type_p): New member function.
2023 * c-lang.c (c_language_data): Delete la_is_string_type_p
2024 initializer.
2025 (cplus_language_data): Likewise.
2026 (asm_language_data): Likewise.
2027 (minimal_language_data): Likewise.
2028 * d-lang.c (d_language_data): Likewise.
2029 * f-lang.c (f_is_string_type_p): Delete function, implementation
2030 moved to f_language::is_string_type_p.
2031 (f_language_data): Delete la_is_string_type_p initializer.
2032 (f_language::is_string_type_p): New member function,
2033 implementation from f_is_string_type_p.
2034 * go-lang.c (go_is_string_type_p): Delete function, implementation
2035 moved to go_language::is_string_type_p.
2036 (go_language_data): Delete la_is_string_type_p initializer.
2037 (go_language::is_string_type_p): New member function,
2038 implementation from go_is_string_type_p.
2039 * language.c (language_defn::is_string_type_p): Define new member
2040 function.
2041 (default_is_string_type_p): Make static, add comment copied from
2042 header file.
2043 (unknown_language_data): Delete la_is_string_type_p initializer.
2044 (unknown_language::is_string_type_p): New member function.
2045 (auto_language_data): Delete la_is_string_type_p initializer.
2046 (auto_language::is_string_type_p): New member function.
2047 * language.h (language_data): Delete la_is_string_type_p field.
2048 (language_defn::is_string_type_p): Declare new function.
2049 (default_is_string_type_p): Delete desclaration, move comment to
2050 definition.
2051 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2052 moved to m2_language::is_string_type_p.
2053 (m2_language_data): Delete la_is_string_type_p initializer.
2054 (m2_language::is_string_type_p): New member function,
2055 implementation from m2_is_string_type_p.
2056 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2057 initializer.
2058 * opencl-lang.c (opencl_language_data): Likewise.
2059 * p-lang.c (pascal_is_string_type_p): Delete function,
2060 implementation moved to pascal_language::is_string_type_p.
2061 (pascal_language_data): Delete la_is_string_type_p initializer.
2062 (pascal_language::is_string_type_p): New member function,
2063 implementation from pascal_is_string_type_p.
2064 * rust-lang.c (rust_is_string_type_p): Delete function,
2065 implementation moved to rust_language::is_string_type_p.
2066 (rust_language_data): Delete la_is_string_type_p initializer.
2067 (rust_language::is_string_type_p): New member function,
2068 implementation from rust_is_string_type_p.
2069 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2070 is_string_type_p.
2071
4ffc13fb
AB
20722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_language_data): Delete la_print_typedef
2075 initializer.
2076 (ada_language::print_typedef): New member function.
2077 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2078 (cplus_language_data): Likewise.
2079 (asm_language_data): Likewise.
2080 (minimal_language_data): Likewise.
2081 * d-lang.c (d_language_data): Likewise.
2082 * f-lang.c (f_language_data): Likewise.
2083 (f_language::print_typedef): New member function.
2084 * go-lang.c (go_language_data): Delete la_print_typedef
2085 initializer.
2086 * language.c (language_defn::print_typedef): Define member
2087 function.
2088 (unknown_language_data): Delete la_print_typedef initializer.
2089 (unknown_language::print_typedef): New member function.
2090 (auto_language_data): Delete la_print_typedef initializer.
2091 (auto_language::print_typedef): New member function.
2092 * language.h (language_data): Delete la_print_typedef field.
2093 (language_defn::print_typedef): Declare new member function.
2094 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2095 (default_print_typedef): Delete declaration.
2096 * m2-lang.c (m2_language_data): Delete la_print_typedef
2097 initializer.
2098 (m2_language::print_typedef): New member function.
2099 * objc-lang.c (objc_language_data): Delete la_print_typedef
2100 initializer.
2101 * opencl-lang.c (opencl_language_data): Likewise.
2102 * p-lang.c (pascal_language_data): Likewise.
2103 (pascal_language::print_typedef): New member function.
2104 * rust-lang.c (rust_print_typedef): Delete function,
2105 implementation moved to rust_language::print_typedef.
2106 (rust_language): Delete la_print_typedef initializer.
2107 (rust_language::print_typedef): New member function,
2108 implementation from rust_print_typedef.
2109 * typeprint.c (default_print_typedef): Delete.
2110
d711ee67
AB
21112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2114 (ada_language::printstr): New member function.
2115 * c-lang.c (c_language_data): Delete la_printstr initializer.
2116 (cplus_language_data): Likewise.
2117 (asm_language_data): Likewise.
2118 (minimal_language_data): Likewise.
2119 * d-lang.c (d_language_data): Likewise.
2120 * f-lang.c (f_printstr): Rename to f_language::printstr.
2121 (f_language_data): Delete la_printstr initializer.
2122 (f_language::printstr): New member function, implementation from
2123 f_printstr.
2124 * go-lang.c (go_language_data): Delete la_printstr initializer.
2125 * language.c (language_defn::printstr): Define new member
2126 function.
2127 (unk_lang_printstr): Delete.
2128 (unknown_language_data): Delete la_printstr initializer.
2129 (unknown_language::printstr): New member function.
2130 (auto_language_data): Delete la_printstr initializer.
2131 (auto_language::printstr): New member function.
2132 * language.h (language_data): Delete la_printstr field.
2133 (language_defn::printstr): Declare new member function.
2134 (LA_PRINT_STRING): Update call to printstr.
2135 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2136 (m2_language_data): Delete la_printstr initializer.
2137 (m2_language::printstr): New member function, implementation from
2138 m2_printstr.
2139 * objc-lang.c (objc_language_data): Delete la_printstr
2140 initializer.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2143 (pascal_language_data): Delete la_printstr initializer.
2144 (pascal_language::printstr): New member function, implementation
2145 from pascal_printstr.
2146 * p-lang.h (pascal_printstr): Delete declaration.
2147 * rust-lang.c (rust_printstr): Update header comment.
2148 (rust_language_data): Delete la_printstr initializer.
2149 (rust_language::printstr): New member function.
2150
52b50f2c
AB
21512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2154 (ada_language::printchar): New member function.
2155 * c-lang.c (c_language_data): Delete la_printchar initializer.
2156 (cplus_language_data): Likewise.
2157 (asm_language_data): Likewise.
2158 (minimal_language_data): Likewise.
2159 * d-lang.c (d_language_data): Likewise.
2160 * f-lang.c (f_printchar): Rename to f_language::printchar.
2161 (f_language_data): Delete la_printchar initializer.
2162 (f_language::printchar): New member function, implementation from
2163 f_printchar.
2164 * go-lang.c (go_language_data): Delete la_printchar initializer.
2165 * language.c (unk_lang_printchar): Delete.
2166 (language_defn::printchar): Define new member function.
2167 (unknown_language_data): Delete la_printchar initializer.
2168 (unknown_language::printchar): New member function.
2169 (auto_language_data): Delete la_printchar initializer.
2170 (auto_language::printchar): New member function.
2171 * language.h (language_data): Delete la_printchar field.
2172 (language_defn::printchar): Declare new member function.
2173 (LA_PRINT_CHAR): Update call to printchar.
2174 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2175 (m2_language::printchar): New member function.
2176 * objc-lang.c (objc_language_data): Delete la_printchar
2177 initializer.
2178 * opencl-lang.c (opencl_language_data): Likewise.
2179 * p-lang.c (pascal_language_data): Delete la_printchar
2180 initializer.
2181 (pascal_language::printchar): New member function.
2182 * rust-lang.c (rust_printchar): Rename to
2183 rust_language::printchar.
2184 (rust_language_data): Delete la_printchar initializer.
2185 (rust_language::printchar): New member function, implementation
2186 from rust_printchar.
2187
ec8cec5b
AB
21882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2191 (ada_language_data): Delete la_emitchar initializer.
2192 (ada_language::emitchar): New member function, implementation from
2193 emit_char.
2194 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2195 (cplus_language_data): Likewise.
2196 (asm_language_data): Likewise.
2197 (minimal_language_data): Likewise.
2198 * d-lang.c (d_language_data): Likewise.
2199 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2200 (f_language_data): Delete la_emitchar initializer.
2201 (f_language::emitchar): New member function, implementation from
2202 f_emit_char.
2203 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2204 * language.c (unk_lang_emit_char): Delete.
2205 (language_defn::emitchar): New member function definition.
2206 (unknown_language_data): Delete la_emitchar initializer.
2207 (unknown_language::emitchar): New member function.
2208 (auto_language_data): Delete la_emitchar initializer.
2209 (auto_language::emitchar): New member function.
2210 * language.h (language_data): Delete la_emitchar field.
2211 (language_defn::emitchar): New member field declaration.
2212 (LA_EMIT_CHAR): Update call to emitchar.
2213 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2214 (m2_language_data): Delete la_emitchar initializer.
2215 (m2_language::emitchar): New member function, implementation from
2216 m2_emit_char.
2217 * objc-lang.c (objc_language_data): Delete la_emitchar
2218 initializer.
2219 * opencl-lang.c (opencl_language_data): Likewise.
2220 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2221 (pascal_language_data): Delete la_emitchar initializer.
2222 (pascal_language::emitchar): New member function, implementation
2223 from pascal_emit_char.
2224 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2225 (rust_language_data): Delete la_emitchar initializer.
2226 (rust_language::emitchar): New member function, implementation
2227 from rust_emitchar.
2228
1bf9c363
AB
22292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2232 (ada_language_data): Delete la_post_parser initializer.
2233 (ada_language::post_parser): New member function.
2234 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2235 (cplus_language_data): Likewise.
2236 (asm_language_data): Likewise.
2237 (minimal_language_data): Likewise.
2238 * d-lang.c (d_language_data): Likewise.
2239 * f-lang.c (f_language_data): Likewise.
2240 * go-lang.c (go_language_data): Likewise.
2241 * language.c (unknown_language_data): Likewise.
2242 (auto_language_data): Likewise.
2243 * language.h (language_data): Delete la_post_parser field.
2244 (language_defn::post_parser): New member function.
2245 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2246 * objc-lang.c (objc_language_data): Likewise.
2247 * opencl-lang.c (opencl_language_data): Likewise.
2248 * p-lang.c (pascal_language_data): Likewise.
2249 * parse.c (parse_exp_in_context): Update call to post_parser.
2250 (null_post_parser): Delete definition.
2251 * parser-defs.h (null_post_parser): Delete declaration.
2252 * rust-lang.c (rust_language_data): Delete la_post_parser
2253 initializer.
2254
87afa652
AB
22552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * ada-lang.c (parse): Rename to ada_language::parser.
2258 (ada_language_data): Delete la_parser initializer.
2259 (ada_language::parser): New member function, implementation from
2260 parse.
2261 * c-lang.c (c_language_data): Delete la_parser initializer.
2262 (cplus_language_data): Likewise.
2263 (asm_language_data): Likewise.
2264 (minimal_language_data): Likewise.
2265 * d-lang.c (d_language_data): Likewise.
2266 (d_language::parser): New member function.
2267 * f-lang.c (f_language_data): Delete la_parser initializer.
2268 (f_language::parser): New member function.
2269 * go-lang.c (go_language_data): Delete la_parser initializer.
2270 (go_language::parser): New member function.
2271 * language.c (unk_lang_parser): Delete.
2272 (language_defn::parser): Define new member function.
2273 (unknown_language_data): Delete la_parser initializer.
2274 (unknown_language::parser): New member function.
2275 (auto_language_data): Delete la_parser initializer.
2276 (auto_language::parser): New member function.
2277 * language.h (language_data): Delete la_parser field.
2278 (language_defn::parser): Declare new member function.
2279 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2280 (m2_language::parser): New member function.
2281 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2282 * opencl-lang.c (opencl_language_data): Likewise.
2283 * p-lang.c (pascal_language_data): Likewise.
2284 (pascal_language::parser): New member function.
2285 * parse.c (parse_exp_in_context): Update call to parser.
2286 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2287 (rust_language::parser): New member function.
2288
37825800
AB
22892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * top.c (print_gdb_configuration): Print --with-python-libdir
2292 configuration value.
2293
5b860c93
PW
22942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2295
2296 * NEWS: Mention change to the alias command.
2297
cf00cd6f
PW
22982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2299
2300 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2301 (alias_command_completer)
2302 (make_alias_options_def_group): New functions.
2303 (alias_opts, alias_option_defs): New struct and array.
2304 (alias_usage_error): Update usage.
2305 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2306 Use option framework.
2307 (_initialize_cli_cmds): Update alias command help.
2308 Update aliases command help.
2309 (show_user):
2310 Add NULL for new default_args lookup_cmd argument.
2311 (valid_command_p): Rename to validate_aliased_command.
2312 Add NULL for new default_args lookup_cmd argument. Verify that the
2313 aliased_command has no default args.
2314 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2315 (lookup_cmd_1, lookup_cmd): New argument default_args.
2316 (add_alias_cmd):
2317 Add NULL for new default_args lookup_cmd argument.
2318 (print_help_for_command): Show default args under the layout
2319 alias some_alias = some_aliased_cmd some_alias_default_arg.
2320 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2321 xfree default_args in destructor.
2322 * cli/cli-script.c (process_next_line, do_define_command):
2323 Add NULL for new default_args lookup_cmd argument.
2324 * command.h: Declare new default_args argument in lookup_cmd
2325 and lookup_cmd_1.
2326 * completer.c (complete_line_internal_1):
2327 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2328 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2329 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2330 Likewise.
2331 * infcmd.c (_initialize_infcmd): Likewise.
2332 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2333 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2334 * python/py-param.c (add_setshow_generic): Likewise.
2335 * remote.c (_initialize_remote): Likewise.
2336 * top.c (execute_command): Prepend default_args if command has some.
2337 (set_verbose):
2338 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2339 * tracepoint.c (validate_actionline, encode_actions_1):
2340 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2341
bd920864
TBA
23422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2343
2344 * jit.c (jit_read_descriptor): Use bool as the return type.
2345 (jit_breakpoint_re_set_internal): Use bool as the return type.
2346 Invert the return value logic; return true if the jit breakpoint
2347 has been successfully initialized.
2348 (jit_inferior_init): Update the call to
2349 jit_breakpoint_re_set_internal.
2350
f8098322
PA
23512020-06-22 Pedro Alves <palves@redhat.com>
2352
2353 PR gdb/25939
2354 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2355 Use the current inferior instead. Don't return
2356 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2357 wait again.
2358 * sol-thread.c (sol_thread_target::wait): Don't reference
2359 inferior_ptid.
2360 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2361 (sol_update_thread_list_callback): Use the current inferior's pid
2362 instead of inferior_ptid.
2363
196535a6
RO
23642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2365
2366 * procfs.c: Cleanup many comments.
2367
2368 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2369 (AFTER_WATCHFLAG): Replace by value.
2370
2371 (MAIN_PROC_NAME_FORMAT): Inline ...
2372 (create_procinfo): ... here.
2373
2374 (procfs_debug_inferior): Remove SYS_exec handling.
2375 (syscall_is_exec): Likewise.
2376 (procfs_set_exec_trap): Likewise.
2377
2378 (syscall_is_lwp_exit): Inline in callers.
2379 (syscall_is_exit): Likewise.
2380 (syscall_is_exec): Likewise.
2381 (syscall_is_lwp_create): Likewise.
2382
2383 (invalidate_cache): Remove #if 0 code.
2384
2385 (make_signal_thread_runnable): Remove.
2386 (procfs_target::resume): Remove #if 0 code.
2387
cf6f3e86
RO
23882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2389
2390 PR gdb/25939
2391 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2392 call ...
2393 (procfs_target::create_inferior): ... here.
2394
48e9cc84
PW
23952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2396
2397 * exec.c (validate_exec_file): Ensure the build-id is up to
2398 date by calling reopen_exec_file (that checks file timestamp
2399 to decide to re-read the file).
2400
3922b302
PA
24012020-06-18 Pedro Alves <palves@redhat.com>
2402
2403 PR gdb/25412
2404 * gdbthread.h (delete_thread, delete_thread_silent)
2405 (find_thread_ptid): Update comments.
2406 * thread.c (current_thread_): New global.
2407 (is_current_thread): Move higher, and reimplement.
2408 (inferior_thread): Reimplement.
2409 (set_thread_exited): Use bool. Add assertions.
2410 (add_thread_silent): Simplify thread-reuse handling by always
2411 calling delete_thread.
2412 (delete_thread): Remove intro comment.
2413 (find_thread_ptid): Skip exited threads.
2414 (switch_to_thread_no_regs): Write to current_thread_.
2415 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2416 INFERIOR_PTID. Clear current_thread_.
2417
6dbdab44
PA
24182020-06-18 Pedro Alves <palves@redhat.com>
2419
2420 * aix-thread.c (pd_update): Use switch_to_thread.
2421
2da4b788
PA
24222020-06-18 Pedro Alves <palves@redhat.com>
2423
2424 * ravenscar-thread.c (ravenscar_thread_target): Update.
2425 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2426 (ravenscar_thread_target::add_active_thread): ... this. Don't
2427 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2428 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2429
50838d1b
PA
24302020-06-18 Pedro Alves <palves@redhat.com>
2431
2432 * nat/windows-nat.c (current_windows_thread): Remove.
2433 * nat/windows-nat.h (current_windows_thread): Remove.
2434 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2435 Adjust.
2436 (display_selectors): Adjust to fetch the current
2437 windows_thread_info based on inferior_ptid.
2438 (fake_create_process): No longer write to current_windows_thread.
2439 (windows_nat_target::get_windows_debug_event):
2440 Don't set inferior_ptid or current_windows_thread.
2441 (windows_nat_target::wait): Adjust to not rely on
2442 current_windows_thread.
2443 (do_initial_windows_stuff): Now a method of windows_nat_target.
2444 Switch to the last_ptid thread.
2445 (windows_nat_target::attach): Adjust.
2446 (windows_nat_target::detach): Use switch_to_no_thread instead of
2447 writing to inferior_ptid directly.
2448 (windows_nat_target::create_inferior): Adjust.
2449
31ce04e9
PA
24502020-06-18 Pedro Alves <palves@redhat.com>
2451
2452 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2453
1ee1a363
PA
24542020-06-18 Pedro Alves <palves@redhat.com>
2455
2456 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2457 after creating it, instead of writing to inferior_ptid. Don't
2458 write to inferior_ptid.
2459
6d350754
PA
24602020-06-18 Pedro Alves <palves@redhat.com>
2461
2462 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2463
5d971d48
PA
24642020-06-18 Pedro Alves <palves@redhat.com>
2465
2466 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2467 it, instead of writing to inferior_ptid.
2468
86e57d1b
PA
24692020-06-18 Pedro Alves <palves@redhat.com>
2470
2471 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2472 to inferior_ptid.
2473
f2e1c129
PA
24742020-06-18 Pedro Alves <palves@redhat.com>
2475
2476 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2477 instead of writing to inferior_ptid directly.
2478
60db1b85
PA
24792020-06-18 Pedro Alves <palves@redhat.com>
2480
2481 * corelow.c (core_target::close): Use switch_to_no_thread instead
2482 of writing to inferior_ptid directly.
2483 (add_to_thread_list, core_target_open): Use switch_to_thread
2484 instead of writing to inferior_ptid directly.
2485
fe7d6a8d
PA
24862020-06-18 Pedro Alves <palves@redhat.com>
2487
2488 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2489 inferior_ptid.
2490 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2491 inferior_ptid.
2492 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2493 inferior_ptid directly.
2494 (darwin_nat_target::init_thread_list): Switch to thread, instead
2495 of writing to inferior_ptid.
2496 (darwin_nat_target::attach): Don't write to inferior_ptid.
2497 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2498
975f8708
PA
24992020-06-18 Pedro Alves <palves@redhat.com>
2500
2501 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2502 thread.
2503 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2504 Instead use switch_to_thread.
2505 (gnu_nat_target::detach): Use switch_to_no_thread
2506 instead of writing to inferior_ptid directly. Used passed-in
2507 inferior instead of looking up the inferior by pid.
2508
1a204730
PA
25092020-06-18 Pedro Alves <palves@redhat.com>
2510
2511 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2512 inferior_ptid.
2513
ebe84f23
PA
25142020-06-18 Pedro Alves <palves@redhat.com>
2515
2516 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2517 inferior_ptid.
2518 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2519 thread.
2520 (nto_procfs_target::detach): Avoid referencing
2521 inferior_ptid. Use switch_to_no_thread instead of writing to
2522 inferior_ptid directly.
2523 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2524 instead of writing to inferior_ptid directly.
2525 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2526 to thread.
2527
191f02e5
PA
25282020-06-18 Pedro Alves <palves@redhat.com>
2529
2530 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2531 after creating it, instead of writing to inferior_ptid.
2532 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2533 to inferior_ptid directly.
2534 (gdbsim_target::wait): Don't write to inferior_ptid.
2535
0ac55310
PA
25362020-06-18 Pedro Alves <palves@redhat.com>
2537
2538 * remote.c (remote_target::remote_notice_new_inferior): Use
2539 switch_to_thread instead of writing to inferior_ptid directly.
2540 (remote_target::add_current_inferior_and_thread): Use
2541 switch_to_no_thread instead of writing to inferior_ptid directly.
2542 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2543 and switch_to_thread instead of using set_current_inferior or
2544 writing to inferior_ptid directly.
2545
5233f39b
PA
25462020-06-18 Pedro Alves <palves@redhat.com>
2547
2548 * tracectf.c (ctf_target_open): Switch to added thread instead of
2549 writing to inferior_ptid directly.
2550 (ctf_target::close): Use switch_to_no_thread instead of writing to
2551 inferior_ptid directly.
2552
087e161b
PA
25532020-06-18 Pedro Alves <palves@redhat.com>
2554
2555 * tracefile-tfile.c (tfile_target_open): Don't write to
2556 inferior_ptid directly, instead switch to added thread.
2557 (tfile_target::close): Use switch_to_no_thread instead of writing
2558 to inferior_ptid directly.
2559
7fb43e53
PA
25602020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2563 (procfs_target::detach): Use switch_to_no_thread
2564 instead of writing to inferior_ptid directly.
2565 (do_attach): Change return type to void. Switch to the added
2566 thread.
2567 (procfs_target::create_inferior): Switch to the added thread.
2568 (procfs_do_thread_registers): Don't write to inferior_ptid.
2569
18493a00
PA
25702020-06-18 Pedro Alves <palves@redhat.com>
2571
2572 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2573 of writing to inferior_ptid.
2574 (scoped_restore_exited_inferior): Delete.
2575 (handle_vfork_child_exec_or_exit): Simplify using
2576 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2577 instead of writing to inferior_ptid.
2578 (THREAD_STOPPED_BY): Delete.
2579 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2580 (thread_stopped_by_hw_breakpoint): Delete.
2581 (save_waitstatus): Use
2582 scoped_restore_current_thread+switch_to_thread, and call
2583 target_stopped_by_watchpoint instead of
2584 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2585 instead of thread_stopped_by_sw_breakpoint, and
2586 target_stopped_by_hw_breakpoint instead of
2587 thread_stopped_by_hw_breakpoint.
2588 (handle_inferior_event)
2589 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2590 inferior_ptid directly, nor
2591 set_current_inferior/set_current_program_space. Use
2592 switch_to_thread / switch_to_inferior_no_thread instead.
2593
a0776b13
PA
25942020-06-18 Pedro Alves <palves@redhat.com>
2595
2596 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2597 instead of writing to inferior_ptid.
2598
6155c136
PA
25992020-06-18 Pedro Alves <palves@redhat.com>
2600
2601 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2602 added thread.
2603 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2604 to the added thread.
2605 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2606 instead of writing to inferior_ptid.
2607
c5316fc6
PA
26082020-06-18 Pedro Alves <palves@redhat.com>
2609
2610 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2611 (register_to_value_test): Mock a program_space too. Heap-allocate
2612 the address space. Don't write to inferior_ptid. Use
2613 switch_to_thread instead.
2614
8df01799
PA
26152020-06-18 Pedro Alves <palves@redhat.com>
2616
2617 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2618 Delete.
2619 (find_signalled_thread()): New, factored out from
2620 linux_make_corefile_notes and adjusted to handle exited threads.
2621 (linux_make_corefile_notes): Adjust to use the new
2622 find_signalled_thread.
2623
41792d68
PA
26242020-06-18 Pedro Alves <palves@redhat.com>
2625
2626 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2627 of saving/restoring inferior_ptid.
2628
612f258a
TT
26292020-06-17 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2632 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2633 declare.
2634 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2635
efb763a5
SM
26362020-06-15 Simon Marchi <simon.marchi@efficios.com>
2637
2638 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2639 of partial symtabs.
2640
2951f6c0
SM
26412020-06-17 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * regformats/reg-arm.dat: Remove.
2644 * regformats/reg-bfin.dat: Remove.
2645 * regformats/reg-cris.dat: Remove.
2646 * regformats/reg-crisv32.dat: Remove.
2647 * regformats/reg-m32r.dat: Remove.
2648 * regformats/reg-tilegx.dat: Remove.
2649 * regformats/reg-tilegx32.dat: Remove.
2650
7d458ea5
SM
26512020-06-17 Simon Marchi <simon.marchi@efficios.com>
2652
2653 * features/Makefile (WHICH): Remove arm files.
2654 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2655 * regformats/arm/arm-with-neon.dat: Remove.
2656 * regformats/arm/arm-with-vfpv2.dat: Remove.
2657 * regformats/arm/arm-with-vfpv3.dat: Remove.
2658
3af96c0d
SM
26592020-06-17 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * features/Makefile (XMLTOC): Remove rx.xml.
2662
b25e22fd
PA
26632020-06-17 Pedro Alves <palves@redhat.com>
2664
2665 * gdbthread.h (thread_control_state) <trap_expected> Update
2666 comments.
2667
a78a19b1
AB
26682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2671 ada_language::lookup_symbol_nonlocal.
2672 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2673 (ada_language::lookup_symbol_nonlocal): New member function,
2674 implementation from ada_lookup_symbol_nonlocal.
2675 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2676 initializer.
2677 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2678 initializer.
2679 (cplus_language::lookup_symbol_nonlocal): New member function.
2680 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2681 (minimal_language_data) Likewise.
2682 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2683 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2684 initializer.
2685 (d_language::lookup_symbol_nonlocal): New member function.
2686 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2687 initializer.
2688 (f_language::lookup_symbol_nonlocal): New member function.
2689 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2690 initializer.
2691 * language.c (unknown_language_data): Likewise.
2692 (auto_language_data): Likewise.
2693 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2694 field.
2695 (language_defn::lookup_symbol_nonlocal): New member function.
2696 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2697 initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2702 rust_language::lookup_symbol_nonlocal.
2703 (rust_language_data): Delete la_lookup_symbol_nonlocal
2704 initializer.
2705 (rust_language::lookup_symbol_nonlocal): New member function,
2706 implementation from rust_lookup_symbol_nonlocal.
2707 * symtab.c (lookup_symbol_aux): Update call to
2708 lookup_symbol_nonlocal.
2709 (basic_lookup_symbol_nonlocal): Rename to...
2710 (language_defn::lookup_symbol_nonlocal): ...this, and update
2711 header comment. Remove language_defn parameter, and replace with
2712 uses of `this'.
2713 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2714
ebe2334e
AB
27152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2718 initializer.
2719 (ada_language::value_print_inner): New member function.
2720 * c-lang.c (c_language_data): Delete la_value_print_inner
2721 initializer.
2722 (cplus_language_data): Likewise.
2723 (asm_language_data): Likewise.
2724 (minimal_language_data): Likewise.
2725 * d-lang.c (d_language_data): Likewise.
2726 (d_language::value_print_inner): New member function.
2727 * f-lang.c (f_language_data): Delete la_value_print_inner
2728 initializer.
2729 (f_language::value_print_inner): New member function.
2730 * f-lang.h (f_value_print_innner): Rename to...
2731 (f_value_print_inner): ...this (note spelling of 'inner').
2732 * f-valprint.c (f_value_print_innner): Rename to...
2733 (f_value_print_inner): ...this (note spelling of 'inner').
2734 * go-lang.c (go_language_data): Delete la_value_print_inner
2735 initializer.
2736 (go_language::value_print_inner): New member function.
2737 * language.c (language_defn::value_print_inner): Define new member
2738 function.
2739 (unk_lang_value_print_inner): Delete.
2740 (unknown_language_data): Delete la_value_print_inner initializer.
2741 (unknown_language::value_print_inner): New member function.
2742 (auto_language_data): Delete la_value_print_inner initializer.
2743 (auto_language::value_print_inner): New member function.
2744 * language.h (language_data): Delete la_value_print_inner field.
2745 (language_defn::value_print_inner): Delcare new member function.
2746 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2747 initializer.
2748 (m2_language::value_print_inner): New member function.
2749 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2750 initializer.
2751 * opencl-lang.c (opencl_language_data): Likewise.
2752 * p-lang.c (pascal_language_data): Likewise.
2753 (pascal_language::value_print_inner): New member function.
2754 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2755 initializer.
2756 (rust_language::value_print_inner): New member function.
2757 * valprint.c (do_val_print): Update call to value_print_inner.
2758
a1d1fa3e
AB
27592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2760
2761 * ada-lang.c (ada_language_data): Delete la_value_print
2762 initializer.
2763 (ada_language::value_print): New member function.
2764 * c-lang.c (c_language_data): Delete la_value_print initializer.
2765 (cplus_language_data): Likewise.
2766 (asm_language_data): Likewise.
2767 (minimal_language_data): Likewise.
2768 * d-lang.c (d_language_data): Likewise.
2769 * f-lang.c (f_language_data): Likewise.
2770 * go-lang.c (go_language_data): Likewise.
2771 * language.c (unk_lang_value_print): Delete.
2772 (language_defn::value_print): Define new member function.
2773 (unknown_language_data): Delete la_value_print initializer.
2774 (unknown_language::value_print): New member function.
2775 (auto_language_data): Delete la_value_print initializer.
2776 (auto_language::value_print): New member function.
2777 * language.h (language_data): Delete la_value_print field.
2778 (language_defn::value_print): Declare new member function.
2779 (LA_VALUE_PRINT): Update call to value_print.
2780 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2781 * objc-lang.c (objc_language_data): Likewise.
2782 * opencl-lang.c (opencl_language_data): Likewise.
2783 * p-lang.c (pascal_language_data): Likewise.
2784 (pascal_language::value_print): New member function.
2785 * rust-lang.c (rust_language_data): Delete la_value_print
2786 initializer.
2787
f16a9f57
AB
27882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * ada-lang.c (ada_watch_location_expression): Rename to
2791 ada_language::watch_location_expression.
2792 (ada_language_data): Delete la_watch_location_expression
2793 initializer.
2794 (ada_language::watch_location_expression): New member function,
2795 implementation from ada_watch_location_expression.
2796 * breakpoint.c (watch_command_1): Update call to
2797 watch_location_expression.
2798 * c-lang.c (c_watch_location_expression): Rename to
2799 language_defn::watch_location_expression.
2800 (c_language_data): Delete la_watch_location_expression
2801 initializer.
2802 (cplus_language_data): Likewise.
2803 (asm_language_data): Likewise.
2804 (minimal_language_data): Likewise.
2805 * c-lang.h (c_watch_location_expression): Delete declaration.
2806 * d-lang.c (d_language_data): Delete la_watch_location_expression
2807 initializer.
2808 * f-lang.c (f_language_data): Likewise.
2809 * go-lang.c (go_language_data): Likewise.
2810 * language.c (language_defn::watch_location_expression): Member
2811 function implementation from c_watch_location_expression.
2812 (unknown_language_data): Delete la_watch_location_expression
2813 initializer.
2814 (auto_language_data): Likewise.
2815 * language.h (language_data): Delete la_watch_location_expression
2816 field.
2817 (language_defn::watch_location_expression): Declare new member
2818 function.
2819 * m2-lang.c (m2_language_data): Delete
2820 la_watch_location_expression initializer.
2821 * objc-lang.c (objc_language_data): Likewise.
2822 * opencl-lang.c (opencl_language_data): Likewise.
2823 * p-lang.c (pascal_language_data): Likewise.
2824 * rust-lang.c (rust_watch_location_expression): Rename to
2825 rust_language::watch_location_expression.
2826 (rust_language_data): Delete la_watch_location_expression
2827 initializer.
2828 (rust_language::watch_location_expression): New member function,
2829 implementation from rust_watch_location_expression.
2830
7e56227d
AB
28312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2832
2833 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2834 ada_language::collect_symbol_completion_matches.
2835 (ada_language_data): Delete la_collect_symbol_completion_matches
2836 initializer.
2837 (ada_language::collect_symbol_completion_matches): New member
2838 function, implementation from
2839 ada_collect_symbol_completion_matches.
2840 * c-lang.c (c_language_data): Delete
2841 la_collect_symbol_completion_matches initializer.
2842 (cplus_language_data): Likewise.
2843 (asm_language_data): Likewise.
2844 (minimal_language_data): Likewise.
2845 * d-lang.c (d_language_data): Likewise.
2846 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2847 f_language::collect_symbol_completion_matches.
2848 (f_language_data): Delete la_collect_symbol_completion_matches
2849 initializer.
2850 (f_language::collect_symbol_completion_matches) New member
2851 function, implementation from f_collect_symbol_completion_matches.
2852 * go-lang.c (go_language_data): Delete
2853 la_collect_symbol_completion_matches initializer.
2854 * language.c (unknown_language_data): Likewise.
2855 (auto_language_data): Likewise.
2856 * language.h (language_data): Delete
2857 la_collect_symbol_completion_matches field.
2858 (language_defn::collect_symbol_completion_matches): New member
2859 function.
2860 * m2-lang.c (m2_language_data): Delete
2861 la_collect_symbol_completion_matches initializer.
2862 * objc-lang.c (objc_language_data): Likewise.
2863 * opencl-lang.c (opencl_language_data): Likewise.
2864 * p-lang.c (pascal_language_data): Likewise.
2865 * rust-lang.c (rust_language_data): Likewise.
2866 * symtab.c (default_collect_symbol_completion_matches): Delete.
2867 (collect_symbol_completion_matches): Update call to
2868 collect_symbol_completion_matches.
2869 (collect_symbol_completion_matches_type): Likewise.
2870 * symtab.h (default_collect_symbol_completion_matches): Delete
2871 declaration.
2872
53fc67f8
AB
28732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2876 (ada_language_data): Delete la_word_break_characters initializer.
2877 (ada_language::word_break_characters): New member function.
2878 * c-lang.c (c_language_data): Delete la_word_break_characters
2879 initializer.
2880 (cplus_language_data): Likewise.
2881 (asm_language_data): Likewise.
2882 (minimal_language_data): Likewise.
2883 * completer.c: Update global comment.
2884 (advance_to_expression_complete_word_point): Update call to
2885 word_break_characters.
2886 (complete_files_symbols): Likewise.
2887 (complete_line_internal_1): Likewise.
2888 (default_completer_handle_brkchars): Likewise.
2889 (skip_quoted_chars): Likewise.
2890 * d-lang.c (d_language_data): Delete la_word_break_characters
2891 initializer.
2892 * f-lang.c (f_word_break_characters): Delete.
2893 (f_language_data): Delete la_word_break_characters initializer.
2894 (f_language::word_break_characters): New member function.
2895 * go-lang.c (go_language_data): Delete la_word_break_characters
2896 initializer.
2897 * language.c (unknown_language_data): Likewise.
2898 (auto_language_data): Likewise.
2899 * language.h (default_word_break_characters): Move declaration to
2900 earlier in the file.
2901 (language_data): Delete la_word_break_characters field.
2902 (language_defn::word_break_characters): New member function.
2903 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2904 initializer.
2905 * objc-lang.c (objc_language_data): Likewise.
2906 * opencl-lang.c (opencl_language_data): Likewise.
2907 * p-lang.c (pascal_language_data): Likewise.
2908 * rust-lang.c (rust_language_data): Likewise.
2909
c9debfb9
AB
29102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2913 (ada_language_data): Delete la_get_symbol_name_matcher
2914 initializer.
2915 (language_defn::get_symbol_name_matcher_inner): New member
2916 function.
2917 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2918 initializer.
2919 (cplus_language_data): Likewise.
2920 (cplus_language::get_symbol_name_matcher_inner): New member
2921 function.
2922 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2923 (minimal_language_data): Likewise.
2924 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2925 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2926 initializer.
2927 * dictionary.c (iter_match_first_hashed): Update call to
2928 get_symbol_name_matcher.
2929 (iter_match_next_hashed): Likewise.
2930 (iter_match_next_linear): Likewise.
2931 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2932 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2933 initializer.
2934 (f_language::get_symbol_name_matcher_inner): New member function.
2935 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2936 initializer.
2937 * language.c (default_symbol_name_matcher): Update header comment,
2938 make static.
2939 (language_defn::get_symbol_name_matcher): New definition.
2940 (language_defn::get_symbol_name_matcher_inner): Likewise.
2941 (get_symbol_name_matcher): Delete.
2942 (unknown_language_data): Delete la_get_symbol_name_matcher
2943 initializer.
2944 (auto_language_data): Likewise.
2945 * language.h (language_data): Delete la_get_symbol_name_matcher
2946 field.
2947 (language_defn::get_symbol_name_matcher): New member function.
2948 (language_defn::get_symbol_name_matcher_inner): Likewise.
2949 (default_symbol_name_matcher): Delete declaration.
2950 * linespec.c (find_methods): Update call to
2951 get_symbol_name_matcher.
2952 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2953 initializer.
2954 * minsyms.c (lookup_minimal_symbol): Update call to
2955 get_symbol_name_matcher.
2956 (iterate_over_minimal_symbols): Likewise.
2957 * objc-lang.c (objc_language_data): Delete
2958 la_get_symbol_name_matcher initializer.
2959 * opencl-lang.c (opencl_language_data): Likewise.
2960 * p-lang.c (pascal_language_data): Likewise.
2961 * psymtab.c (psymbol_name_matches): Update call to
2962 get_symbol_name_matcher.
2963 * rust-lang.c (rust_language_data): Delete
2964 la_get_symbol_name_matcher initializer.
2965 * symtab.c (symbol_matches_search_name): Update call to
2966 get_symbol_name_matcher.
2967 (compare_symbol_name): Likewise.
2968
9a49ad8c
AB
29692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * ada-lang.c (ada_language_data): Delete la_compute_program
2972 initializer.
2973 * c-lang.c (c_language_data): Likewise.
2974 (c_language::compute_program): New member function.
2975 (cplus_language_data): Delete la_compute_program initializer.
2976 (cplus_language::compute_program): New member function.
2977 (asm_language_data): Delete la_compute_program initializer.
2978 (minimal_language_data): Likewise.
2979 * c-lang.h (c_compute_program): Update comment.
2980 (cplus_compute_program): Likewise.
2981 * compile/compile-c-support.c (c_compute_program): Likewise.
2982 (cplus_compute_program): Likewise.
2983 * compile/compile.c (compile_to_object): Update call to
2984 la_compute_program.
2985 * d-lang.c (d_language_data): Delete la_compute_program
2986 initializer.
2987 * f-lang.c (f_language_data): Likewise.
2988 * go-lang.c (go_language_data): Likewise.
2989 * language.c (unknown_language_data): Likewise.
2990 (auto_language_data): Likewise.
2991 * language.h (language_data): Delete la_compute_program field.
2992 (language_defn::compute_program): New member function.
2993 * m2-lang.c (m2_language_data): Delete la_compute_program
2994 initializer.
2995 * objc-lang.c (objc_language_data): Likewise.
2996 * opencl-lang.c (opencl_language_data): Likewise.
2997 * p-lang.c (pascal_language_data): Likewise.
2998 * rust-lang.c (rust_language_data): Likewise.
2999
eff93b4d
AB
30002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * ada-lang.c (ada_language_data) Delete
3003 la_class_name_from_physname initializer.
3004 * c-lang.c (c_language_data): Likewise.
3005 (cplus_language_data): Likewise.
3006 (cplus_language::class_name_from_physname): New member function.
3007 (asm_language_data): Delete la_class_name_from_physname
3008 initializer.
3009 (minimal_language_data): Likewise.
3010 * d-lang.c (d_language_data): Likewise.
3011 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3012 method on language_defn class.
3013 (guess_full_die_structure_name): Likewise.
3014 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3015 initializer.
3016 * go-lang.c (go_language_data): Likewise.
3017 * language.c (language_class_name_from_physname): Delete.
3018 (unk_lang_class_name): Delete.
3019 (unknown_language_data): Delete la_class_name_from_physname
3020 initializer.
3021 (auto_language_data): Likewise.
3022 * language.h (language_data): Delete la_class_name_from_physname
3023 field.
3024 (language_defn::class_name_from_physname): New function.
3025 (language_class_name_from_physname): Delete declaration.
3026 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3027 initializer.
3028 * objc-lang.c (objc_language_data): Likewise.
3029 * opencl-lang.c (opencl_language_data): Likewise.
3030 * p-lang.c (pascal_language_data): Likewise.
3031 * rust-lang.c (rust_language_data): Likewise.
3032
de543742
TT
30332020-06-16 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-data.h (STATUS_NAME): New macro.
3036 * tui/tui-layout.c (tui_remove_some_windows)
3037 (initialize_known_windows, tui_register_window)
3038 (tui_layout_split::remove_windows, initialize_layouts)
3039 (tui_new_layout_command): Don't use hard-coded window names.
3040
a350efd4
TT
30412020-06-16 Tom Tromey <tom@tromey.com>
3042
3043 PR tui/25348:
3044 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3045 tui_initialize_readline. Only run once. Call rl_initialize.
3046 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3047 tui_initialize_readline.
3048 * tui/tui-io.c (tui_setup_io): Call
3049 tui_ensure_readline_initialized.
3050 * tui/tui-interp.c (tui_interp::init): Update.
3051
39ec0490
TT
30522020-06-16 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3055 Also preserve the status window.
3056
d2d1ea20
TT
30572020-06-16 Tom Tromey <tom@tromey.com>
3058
3059 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3060 where m_window==nullptr.
3061
66920317
TT
30622020-06-15 Tom Tromey <tromey@adacore.com>
3063
3064 * windows-nat.c (windows_nat::handle_output_debug_string):
3065 Update.
3066 (windows_nat::handle_ms_vc_exception): Update.
3067 * target.h (target_read_string): Change API.
3068 * target.c (target_read_string): Change API.
3069 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3070 Update.
3071 * solib-frv.c (frv_current_sos): Update.
3072 * solib-dsbt.c (dsbt_current_sos): Update.
3073 * solib-darwin.c (darwin_current_sos): Update.
3074 * linux-thread-db.c (inferior_has_bug): Update.
3075 * expprint.c (print_subexp_standard): Update.
3076 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3077 (ada_exception_message_1): Update.
3078
a5d871dd
TT
30792020-06-15 Tom Tromey <tromey@adacore.com>
3080
3081 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3082
670e35fa
TT
30832020-06-15 Tom Tromey <tromey@adacore.com>
3084
3085 * valprint.c (read_string): Update comment.
3086 * target.c (MIN): Remove.
3087 (target_read_string): Rewrite.
3088
f5272a3b
TT
30892020-06-15 Tom Tromey <tromey@adacore.com>
3090
3091 * corefile.c (read_memory_string): Remove.
3092 * ada-valprint.c (ada_value_print_ptr): Update.
3093 * ada-lang.h (ada_tag_name): Change return type.
3094 * ada-lang.c (type_from_tag): Update.
3095 (ada_tag_name_from_tsd): Change return type. Use
3096 target_read_string.
3097 (ada_tag_name): Likewise.
3098 * gdbcore.h (read_memory_string): Don't declare.
3099
2c074f49
HD
31002020-06-14 Hannes Domani <ssbssa@yahoo.de>
3101
3102 * symtab.c (rbreak_command): Ignore Windows drive colon.
3103
6a17d503
SM
31042020-06-12 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * NEWS: Mention removed GDBserver host support.
3107
453c733f
NC
31082020-06-12 Nelson Chu <nelson.chu@sifive.com>
3109
3110 * features/riscv/rebuild-csr-xml.sh: Updated.
3111
2b4e6a3f
TT
31122020-06-11 Tom Tromey <tom@tromey.com>
3113
3114 PR gdb/18318:
3115 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3116
4412332f
JG
31172020-06-09 Jonny Grant <jg@jguk.org>
31182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * main.c (captured_main_1): Don't print new line after help.
3121 (print_gdb_help): add mailing list and IRC channel information
3122 to --help. Add new lines between items in the footer. Remove
3123 quotes around bug url.
3124
2f33032a
KS
31252020-06-11 Keith Seitz <keiths@redhat.com>
3126
3127 PR gdb/21356
3128 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3129 Resolve typedefs for type length calculations.
3130
7ab96794
TV
31312020-06-10 Tom de Vries <tdevries@suse.de>
3132
3133 PR ada/24713
3134 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3135 (write_psymbols): Enable .gdb_index for ada.
3136 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3137 ada.
3138
e5f3ece2
TV
31392020-06-10 Tom de Vries <tdevries@suse.de>
3140
3141 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3142 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3143 namei" instead of "const char *name" argument.
3144 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3145 dw2_symtab_iter_init.
3146
940da03e
SM
31472020-06-08 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3150 to use type::field and field::type instead.
3151
b6cdac4b
SM
31522020-06-08 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3155 to use field::type instead.
3156
5d14b6e5
SM
31572020-06-08 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * gdbtypes.h (struct field) <type, set_type>: New methods.
3160 Rename `type` field to...
3161 <m_type>: ... this. Change references throughout to use type or
3162 set_type methods.
3163 (FIELD_TYPE): Use field::type. Change call sites that modify
3164 the field's type to use field::set_type instead.
3165
3d967001
SM
31662020-06-08 Simon Marchi <simon.marchi@efficios.com>
3167
3168 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3169 to use type::index_type instead.
3170
262abc0d
SM
31712020-06-08 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3174 methods.
3175 (TYPE_INDEX_TYPE): Use type::index_type.
3176 * gdbtypes.c (create_array_type_with_stride): Likewise.
3177
82836c92
TT
31782020-06-07 Tom Tromey <tom@tromey.com>
3179
3180 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3181 parameter.
3182 (generic_value_print): Update.
3183
940dace9
AB
31842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 Revert commit 982a38f60b0.
3187 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3188
982a38f6
AB
31892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3190
3191 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3192 avoid use after free.
3193
82f06518
TV
31942020-06-05 Tom de Vries <tdevries@suse.de>
3195
3196 * NEWS: Fix typos.
3197
f8c41851
SM
31982020-06-04 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3201 the per_bfd object.
3202 (dwarf2_read_debug_names): Likewise.
3203 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3204 object when re-using a per_bfd object with an index.
3205
f9b5d5ea
TV
32062020-06-03 Tom de Vries <tdevries@suse.de>
3207
3208 PR symtab/26046
3209 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3210 children for C++.
3211 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3212 DW_TAG_subprogram.
3213
f6eee2d0
AB
32142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * ada-lang.c (ada_language_data): Delete skip_trampoline
3217 initializer.
3218 * c-lang.c (c_language_data): Likewise.
3219 (cplus_language_data): Likewise.
3220 (cplus_language::skip_trampoline): New member function.
3221 (asm_language_data): Delete skip_trampoline initializer.
3222 (minimal_language_data): Likewise.
3223 * d-lang.c (d_language_data): Likewise.
3224 * f-lang.c (f_language_data): Likewise.
3225 * go-lang.c (go_language_data): Likewise.
3226 * language.c (unk_lang_trampoline): Delete function.
3227 (skip_language_trampoline): Update.
3228 (unknown_language_data): Delete skip_trampoline initializer.
3229 (auto_language_data): Likewise.
3230 * language.h (language_data): Delete skip_trampoline field.
3231 (language_defn::skip_trampoline): New function.
3232 * m2-lang.c (m2_language_data): Delete skip_trampoline
3233 initializer.
3234 * objc-lang.c (objc_skip_trampoline): Delete function, move
3235 implementation to objc_language::skip_trampoline.
3236 (objc_language_data): Delete skip_trampoline initializer.
3237 (objc_language::skip_trampoline): New member function with
3238 implementation from objc_skip_trampoline.
3239 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3240 initializer.
3241 * p-lang.c (pascal_language_data): Likewise.
3242 * rust-lang.c (rust_language_data): Likewise.
3243
0a50df5d
AB
32442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3247 (ada_language::demangle): New member function.
3248 * c-lang.c (c_language_data): Delete la_demangle initializer.
3249 (cplus_language_data): Delete la_demangle initializer.
3250 (cplus_language::demangle): New member function.
3251 (asm_language_data): Delete la_demangle initializer.
3252 (minimal_language_data): Delete la_demangle initializer.
3253 * d-lang.c (d_language_data): Delete la_demangle initializer.
3254 (d_language::demangle): New member function.
3255 * f-lang.c (f_language_data): Delete la_demangle initializer.
3256 (f_language::demangle): New member function.
3257 * go-lang.c (go_language_data): Delete la_demangle initializer.
3258 (go_language::demangle): New member function.
3259 * language.c (language_demangle): Update.
3260 (unk_lang_demangle): Delete.
3261 (unknown_language_data): Delete la_demangle initializer.
3262 (unknown_language::demangle): New member function.
3263 (auto_language_data): Delete la_demangle initializer.
3264 (auto_language::demangle): New member function.
3265 * language.h (language_data): Delete la_demangle field.
3266 (language_defn::demangle): New function.
3267 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3268 * objc-lang.c (objc_language_data): Delete la_demangle
3269 initializer.
3270 (objc_language::demangle): New member function.
3271 * opencl-lang.c (opencl_language_data): Delete la_demangle
3272 initializer.
3273 * p-lang.c (pascal_language_data): Likewise.
3274 * rust-lang.c (rust_language_data): Likewise.
3275 (rust_language::demangle): New member function.
3276
fbfb0a46
AB
32772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * ada-lang.c (ada_language_data): Delete la_print_type
3280 initializer.
3281 (ada_language::print_type): New member function.
3282 * c-lang.c (c_language_data): Delete la_print_type initializer.
3283 (c_language::print_type): New member function.
3284 (cplus_language_data): Delete la_print_type initializer.
3285 (cplus_language::print_type): New member function.
3286 (asm_language_data): Delete la_print_type initializer.
3287 (asm_language::print_type): New member function.
3288 (minimal_language_data): Delete la_print_type initializer.
3289 (minimal_language::print_type): New member function.
3290 * d-lang.c (d_language_data): Delete la_print_type initializer.
3291 (d_language::print_type): New member function.
3292 * f-lang.c (f_language_data): Delete la_print_type initializer.
3293 (f_language::print_type): New member function.
3294 * go-lang.c (go_language_data): Delete la_print_type initializer.
3295 (go_language::print_type): New member function.
3296 * language.c (unk_lang_print_type): Delete.
3297 (unknown_language_data): Delete la_print_type initializer.
3298 (unknown_language::print_type): New member function.
3299 (auto_language_data): Delete la_print_type initializer.
3300 (auto_language::print_type): New member function.
3301 * language.h (language_data): Delete la_print_type field.
3302 (language_defn::print_type): New function.
3303 (LA_PRINT_TYPE): Update.
3304 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3305 (m2_language::print_type): New member function.
3306 * objc-lang.c (objc_language_data): Delete la_print_type
3307 initializer.
3308 (objc_language::print_type): New member function.
3309 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3310 to opencl_language::print_type.
3311 (opencl_language_data): Delete la_print_type initializer.
3312 (opencl_language::print_type): New member function, implementation
3313 from opencl_print_type.
3314 * p-lang.c (pascal_language_data): Delete la_print_type
3315 initializer.
3316 (pascal_language::print_type): New member function.
3317 * rust-lang.c (rust_print_type): Delete, implementation moved to
3318 rust_language::print_type.
3319 (rust_language_data): Delete la_print_type initializer.
3320 (rust_language::print_type): New member function, implementation
3321 from rust_print_type.
3322
6f827019
AB
33232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3326 implementation moves to...
3327 (ada_language::sniff_from_mangled_name): ...here. Update return
3328 type.
3329 (ada_language_data): Delete la_sniff_from_mangled_name
3330 initializer.
3331 * c-lang.c (c_language_data): Likewise.
3332 (cplus_language_data): Likewise.
3333 (cplus_language::sniff_from_mangled_name): New member function,
3334 implementation taken from gdb_sniff_from_mangled_name.
3335 (asm_language_data): Delete la_sniff_from_mangled_name
3336 initializer.
3337 (minimal_language_data): Likewise.
3338 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3339 implementation moves to cplus_language::sniff_from_mangled_name.
3340 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3341 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3342 moves to...
3343 (d_language::sniff_from_mangled_name): ...here.
3344 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3345 * f-lang.c (f_language_data): Likewise.
3346 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3347 moves to...
3348 (go_language::sniff_from_mangled_name): ...here.
3349 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3350 * language.c (language_sniff_from_mangled_name): Delete.
3351 (unknown_language_data): Delete la_sniff_from_mangled_name
3352 initializer.
3353 (auto_language_data): Likewise.
3354 * language.h (language_data): Delete la_sniff_from_mangled_name
3355 field.
3356 (language_defn::sniff_from_mangled_name): New function.
3357 (language_sniff_from_mangled_name): Delete declaration.
3358 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3359 field.
3360 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3361 implementation moves to...
3362 (objc_language::sniff_from_mangled_name): ...here.
3363 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3364 * opencl-lang.c (opencl_language_data): Likewise.
3365 * p-lang.c (pascal_language_data): Likewise.
3366 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3367 implementation moves to...
3368 (rust_language::sniff_from_mangled_name): ...here.
3369 (rust_language_data): Delete la_sniff_from_mangled_name
3370 initializer.
3371 * symtab.c (symbol_find_demangled_name): Call
3372 sniff_from_mangled_name member function.
3373
fb8006fd
AB
33742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3377 initializer.
3378 * c-lang.c (c_language_data): Likewise.
3379 (cplus_language_data): Likewise.
3380 (cplus_language::search_name_hash): New member function.
3381 (asm_language_data): Delete la_search_name_hash initializer.
3382 (minimal_language_data): Likewise.
3383 * d-lang.c (d_language_data): Likewise.
3384 * dictionary.c (default_search_name_hash): Rename to...
3385 (language_defn::search_name_hash): ...this.
3386 * f-lang.c (f_language_data): Likewise.
3387 (f_language::search_name_hash): New member function.
3388 * go-lang.c (go_language_data): Delete la_search_name_hash
3389 initializer.
3390 * language.c (unknown_language_data): Likewise.
3391 (auto_language_data): Likewise.
3392 * language.h (struct language_data): Delete la_search_name_hash
3393 field.
3394 (language_defn::search_name_hash): Declare new member function.
3395 (default_search_name_hash): Delete declaration.
3396 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3397 initializer.
3398 * objc-lang.c (objc_language_data): Likewise.
3399 * opencl-lang.c (opencl_language_data): Likewise.
3400 * p-lang.c (pascal_language_data): Likewise.
3401 * rust-lang.c (rust_language_data): Likewise.
3402 * symtab.c (search_name_hash): Update call.
3403
8e25bafe
AB
34042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3407 initializer.
3408 * c-lang.c (class compile_instance): Declare.
3409 (c_language_data): Delete la_get_compile_instance initializer.
3410 (c_language::get_compile_instance): New member function.
3411 (cplus_language_data): Delete la_get_compile_instance initializer.
3412 (cplus_language::get_compile_instance): New member function.
3413 (asm_language_data): Delete la_get_compile_instance initializer.
3414 (minimal_language_data): Likewise.
3415 * c-lang.h (c_get_compile_context): Update comment.
3416 (cplus_get_compile_context): Update comment.
3417 * compile/compile.c (compile_to_object): Update calls, don't rely
3418 on function pointer being NULL.
3419 * d-lang.c (d_language_data): Delete la_get_compile_instance
3420 initializer.
3421 * f-lang.c (f_language_data): Likewise.
3422 * go-lang.c (go_language_data): Likewise.
3423 * language.c (unknown_language_data): Likewise.
3424 (auto_language_data): Likewise.
3425 * language.h (language_data): Delete la_get_compile_instance field.
3426 (language_defn::get_compile_instance): New member function.
3427 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3428 initializer.
3429 * objc-lang.c (objc_language_data): Likewise.
3430 * opencl-lang.c (opencl_language_data): Likewise.
3431 * p-lang.c (pascal_language_data): Likewise.
3432 * rust-lang.c (rust_language_data): Likewise.
3433
4009ee92
AB
34342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * ada-lang.c (ada_add_all_symbols): Update comment.
3437 (ada_iterate_over_symbols): Delete, move implementation to...
3438 (ada_language::iterate_over_symbols): ...here, a new member
3439 function, rewrite to use range based for loop.
3440 (ada_language_data): Delete la_iterate_over_symbols initializer.
3441 * c-lang.c (c_language_data): Likewise.
3442 (cplus_language_data): Likewise.
3443 (asm_language_data): Likewise.
3444 (minimal_language_data): Likewise.
3445 * d-lang.c (d_language_data): Likewise.
3446 * f-lang.c (f_language_data): Likewise.
3447 * go-lang.c (go_language_data): Likewise.
3448 * language.c (unknown_language_data): Likewise.
3449 (auto_language_data): Likewise.
3450 * language.h (language_data): Delete la_iterate_over_symbols field.
3451 (language_defn::iterate_over_symbols): New member function.
3452 (LA_ITERATE_OVER_SYMBOLS): Update.
3453 * linespec.c (iterate_over_all_matching_symtabs): Update.
3454 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3455 initializer.
3456 * objc-lang.c (objc_language_data): Likewise.
3457 * opencl-lang.c (opencl_language_data): Likewise.
3458 * p-lang.c (pascal_language_data): Likewise.
3459 * rust-lang.c (rust_language_data): Likewise.
3460
54f4ca46
AB
34612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_language_data): Delete
3464 la_lookup_transparent_type initializer.
3465 * c-lang.c (c_language_data): Likewise.
3466 (cplus_language_data): Likewise.
3467 (cplus_language::lookup_transparent_type): New member function.
3468 (asm_language_data): Delete la_lookup_transparent_type
3469 initializer.
3470 (minimal_language_data): Likewise.
3471 * d-lang.c (d_language_data): Likewise.
3472 * f-lang.c (f_language_data): Likewise.
3473 * go-lang.c (go_language_data): Likewise.
3474 * language.c (unknown_language_data): Likewise.
3475 (auto_language_data): Likewise.
3476 * language.h (struct language_data): Delete
3477 la_lookup_transparent_type field.
3478 (language_defn::lookup_transparent_type): New member function.
3479 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3480 initializer.
3481 * objc-lang.c (objc_language_data): Likewise.
3482 * opencl-lang.c (opencl_language_data): Likewise.
3483 * p-lang.c (pascal_language_data): Likewise.
3484 * rust-lang.c (rust_language_data): Likewise.
3485 * symtab.c (symbol_matches_domain): Update call.
3486
1fb314aa
AB
34872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_arch_info): Delete function, move
3490 implementation to...
3491 (ada_language::language_arch_info): ...here, a new member
3492 function.
3493 (ada_language_data): Delete la_language_arch_info.
3494 * c-lang.c (c_language_data): Likewise.
3495 (c_language::language_arch_info): New member function.
3496 (cplus_language_arch_info): Delete function, move
3497 implementation to...
3498 (cplus_language::language_arch_info): ...here, a new member
3499 function.
3500 (cplus_language_data): Delete la_language_arch_info.
3501 (asm_language_data): Likewise.
3502 (asm_language::language_arch_info): New member function.
3503 (minimal_language_data): Delete la_language_arch_info.
3504 (minimal_language::language_arch_info): New member function.
3505 * d-lang.c (d_language_arch_info): Delete function, move
3506 implementation to...
3507 (d_language::language_arch_info): ...here, a new member
3508 function.
3509 (d_language_data): Delete la_language_arch_info.
3510 * f-lang.c (f_language_arch_info): Delete function, move
3511 implementation to...
3512 (f_language::language_arch_info): ...here, a new member
3513 function.
3514 (f_language_data): Delete la_language_arch_info.
3515 * go-lang.c (go_language_arch_info): Delete function, move
3516 implementation to...
3517 (go_language::language_arch_info): ...here, a new member
3518 function.
3519 (go_language_data): Delete la_language_arch_info.
3520 * language.c (unknown_language_data): Likewise.
3521 (unknown_language::language_arch_info): New member function.
3522 (auto_language_data): Delete la_language_arch_info.
3523 (auto_language::language_arch_info): New member function.
3524 (language_gdbarch_post_init): Update call to
3525 la_language_arch_info.
3526 * language.h (language_data): Delete la_language_arch_info
3527 function pointer.
3528 (language_defn::language_arch_info): New function.
3529 * m2-lang.c (m2_language_arch_info): Delete function, move
3530 implementation to...
3531 (m2_language::language_arch_info): ...here, a new member
3532 function.
3533 (m2_language_data): Delete la_language_arch_info.
3534 * objc-lang.c (objc_language_arch_info): Delete function, move
3535 implementation to...
3536 (objc_language::language_arch_info): ...here, a new member
3537 function.
3538 (objc_language_data): Delete la_language_arch_info.
3539 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3540 implementation to...
3541 (opencl_language::language_arch_info): ...here, a new member
3542 function.
3543 (opencl_language_data): Delete la_language_arch_info.
3544 * p-lang.c (pascal_language_arch_info): Delete function, move
3545 implementation to...
3546 (pascal_language::language_arch_info): ...here, a new member
3547 function.
3548 (pascal_language_data): Delete la_language_arch_info.
3549 * rust-lang.c (rust_language_arch_info): Delete function, move
3550 implementation to...
3551 (rust_language::language_arch_info): ...here, a new member
3552 function.
3553 (rust_language_data): Delete la_language_arch_info.
3554
48448202
AB
35552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3556
3557 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3558 initializer.
3559 * c-lang.c (c_language_data): Likewise.
3560 (cplus_language_data): Likewise.
3561 (cplus_language::pass_by_reference_info): New method.
3562 (asm_language_data): Delete la_pass_by_reference initializer.
3563 (minimal_language_data): Likewise.
3564 * cp-abi.c (cp_pass_by_reference): Remove use of
3565 default_pass_by_reference.
3566 * d-lang.c (d_language_data): Likewise.
3567 * f-lang.c (f_language_data): Likewise.
3568 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3569 default_pass_by_reference.
3570 * go-lang.c (go_language_data): Likewise.
3571 * language.c (language_pass_by_reference): Update.
3572 (default_pass_by_reference): Delete.
3573 (unknown_language_data): Delete la_pass_by_reference
3574 initializer.
3575 (auto_language_data): Likewise.
3576 * language.h (struct language_data): Delete la_pass_by_reference
3577 field.
3578 (language_defn::pass_by_reference_info): New member function.
3579 (default_pass_by_reference): Delete declaration.
3580 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3581 initializer.
3582 * objc-lang.c (objc_language_data): Likewise.
3583 * opencl-lang.c (opencl_language_data): Likewise.
3584 * p-lang.c (pascal_language_data): Likewise.
3585 * rust-lang.c (rust_language_data): Likewise.
3586
15e5fd35
AB
35872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * ada-lang.c (ada_read_var_value): Delete function, move
3590 implementation to...
3591 (ada_language::read_var_value): ...here.
3592 (ada_language_data): Delete la_read_var_value initializer.
3593 * c-lang.c (c_language_data): Likewise.
3594 (cplus_language_data): Likewise.
3595 (minimal_language_data): Likewise.
3596 * d-lang.c (d_language_data): Likewise.
3597 * f-lang.c (f_language_data): Likewise.
3598 * findvar.c (default_read_var_value): Rename to...
3599 (language_defn::read_var_value): ...this.
3600 * findvar.c (read_var_value): Update header comment, and change to
3601 call member function instead of function pointer.
3602 * go-lang.c (go_language_data): Likewise.
3603 * language.c (unknown_language_data): Delete la_read_var_value
3604 initializer.
3605 (auto_language_data): Likewise.
3606 * language.h (struct language_data): Delete la_read_var_value
3607 field.
3608 (language_defn::read_var_value): New member function.
3609 (default_read_var_value): Delete declaration.
3610 * m2-lang.c (m2_language_data): Delete la_read_var_value
3611 initializer.
3612 * objc-lang.c (objc_language_data): Likewise.
3613 * opencl-lang.c (opencl_language_data): Likewise.
3614 * p-lang.c (pascal_language_data): Likewise.
3615 * rust-lang.c (rust_language_data): Likewise.
3616 * value.h (default_read_var_value): Delete declaration.
3617
5bd40f2a
AB
36182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * ada-lang.c (ada_print_array_index): Delete function, move
3621 implementation to...
3622 (ada_language::print_array_index): ...here.
3623 (ada_language_data): Delete la_print_array_index initializer.
3624 * c-lang.c (c_language_data): Likewise.
3625 (cplus_language_data): Likewise.
3626 (minimal_language_data): Likewise.
3627 * d-lang.c (d_language_data): Likewise.
3628 * f-lang.c (f_language_data): Likewise.
3629 * go-lang.c (go_language_data): Likewise.
3630 * language.c (default_print_array_index): Delete function, move
3631 implementation to...
3632 (language_defn::print_array_index): ...here.
3633 (unknown_language_data): Delete la_print_array_index initializer.
3634 (auto_language_data): Likewise.
3635 * language.h (struct language_data): Delete la_print_array_index
3636 field.
3637 (language_defn::print_array_index): New member function.
3638 (LA_PRINT_ARRAY_INDEX): Update.
3639 (default_print_array_index): Delete declaration.
3640 * m2-lang.c (m2_language_data): Delete la_print_array_index
3641 initializer.
3642 * objc-lang.c (objc_language_data): Likewise.
3643 * opencl-lang.c (opencl_language_data): Likewise.
3644 * p-lang.c (pascal_language_data): Likewise.
3645 * rust-lang.c (rust_language_data): Likewise.
3646
0874fd07
AB
36472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * gdb/ada-lang.c (ada_language_defn): Convert to...
3650 (ada_language_data): ...this.
3651 (class ada_language): New class.
3652 (ada_language_defn): New static global.
3653 * gdb/c-lang.c (c_language_defn): Convert to...
3654 (c_language_data): ...this.
3655 (class c_language): New class.
3656 (c_language_defn): New static global.
3657 (cplus_language_defn): Convert to...
3658 (cplus_language_data): ...this.
3659 (class cplus_language): New class.
3660 (cplus_language_defn): New static global.
3661 (asm_language_defn): Convert to...
3662 (asm_language_data): ...this.
3663 (class asm_language): New class.
3664 (asm_language_defn): New static global.
3665 (minimal_language_defn): Convert to...
3666 (minimal_language_data): ...this.
3667 (class minimal_language): New class.
3668 (minimal_language_defn): New static global.
3669 * gdb/d-lang.c (d_language_defn): Convert to...
3670 (d_language_data): ...this.
3671 (class d_language): New class.
3672 (d_language_defn): New static global.
3673 * gdb/f-lang.c (f_language_defn): Convert to...
3674 (f_language_data): ...this.
3675 (class f_language): New class.
3676 (f_language_defn): New static global.
3677 * gdb/go-lang.c (go_language_defn): Convert to...
3678 (go_language_data): ...this.
3679 (class go_language): New class.
3680 (go_language_defn): New static global.
3681 * gdb/language.c (unknown_language_defn): Remove declaration.
3682 (current_language): Initialize to nullptr, real initialization is
3683 moved to _initialize_language.
3684 (languages): Delete global.
3685 (language_defn::languages): Define.
3686 (set_language_command): Use language_defn::languages.
3687 (set_language): Likewise.
3688 (range_error): Likewise.
3689 (language_enum): Likewise.
3690 (language_def): Likewise.
3691 (add_set_language_command): Use language_def::languages for the
3692 language list, and language_def to lookup language pointers.
3693 (skip_language_trampoline): Use language_defn::languages.
3694 (unknown_language_defn): Convert to...
3695 (unknown_language_data): ...this.
3696 (class unknown_language): New class.
3697 (unknown_language_defn): New static global.
3698 (auto_language_defn): Convert to...
3699 (auto_language_data): ...this.
3700 (class auto_language): New class.
3701 (auto_language_defn): New static global.
3702 (language_gdbarch_post_init): Use language_defn::languages.
3703 (_initialize_language): Initialize current_language.
3704 * gdb/language.h (struct language_defn): Rename to...
3705 (struct language_data): ...this.
3706 (struct language_defn): New.
3707 (auto_language_defn): Delete.
3708 (unknown_language_defn): Delete.
3709 (minimal_language_defn): Delete.
3710 (ada_language_defn): Delete.
3711 (asm_language_defn): Delete.
3712 (c_language_defn): Delete.
3713 (cplus_language_defn): Delete.
3714 (d_language_defn): Delete.
3715 (f_language_defn): Delete.
3716 (go_language_defn): Delete.
3717 (m2_language_defn): Delete.
3718 (objc_language_defn): Delete.
3719 (opencl_language_defn): Delete.
3720 (pascal_language_defn): Delete.
3721 (rust_language_defn): Delete.
3722 * gdb/m2-lang.c (m2_language_defn): Convert to...
3723 (m2_language_data): ...this.
3724 (class m2_language): New class.
3725 (m2_language_defn): New static global.
3726 * gdb/objc-lang.c (objc_language_defn): Convert to...
3727 (objc_language_data): ...this.
3728 (class objc_language): New class.
3729 (objc_language_defn): New static global.
3730 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3731 (opencl_language_data): ...this.
3732 (class opencl_language): New class.
3733 (opencl_language_defn): New static global.
3734 * gdb/p-lang.c (pascal_language_defn): Convert to...
3735 (pascal_language_data): ...this.
3736 (class pascal_language): New class.
3737 (pascal_language_defn): New static global.
3738 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3739 language pointer, update comment format.
3740 * gdb/rust-lang.c (rust_language_defn): Convert to...
3741 (rust_language_data): ...this.
3742 (class rust_language): New class.
3743 (rust_language_defn): New static global.
3744
1313c56e
AB
37452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3746
3747 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3748 member variable.
3749 <m_stmt_at_address>: New member variable.
3750 (lnp_state_machine::record_line): Don't record some lines, update
3751 tracking of is_stmt at the same address.
3752 (lnp_state_machine::lnp_state_machine): Initialise new member
3753 variables.
3754
b7ed9f3d
ST
37552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3756
3757 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3758 "-include gnu-nat-mig.h".
3759 * gnu-nat-mig.h: New file.
3760 * gnu-nat.c: Include "gnu-nat-mig.h".
3761 (exc_server, msg_reply_server, notify_server,
3762 process_reply_server): Remove declarations.
3763
14a8ad62
ST
37642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3765
3766 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3767 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3768 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3769 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3770 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3771 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3772 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3773 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3774 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3775 to gnu_nat_target class.
3776 * gnu-nat.c: Likewise.
3777 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3778 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3779 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3780 object.
3781 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3782 instead of `gnu_target'.
3783
0af5e106
ST
37842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3785
3786 * i386-gnu-tdep.c: Include "gdbcore.h"
3787 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3788 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3789 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3790 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3791 i386_gnu_sigcontext_addr): New functions
3792 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3793 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3794 tdep.
3795
078f2fc9
ST
37962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3797
3798 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3799 before fork_inferior call. Avoid calling it if target_is_pushed returns
3800 true.
3801
53dff92c
ST
38022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3803
3804 * gnu-nat.h (gnu_target): New variable declaration.
3805 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3806 gnu_target.
3807 * gnu-nat.c (gnu_target): New variable.
3808 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3809 add_thread_silent, and add_thread calls.
3810 (gnu_nat_target::create_inferior): Pass gnu_target to
3811 add_thread_silent, thread_change_ptid call.
3812 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3813 call.
3814
5a8b8627
ST
38152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3816
3817 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3818 (gnu_nat_target::find_memory_regions): Remove unused
3819 `old_address' variable.
3820
366f550a
ST
38212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3822
3823 * gnu-nat.c: Include "gdbarch.h".
3824
f14871bf
ST
38252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3826
3827 * reply_mig_hack.awk (Error return): Cast function through
3828 void *, to bypass compiler function call check.
3829
c6887cfb
ST
38302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3831
3832 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3833 $(srcdir)/reply_mig_hack.awk.
3834
6930bffe
ST
38352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3836
3837 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3838
112c22ed
JG
38392020-05-30 Jonny Grant <jg@jguk.org>
3840
3841 * configure.ac (ACX_BUGURL): change bug URL to https.
3842
f68f85b5
PA
38432020-05-30 Pedro Alves <palves@redhat.com>
3844
3845 * cp-support.c (replace_typedefs_template): New.
3846 (replace_typedefs_qualified_name): Handle
3847 DEMANGLE_COMPONENT_TEMPLATE.
3848
976ca316
SM
38492020-05-29 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3852 dwarf2/index-cache.h, dwarf2/index-write.c,
3853 dwarf2/index-write.h, dwarf2/line-header.c,
3854 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3855 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3856 variables and fields from `dwarf2_per_objfile` to just
3857 `per_objfile` throughout.
3858
989ade05
SM
38592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3862 <push_dwarf_reg_entry_value>: Add comment.
3863
c47bae85
KB
38642020-05-28 Kevin Buettner <kevinb@redhat.com>
3865 Keith Seitz <keiths@redhat.com>
3866
3867 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3868 instead of PyEval_ReleaseLock.
3869 (class gdbpy_gil): Move to earlier in file.
3870 (finalize_python): Set gdb_python_initialized.
3871 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3872 when not initialized.
3873
44486dcf
SM
38742020-05-28 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3877 <push_dwarf_reg_entry_value>: Remove assert. Override
3878 per_objfile with caller_per_objfile.
3879
f030440d
TV
38802020-05-28 Tom de Vries <tdevries@suse.de>
3881
3882 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3883 PR gold/15646 workaround to symbol kind "type".
3884
f0fbb768
TT
38852020-05-27 Tom Tromey <tromey@adacore.com>
3886
3887 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3888
af0b2a3e
TT
38892020-05-27 Tom Tromey <tromey@adacore.com>
3890
3891 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3892 Use htab_find_with_hash.
3893 <add_abbrev>: Remove "abbrev_number" parameter.
3894 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3895 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3896 (hash_abbrev): Add comment.
3897 (abbrev_table::lookup_abbrev): Move to header file.
3898 (abbrev_table::read): Update.
3899
7d00ffec
TT
39002020-05-27 Tom Tromey <tromey@adacore.com>
3901
3902 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3903 method.
3904 <canonical_name>: New member.
3905 <raw_name>: Rename from "name".
3906 (partial_die_info): Initialize canonical_name.
3907 (scan_partial_symbols): Check raw_name.
3908 (partial_die_parent_scope, partial_die_full_name)
3909 (add_partial_symbol, add_partial_subprogram)
3910 (add_partial_enumeration, load_partial_dies): Use "name" method.
3911 (partial_die_info::name): New method.
3912 (partial_die_info::read, guess_partial_die_structure_name)
3913 (partial_die_info::fixup): Update.
3914
697bba18
TT
39152020-05-27 Tom Tromey <tromey@adacore.com>
3916
3917 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3918 <get_ref_die_offset>: Inline.
3919 <get_ref_die_offset_complaint>: New method.
3920 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3921 (attribute::get_ref_die_offset_complaint): Rename from
3922 get_ref_die_offset. Just issue complaint.
3923
c17ace43
HD
39242020-05-27 Hannes Domani <ssbssa@yahoo.de>
3925
3926 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3927
96445f0b
HD
39282020-05-27 Hannes Domani <ssbssa@yahoo.de>
3929
3930 * exec.c (exec_file_attach): Use errno value of first openp failure.
3931
ac637ec3
HD
39322020-05-27 Hannes Domani <ssbssa@yahoo.de>
3933
3934 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3935 Don't close thread handle.
3936
17ee85fc
TT
39372020-05-27 Tom Tromey <tom@tromey.com>
3938 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3941 shared_ptr.
3942 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3943 member.
3944 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3945 dwarf2_per_bfd_objfile_data_key>: New globals.
3946 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3947 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3948 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3949 shared.
3950 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3951 short-circuit when sharing.
3952 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3953 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3954
39b16f87
SM
39552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3958 to...
3959 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3960 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3961
fcf23d5b
SM
39622020-05-27 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3965 build_name_components, find_name_components_bounds>:
3966 Add per_objfile parameter.
3967 (struct mapped_index) <symbol_name_at>: Likewise.
3968 (struct mapped_debug_names): Remove constructor.
3969 <dwarf2_per_objfile>: Remove field.
3970 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3971 (mapped_index_base::find_name_components_bounds,
3972 mapped_index_base::build_name_components,
3973 dw2_expand_symtabs_matching_symbol): Likewise.
3974 (class mock_mapped_index) <symbol_name_at>: Likewise.
3975 (check_match): Likewise.
3976 (check_find_bounds_finds): Likewise.
3977 (test_mapped_index_find_name_component_bounds): Update.
3978 (CHECK_MATCH): Update.
3979 (dw2_expand_symtabs_matching): Update.
3980 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3981 per_objfile parameter.
3982 <find_vec_in_debug_names>: Likewise.
3983 <m_per_objfile>: New field.
3984 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3985 parameter.
3986 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3987 (dw2_debug_names_iterator::next): Update.
3988 (dw2_debug_names_lookup_symbol): Update.
3989 (dw2_debug_names_expand_symtabs_for_function): Update.
3990 (dw2_debug_names_map_matching_symbols): Update.
3991 (dw2_debug_names_expand_symtabs_matching): Update.
3992 (dwarf2_read_debug_names): Update.
3993
7188ed02
SM
39942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3997 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3998 move to dwarf2_per_objfile.
3999 <read_in_chain>: Remove.
4000 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4001 remove_all_cus, age_comp_units>: New methods.
4002 <m_dwarf2_cus>: New member.
4003 (struct dwarf2_per_cu_data) <cu>: Remove.
4004 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4005 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4006 moved to methods of dwarf2_per_objfile.
4007 (dwarf2_clear_marks): Remove.
4008 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4009 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4010 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4011 (dwarf2_per_objfile::remove_all_cus): New.
4012 (class free_cached_comp_units) <~free_cached_comp_units>:
4013 Update.
4014 (load_cu): Update.
4015 (dw2_do_instantiate_symtab): Adjust.
4016 (fill_in_sig_entry_from_dwo_entry): Adjust.
4017 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4018 (cutu_reader::cutu_reader): Likewise.
4019 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4020 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4021 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4022 and dwarf2_per_objfile::age_comp_units.
4023 (load_partial_comp_unit): Update.
4024 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4025 (process_queue): Likewise.
4026 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4027 backlink.
4028 (dwarf2_read_addr_index): Likewise.
4029 (follow_die_offset): Likewise.
4030 (dwarf2_fetch_die_loc_sect_off): Likewise.
4031 (dwarf2_fetch_constant_bytes): Likewise.
4032 (dwarf2_fetch_die_type_sect_off): Likewise.
4033 (follow_die_sig_1): Likewise.
4034 (load_full_type_unit): Likewise.
4035 (read_signatured_type): Likewise.
4036 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4037 (dwarf2_cu::~dwarf2_cu): Remove.
4038 (dwarf2_per_objfile::get_cu): New.
4039 (dwarf2_per_objfile::set_cu): New.
4040 (age_cached_comp_units): Rename to...
4041 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4042 to std::unordered_map.
4043 (free_one_cached_comp_unit): Rename to...
4044 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4045 to std::unordered_map.
4046 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4047 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4048 a dwarf2_per_objfile in data.
4049 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4050 (dwarf2_clear_marks): Remove.
4051
2e671100
SM
40522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4055 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4056 (init_tu_and_read_dwo_dies): Likewise.
4057 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4058 (cutu_reader::cutu_reader): Likewise.
4059 (load_partial_comp_unit): Likewise.
4060 (process_psymtab_comp_unit): Update.
4061 (build_type_psymtabs_1): Update.
4062 (process_skeletonless_type_unit): Update.
4063 (load_full_comp_unit): Update.
4064 (find_partial_die): Update.
4065 (dwarf2_read_addr_index): Update.
4066 (read_signatured_type): Update.
4067
2e6a9f79
SM
40682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4069
4070 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4071 m_header_read_in>: New fields.
4072 <get_header>: New method.
4073 * dwarf2/read.c (per_cu_header_read_in): Remove.
4074 (dwarf2_per_cu_data::get_header): New.
4075 (dwarf2_per_cu_data::addr_size): Update.
4076 (dwarf2_per_cu_data::offset_size): Update.
4077 (dwarf2_per_cu_data::ref_addr_size): Update.
4078
1b555f17
SM
40792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4082 (dw2_do_instantiate_symtab): Update.
4083 (queue_and_load_all_dwo_tus): Change parameter from
4084 dwarf2_per_cu_data to dwarf2_cu.
4085 (dwarf2_fetch_die_loc_sect_off): Update.
4086 (dwarf2_fetch_constant_bytes): Update.
4087 (dwarf2_fetch_die_type_sect_off): Update.
4088
8fc0b21d
SM
40892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * dwarf2/read.c (process_full_comp_unit,
4092 process_full_type_unit): Remove per_cu, per_objfile paramters.
4093 Add dwarf2_cu parameter.
4094 (process_queue): Update.
4095
168c9250
SM
40962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4097
4098 * dwarf2/read.c (create_cu_from_index_list): Replace
4099 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4100 (create_cus_from_index_list): Likewise.
4101 (create_cus_from_index): Likewise.
4102 (create_signatured_type_table_from_index): Likewise.
4103 (create_cus_from_debug_names_list): Likewise.
4104 (create_cus_from_debug_names): Likewise.
4105 (dwarf2_read_gdb_index): Update.
4106 (dwarf2_read_debug_names): Update.
4107
e286671b
TT
41082020-05-27 Tom Tromey <tom@tromey.com>
4109 Simon Marchi <simon.marchi@efficios.com>
4110
4111 * dwarf2/read.h (struct dwarf2_per_objfile)
4112 <get_type_for_signatured_type, set_type_for_signatured_type>:
4113 New methods.
4114 <m_type_map>: New member.
4115 (struct signatured_type) <type>: Remove.
4116 * dwarf2/read.c
4117 (dwarf2_per_objfile::get_type_for_signatured_type,
4118 dwarf2_per_objfile::set_type_for_signatured_type): New.
4119 (get_signatured_type): Use new methods.
4120
8adb8487
TT
41212020-05-27 Tom Tromey <tom@tromey.com>
4122 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4125 (struct dwarf2_per_objfile) <type_units>: New member.
4126 <get_type_unit_group_unshareable>: New method.
4127 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4128 num_symtabs, symtabs>: Remove; move to
4129 type_unit_group_unshareable.
4130 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4131 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4132 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4133
127bbf4b
SM
41342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * dwarf2/read.h (struct dwarf2_per_cu_data):
4137 <dwarf2_per_objfile>: Remove.
4138 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4139 dwarf2_per_objfile.
4140 (create_signatured_type_table_from_index): Likewise.
4141 (create_signatured_type_table_from_debug_names): Likewise.
4142 (create_debug_type_hash_table): Likewise.
4143 (fill_in_sig_entry_from_dwo_entry): Likewise.
4144 (create_type_unit_group): Likewise.
4145 (read_comp_units_from_section): Likewise.
4146 (create_cus_hash_table): Likewise.
4147
f6e649dd
SM
41482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4151 dwarf2_per_cu_data::dwarf2_per_objfile.
4152 (compute_compunit_symtab_includes): Likewise.
4153 (dwarf2_cu::start_symtab): Likewise.
4154
aa66c379
SM
41552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4156
4157 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4158 parameter.
4159 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4160 (read_namespace_alias): Update.
4161 (lookup_die_type): Update.
4162 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4163 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4164 Update.
4165 (disassemble_dwarf_expression): Update.
4166
120ce1b5
SM
41672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * dwarf2/read.h (struct dwarf2_queue_item): Add
4170 dwarf2_per_objfile parameter, assign new parameter.
4171 <per_objfile>: New field.
4172 * dwarf2/read.c (free_one_cached_comp_unit): Add
4173 dwarf2_per_objfile parameter.
4174 (queue_comp_unit): Likewise.
4175 (dw2_do_instantiate_symtab): Update.
4176 (process_psymtab_comp_unit): Update.
4177 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4178 (process_imported_unit_die): Update.
4179 (queue_and_load_dwo_tu): Update.
4180 (follow_die_offset): Update.
4181 (follow_die_sig_1): Update.
4182
9f47c707
SM
41832020-05-27 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4186 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4187 (read_call_site_scope): Assign per_objfile.
4188 (dwarf2_per_cu_data::objfile): Remove.
4189 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4190 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4191 dwarf2_per_objfile parameter.
4192 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4193 dwarf2_per_objfile parameter.
4194 (dwarf_expr_reg_to_entry_parameter): Add output
4195 dwarf2_per_objfile parameter.
4196 (locexpr_get_frame_base): Update.
4197 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4198 <push_dwarf_reg_entry_value>: Update.
4199 <call_site_to_target_addr>: Update.
4200 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4201 parameter.
4202 (value_of_dwarf_reg_entry): Update.
4203 (rw_pieced_value): Update.
4204 (indirect_synthetic_pointer): Update.
4205 (dwarf2_evaluate_property): Update.
4206 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4207 parameter.
4208 (locexpr_read_variable): Update.
4209 (locexpr_get_symbol_read_needs): Update.
4210 (loclist_read_variable): Update.
4211
14095eb3
SM
42122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4215 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4216 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4217 parameter.
4218 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4219 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4220 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4221 parameter.
4222 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4223 sect_variable_value): Add dwarf2_per_objfile parameter.
4224 (class dwarf_evaluate_loc_desc) <dwarf_call,
4225 dwarf_variable_value>: Update.
4226 (fetch_const_value_from_synthetic_pointer): Add
4227 dwarf2_per_objfile parameter.
4228 (fetch_const_value_from_synthetic_pointer): Update.
4229 (coerced_pieced_ref): Update.
4230 (class symbol_needs_eval_context) <dwarf_call,
4231 dwarf_variable_value>: Update.
4232 (dwarf2_compile_expr_to_ax): Update.
4233
3c3cd3d4
SM
42342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4237 parameter.
4238 (dwarf2_evaluate_loc_desc_full): Update.
4239
82ca3f51
SM
42402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4243 parameter.
4244 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4245 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4246 dwarf2_per_objfile parameter.
4247 (decode_debug_loc_dwo_addresses): Likewise.
4248 (dwarf2_find_location_expression): Update.
4249 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4250 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4251 parameter.
4252 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4253 parameter.
4254 (locexpr_describe_location_1): Likewise.
4255 (locexpr_describe_location): Update.
4256
4b167ea1
SM
42572020-05-27 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4260 Remove.
4261 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4262 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4263 (dwarf2_compile_property_to_c): Update.
4264 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4265 use text offset from objfile.
4266 (locexpr_tracepoint_var_ref): Update.
4267 (locexpr_generate_c_location): Update.
4268 (loclist_describe_location): Update.
4269 (loclist_tracepoint_var_ref): Update.
4270 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4271 dwarf2_per_objfile parameter.
4272 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4273 use text offset from objfile.
4274 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4275
89b07335
SM
42762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * dwarf2/expr.h (struct dwarf_expr_context)
4279 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4280 <offset>: Remove.
4281 <per_objfile>: New member.
4282 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4283 dwarf2_per_objfile parameter. Don't set offset, set
4284 per_objfile.
4285 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4286 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4287 a dwarf2_per_objfile object instead of an offset.
4288 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4289 constructor.
4290 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4291 to dwarf2_expr_executor constructor. Don't set offset.
4292 (dwarf2_fetch_cfa_info): Update.
4293 (struct dwarf2_frame_cache) <text_offset>: Remove.
4294 <per_objfile>: New field.
4295 (dwarf2_frame_cache): Update.
4296 (dwarf2_frame_prev_register): Update.
4297 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4298 <dwarf_evaluate_loc_desc>: Add constructor.
4299 (dwarf2_evaluate_loc_desc_full): Update.
4300 (dwarf2_locexpr_baton_eval): Update.
4301 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4302 Add constructor.
4303 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4304
293e7e51
SM
43052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4306
4307 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4308 addr_sized_int_type>: Move to dwarf2_cu.
4309 <int_type>: Move to dwarf2_per_objfile.
4310 (struct dwarf2_per_objfile) <int_type>: Move here.
4311 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4312 addr_sized_int_type>: Move here.
4313 (read_func_scope): Update.
4314 (read_array_type): Update.
4315 (read_tag_string_type): Update.
4316 (attr_to_dynamic_prop): Update.
4317 (dwarf2_per_cu_data::int_type): Rename to...
4318 (dwarf2_per_objfile::int_type): ... this.
4319 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4320 (dwarf2_cu::addr_sized_int_type): ... this.
4321 (read_subrange_type): Update.
4322 (dwarf2_per_cu_data::addr_type): Rename to...
4323 (dwarf2_cu::addr_type): ... this.
4324 (set_die_type): Update.
4325
64874a40
SM
43262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4329 data through per_cu->cu.
4330
4ab09049
SM
43312020-05-27 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4334 dwarf2_per_cu_data parameter fo dwarf2_cu.
4335 (lookup_dwo_type_unit): Likewise.
4336 (read_cutu_die_from_dwo): Likewise.
4337 (lookup_dwo_unit): Likewise.
4338 (open_and_init_dwo_file): Likewise.
4339 (lookup_dwo_cutu): Likewise.
4340 (lookup_dwo_comp_unit): Likewise.
4341 (lookup_dwo_type_unit): Likewise.
4342 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4343 (cutu_reader::cutu_reader): Update.
4344
47b14e86
SM
43452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4348 parameter.
4349 (process_full_type_unit): Likewise.
4350 (process_queue): Update.
4351
43182c09
SM
43522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * dwarf2/read.c (recursively_compute_inclusions): Add
4355 dwarf2_per_objfile parameter.
4356 (compute_compunit_symtab_includes): Likewise.
4357 (process_cu_includes): Update.
4358
7aa104c4
SM
43592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4362 parameter.
4363 (create_type_unit_group): Update.
4364 (process_psymtab_comp_unit_reader): Update.
4365 (build_type_psymtabs_reader): Update.
4366
e3beb21d
SM
43672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4370 object through m_this_cu->cu.
4371
d460f660
SM
43722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4375 the info parameter.
4376 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4377
ab432490
SM
43782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4381 per_objfile parameter.
4382 (load_full_type_unit): Add per_objfile parameter.
4383 (read_signatured_type): Likewise.
4384 (load_full_comp_unit): Likewise.
4385 (load_cu): Likewise.
4386 (dw2_do_instantiate_symtab): Likewise.
4387 (dw2_get_file_names): Likewise.
4388 (dw2_map_symtabs_matching_filename): Update.
4389 (dw_expand_symtabs_matching_file_matcher): Update.
4390 (dw2_map_symbol_filenames): Update.
4391 (process_psymtab_comp_unit): Add per_objfile parameter.
4392 (build_type_psymtabs_1): Update.
4393 (process_skeletonless_type_unit): Update.
4394 (dwarf2_build_psymtabs_hard): Update.
4395 (load_partial_comp_unit): Add per_objfile parameter.
4396 (scan_partial_symbols): Update.
4397 (load_full_comp_unit): Add per_objfile parameter.
4398 (process_imported_unit_die): Update.
4399 (create_cus_hash_table): Update.
4400 (find_partial_die): Update.
4401 (dwarf2_read_addr_index): Update.
4402 (follow_die_offset): Update.
4403 (dwarf2_fetch_die_loc_sect_off): Update.
4404 (dwarf2_fetch_constant_bytes): Update.
4405 (dwarf2_fetch_die_type_sect_off): Update.
4406 (follow_die_sig_1): Update.
4407 (load_full_type_unit): Add per_objfile parameter.
4408 (read_signatured_type): Likewise.
4409
313bad1b
SM
44102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4413 of objfile_name.
4414
c3699833
SM
44152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4418 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4419 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4420 field.
4421 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4422 (create_cus_from_index): Update.
4423 (dwarf2_read_gdb_index): Update.
4424 (create_cus_from_debug_names): Update.
4425 (dwarf2_read_debug_names): Update.
4426 (get_abbrev_section_for_cu): Update.
4427 (create_all_comp_units): Update.
4428 (read_attribute_value): Update.
4429 (get_debug_line_section): Update.
4430 * dwarf2/index-cache.c (index_cache::store): Update.
4431 * dwarf2/index-write.c (save_gdb_index_command): Update.
4432 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4433
1859c670
SM
44342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4437 member.
4438 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4439 dwarf2_per_cu_data::per_bfd.
4440 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4441 (create_type_unit_group): Likewise.
4442 (queue_comp_unit): Remove reference to
4443 per_cu->dwarf2_per_objfile.
4444 (maybe_queue_comp_unit): Likewise.
4445 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4446 (create_cus_hash_table): Assign new field.
4447
5e22e966
SM
44482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * dwarf2/read.c: Replace
4451 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4452 dwarf2_cu->per_objfile throughout.
4453
97a1449a
SM
44542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4457 parameter, don't use per_cu->dwarf2_per_objfile.
4458 (dw2_instantiate_symtab): Likewise.
4459 (dw2_find_last_source_symtab): Update.
4460 (dw2_map_expand_apply): Update.
4461 (dw2_lookup_symbol): Update.
4462 (dw2_expand_symtabs_for_function): Update.
4463 (dw2_expand_all_symtabs): Update.
4464 (dw2_expand_symtabs_with_fullname): Update.
4465 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4466 don't use per_cu->dwarf2_per_objfile.
4467 (dw2_expand_marked_cus): Update.
4468 (dw2_find_pc_sect_compunit_symtab): Update.
4469 (dw2_debug_names_lookup_symbol): Update.
4470 (dw2_debug_names_expand_symtabs_for_function): Update.
4471 (dw2_debug_names_map_matching_symbols): Update.
4472 (dwarf2_psymtab::expand_psymtab): Update.
4473
9e021579
SM
44742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4477 <per_objfile>: New member.
4478 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4479 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4480 call to dwarf2_cu.
4481 (cutu_reader::cutu_reader): Update.
4482 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4483
ae090bdb
SM
44842020-05-27 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4487 struct dwarf2_per_objfile.
4488 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4489 dwarf2_per_bfd.
4490 * dwarf2/read.c (set_die_type): Update.
4491 (get_die_type_at_offset): Update.
4492
af758d11
SM
44932020-05-27 Tom Tromey <tom@tromey.com>
4494 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4497 method.
4498 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4499 get_symtab, set_symtab>: New methods.
4500 <m_symtabs>: New field.
4501 (struct dwarf2_psymtab): Derive from partial_symtab.
4502 <readin_p, get_compunit_symtab>: Declare methods.
4503 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4504 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4505 New methods.
4506 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4507 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4508 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4509 (dw2_symtab_iter_next, dw2_print_stats)
4510 (dw2_expand_symtabs_with_fullname)
4511 (dw2_expand_symtabs_matching_one)
4512 (dw_expand_symtabs_matching_file_matcher)
4513 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4514 (dw2_debug_names_iterator::next)
4515 (dw2_debug_names_map_matching_symbols)
4516 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4517 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4518 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4519 New methods.
4520 (get_compunit_symtab, process_full_comp_unit)
4521 (process_full_type_unit): Update.
4522 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4523
5989a64e
SM
45242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4525
4526 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4527 then introduce a new dwarf2_per_objfile type.
4528 <read_line_string>: Move to the new dwarf2_per_objfile type.
4529 <objfile>: Likewise.
4530 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4531 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4532 dwarf2_per_objfile->per_bfd.
4533 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4534 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4535 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4536 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4537 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4538 (dwarf2_per_objfile::locate_sections): Rename to...
4539 (dwarf2_per_bfd::locate_sections): ... this.
4540 (dwarf2_per_objfile::get_cutu): Rename to...
4541 (dwarf2_per_bfd::get_cutu): ... this.
4542 (dwarf2_per_objfile::get_cu): Rename to...
4543 (dwarf2_per_bfd::get_cu): ... this.
4544 (dwarf2_per_objfile::get_tu): Rename to...
4545 (dwarf2_per_bfd::get_tu): ... this.
4546 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4547 (dwarf2_per_bfd::allocate_per_cu): ... this.
4548 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4549 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4550 (get_gdb_index_contents_ftype): Change parameter from
4551 dwarf2_per_objfile to dwarf2_per_bfd.
4552 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4553 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4554
a50264ba
TT
45552020-05-27 Tom Tromey <tom@tromey.com>
4556 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4559 (allocate_piece_closure): Set "per_objfile" member.
4560 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4561 (locexpr_describe_location, loclist_describe_location): Use new
4562 member.
4563 * dwarf2/read.c (read_call_site_scope)
4564 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4565 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4566 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4567 handle_data_member_location): Set per_objfile member.
4568 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4569 member.
4570 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4571
d3473f0c
TT
45722020-05-27 Tom Tromey <tom@tromey.com>
4573
4574 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4575 allocate_signatured_type>: Declare new methods.
4576 <m_num_psymtabs>: New member.
4577 (struct dwarf2_per_cu_data) <index>: New member.
4578 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4579 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4580 (create_cu_from_index_list): Use allocate_per_cu.
4581 (create_signatured_type_table_from_index)
4582 (create_signatured_type_table_from_debug_names)
4583 (create_debug_type_hash_table, add_type_unit)
4584 (read_comp_units_from_section): Use allocate_signatured_type.
4585
5717c425
TT
45862020-05-27 Tom Tromey <tom@tromey.com>
4587
4588 * psymtab.c (partial_map_expand_apply)
4589 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4590 (psym_lookup_global_symbol_language)
4591 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4592 (psym_print_stats, psym_expand_symtabs_for_function)
4593 (psym_map_symbol_filenames, psym_map_matching_symbols)
4594 (psym_expand_symtabs_matching)
4595 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4596 (maintenance_check_psymtabs): Update.
4597 * psympriv.h (struct partial_symtab) <readin_p,
4598 get_compunit_symtab>: Add objfile parameter.
4599 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4600 Likewise.
4601 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4602 get_compunit_symtab>: Likewise.
4603 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4604
45940949
TT
46052020-05-27 Tom Tromey <tom@tromey.com>
4606
4607 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4608 member.
4609 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4610 (create_cu_from_index_list)
4611 (create_signatured_type_table_from_index)
4612 (create_signatured_type_table_from_debug_names)
4613 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4614 (dwarf2_create_include_psymtab)
4615 (create_debug_type_hash_table, add_type_unit)
4616 (create_type_unit_group, read_comp_units_from_section)
4617 (dwarf2_compute_name, create_cus_hash_table)
4618 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4619 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4620 obstack.
4621 (dw2_get_real_path): Likewise. Change argument to
4622 dwarf2_per_objfile.
4623
f8c6d152
LM
46242020-05-27 Luis Machado <luis.machado@linaro.org>
4625
4626 PR tdep/26000
4627 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4628 for ldrd (immediate).
4629
e98d2e6d
PW
46302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4631
4632 * command.h: Add comment giving the name of class_tui.
4633 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4634 create the fake command for the help for class_tui.
4635
53a47a3e
TT
46362020-05-26 Tom Tromey <tromey@adacore.com>
4637
4638 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4639 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4640 (val_atr): New function.
4641 (value_val_atr): Use it.
4642 * ada-valprint.c (print_optional_low_bound): Change low bound
4643 handling for enums.
4644 (val_print_packed_array_elements): Don't call discrete_position.
4645 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4646 discrete_position for enum types.
4647 * language.c (default_print_array_index): Change type.
4648 * language.h (struct language_defn) <la_print_array_index>: Add
4649 index_type parameter, change type of index_value.
4650 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4651 (default_print_array_index): Update.
4652 * valprint.c (maybe_print_array_index): Don't call
4653 value_from_longest. Update.
4654 (value_print_array_elements): Don't call discrete_position.
4655
0bc2354b
TT
46562020-05-26 Tom Tromey <tromey@adacore.com>
4657
4658 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4659 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4660
1218a4bf
CDA
46612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4662
4663 PR gdb/13519
4664 * avr-tdep.c (avr_integer_to_address): Return data or code
4665 address accordingly to the second 'type' argument of the
4666 function.
4667
92651b1d
MW
46682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4669
4670 * infcmd.c, inferior.h: (construct_inferior_arguments):
4671 Moved function from here to gdbsupport/common-inferior.{h,cc}
4672
0a4f5f8c
TT
46732020-05-23 Tom Tromey <tom@tromey.com>
4674
4675 Revert commit eca1f90c:
4676 * NEWS: Remove entry for completion styling.
4677 * completer.c (_rl_completion_prefix_display_length): Move
4678 declaration later.
4679 (gdb_fnprint): Revert.
4680 (gdb_display_match_list_1): Likewise.
4681 * cli/cli-style.c (completion_prefix_style)
4682 (completion_difference_style, completion_suffix_style): Remove.
4683 (_initialize_cli_style): Revert.
4684 * cli/cli-style.h (completion_prefix_style)
4685 (completion_difference_style, completion_suffix_style): Don't
4686 declare.
4687
e08bd6c5
PA
46882020-05-24 Pedro Alves <palves@redhat.com>
4689
4690 * symtab.c (completion_list_add_name): Return boolean indication
4691 of whether the symbol matched.
4692 (completion_list_add_symbol): Don't try to remove C++ aliases if
4693 the symbol didn't match in the first place.
4694 * symtab.h (completion_list_add_name): Return bool.
4695
ceacbf6e
SM
46962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4699 type::field.
4700
26f16254
JB
47012020-05-23 Joel Brobecker <brobecker@adacore.com>
4702
4703 GDB 9.2 released.
4704
eca1f90c
TT
47052020-05-23 Tom Tromey <tom@tromey.com>
4706
4707 * NEWS: Add entry for completion styling.
4708 * completer.c (_rl_completion_prefix_display_length): Move
4709 declaration earlier.
4710 (gdb_fnprint): Use completion_style.
4711 (gdb_display_match_list_1): Likewise.
4712 * cli/cli-style.c (completion_prefix_style)
4713 (completion_difference_style, completion_suffix_style): New
4714 globals.
4715 (_initialize_cli_style): Register new globals.
4716 * cli/cli-style.h (completion_prefix_style)
4717 (completion_difference_style, completion_suffix_style): Declare.
4718
51e2cfa2
PA
47192020-05-23 Pedro Alves <palves@redhat.com>
4720
4721 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4722 (parse_escape): Use ISDIGIT instead of isdigit.
4723 (puts_debug): Use gdb_isprint instead of isprint.
4724 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4725 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4726 ISSPACE instead of isspace.
4727 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4728 instead of isspace.
4729 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4730 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4731 instead of isxdigit and ISDIGIT instead of isdigit.
4732
80fc5e77
SM
47332020-05-22 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * gdbtypes.h (struct type) <field>: New method.
4736 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4737 or type::field.
4738
3cabb6b0
SM
47392020-05-22 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4742 (TYPE_FIELDS): Use type::fields. Change all call sites that
4743 modify the propery to use type::set_fields instead.
4744
1f704f76
SM
47452020-05-22 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4748 type::num_fields instead.
4749
5e33d5f4
SM
47502020-05-22 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4753 methods.
4754 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4755 that modify the number of fields to use type::set_num_fields
4756 instead.
4757
9392ebb3
TT
47582020-05-22 Tom Tromey <tromey@adacore.com>
4759
4760 * compile/compile-object-load.h (munmap_list_free): Don't
4761 declare.
4762
7c13f4e8
AB
47632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4764
4765 * annotate.c (annotate_source_line): Update return type, add call
4766 to update current symtab and line.
4767 * annotate.h (annotate_source_line): Update return type, and
4768 extend header comment.
4769 * source.c (info_line_command): Check annotation_level before
4770 calling annotate_source_line.
4771 * stack.c (print_frame_info): If calling annotate_source_line
4772 returns true, then don't print any other source line information.
4773
aa370940
SM
47742020-05-21 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4777
84d53fa9
SM
47782020-05-21 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * coffread.c (patch_type): Remove NULL check before xfree.
4781 * corefile.c (set_gnutarget): Likewise.
4782 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4783 * exec.c (build_section_table): Likewise.
4784 * remote.c (remote_target::pass_signals): Likewise.
4785 * utils.c (n_spaces): Likewise.
4786 * cli/cli-script.c (document_command): Likewise.
4787 * i386-windows-tdep.c (core_process_module_section): Likewise.
4788 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4789
9d428aae
SM
47902020-05-20 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * symfile.c (reread_symbols): Clear objfile's section_offsets
4793 vector and section indices, re-compute them by calling
4794 sym_offsets.
4795
250106a7
TT
47962020-05-20 Tom Tromey <tromey@adacore.com>
4797
4798 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4799 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4800
9a0bacfb
TV
48012020-05-20 Tom de Vries <tdevries@suse.de>
4802
4803 PR symtab/25833
4804 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4805
7b958a48
AM
48062020-05-20 Alan Modra <amodra@gmail.com>
4807
4808 PR 25993
4809 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4810 bfd_set_filename.
4811 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4812 passed to bfd_set_filename.
4813 * symfile-mem.c (add_vsyscall_page): Likewise for string
4814 passed to symbol_file_add_from_memory.
4815 (symbol_file_add_from_memory): Make name param a const char* and
4816 don't strdup.
4817
c7e97679
AM
48182020-05-20 Alan Modra <amodra@gmail.com>
4819
4820 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4821 rather than accessing bfd->filename directly.
4822 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4823 and use bfd_section_name.
4824 * dwarf2/frame.c (decode_frame_entry): Likewise.
4825 * exec.c (exec_set_section_address): Likewise.
4826 * solib-aix.c (solib_aix_bfd_open): Likewise.
4827 * stap-probe.c (get_stap_base_address): Likewise.
4828 * symfile.c (reread_symbols): Likewise.
4829
563c591b
TT
48302020-05-19 Tom Tromey <tromey@adacore.com>
4831
4832 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4833
f408d82c
SM
48342020-05-19 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4837
98c59b52
PA
48382020-05-19 Pedro Alves <palves@redhat.com>
4839
4840 * NEWS (set exec-file-mismatch): Adjust entry.
4841 * exec.c: Include "build-id.h".
4842 (validate_exec_file): Try to match build IDs instead of filenames.
4843 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4844 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4845 and pass down 'warn_if_slow'.
4846 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4847 gdb_bfd_open_closure to pass it down.
4848 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4849
4111f652
PA
48502020-05-19 Pedro Alves <palves@redhat.com>
4851
4852 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4853 * target.c (target_fileio_open_1): Rename to target_fileio_open
4854 and make extern. Use bool.
4855 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4856 (target_fileio_read_alloc_1): Adjust.
4857 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4858 (target_fileio_open_warn_if_slow): Delete declaration.
4859
ad80db5b
PA
48602020-05-19 Pedro Alves <palves@redhat.com>
4861
4862 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4863 Adjust all callers.
4864
1d6ce4d3
YS
48652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4866
4867 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4868 whether disp is negative.
4869
9005fbbb
SM
48702020-05-19 Simon Marchi <simon.marchi@efficios.com>
4871
4872 * symfile.h (struct symfile_segment_data)
4873 <~symfile_segment_data>: Remove.
4874 <segment_info>: Change to std::vector.
4875 * symfile.c (default_symfile_segments): Update.
4876 * elfread.c (elf_symfile_segments): Update.
4877
68b888ff
SM
48782020-05-19 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4881 <segments>: New.
4882 <segment_bases, segment_sizes>: Remove.
4883 * symfile.c (default_symfile_segments): Update.
4884 * elfread.c (elf_symfile_segments): Update.
4885 * remote.c (remote_target::get_offsets): Update.
4886 * solib-target.c (solib_target_relocate_section_addresses):
4887 Update.
4888
62982abd
SM
48892020-05-19 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * symfile.h (struct symfile_segment_data): Initialize fields.
4892 <~symfile_segment_data>: Add.
4893 (symfile_segment_data_up): New.
4894 (struct sym_fns) <sym_segments>: Return a
4895 symfile_segment_data_up.
4896 (default_symfile_segments): Return a symfile_segment_data_up.
4897 (free_symfile_segment_data): Remove.
4898 (get_symfile_segment_data): Return a symfile_segment_data_up.
4899 * symfile.c (default_symfile_segments): Likewise.
4900 (get_symfile_segment_data): Likewise.
4901 (free_symfile_segment_data): Remove.
4902 (symfile_find_segment_sections): Update.
4903 * elfread.c (elf_symfile_segments): Return a
4904 symfile_segment_data_up.
4905 * remote.c (remote_target::get_offsets): Update.
4906 * solib-target.c (solib_target_relocate_section_addresses):
4907 Update.
4908 * symfile-debug.c (debug_sym_segments): Return a
4909 symfile_segment_data_up.
4910
7f204339
RO
49112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4912
e52a0f1b
RO
4913 PR build/25981
4914 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4915 Hardcode register numbers.
4916
7f204339
RO
4917 PR build/25981
4918 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4919 procfs_find_LDT_entry): Remove.
4920 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4921 procfs_find_LDT_entry): Remove.
4922 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4923 Remove.
4924
7f32a4d5
PA
49252020-05-17 Pedro Alves <palves@redhat.com>
4926 Andrew Burgess <andrew.burgess@embecosm.com>
4927 Keno Fischer <keno@juliacomputing.com>
4928
4929 PR gdb/25741
4930 * breakpoint.c (build_target_condition_list): Update comments.
4931 (build_target_command_list): Update comments and skip matching
4932 locations.
4933 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4934 a separate function. Simplify "set breakpoint auto-hw off"
4935 handling.
4936 (insert_breakpoints): Update comment.
4937 (tracepoint_locations_match): New parameter. For breakpoints,
4938 compare location types too, if the caller wants to.
4939 (handle_automatic_hardware_breakpoints): New functions.
4940 (bp_location_is_less_than): Also sort by location type and
4941 hardware breakpoint length.
4942 (update_global_location_list): Handle "set breakpoint auto-hw on"
4943 here.
4944 (update_breakpoint_locations): Ask breakpoint_locations_match to
4945 ignore location types.
4946
7d93a1e0
SM
49472020-05-16 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4950 type::name instead.
4951
d0e39ea2
SM
49522020-05-16 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * gdbtypes.h (struct type) <name, set_name>: New methods.
4955 (TYPE_CODE): Use type::name. Change all call sites used to set
4956 the name to use type::set_name instead.
4957
2dab0c7b
TT
49582020-05-16 Tom Tromey <tom@tromey.com>
4959
4960 * top.c (quit_force): Update.
4961 * infrun.c (handle_no_resumed): Update.
4962 * top.h (all_uis): New function.
4963 (ALL_UIS): Remove.
4964
59f7bd8d
SM
49652020-05-16 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4968
9bf058f0
PA
49692020-05-16 Pedro Alves <palves@redhat.com>
4970
4971 * ia64-linux-nat.c
4972 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4973 Declare method.
4974 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4975
8f86ae1a
SM
49762020-05-15 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4979 (sparc64_adi_info): Likewise.
4980
d6bc0792
TT
49812020-05-15 Tom Tromey <tom@tromey.com>
4982
4983 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4984 block_objfile.
4985 (lookup_objfile_from_block): Remove.
4986 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4987 (lookup_global_symbol): Use block_objfile.
4988 * symtab.h (lookup_objfile_from_block): Don't declare.
4989 * printcmd.c (clear_dangling_display_expressions): Use
4990 block_objfile.
4991 * parse.c (operator_check_standard): Use block_objfile.
4992
8c14c3a3
TT
49932020-05-15 Tom Tromey <tom@tromey.com>
4994
4995 * language.c (language_alloc_type_symbol): Set
4996 SYMBOL_SECTION.
4997 * symtab.c (initialize_objfile_symbol): Remove.
4998 (allocate_symbol): Remove.
4999 (allocate_template_symbol): Remove.
5000 * dwarf2/read.c (fixup_go_packaging): Use "new".
5001 (new_symbol): Use "new".
5002 (read_variable): Don't call initialize_objfile_symbol. Use
5003 "new".
5004 (read_func_scope): Use "new".
5005 * xcoffread.c (process_xcoff_symbol): Don't call
5006 initialize_objfile_symbol.
5007 (SYMBOL_DUP): Remove.
5008 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5009 "new".
5010 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5011 (allocate_template_symbol): Don't declare.
5012 (struct symbol): Add copy constructor. Change defaults.
5013 * jit.c (finalize_symtab): Use "new".
5014 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5015 Use "new".
5016 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5017 (common_block_end): Use "new".
5018 * mdebugread.c (parse_symbol): Use "new".
5019 (new_symbol): Likewise.
5020
5b4a1a8d
PW
50212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5022
5023 * NEWS: Mention changes to help and apropos.
5024
57b4f16e
PW
50252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5026
5027 * command.h (enum command_class): Improve comments, document
5028 that class_alias is for user-defined aliases, give the class
5029 name for each class, remove unused class_xdb.
5030 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5031 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5032 by a precise class.
5033 * infcmd.c (_initialize_infcmd): Likewise.
5034 * reverse.c (_initialize_reverse): Likewise.
5035 * stack.c (_initialize_stack): Likewise.
5036 * symfile.c (_initialize_symfile): Likewise.
5037 * tracepoint.c (_initialize_tracepoint): Likewise.
5038
7c05caf7
PW
50392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5040
5041 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5042 when their aliased command is traversed.
5043 (help_cmd): Add fput_command_names_styled call to
5044 output command name and aliases when command has an alias.
5045
3b3aaacb
PW
50462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5047
5048 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5049 * cli/cli-decode.c (help_cmd_list): Declare as static,
5050 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5051 a command together with the command.
5052 (fput_command_name_styled, fput_command_names_styled): New functions.
5053 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5054 fput_command_name_styled.
5055 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5056 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5057
7aa1b46f
PW
50582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5059
5060 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5061 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5062 * command.h (cmd_show_list): Likewise.
5063 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5064 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5065
89bcba74
PW
50662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5067
5068 * unittests/command-def-selftests.c (traverse_command_structure):
5069 Verify all commands of a list have the same prefix command and
5070 that only the top cmdlist commands have a null prefix.
5071
3f4d92eb
PW
50722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5073
5074 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5075 as prefix, not one of its aliases.
5076 (set_cmd_prefix): Remove.
5077 (do_add_cmd): Centralize the setting of the prefix of a command, when
5078 command is defined after its full chain of prefix commands.
5079 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5080 (add_setshow_cmd_full): Likewise.
5081 (update_prefix_field_of_prefixed_commands): New function.
5082 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5083 update_prefix_field_of_prefixed_commands.
5084 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5085 addresses of remote_set_cmdlist and remote_show_cmdlist given
5086 as argument, not the address of an argument.
5087 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5088 * gdb/remote.c (_initialize_remote): Likewise.
5089
0605465f
PW
50902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5091
5092 * cli/cli-cmds.c (alias_command): Check for an existing alias
5093 using lookup_cmd_composition, as valid_command_p is too strict
5094 and forbids aliases that are the prefix of an existing alias
5095 or command.
5096 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5097 command is properly recognised as a valid command.
5098
58e6ac70
PW
50992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5100
5101 * unittests/help-doc-selftests.c: Rename to
5102 unittests/command-def-selftests.c
5103 * unittests/command-def-selftests.c (help_doc_tests): Update some
5104 comments.
5105 (command_structure_tests, traverse_command_structure): New namespace
5106 and function.
5107 (command_structure_invariants_tests): New function.
5108 (_initialize_command_def_selftests) Renamed from
5109 _initialize_help_doc_selftests, register command_structure_invariants
5110 selftest.
5111
a7b9ceb8
PW
51122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113
5114 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5115 an alias of 'show'.
5116
b2188a06
JB
51172020-05-15 Joel Brobecker <brobecker@adacore.com>
5118
5119 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5120 ada_is_fixed_point_type. Update all callers.
5121 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5122 all callers.
5123 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5124 Update all callers.
5125 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5126 print_fixed_point_type. Update all callers.
5127 * ada-valprint.c (ada_value_print_num): Replace call to
5128 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5129
a51951c2
KB
51302020-05-14 Kevin Buettner <kevinb@redhat.com>
5131
5132 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5133 processors.
5134 (cpu_supports_bts): Add CV_AMD case.
5135
29d6859f
LM
51362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5137 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * infrun.c (stop_all_threads): Collect multiple wait events at
5140 each pass.
5141
78134374
SM
51422020-05-14 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5145 type::code instead.
5146
67607e24
SM
51472020-05-14 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (struct type) <code, set_code>: New methods.
5150 (TYPE_CODE): Use type::code. Change all call sites used to set
5151 the code to use type::set_code instead.
5152
a05575d3
TBA
51532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5154 Tom de Vries <tdevries@suse.de>
5155 Pedro Alves <palves@redhat.com>
5156
5157 PR threads/25478
5158 * infrun.c (stop_all_threads): Do NOT ignore
5159 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5160 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5161 received.
5162 (handle_no_resumed): Remove code handling a live inferior with no
5163 threads.
5164 * remote.c (has_single_non_exited_thread): New.
5165 (remote_target::update_thread_list): Do not delete a thread if is
5166 the last thread of the process.
5167 * thread.c (thread_select): Call delete_exited_threads instead of
5168 prune_threads.
5169
6ad82919
TBA
51702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5171
5172 * infrun.c (stop_all_threads): Enable/disable thread events of all
5173 targets. Move a debug message denoting the end of the function
5174 into the SCOPED_EXIT block.
5175
d890404b
TBA
51762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5177
5178 * process-stratum-target.h: Include <set>.
5179 (all_non_exited_process_targets, switch_to_target_no_thread): New
5180 function declarations.
5181 * process-stratum-target.c (all_non_exited_process_targets)
5182 (switch_to_target_no_thread): New function implementations.
5183
293b3ebc
TBA
51842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5185
5186 * infrun.c (handle_inferior_event): Extract out a piece of code
5187 into...
5188 (mark_non_executing_threads): ...this new function.
5189
7ca9b62a
TBA
51902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5191
5192 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5193 use.
5194
fc75c28b
TBA
51952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5196
5197 * regcache.c (regcache_read_pc_protected): New function
5198 implementation that returns 0 if the PC cannot read via
5199 'regcache_read_pc'.
5200 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5201 instead of 'regcache_read_pc'.
5202 (keep_going_pass_signal): Ditto.
5203
a89febbd
TT
52042020-05-13 Tom Tromey <tromey@adacore.com>
5205
5206 * ada-lang.c (align_value): Remove.
5207 (ada_template_to_fixed_record_type_1): Use align_up.
5208
f7e23710
TBA
52092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5210
5211 * async-event.c: Update the copyright year.
5212 * async-event.h: Update the copyright year.
5213
02ff80c2
SM
52142020-05-12 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * objfiles.h (is_addr_in_objfile,
5217 shared_objfile_contains_address_p): Return bool.
5218 * objfile.c (is_addr_in_objfile,
5219 shared_objfile_contains_address_p): Return bool.
5220
4fd6c7e8
TT
52212020-05-11 Tom Tromey <tromey@adacore.com>
5222
5223 * cli/cli-cmds.c (info_command): Restore.
5224 (_initialize_cli_cmds): Use add_prefix_command for "info".
5225 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5226
5eb68a39
TT
52272020-05-11 Tom Tromey <tromey@adacore.com>
5228
5229 * ada-lang.c (ada_value_primitive_field): Now public.
5230 * ada-lang.h (ada_value_primitive_field): Declare.
5231 * ada-valprint.c (print_field_values): Use
5232 ada_value_primitive_field for wrapper fields.
5233
7666722f
TV
52342020-05-11 Tom de Vries <tdevries@suse.de>
5235
5236 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5237 MODULE_DOMAIN.
5238
3ee6bb11
TV
52392020-05-11 Tom de Vries <tdevries@suse.de>
5240
5241 PR symtab/25941
5242 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5243 with length 0, if not gdb-produced.
5244 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5245
43434996
TV
52462020-05-09 Tom de Vries <tdevries@suse.de>
5247
5248 PR gdb/25955
5249 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5250 calculation.
5251
2f78cffc
TT
52522020-05-09 Tom Tromey <tom@tromey.com>
5253
5254 * top.c (server_command): Now bool.
5255 * top.h (server_command): Now bool.
5256
4f7bc5ed
TT
52572020-05-08 Tom Tromey <tromey@adacore.com>
5258
5259 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5260 already being processed.
5261
8be4b118
TT
52622020-05-08 Tom Tromey <tom@tromey.com>
5263
5264 * printcmd.c (struct display) <next>: Remove.
5265 <display>: New constructor.
5266 <exp_string>: Now a std::string.
5267 <enabled_p>: Now a bool.
5268 (display_number): Move definition earlier.
5269 (displays): Rename from display_chain. Now a std::vector.
5270 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5271 (display_command): Update.
5272 (do_one_display, disable_display)
5273 (enable_disable_display_command, do_enable_disable_display):
5274 Update.
5275 (free_display): Remove.
5276 (clear_displays): Rewrite.
5277 (delete_display): Update.
5278 (map_display_numbers): Use function_view. Remove "data"
5279 parameter. Update.
5280 (do_delete_display): Remove.
5281 (undisplay_command): Update.
5282 (do_one_display, do_displays, disable_display)
5283 (info_display_command): Update.
5284 (do_enable_disable_display): Remove.
5285 (enable_disable_display_command)
5286 (clear_dangling_display_expressions): Update.
5287
94c93c35
TT
52882020-05-08 Tom Tromey <tom@tromey.com>
5289
5290 * symtab.c (set_symbol_cache_size)
5291 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5292 (maintenance_print_symbol_cache_statistics): Update.
5293 * symmisc.c (print_symbol_bcache_statistics)
5294 (print_objfile_statistics, maintenance_print_objfiles)
5295 (maintenance_info_symtabs, maintenance_check_symtabs)
5296 (maintenance_expand_symtabs, maintenance_info_line_tables):
5297 Update.
5298 * symfile-debug.c (set_debug_symfile): Update.
5299 * source.c (forget_cached_source_info): Update.
5300 * python/python.c (gdbpy_progspaces): Update.
5301 * psymtab.c (maintenance_info_psymtabs): Update.
5302 * probe.c (parse_probes): Update.
5303 * linespec.c (iterate_over_all_matching_symtabs)
5304 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5305 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5306 * exec.c (exec_target::close): Update.
5307 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5308 * breakpoint.c (print_one_breakpoint_location)
5309 (create_longjmp_master_breakpoint)
5310 (create_std_terminate_master_breakpoint): Update.
5311 * progspace.c (program_spaces): Now a std::vector.
5312 (maybe_new_address_space): Update.
5313 (add_program_space): Remove.
5314 (program_space::program_space): Update.
5315 (remove_program_space): Update.
5316 (number_of_program_spaces): Remove.
5317 (print_program_space, update_address_spaces): Update.
5318 * progspace.h (program_spaces): Change type.
5319 (ALL_PSPACES): Remove.
5320 (number_of_program_spaces): Don't declare.
5321 (struct program_space) <next>: Remove.
5322
a1fd1ac9
TT
53232020-05-08 Tom Tromey <tom@tromey.com>
5324
5325 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5326 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5327 (enable_break): Update.
5328 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5329 (frv_fdpic_find_canonical_descriptor): Update.
5330 (frv_fetch_objfile_link_map): Update.
5331 * progspace.c (program_space::free_all_objfiles): Update.
5332 (program_space::solibs): New method.
5333 * progspace.h (struct program_space) <solibs>: New method.
5334 * solist.h (master_so_list): Don't declare.
5335 (ALL_SO_LIBS): Remove.
5336 * solib.h (so_list_head): Remove.
5337 (update_solib_list): Update comment.
5338 * solib.c (master_so_list): Remove.
5339 (solib_used, update_solib_list, solib_add)
5340 (info_sharedlibrary_command, clear_solib)
5341 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5342
38eae084
TT
53432020-05-08 Tom Tromey <tom@tromey.com>
5344
5345 * extension.c (extension_languages): Now a std::array.
5346 (ALL_EXTENSION_LANGUAGES): Remove.
5347 (get_ext_lang_defn, get_ext_lang_of_file)
5348 (eval_ext_lang_from_control_command): Update.
5349 (finish_ext_lang_initialization)
5350 (auto_load_ext_lang_scripts_for_objfile)
5351 (ext_lang_type_printers::ext_lang_type_printers)
5352 (apply_ext_lang_type_printers)
5353 (ext_lang_type_printers::~ext_lang_type_printers)
5354 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5355 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5356 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5357 (get_matching_xmethod_workers, ext_lang_colorize)
5358 (ext_lang_before_prompt): Update.
5359 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5360
596dc4ad
TT
53612020-05-08 Tom Tromey <tom@tromey.com>
5362
5363 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5364 overload.
5365 <swap_string, m_string>: Remove.
5366 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5367 Update.
5368 * stabsread.c (define_symbol, read_type): Update.
5369 * linespec.c (find_linespec_symbols): Update.
5370 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5371 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5372 * dbxread.c (read_dbx_symtab): Update.
5373 * cp-support.h (cp_canonicalize_string_full)
5374 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5375 Return unique_xmalloc_ptr.
5376 * cp-support.c (inspect_type): Update.
5377 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5378 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5379 Likewise.
5380 * c-typeprint.c (print_name_maybe_canonical): Update.
5381 * break-catch-throw.c (check_status_exception_catchpoint):
5382 Update.
5383
bf4cb9be
TV
53842020-05-08 Tom de Vries <tdevries@suse.de>
5385
5386 * infrun.c (follow_fork): Copy current_line and current_symtab to
5387 child thread.
5388
a1b68f28
SM
53892020-05-07 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * async-event.c (struct async_signal_handler, struct
5392 async_event_handler): Reformat, remove typedef.
5393
98d48915
SM
53942020-05-07 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5397 access thistype->main_type->dyn_prop_list directly.
5398
7aa91313
SM
53992020-05-07 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5402 (remove_dyn_prop): Remove. Update all users to use
5403 type::remove_dyn_prop.
5404 * gdbtypes.c (remove_dyn_prop): Rename to...
5405 (type::remove_dyn_prop): ... this.
5406
5c54719c
SM
54072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5408
5409 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5410 (add_dyn_prop): Remove. Update all users to use
5411 type::add_dyn_prop.
5412 * gdbtypes.c (add_dyn_prop): Rename to...
5413 (type::add_dyn_prop): ... this.
5414
24e99c6c
SM
54152020-05-07 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5418 (get_dyn_prop): Remove. Update all users to use
5419 type::dyn_prop.
5420 * gdbtypes.c (get_dyn_prop): Rename to...
5421 (type::dyn_prop): ... this.
5422
0d4bf016
SM
54232020-05-06 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5426
ac4a4f1c
SM
54272020-05-06 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5430 instruction, skip it if it's there.
5431
a3bbacc1
SM
54322020-05-05 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5435
c3236f84
SM
54362020-05-04 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5439 * gdbtypes.c (recursive_dump_type): Remove use of
5440 TYPE_INCOMPLETE.
5441
3b6acaee
TT
54422020-05-03 Tom Tromey <tom@tromey.com>
5443
5444 * breakpoint.c (catch_command, tcatch_command): Remove.
5445 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5446 add_show_prefix_cmd.
5447 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5448 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5449 Remove.
5450 (add_internal_problem_command): Use add_basic_prefix_cmd,
5451 add_show_prefix_cmd.
5452 * mips-tdep.c (set_mipsfpu_command): Remove.
5453 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5454 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5455 (_initialize_index_cache): Use add_basic_prefix_cmd.
5456 * memattr.c (dummy_cmd): Remove.
5457 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5458 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5459 (_initialize_tui_win): Use add_basic_prefix_cmd,
5460 add_show_prefix_cmd.
5461 * cli/cli-logging.c (set_logging_command): Remove.
5462 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5463 add_show_prefix_cmd.
5464 (show_logging_command): Remove.
5465 * target.c (target_command): Remove.
5466 (add_target): Use add_basic_prefix_cmd.
5467
a51119cd
HD
54682020-05-02 Hannes Domani <ssbssa@yahoo.de>
5469
5470 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5471
652fc23a 54722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5473
652fc23a
PW
5474 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5475 info_command.
5476
117539e6
KR
54772020-04-30 Kamil Rytarowski <n54@gmx.com>
5478
5479 * nbsd-nat.c (nbsd_enable_proc_events)
5480 (nbsd_nat_target::post_startup_inferior): Add.
5481 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5482 (nbsd_nat_target::update_thread_list): Rewrite.
5483 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5484 "PTRACE_LWP_CREATE".
5485 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5486
102e38eb 54872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5488
102e38eb
PW
5489 * stack.c (_initialize_stack): Remove duplicated creation
5490 of "frame" command and "f" alias.
5491
ee9d1e5f
HD
54922020-04-30 Hannes Domani <ssbssa@yahoo.de>
5493
5494 PR gdb/18706
5495 * gdbtypes.c (check_typedef): Calculate size of array of
5496 stubbed type.
5497
627c7fb8
HD
54982020-04-30 Hannes Domani <ssbssa@yahoo.de>
5499
5500 PR gdb/15559
5501 * i386-tdep.c (i386_push_dummy_call): Call
5502 i386_thiscall_push_dummy_call.
5503 (i386_thiscall_push_dummy_call): New function.
5504 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5505 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5506 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5507
ffc2844e
SM
55082020-04-29 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * gdbarch.sh (do_read): Add shellcheck disable directive for
5511 warning SC2162.
5512
1207375d
SM
55132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5516 "referenced but not assigned" warning.
5517
9fdb2916
SM
55182020-04-29 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * gdbarch.sh: Remove code that sets fallbackdefault.
5521
759cea5e
SM
55222020-04-29 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbarch.sh: Use shell operators && and || instead of
5525 -a and -o.
5526
cb02ab24
SM
55272020-04-29 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * gdbarch.sh: Use $(...) instead of `...`.
5530
a6fc5ffc
SM
55312020-04-29 Simon Marchi <simon.marchi@efficios.com>
5532
5533 * gdbarch.sh: Use double quotes around variables.
5534
8d113d13
SM
55352020-04-29 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * gdbarch.sh: Use %s with printf, instead of variables in the
5538 format string.
5539
ed6acedd
TT
55402020-04-29 Tom Tromey <tromey@adacore.com>
5541
5542 PR ada/25875:
5543 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5544 type fields here.
5545 (read_enumeration_type): Call
5546 update_enumeration_type_from_children later. Update comments.
5547 (process_enumeration_scope): Don't create type fields.
5548
b68b1b58
KR
55492020-04-29 Kamil Rytarowski <n54@gmx.com>
5550
5551 * nbsd-tdep.c: Include "xml-syscall.h".
5552 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5553
f94b2e03
KR
55542020-04-29 Kamil Rytarowski <n54@gmx.com>
5555
5556 * nbsd-nat.c: Include "sys/wait.h".
5557 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5558 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5559 (nbsd_nat_target::remove_exec_catchpoint)
5560 (nbsd_nat_target::set_syscall_catchpoint): Add.
5561 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5562 (nbsd_nat_target::insert_exec_catchpoint)
5563 (nbsd_nat_target::remove_exec_catchpoint)
5564 (nbsd_nat_target::set_syscall_catchpoint): Add.
5565 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5566 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5567 `nbsd_get_syscall_number'.
5568
fc49bc72
TT
55692020-04-29 Tom Tromey <tom@tromey.com>
5570
5571 * stack.c (print_block_frame_labels): Remove.
5572
d642b692
HD
55732020-04-29 Hannes Domani <ssbssa@yahoo.de>
5574
5575 PR gdb/17320
5576 * ada-valprint.c (val_print_packed_array_elements): Move array
5577 end bracket to new line.
5578 (ada_val_print_string): Remove extra spaces before first array
5579 element.
5580 * c-valprint.c (c_value_print_array): Likewise.
5581 * m2-valprint.c (m2_print_array_contents): Likewise.
5582 (m2_value_print_inner): Likewise.
5583 * p-valprint.c (pascal_value_print_inner): Likewise.
5584 * valprint.c (generic_val_print_array): Likewise.
5585 (value_print_array_elements): Move first array element and array
5586 end bracket to new line.
5587
ea90f227
TV
55882020-04-29 Tom de Vries <tdevries@suse.de>
5589
5590 PR symtab/25889
5591 * linespec.c (find_method): Fix ix calculation.
5592
4498ef4f
KR
55932020-04-28 Kamil Rytarowski <n54@gmx.com>
5594
5595 * syscalls/update-netbsd.sh: New file.
5596 * syscalls/netbsd.xml: Regenerate.
5597 * data-directory/Makefile.in: Register `netbsd.xml' in
5598 `SYSCALLS_FILES'.
5599
a55e30b5
SM
56002020-04-28 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * syscalls/update-freebsd.sh: Add double quotes.
5603
2b2fbab8
TT
56042020-04-28 Tom Tromey <tom@tromey.com>
5605
5606 * NEWS: Update.
5607 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5608 (cmdpy_init): Allow class_tui.
5609
a65189c9
TV
56102020-04-28 Mark Williams <mark@myosotissp.com>
5611
5612 PR gdb/24480
5613 * dwarf2read.c: Add missing assingments to list_in_scope when
5614 start_symtab was already called.
5615
1b95cdb7
SM
56162020-04-28 Simon Marchi <simon.marchi@efficios.com>
5617
5618 PR gdb/25881
5619 * dwarf2/read.c (offset_map_type): Use
5620 gdb:hash_enum<sect_offset> as hash function.
5621
15cd93d0
TV
56222020-04-28 Tom de Vries <tdevries@suse.de>
5623
5624 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5625 with DW_AT_signature.
5626
1eb39914
SM
56272020-04-27 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * configure.ac: Remove check for fs_base/gs_base in
5630 user_regs_struct.
5631 * configure: Re-generate.
5632 * config.in: Re-generate.
5633 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5634 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5635 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5636
991a3e2e
LM
56372020-04-27 Luis Machado <luis.machado@linaro.org>
5638
5639 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5640 problematic inline frame unwinding situation.
5641 * frame.c (frame_id_computed_p): New function.
5642 * frame.h (frame_id_computed_p): New prototype.
5643
361ba0e8
TT
56442020-04-26 Tom Tromey <tom@tromey.com>
5645
5646 * command.h (enum command_class) <class_pseudo>: Remove.
5647
bc3609fd
PW
56482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5649
5650 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5651 and whitespace.
5652
b9771db7
KR
56532020-04-25 Kamil Rytarowski <n54@gmx.com>
5654
ec16513e
SM
5655 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5656 `PT_GET_PROCESS_STATE' block.
b9771db7 5657
7151c1af
TT
56582020-04-24 Tom Tromey <tom@tromey.com>
5659
5660 * symtab.h (symbol_get_demangled_name): Don't declare.
5661 * symtab.c (symbol_get_demangled_name): Remove.
5662 (general_symbol_info::natural_name)
5663 (general_symbol_info::demangled_name): Update.
5664
906bb4c5
TT
56652020-04-24 Tom Tromey <tom@tromey.com>
5666
5667 PR rust/25025:
5668 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5669
bcfe6157
TT
56702020-04-24 Tom Tromey <tom@tromey.com>
5671
5672 PR symtab/12707:
5673 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5674 exists.
5675 (new_symbol): Likewise.
5676 * compile/compile-object-load.c (get_out_value_type): Use
5677 symbol_matches_search_name.
5678
f049a313
TT
56792020-04-24 Tom Tromey <tom@tromey.com>
5680
5681 * dwarf2/read.c (add_partial_symbol): Do not call
5682 compute_and_set_names.
5683
76e288d1
TT
56842020-04-24 Tom Tromey <tom@tromey.com>
5685
5686 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5687 overload.
5688
2467f4f6
TT
56892020-04-24 Tom Tromey <tom@tromey.com>
5690
5691 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5692 (add_psymbol_to_list): New overload. Make old overload call new
5693 one.
5694 * psympriv.h (add_psymbol_to_list): New overload.
5695
e61108c9
TT
56962020-04-24 Tom Tromey <tom@tromey.com>
5697
5698 * dwarf2/read.c (partial_die_info::read) <case
5699 DW_AT_linkage_name>: Use value_as_string.
5700 (dwarf2_string_attr): Use value_as_string.
5701 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5702 method.
5703 * dwarf2/attribute.c (attribute::value_as_string): New method.
5704
8c87a452
TT
57052020-04-24 Tom Tromey <tom@tromey.com>
5706
5707 * symtab.c (general_symbol_info::natural_name)
5708 (general_symbol_info::demangled_name): Check for language_rust.
5709
787de330
TT
57102020-04-24 Tom Tromey <tom@tromey.com>
5711
5712 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5713 (dwarf2_physname): ... from here.
5714 (partial_die_info::read): Add Rust "{" hack.
5715
ff985671
TT
57162020-04-24 Tom Tromey <tom@tromey.com>
5717
5718 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5719 method.
5720 (symbol_set_demangled_name): Don't declare.
5721 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5722 symbol_set_demangled_name.
5723 (general_symbol_info::set_language)
5724 (general_symbol_info::compute_and_set_names): Update.
5725 * minsyms.c (minimal_symbol_reader::install): Update.
5726 * dwarf2/read.c (new_symbol): Update.
5727
1acda803
TT
57282020-04-24 Tom Tromey <tromey@adacore.com>
5729
5730 PR python/23662:
5731 * python/py-type.c (convert_field): Handle
5732 FIELD_LOC_KIND_DWARF_BLOCK.
5733 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5734 (typy_get_dynamic): Nw function.
5735 (type_object_getset): Add "dynamic".
5736 * NEWS: Add entry.
5737
d656f129
TT
57382020-04-24 Tom Tromey <tromey@adacore.com>
5739
5740 * ada-typeprint.c (print_choices, print_variant_part)
5741 (print_record_field_types_dynamic): New functions.
5742 (print_record_field_types): Use print_record_field_types_dynamic.
5743
7d79de9a
TT
57442020-04-24 Tom Tromey <tromey@adacore.com>
5745
5746 * dwarf2/read.c (handle_data_member_location): New overload.
5747 (dwarf2_add_field): Use it.
5748 (decode_locdesc): Add "computed" parameter. Update comment.
5749 * gdbtypes.c (is_dynamic_type_internal): Also look for
5750 FIELD_LOC_KIND_DWARF_BLOCK.
5751 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5752 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5753 virtual base classes.
5754 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5755 FIELD_LOC_KIND_DWARF_BLOCK.
5756
f8e89861
TT
57572020-04-24 Tom Tromey <tromey@adacore.com>
5758
5759 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5760 * gdbtypes.c (is_dynamic_type_internal): Check
5761 TYPE_HAS_DYNAMIC_LENGTH.
5762 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5763 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5764 New macros.
5765 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5766 constant.
5767
9c6a1327
TT
57682020-04-24 Tom Tromey <tromey@adacore.com>
5769
5770 * dwarf2/read.c (struct variant_field): Rewrite.
5771 (struct variant_part_builder): New.
5772 (struct nextfield): Remove "variant" field. Add "offset".
5773 (struct field_info): Add "current_variant_part" and
5774 "variant_parts".
5775 (alloc_discriminant_info): Remove.
5776 (alloc_rust_variant): New function.
5777 (quirk_rust_enum): Update.
5778 (dwarf2_add_field): Set "offset" member. Don't handle
5779 DW_TAG_variant_part.
5780 (offset_map_type): New typedef.
5781 (convert_variant_range, create_one_variant)
5782 (create_one_variant_part, create_variant_parts)
5783 (add_variant_property): New functions.
5784 (dwarf2_attach_fields_to_type): Call add_variant_property.
5785 (read_structure_type): Don't handle DW_TAG_variant_part.
5786 (handle_variant_part, handle_variant): New functions.
5787 (handle_struct_member_die): Use them.
5788 (process_structure_scope): Don't handle variant parts.
5789 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5790 (struct discriminant_info): Remove.
5791 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5792 (struct main_type) <flag_discriminated_union>: Remove.
5793 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5794 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5795 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5796 Update.
5797 * valops.c (value_union_variant): Remove.
5798 * value.h (value_union_variant): Don't declare.
5799
b249d2c2
TT
58002020-04-24 Tom Tromey <tromey@adacore.com>
5801
5802 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5803 (ada_value_primitive_packed_val): Update.
5804 * ada-valprint.c (ada_value_print_1): Update.
5805 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5806 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5807 just an address. Use evaluate_for_locexpr_baton.
5808 (dwarf2_evaluate_property): Update.
5809 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5810 array_view.
5811 * findvar.c (default_read_var_value): Update.
5812 * gdbtypes.c (compute_variant_fields_inner)
5813 (resolve_dynamic_type_internal): Update.
5814 (resolve_dynamic_type): Change type of valaddr parameter.
5815 * gdbtypes.h (resolve_dynamic_type): Update.
5816 * valarith.c (value_subscripted_rvalue): Update.
5817 * value.c (value_from_contents_and_address): Update.
5818
61122aa9
TT
58192020-04-24 Tom Tromey <tromey@adacore.com>
5820
5821 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5822 "push_initial_value" parameter.
5823 (dwarf2_evaluate_property): Likewise.
5824 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5825
ef83a141
TT
58262020-04-24 Tom Tromey <tromey@adacore.com>
5827
5828 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5829 (variant::matches, compute_variant_fields_recurse)
5830 (compute_variant_fields_inner, compute_variant_fields): New
5831 functions.
5832 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5833 Use resolved_type after type is made.
5834 (operator==): Add new cases.
5835 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5836 (struct discriminant_range, struct variant, struct variant_part):
5837 New.
5838 (union dynamic_prop_data) <variant_parts, original_type>: New
5839 members.
5840 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5841 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5842 constants.
5843 * value.c (unpack_bits_as_long): Now public.
5844 * value.h (unpack_bits_as_long): Declare.
5845
675127ec
TT
58462020-04-24 Tom Tromey <tromey@adacore.com>
5847
5848 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5849 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5850
9852ceef
HD
58512020-04-24 Hannes Domani <ssbssa@yahoo.de>
5852
5853 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5854
7632c6ce
KR
58552020-04-24 Kamil Rytarowski <n54@gmx.com>
5856
5857 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5858 (remove_fork_catchpoint, post_startup_inferior)
5859 (post_attach): Move...
5860 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5861 (remove_fork_catchpoint, post_startup_inferior)
5862 (post_attach): ...here.
5863 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5864 (remove_fork_catchpoint, post_startup_inferior)
5865 (post_attach): Move...
5866 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5867 (remove_fork_catchpoint, post_startup_inferior)
5868 (post_attach): ...here.
5869
7be2bb4f
TT
58702020-04-24 Tom Tromey <tromey@adacore.com>
5871
5872 * nat/windows-nat.h (struct windows_thread_info)
5873 <pc_adjusted>: New member.
5874 * windows-nat.c (windows_fetch_one_register): Check
5875 pc_adjusted.
5876 (windows_nat_target::get_windows_debug_event)
5877 (windows_nat_target::wait): Set pc_adjusted.
5878
f80cb3b4
TV
58792020-04-24 Tom de Vries <tdevries@suse.de>
5880
5881 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5882 Run gdb-add-index inside temp dir.
5883
29514b87
TT
58842020-04-23 Tom Tromey <tromey@adacore.com>
5885
5886 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5887 in loop.
5888
5939967b
LM
58892020-04-23 Luis Machado <luis.machado@linaro.org>
5890
5891 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5892 get_frame_register instead of gdbarch_unwind_pc.
5893
70bc38f5
TV
58942020-04-23 Tom de Vries <tdevries@suse.de>
5895
5896 * symtab.c (lookup_global_symbol): Prefer def over decl.
5897
de82891c
TV
58982020-04-23 Tom de Vries <tdevries@suse.de>
5899
5900 PR symtab/25807
5901 * block.c (best_symbol, better_symbol): Promote to external.
5902 * block.h (best_symbol, better_symbol): Declare.
5903 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5904 decl.
5905
ecc6c606
TT
59062020-04-23 Tom Tromey <tromey@adacore.com>
5907
5908 PR ada/25837:
5909 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5910 "const char *", not a "const std::string &".
5911 <name_and_matcher::operator==>: Update.
5912 * unittests/lookup_name_info-selftests.c: Change type of
5913 "result".
5914
740480b8
TT
59152020-04-23 Tom Tromey <tom@tromey.com>
5916
5917 * inferior.h (iterate_over_inferiors): Don't declare.
5918 * inferior.c (iterate_over_inferiors): Remove.
5919 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5920 Remove.
5921 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5922 use iterate_over_inferiors.
5923 (darwin_resume_inferior_it)
5924 (struct resume_inferior_threads_param)
5925 (darwin_resume_inferior_threads_it): Remove.
5926 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5927
ae3ab1f0
TV
59282020-04-23 Tom de Vries <tdevries@suse.de>
5929
5930 * blockframe.c (find_pc_partial_function): Use
5931 find_pc_sect_compunit_symtab rather than
5932 objfile->sf->qf->find_pc_sect_compunit_symtab.
5933
317d2668
TV
59342020-04-22 Tom de Vries <tdevries@suse.de>
5935
5936 PR symtab/25764
5937 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5938 in psymtabs.
5939
eea9e357
TV
59402020-04-22 Tom de Vries <tdevries@suse.de>
5941
5942 PR symtab/25801
5943 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5944 symtabs.
5945
3d5afab3
TV
59462020-04-22 Tom de Vries <tdevries@suse.de>
5947
5948 PR symtab/25700
5949 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5950 CU if already created.
5951
d43b7a2d
TBA
59522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5953
5954 * infrun.c (displaced_step_fixup): Switch to the event_thread
5955 before calling displaced_step_restore, not after.
5956
d89edf9b
MM
59572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5958
5959 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5960 its inferior is not recorded by us.
5961 (record_btrace_target_open): Replace call to
5962 all_non_exited_threads () with call to current_inferior
5963 ()->non_exited_threads ().
5964 (record_btrace_target::stop_recording): Likewise.
5965 (record_btrace_target::close): Likewise.
5966 (record_btrace_target::wait): Likewise.
5967 (record_btrace_target::record_stop_replaying): Likewise.
5968
5897fd49
MM
59692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5970
5971 * btrace.c (btrace_enable): Throw an error on double enables and
5972 when enabling recording fails.
5973 (btrace_disable): Throw an error if the thread is not recorded.
5974
1a476b6d
MM
59752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5976
5977 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5978 request if we do not have a thread_info.
5979
4778a5f8
TV
59802020-04-21 Tom de Vries <tdevries@suse.de>
5981
5982 PR gdb/25471
5983 * thread.c
5984 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5985 exception in get_frame_id.
5986
0fa7617d
TT
59872020-04-20 Tom Tromey <tromey@adacore.com>
5988
5989 * python/python.c (struct gdbpy_event): Mark move constructor as
5990 noexcept.
5991 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5992 constructor as noexcept.
5993 * completer.h (struct completion_result): Mark move constructor as
5994 noexcept.
5995 * completer.c (completion_result::completion_result): Use
5996 initialization style. Don't call reset_match_list.
5997
ad23bda0
MS
59982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5999
6000 * MAINTAINERS (Write After Approval): Add myself.
6001
45e1f031
TT
60022020-04-18 Tom Tromey <tom@tromey.com>
6003
6004 * windows-tdep.c (init_w32_command_list)
6005 (w32_prefix_command_valid): Restore.
6006 (_initialize_windows_tdep): Call init_w32_command_list.
6007
08feed99
TT
60082020-04-18 Tom Tromey <tom@tromey.com>
6009
6010 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6011 * value.c (value_fn_field): Update.
6012 * valops.c (find_function_in_inferior)
6013 (value_allocate_space_in_inferior): Update.
6014 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6015 Update.
6016 * tui/tui-source.c (tui_source_window::set_contents): Update.
6017 * symtab.c (lookup_global_or_static_symbol)
6018 (find_function_start_sal_1, skip_prologue_sal)
6019 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6020 * symmisc.c (dump_msymbols, dump_symtab_1)
6021 (maintenance_print_one_line_table): Update.
6022 * symfile.c (init_entry_point_info, section_is_mapped)
6023 (list_overlays_command, simple_read_overlay_table)
6024 (simple_overlay_update_1): Update.
6025 * stap-probe.c (handle_stap_probe): Update.
6026 * stabsread.c (dbx_init_float_type, define_symbol)
6027 (read_one_struct_field, read_enum_type, read_range_type): Update.
6028 * source.c (info_line_command): Update.
6029 * python/python.c (gdbpy_source_objfile_script)
6030 (gdbpy_execute_objfile_script): Update.
6031 * python/py-type.c (save_objfile_types): Update.
6032 * python/py-objfile.c (py_free_objfile): Update.
6033 * python/py-inferior.c (python_new_objfile): Update.
6034 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6035 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6036 (maintenance_check_psymtabs): Update.
6037 * printcmd.c (info_address_command): Update.
6038 * objfiles.h (struct objfile) <arch>: New method, from
6039 get_objfile_arch.
6040 (get_objfile_arch): Don't declare.
6041 * objfiles.c (get_objfile_arch): Remove.
6042 (filter_overlapping_sections): Update.
6043 * minsyms.c (msymbol_is_function): Update.
6044 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6045 (output_nondebug_symbol): Update.
6046 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6047 (mdebug_expand_psymtab): Update.
6048 * machoread.c (macho_add_oso_symfile): Update.
6049 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6050 Update.
6051 * linux-fork.c (checkpoint_command): Update.
6052 * linespec.c (convert_linespec_to_sals): Update.
6053 * jit.c (finalize_symtab): Update.
6054 * infrun.c (insert_exception_resume_from_probe): Update.
6055 * ia64-tdep.c (ia64_find_unwind_table): Update.
6056 * hppa-tdep.c (internalize_unwinds): Update.
6057 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6058 Update.
6059 * gcore.c (call_target_sbrk): Update.
6060 * elfread.c (record_minimal_symbol, elf_symtab_read)
6061 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6062 (elf_gnu_ifunc_resolve_by_got): Update.
6063 * dwarf2/read.c (create_addrmap_from_index)
6064 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6065 (read_debug_names_from_section)
6066 (process_psymtab_comp_unit_reader, add_partial_symbol)
6067 (add_partial_subprogram, process_full_comp_unit)
6068 (read_file_scope, read_func_scope, read_lexical_block_scope)
6069 (read_call_site_scope, dwarf2_ranges_read)
6070 (dwarf2_record_block_ranges, dwarf2_add_field)
6071 (mark_common_block_symbol_computed, read_tag_pointer_type)
6072 (read_tag_string_type, dwarf2_init_float_type)
6073 (dwarf2_init_complex_target_type, read_base_type)
6074 (partial_die_info::read, partial_die_info::read)
6075 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6076 (dwarf2_fetch_die_loc_sect_off): Update.
6077 * dwarf2/loc.c (dwarf2_find_location_expression)
6078 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6079 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6080 (dwarf2_loc_desc_get_symbol_read_needs)
6081 (locexpr_describe_location_piece, locexpr_describe_location_1)
6082 (loclist_describe_location): Update.
6083 * dwarf2/index-write.c (write_debug_names): Update.
6084 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6085 * dtrace-probe.c (dtrace_process_dof): Update.
6086 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6087 (process_one_symbol): Update.
6088 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6089 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6090 (coff_read_enum_type): Update.
6091 * cli/cli-cmds.c (edit_command, list_command): Update.
6092 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6093 * breakpoint.c (create_overlay_event_breakpoint)
6094 (create_longjmp_master_breakpoint)
6095 (create_std_terminate_master_breakpoint)
6096 (create_exception_master_breakpoint, get_sal_arch): Update.
6097 * block.c (block_gdbarch): Update.
6098 * annotate.c (annotate_source_line): Update.
6099
0743fc83
TT
61002020-04-17 Tom Tromey <tromey@adacore.com>
6101
6102 * auto-load.c (show_auto_load_cmd): Remove.
6103 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6104 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6105 (maintenance_print_arc_command): Remove.
6106 * tui/tui-win.c (tui_command): Remove.
6107 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6108 * tui/tui-layout.c (tui_layout_command): Remove.
6109 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6110 * python/python.c (user_set_python, user_show_python): Remove.
6111 (_initialize_python): Use add_basic_prefix_cmd,
6112 add_show_prefix_cmd.
6113 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6114 (install_gdb_commands): Use add_basic_prefix_cmd,
6115 add_show_prefix_cmd.
6116 (info_guile_command): Remove.
6117 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6118 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6119 add_show_prefix_cmd.
6120 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6121 Remove do_set and do_show parameters.
6122 * cli/cli-style.c (set_style, show_style): Remove.
6123 (_initialize_cli_style): Use add_basic_prefix_cmd,
6124 add_show_prefix_cmd.
6125 (cli_style_option::add_setshow_commands): Remove do_set and
6126 do_show parameters.
6127 (cli_style_option::add_setshow_commands): Use
6128 add_basic_prefix_cmd, add_show_prefix_cmd.
6129 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6130 (set_style_name): Remove.
6131 * cli/cli-dump.c (dump_command, append_command): Remove.
6132 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6133 (tekhex_dump_command, binary_dump_command)
6134 (binary_append_command): Remove.
6135 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6136 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6137 (init_w32_command_list): Remove; move into ...
6138 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6139 * valprint.c (set_print, show_print, set_print_raw)
6140 (show_print_raw): Remove.
6141 (_initialize_valprint): Use add_basic_prefix_cmd,
6142 add_show_prefix_cmd.
6143 * typeprint.c (set_print_type, show_print_type): Remove.
6144 (_initialize_typeprint): Use add_basic_prefix_cmd,
6145 add_show_prefix_cmd.
6146 * record.c (set_record_command, show_record_command): Remove.
6147 (_initialize_record): Use add_basic_prefix_cmd,
6148 add_show_prefix_cmd.
6149 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6150 add_show_prefix_cmd.
6151 (info_command, show_command, set_debug, show_debug): Remove.
6152 * top.h (set_history, show_history): Don't declare.
6153 * top.c (set_history, show_history): Remove.
6154 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6155 (unset_tdesc_cmd): Remove.
6156 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6157 add_show_prefix_cmd.
6158 * symtab.c (info_module_command): Remove.
6159 (_initialize_symtab): Use add_basic_prefix_cmd.
6160 * symfile.c (overlay_command): Remove.
6161 (_initialize_symfile): Use add_basic_prefix_cmd.
6162 * sparc64-tdep.c (info_adi_command): Remove.
6163 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6164 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6165 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6166 add_show_prefix_cmd.
6167 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6168 (_initialize_serial): Use add_basic_prefix_cmd,
6169 add_show_prefix_cmd.
6170 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6171 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6172 add_show_prefix_cmd.
6173 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6174 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6175 add_show_prefix_cmd.
6176 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6177 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6178 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6179 add_show_prefix_cmd.
6180 * remote.c (remote_command, set_remote_cmd): Remove.
6181 (_initialize_remote): Use add_basic_prefix_cmd.
6182 * record-full.c (set_record_full_command)
6183 (show_record_full_command): Remove.
6184 (_initialize_record_full): Use add_basic_prefix_cmd,
6185 add_show_prefix_cmd.
6186 * record-btrace.c (cmd_set_record_btrace)
6187 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6188 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6189 (cmd_show_record_btrace_pt): Remove.
6190 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6191 add_show_prefix_cmd.
6192 * ravenscar-thread.c (set_ravenscar_command)
6193 (show_ravenscar_command): Remove.
6194 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6195 add_show_prefix_cmd.
6196 * mips-tdep.c (show_mips_command, set_mips_command)
6197 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6198 add_show_prefix_cmd.
6199 * maint.c (maintenance_command, maintenance_info_command)
6200 (maintenance_check_command, maintenance_print_command)
6201 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6202 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6203 add_show_prefix_cmd.
6204 (show_per_command_cmd): Remove.
6205 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6206 Remove.
6207 (maintenance_show_test_settings_cmd): Remove.
6208 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6209 add_show_prefix_cmd.
6210 * maint-test-options.c (maintenance_test_options_command):
6211 Remove.
6212 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6213 * macrocmd.c (macro_command): Remove
6214 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6215 * language.c (set_check, show_check): Remove.
6216 (_initialize_language): Use add_basic_prefix_cmd,
6217 add_show_prefix_cmd.
6218 * infcmd.c (unset_command): Remove.
6219 (_initialize_infcmd): Use add_basic_prefix_cmd.
6220 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6221 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6222 add_show_prefix_cmd.
6223 * go32-nat.c (go32_info_dos_command): Remove.
6224 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6225 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6226 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6227 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6228 (_initialize_frame): Use add_basic_prefix_cmd,
6229 add_show_prefix_cmd.
6230 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6231 (_initialize_dcache): Use add_basic_prefix_cmd,
6232 add_show_prefix_cmd.
6233 * cp-support.c (maint_cplus_command): Remove.
6234 (_initialize_cp_support): Use add_basic_prefix_cmd.
6235 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6236 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6237 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6238 add_basic_prefix_cmd, add_show_prefix_cmd.
6239 * breakpoint.c (save_command): Remove.
6240 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6241 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6242 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6245 (set_ada_command, show_ada_command): Remove.
6246 (_initialize_ada_language): Use add_basic_prefix_cmd,
6247 add_show_prefix_cmd.
6248 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6249
3557f442
KR
62502020-04-16 Kamil Rytarowski <n54@gmx.com>
6251
6252 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6253 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6254
16197208
SM
62552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6256
6257 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6258 warning messages.
6259
00ac85d3
SM
62602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6263 import table is not at beginning of .idata section.
6264
381ce63f
PA
62652020-04-16 Pedro Alves <palves@redhat.com>
6266
6267 * inferior.c (delete_inferior): Use delete operator directly
6268 instead of delete_program_space.
6269 * progspace.c (add_program_space): New, factored out from
6270 program_space::program_space.
6271 (remove_program_space): New, factored out from
6272 delete_program_space.
6273 (program_space::program_space): Remove intro comment. Rewrite.
6274 (program_space::~program_space): Remove intro comment. Call
6275 remove_program_space.
6276 (delete_program_space): Delete.
6277 * progspace.h (program_space::program_space): Make explicit. Move
6278 intro comment here, adjusted.
6279 (program_space::~program_space): Move intro comment here,
6280 adjusted.
6281 (delete_program_space): Remove.
6282
a010605f
TT
62832020-04-16 Tom Tromey <tromey@adacore.com>
6284
6285 * windows-nat.c (windows_nat::handle_access_violation): New
6286 function.
6287 * nat/windows-nat.h (handle_access_violation): Declare.
6288 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6289 windows-nat.c. Call handle_access_violation.
6290
efba5c23
TV
62912020-04-16 Tom de Vries <tdevries@suse.de>
6292
6293 PR symtab/25791
6294 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6295 CUs without psymtab.
6296
97ed802d
KB
62972020-04-16 Kevin Buettner <kevinb@redhat.com>
6298
6299 * python/python.c (do_start_initialization): Don't call
6300 PyEval_InitThreads for Python 3.9 and beyond.
6301
c7d64809
KR
63022020-04-15 Kamil Rytarowski <n54@gmx.com>
6303
6304 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6305 thread functions.
6306 (obsd_nat_target::wait): Likewise.
6307
ce127a96
TT
63082020-04-15 Tom Tromey <tromey@adacore.com>
6309
6310 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6311 (DEBUG_EXCEPT): Use debug_printf.
6312
99f1bc6a
AB
63132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6314
6315 * completer.c (class completion_tracker::completion_hash_entry)
6316 <hash_name>: New member function.
6317 (completion_tracker::discard_completions): New callback to hash a
6318 completion_hash_entry, pass this to htab_create_alloc.
6319
a0e9b532
JT
63202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6321
6322 * windows-nat.c (windows_make_so): Warn rather than stopping with
6323 an error if realpath() fails.
6324
06ca5dd4
KR
63252020-04-14 Kamil Rytarowski <n54@gmx.com>
6326
6327 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6328 (nbsd_nat_target::info_proc): Add do_status.
6329
194d088f
TV
63302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6331 Tom de Vries <tdevries@suse.de>
6332
6333 PR symtab/25718
6334 * psympriv.h (struct partial_symtab::read_symtab)
6335 (struct partial_symtab::expand_psymtab)
6336 (struct partial_symtab::read_dependencies): Update comments.
6337 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6338 read_symtab for includer.
6339 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6340 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6341 (struct dwarf2_include_psymtab::m_readin): Remove.
6342 (struct dwarf2_include_psymtab::includer): New member function.
6343 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6344
c1a66c06
TV
63452020-04-14 Tom de Vries <tdevries@suse.de>
6346
6347 PR symtab/25720
6348 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6349 with NULL symbol_matcher and lookup_name.
6350 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6351 and lookup_name.
6352 * dwarf2/read.c (dw2_expand_symtabs_matching)
6353 (dw2_debug_names_expand_symtabs_matching): Same.
6354 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6355 Make lookup_name a pointer. Update comment.
6356 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6357 lookup_name being a pointer.
6358 * symfile.c (expand_symtabs_matching): Same.
6359 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6360 * linespec.c (iterate_over_all_matching_symtabs): Same.
6361
400b5eca
TT
63622020-04-13 Tom Tromey <tom@tromey.com>
6363
6364 * run-on-main-thread.c: Update include.
6365 * unittests/main-thread-selftests.c: Update include.
6366 * tui/tui-win.c: Update include.
6367 * tui/tui-io.c: Update include.
6368 * tui/tui-interp.c: Update include.
6369 * tui/tui-hooks.c: Update include.
6370 * top.h: Update include.
6371 * top.c: Update include.
6372 * ser-base.c: Update include.
6373 * remote.c: Update include.
6374 * remote-notif.c: Update include.
6375 * remote-fileio.c: Update include.
6376 * record-full.c: Update include.
6377 * record-btrace.c: Update include.
6378 * python/python.c: Update include.
6379 * posix-hdep.c: Update include.
6380 * mingw-hdep.c: Update include.
6381 * mi/mi-main.c: Update include.
6382 * mi/mi-interp.c: Update include.
6383 * main.c: Update include.
6384 * linux-nat.c: Update include.
6385 * interps.c: Update include.
6386 * infrun.c: Update include.
6387 * inf-loop.c: Update include.
6388 * event-top.c: Update include.
6389 * event-loop.c: Move to ../gdbsupport/.
6390 * event-loop.h: Move to ../gdbsupport/.
6391 * async-event.h: Update include.
6392 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6393
93b54c8e
TT
63942020-04-13 Tom Tromey <tom@tromey.com>
6395
6396 * tui/tui-win.c: Include async-event.h.
6397 * remote.c: Include async-event.h.
6398 * remote-notif.c: Include async-event.h.
6399 * record-full.c: Include async-event.h.
6400 * record-btrace.c: Include async-event.h.
6401 * infrun.c: Include async-event.h.
6402 * event-top.c: Include async-event.h.
6403 * event-loop.h: Move some declarations to async-event.h.
6404 * event-loop.c: Don't include ser-event.h or top.h. Move some
6405 code to async-event.c.
6406 * async-event.h: New file.
6407 * async-event.c: New file.
6408 * Makefile.in (COMMON_SFILES): Add async-event.c.
6409 (HFILES_NO_SRCDIR): Add async-event.h.
6410
c1cd3163
TT
64112020-04-13 Tom Tromey <tom@tromey.com>
6412
6413 * utils.c (flush_streams): New function.
6414 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6415
29f2bf4f
TT
64162020-04-13 Tom Tromey <tom@tromey.com>
6417
6418 * event-loop.c (handle_file_event): Use warning, not
6419 printf_unfiltered.
6420
98029d02
TT
64212020-04-13 Tom Tromey <tom@tromey.com>
6422
6423 * event-loop.c: Include <chrono>.
6424
06cc9596
TT
64252020-04-13 Tom Tromey <tom@tromey.com>
6426
6427 * gdb_select.h: Move to ../gdbsupport/.
6428 * event-loop.c: Update include path.
6429 * top.c: Update include path.
6430 * ser-base.c: Update include path.
6431 * ui-file.c: Update include path.
6432 * ser-tcp.c: Update include path.
6433 * guile/scm-ports.c: Update include path.
6434 * posix-hdep.c: Update include path.
6435 * ser-unix.c: Update include path.
6436 * gdb_usleep.c: Update include path.
6437 * mingw-hdep.c: Update include path.
6438 * inflow.c: Update include path.
6439 * infrun.c: Update include path.
6440 * event-top.c: Update include path.
6441
8ae8e197
TT
64422020-04-13 Tom Tromey <tom@tromey.com>
6443
6444 * configure: Rebuild.
6445 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6446
58cf28e8
TT
64472020-04-13 Tom Tromey <tom@tromey.com>
6448
6449 * event-loop.h (start_event_loop): Don't declare.
6450 * event-loop.c (start_event_loop): Move...
6451 * main.c (start_event_loop): ...here. Now static.
6452
b7f999ae
SDJ
64532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6454
6455 * MAINTAINERS: Update my email address.
6456
1085dfd4
KR
64572020-04-12 Kamil Rytarowski <n54@gmx.com>
6458
6459 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6460 IP_ALL.
6461
49d1d1f5
KR
64622020-04-12 Kamil Rytarowski <n54@gmx.com>
6463
6464 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6465 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6466
b4848d2a
KR
64672020-04-12 Kamil Rytarowski <n54@gmx.com>
6468
6469 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6470 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6471
51c133d5
KR
64722020-04-12 Kamil Rytarowski <n54@gmx.com>
6473
6474 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6475
54b8cbd0
KR
64762020-04-11 Kamil Rytarowski <n54@gmx.com>
6477
6478 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6479 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6480 (nbsd_nat_target::info_proc): New functions.
6481 * nbsd-nat.c (kinfo_get_vmmap): New function.
6482 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6483 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6484 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6485 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6486 functions.
6487 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6488 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6489 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6490 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6491 (KINFO_VME_FLAG_GROWS_DOWN): New.
6492
cf83625d
AS
64932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6494
6495 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6496 bit shift.
6497
0c4311ab
TT
64982020-04-10 Tom Tromey <tromey@adacore.com>
6499
6500 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6501
3e65b3e9
TT
65022020-04-10 Tom Tromey <tromey@adacore.com>
6503
6504 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6505 separate debug files.
6506
13302e95
HD
65072020-04-10 Hannes Domani <ssbssa@yahoo.de>
6508
6509 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6510 Move to...
6511 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6512 ... here.
6513 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6514 Check for STATUS_WX86_BREAKPOINT.
6515 (windows_nat_target::wait): Same.
6516
bdfc1e8a
TV
65172020-04-10 Tom de Vries <tdevries@suse.de>
6518
6519 PR cli/25808
6520 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6521
f4460aec
SM
65222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6525 (Write After Approval): Remove Tom de Vries.
6526
a25198bb
BE
65272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6528
6529 revert partially:
6530 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6531
aac66a4c
SM
6532 * buildsym.c (record_line): Fix undefined behavior and preserve
6533 lines at eof.
a25198bb 6534
206c98a6
KR
65352020-04-09 Kamil Rytarowski <n54@gmx.com>
6536
6537 * auxv.h (svr4_auxv_parse): New.
6538 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6539 and generic_auxv_parse.
6540 (svr4_auxv_parse): Add.
6541 * obsd-tdep.c: Include "auxv.h".
6542 (obsd_auxv_parse): Remove.
6543 (obsd_init_abi): Remove comment.
6544 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6545 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6546 * nbsd-tdep.c: Include "auxv.h".
6547 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6548
71fbdbaf
TT
65492020-04-08 Tom Tromey <tromey@adacore.com>
6550
6551 * nat/windows-nat.h (last_wait_event): Don't declare.
6552 (wait_for_debug_event): Update comment.
6553 * nat/windows-nat.c (last_wait_event): Now static.
6554
2c1d95e8
TT
65552020-04-08 Tom Tromey <tromey@adacore.com>
6556
6557 * windows-nat.c (wait_for_debug_event): Move to
6558 nat/windows-nat.c.
6559 * nat/windows-nat.h (wait_for_debug_event): Declare.
6560 * nat/windows-nat.c (wait_for_debug_event): Move from
6561 windows-nat.c. No longer static.
6562
d2977bc4
TT
65632020-04-08 Tom Tromey <tromey@adacore.com>
6564
6565 * windows-nat.c (get_windows_debug_event): Use
6566 fetch_pending_stop.
6567 * nat/windows-nat.h (fetch_pending_stop): Declare.
6568 * nat/windows-nat.c (fetch_pending_stop): New function.
6569
e758e19c
TT
65702020-04-08 Tom Tromey <tromey@adacore.com>
6571
6572 * windows-nat.c (windows_continue): Use matching_pending_stop and
6573 continue_last_debug_event.
6574 * nat/windows-nat.h (matching_pending_stop)
6575 (continue_last_debug_event): Declare.
6576 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6577 (matching_pending_stop, continue_last_debug_event): New
6578 functions.
6579
8d30e395
TT
65802020-04-08 Tom Tromey <tromey@adacore.com>
6581
6582 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6583 (handle_exception_result): Move to nat/windows-nat.h.
6584 (DEBUG_EXCEPTION_SIMPLE): Remove.
6585 (windows_nat::handle_ms_vc_exception): New function.
6586 (handle_exception): Move to nat/windows-nat.c.
6587 (get_windows_debug_event): Update.
6588 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6589 nat/windows-nat.c.
6590 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6591 (handle_exception_result): Move from windows-nat.c.
6592 (handle_exception): Declare.
6593 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6594 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6595 windows-nat.c.
6596
29de418d
TT
65972020-04-08 Tom Tromey <tromey@adacore.com>
6598
6599 * windows-nat.c (exception_count, event_count): Remove.
6600 (handle_exception, get_windows_debug_event)
6601 (do_initial_windows_stuff): Update.
6602
a816ba18
TT
66032020-04-08 Tom Tromey <tromey@adacore.com>
6604
6605 * windows-nat.c (windows_nat::handle_load_dll)
6606 (windows_nat::handle_unload_dll): Rename. No longer static.
6607 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6608 Declare.
6609
a00caa12
TT
66102020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * complaints.h (stop_whining): Declare at top-level.
6613 (complaint): Don't declare stop_whining.
6614
d41b524f
TT
66152020-04-08 Tom Tromey <tromey@adacore.com>
6616
6617 * windows-nat.c (windows_nat::handle_output_debug_string):
6618 Rename. No longer static.
6619 * nat/windows-nat.h (handle_output_debug_string): Declare.
6620
3c76026d
TT
66212020-04-08 Tom Tromey <tromey@adacore.com>
6622
6623 * windows-nat.c (current_process_handle, current_process_id)
6624 (main_thread_id, last_sig, current_event, last_wait_event)
6625 (current_windows_thread, desired_stop_thread_id, pending_stops)
6626 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6627 (display_selectors, fake_create_process)
6628 (get_windows_debug_event): Update.
6629 * nat/windows-nat.h (current_process_handle, current_process_id)
6630 (main_thread_id, last_sig, current_event, last_wait_event)
6631 (current_windows_thread, desired_stop_thread_id, pending_stops)
6632 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6633 * nat/windows-nat.c (current_process_handle, current_process_id)
6634 (main_thread_id, last_sig, current_event, last_wait_event)
6635 (current_windows_thread, desired_stop_thread_id, pending_stops)
6636 (siginfo_er): New globals. Move from windows-nat.c.
6637
9d8679cc
TT
66382020-04-08 Tom Tromey <tromey@adacore.com>
6639
6640 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6641 (handle_load_dll): Update.
6642 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6643
28688adf
TT
66442020-04-08 Tom Tromey <tromey@adacore.com>
6645
6646 * windows-nat.c (enum thread_disposition_type): Move to
6647 nat/windows-nat.h.
6648 (windows_nat::thread_rec): Rename from thread_rec. No longer
6649 static.
6650 (windows_add_thread, windows_nat_target::fetch_registers)
6651 (windows_nat_target::store_registers, handle_exception)
6652 (windows_nat_target::resume, get_windows_debug_event)
6653 (windows_nat_target::get_tib_address)
6654 (windows_nat_target::thread_name)
6655 (windows_nat_target::thread_alive): Update.
6656 * nat/windows-nat.h (enum thread_disposition_type): Move from
6657 windows-nat.c.
6658 (thread_rec): Declare.
6659
4834dad0
TT
66602020-04-08 Tom Tromey <tromey@adacore.com>
6661
6662 * windows-nat.c: Add "using namespace".
6663 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6664 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6665
65bafd5b
TT
66662020-04-08 Tom Tromey <tromey@adacore.com>
6667
6668 * nat/windows-nat.h (struct windows_thread_info): Declare
6669 destructor.
6670 * nat/windows-nat.c (~windows_thread_info): New.
6671
0a4afda3
TT
66722020-04-08 Tom Tromey <tromey@adacore.com>
6673
6674 PR gdb/22992
6675 * windows-nat.c (current_event): Update comment.
6676 (last_wait_event, desired_stop_thread_id): New globals.
6677 (struct pending_stop): New.
6678 (pending_stops): New global.
6679 (windows_nat_target) <stopped_by_sw_breakpoint>
6680 <supports_stopped_by_sw_breakpoint>: New methods.
6681 (windows_fetch_one_register): Add assertions. Adjust PC.
6682 (windows_continue): Handle pending stops. Suspend other threads
6683 when stepping. Use last_wait_event
6684 (wait_for_debug_event): New function.
6685 (get_windows_debug_event): Use wait_for_debug_event. Handle
6686 pending stops. Queue spurious stops.
6687 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6688 (windows_nat_target::kill): Use wait_for_debug_event.
6689 * nat/windows-nat.h (struct windows_thread_info)
6690 <stopped_at_software_breakpoint>: New field.
6691 * nat/windows-nat.c (windows_thread_info::resume): Clear
6692 stopped_at_software_breakpoint.
6693
8e61ebec
TT
66942020-04-08 Tom Tromey <tromey@adacore.com>
6695
6696 * windows-nat.c (enum thread_disposition_type): New.
6697 (thread_rec): Replace "get_context" parameter with "disposition";
6698 change type.
6699 (windows_add_thread, windows_nat_target::fetch_registers)
6700 (windows_nat_target::store_registers, handle_exception)
6701 (windows_nat_target::resume, get_windows_debug_event)
6702 (windows_nat_target::get_tib_address)
6703 (windows_nat_target::thread_name)
6704 (windows_nat_target::thread_alive): Update.
6705
98a03287
TT
67062020-04-08 Tom Tromey <tromey@adacore.com>
6707
6708 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6709 (windows_continue): Use windows_continue::resume.
6710 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6711 resume>: Declare new methods.
6712 * nat/windows-nat.c: New file.
6713 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6714
7c7411bc
TT
67152020-04-08 Tom Tromey <tromey@adacore.com>
6716
6717 * windows-nat.c (windows_add_thread, windows_delete_thread)
6718 (windows_nat_target::fetch_registers)
6719 (windows_nat_target::store_registers, fake_create_process)
6720 (windows_nat_target::resume, windows_nat_target::resume)
6721 (get_windows_debug_event, windows_nat_target::wait)
6722 (windows_nat_target::pid_to_str)
6723 (windows_nat_target::get_tib_address)
6724 (windows_nat_target::get_ada_task_ptid)
6725 (windows_nat_target::thread_name)
6726 (windows_nat_target::thread_alive): Use lwp, not tid.
6727
2950fdf7
TT
67282020-04-08 Tom Tromey <tromey@adacore.com>
6729
6730 * windows-nat.c (handle_exception)
6731 (windows_nat_target::thread_name): Update.
6732 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6733 <name>: Now unique_xmalloc_ptr.
6734
62fe396b
TT
67352020-04-08 Tom Tromey <tromey@adacore.com>
6736
6737 * windows-nat.c (thread_rec)
6738 (windows_nat_target::fetch_registers): Update.
6739 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6740 Update comment.
6741 <debug_registers_changed, reload_context>: Now bool.
6742
e9534bd2
TT
67432020-04-08 Tom Tromey <tromey@adacore.com>
6744
6745 * windows-nat.c (windows_add_thread): Use new.
6746 (windows_init_thread_list, windows_delete_thread): Use delete.
6747 (get_windows_debug_event): Update.
6748 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6749 destructor, and initializers.
6750
ae1f8880
TT
67512020-04-08 Tom Tromey <tromey@adacore.com>
6752
6753 * windows-nat.c (struct windows_thread_info): Remove.
6754 * nat/windows-nat.h: New file.
6755
55a1e039
TT
67562020-04-08 Tom Tromey <tromey@adacore.com>
6757
6758 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6759 (thread_rec, windows_add_thread, windows_delete_thread)
6760 (windows_continue): Update.
6761
93366324
TT
67622020-04-08 Tom Tromey <tromey@adacore.com>
6763
6764 * windows-nat.c (struct windows_thread_info): Remove typedef.
6765 (thread_head): Remove.
6766 (thread_list): New global.
6767 (thread_rec, windows_add_thread, windows_init_thread_list)
6768 (windows_delete_thread, windows_continue): Update.
6769
0f2265e2
SM
67702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * windows-tdep.h (windows_init_abi): Add comment.
6773 (cygwin_init_abi): New declaration.
6774 * windows-tdep.c: Split signal enumeration in two, one for
6775 Windows and one for Cygwin.
6776 (windows_gdb_signal_to_target): Only deal with signal of the
6777 Windows OS ABI.
6778 (cygwin_gdb_signal_to_target): New function.
6779 (windows_init_abi): Rename to windows_init_abi_common, don't set
6780 gdb_signal_to_target gdbarch method. Add new new function with
6781 this name.
6782 (cygwin_init_abi): New function.
6783 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6784 comment. Don't call windows_init_abi.
6785 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6786 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6787 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6788 i386_windows_init_abi_common, don't call windows_init_abi. Add
6789 a new function of this name.
6790 (i386_cygwin_init_abi): New function.
6791 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6792 OS ABI Cygwin.
6793
3810f182
SM
67942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6797 parameter.c.
6798 (dwarf2_read_gdb_index): Update.
6799
063f8e80
KR
68002020-04-07 Kamil Rytarowski <n54@gmx.com>
6801
6802 * nbsd-tdep.c: Include "objfiles.h".
6803 (nbsd_skip_solib_resolver): New.
6804 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6805
85a9510c 68062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6807
6808 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6809 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6810 with DW_LLE_base_addressx are being emitted in DWARFv5.
6811 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6812 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6813 unsigned integer.
6814
9fc3eaae 68152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6816
6817 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6818 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6819 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6820 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6821 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6822 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6823 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6824
6825
41144253 68262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6827
6828 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6829 (read_loclist_index): New function definition.
6830 (lookup_loclist_base): New function definition.
6831 (read_loclist_header): New function definition.
6832 (dwarf2_cu): Add loclist_base and loclist_header field.
6833 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6834 (read_full_die_1): Read the value of DW_AT_loclists_base.
6835 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6836 (read_attribute_value): Handle DW_FORM_loclistx.
6837 (skip_one_die): Handle DW_FORM_loclistx.
6838 (loclist_header): New structure declaration.
6839 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6840
9f4e76a4
SM
68412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6844 constructor. Remove `addr` parameter from other constructor and
6845 add `per_cu` parameter.
6846 * dwarf2/read.c (create_partial_symtab): Update.
6847
25c11aca
TV
68482020-04-07 Tom de Vries <tdevries@suse.de>
6849
6850 PR symtab/25796
6851 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6852 (partial_die_info::fixup): Inherit has_const_value.
6853
5707e24b
TV
68542020-04-07 Tom de Vries <tdevries@suse.de>
6855
6856 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6857 symbols without address.
6858
05f00e22
KR
68592020-04-06 Kamil Rytarowski <n54@gmx.com>
6860
6861 * nbsd-nat.h (struct thread_info): Add forward declaration.
6862 (nbsd_nat_target::thread_alive): Add.
6863 (nbsd_nat_target::thread_name): Likewise.
6864 (nbsd_nat_target::update_thread_list): Likewise.
6865 (update_thread_list::post_attach): Likewise.
6866 (post_attach::pid_to_str): Likewise.
6867 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6868 (nbsd_thread_lister): Add.
6869 (nbsd_nat_target::thread_alive): Likewise.
6870 (nbsd_nat_target::thread_name): Likewise.
6871 (nbsd_add_threads): Likewise.
6872 (update_thread_list::post_attach): Likewise.
6873 (nbsd_nat_target::update_thread_list): Likewise.
6874 (post_attach::pid_to_str): Likewise.
6875
6ee448cc
TT
68762020-04-06 Tom Tromey <tromey@adacore.com>
6877
6878 * ada-valprint.c (print_variant_part): Extract the variant field.
6879 (print_field_values): Use the field as the outer value when
6880 recursing.
6881
dea34e8c
TT
68822020-04-06 Tom Tromey <tromey@adacore.com>
6883
6884 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6885 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6886 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6887 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6888 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6889
93689ce9
TT
68902020-04-06 Tom Tromey <tromey@adacore.com>
6891
6892 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6893 TYPE_CODE_ERROR.
6894
79743962
KR
68952020-04-06 Kamil Rytarowski <n54@gmx.com>
6896
6897 * nbsd-tdep.c: Include "gdbarch.h".
6898 Define enum with NetBSD signal numbers.
6899 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6900 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6901 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6902 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6903 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6904 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6905 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6906 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6907 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6908 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6909 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6910 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6911
9e7c9a03
HD
69122020-04-03 Hannes Domani <ssbssa@yahoo.de>
6913
6914 PR gdb/25325
6915 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6916
d9e49b61
TT
69172020-04-03 Tom Tromey <tromey@adacore.com>
6918
6919 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6920 Read constant block.
6921
e0fc5c3f
SM
69222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6923
6924 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6925 (gdb_bfd_get_full_section_contents): New declaration.
6926 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6927 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6928 gdb_bfd_get_full_section_contents.
6929
e2ff18a0
SM
69302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6931
6932 * exec.c (build_section_table): Replace internal_error with
6933 gdb_assert.
6934 (section_table_xfer_memory_partial): Likewise.
6935 * mdebugread.c (parse_partial_symbols): Likewise.
6936 * psymtab.c (lookup_partial_symbol): Likewise.
6937 * utils.c (wrap_here): Likewise.
6938
0830d301
TT
69392020-04-02 Tom Tromey <tromey@adacore.com>
6940
6941 * f-lang.c (build_fortran_types): Use arch_type to initialize
6942 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6943
e7da7f8f
TT
69442020-04-02 Tom Tromey <tromey@adacore.com>
6945
6946 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6947 of attributes.
6948
c90d28ac
AB
69492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6950 Bernd Edlinger <bernd.edlinger@hotmail.de>
6951 Tom Tromey <tromey@adacore.com>
6952
6953 * buildsym.c (buildsym_compunit::record_line): Remove
6954 deduplication code.
6955
1aa98955
TV
69562020-04-02 Tom de Vries <tdevries@suse.de>
6957
6958 PR ada/24671
6959 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6960
d3214198
TV
69612020-04-02 Tom de Vries <tdevries@suse.de>
6962
6963 * dwarf2/read.c (dwarf2_gdb_index_functions,
6964 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6965 NULL.
6966 * psymtab.c (psym_lookup_global_symbol_language): New function.
6967 (psym_functions): Init psym_lookup_global_symbol_language with
6968 psym_lookup_global_symbol_language.
6969 * symfile-debug.c (debug_sym_quick_functions): Init
6970 lookup_global_symbol_language with NULL.
6971 * symfile.c (set_initial_language): Remove fixme comment.
6972 * symfile.h (struct quick_symbol_functions): Add
6973 lookup_global_symbol_language.
6974 * symtab.c (find_quick_global_symbol_language): New function.
6975 (find_main_name): Use find_quick_global_symbol_language.
6976
2836752f
SM
69772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6978
6979 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6980
64dc2d4b
BE
69812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6982
6983 * buildsym.c (record_line): Fix undefined behavior and preserve
6984 lines at eof.
6985
bbe3dc41
BE
69862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6987
6988 * buildsym.c (record_line): Fix the resizing condition.
6989
6b4a335b
TT
69902020-04-01 Tom Tromey <tom@tromey.com>
6991
6992 * value.h (value_literal_complex): Add comment.
6993 * valops.c (value_literal_complex): Refer to value.h.
6994
3638a098
TT
69952020-04-01 Tom Tromey <tom@tromey.com>
6996
6997 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6998 (scalar_type): New rule, from typebase.
6999 (typebase): Use scalar_type. Recognize complex types.
7000 (field_name): Handle FLOAT_KEYWORD.
7001 (ident_tokens): Add _Complex and __complex__.
7002
c34e8714
TT
70032020-04-01 Tom Tromey <tom@tromey.com>
7004
7005 PR exp/25299:
7006 * valarith.c (promotion_type, complex_binop): New functions.
7007 (scalar_binop): Handle complex numbers. Use promotion_type.
7008 (value_pos, value_neg, value_complement): Handle complex numbers.
7009
fa649bb7
TT
70102020-04-01 Tom Tromey <tom@tromey.com>
7011
7012 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7013 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7014 (parse_number): Handle complex numbers.
7015
981c08ce
TT
70162020-04-01 Tom Tromey <tom@tromey.com>
7017
7018 * c-valprint.c (c_decorations): Change complex suffix to "i".
7019
4c99290d
TT
70202020-04-01 Tom Tromey <tom@tromey.com>
7021
7022 * valprint.c (generic_value_print_complex): Use accessors.
7023 * value.h (value_real_part, value_imaginary_part): Declare.
7024 * valops.c (value_real_part, value_imaginary_part): New
7025 functions.
7026 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7027
5b930b45
TT
70282020-04-01 Tom Tromey <tom@tromey.com>
7029
7030 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7031 (read_range_type): Update.
7032 * mdebugread.c (basic_type): Update.
7033 * go-lang.c (build_go_types): Use init_complex_type.
7034 * gdbtypes.h (struct main_type) <complex_type>: New member.
7035 (init_complex_type): Update.
7036 (arch_complex_type): Don't declare.
7037 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7038 Make name if none given. Use alloc_type_copy. Look for cached
7039 complex type.
7040 (arch_complex_type): Remove.
7041 (gdbtypes_post_init): Use init_complex_type.
7042 * f-lang.c (build_fortran_types): Use init_complex_type.
7043 * dwarf2/read.c (read_base_type): Update.
7044 * d-lang.c (build_d_types): Use init_complex_type.
7045 * ctfread.c (read_base_type): Update.
7046
53cccef1
TBA
70472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7048
7049 * infrun.c (stop_all_threads): Update assertion, plus when
7050 stopping threads, take into account that we might be trying
7051 to stop an all-stop target.
7052 (stop_waiting): Call 'stop_all_threads' if there exists a
7053 non-stop target.
7054
a0714d30
TBA
70552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7056
7057 * target.h (exists_non_stop_target): New function declaration.
7058 * target.c (exists_non_stop_target): New function.
7059
60e22c1e
HD
70602020-04-01 Hannes Domani <ssbssa@yahoo.de>
7061
7062 PR gdb/24789
7063 * eval.c (is_integral_or_integral_reference): New function.
7064 (evaluate_subexp_standard): Allow integer references in
7065 pointer arithmetic.
7066
e139a727
TBA
70672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7068
7069 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7070 check for no ptid in the stop reply when the target is non-stop.
7071
e0802d59
TT
70722020-04-01 Tom Tromey <tromey@adacore.com>
7073
7074 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7075 "name" parameter to rvalue reference. Initialize m_name_holder.
7076 <lookup_name_info>: New overloads.
7077 <name>: Return gdb::string_view.
7078 <c_str>: New method.
7079 <make_ignore_params>: Update.
7080 <search_name_hash>: Update.
7081 <language_lookup_name>: Return const char *.
7082 <m_name>: Change type.
7083 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7084 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7085 (lookup_name_info::match_any): Update.
7086 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7087 Update.
7088 * minsyms.c (linkage_name_str): Update.
7089 * language.c (default_symbol_name_matcher): Update.
7090 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7091 Update.
7092 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7093 (ada_lookup_name_info::ada_lookup_name_info): Update.
7094 (literal_symbol_name_matcher): Update.
7095
8c072cb6
TT
70962020-04-01 Tom Tromey <tromey@adacore.com>
7097
7098 * psymtab.c (psymtab_search_name): Remove function.
7099 (psym_lookup_symbol): Create search name and lookup name here.
7100 (lookup_partial_symbol): Remove "name" parameter; add
7101 lookup_name.
7102 (psym_expand_symtabs_for_function): Update.
7103
6f29a534
TT
71042020-03-31 Joel Jones <joelkevinjones@gmail.com>
7105
7106 PR tui/25597:
7107 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7108
af62665e
TT
71092020-03-31 Tom Tromey <tromey@adacore.com>
7110
7111 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7112 memcpy.
7113
d1a89da5
NC
71142020-03-30 Nelson Chu <nelson.chu@sifive.com>
7115
7116 * features/riscv/32bit-csr.xml: Regenerated.
7117 * features/riscv/64bit-csr.xml: Regenerated.
7118
d8af9068
TT
71192020-03-30 Tom Tromey <tromey@adacore.com>
7120
7121 * ada-valprint.c (print_variant_part): Update.
7122 * ada-lang.h (ada_which_variant_applies): Update.
7123 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7124 outer_valaddr parameters; replace with "outer" value parameter.
7125 (to_fixed_variant_branch_type): Update.
7126
227c0bf4
PFC
71272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7128
7129 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7130 <list>. Remove inclusion of observable.h.
7131 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7132 (struct arch_lwp_info): New struct.
7133 (class ppc_linux_dreg_interface): New class.
7134 (struct ppc_linux_process_info): New struct.
7135 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7136 <low_new_clone, low_forget_process, low_prepare_to_resume>
7137 <copy_thread_dreg_state, mark_thread_stale>
7138 <mark_debug_registers_changed, register_hw_breakpoint>
7139 <clear_hw_breakpoint, register_wp, clear_wp>
7140 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7141 <num_memory_accesses, get_trigger_type>
7142 <create_watchpoint_request, hwdebug_point_cmp>
7143 <init_arch_lwp_info, get_arch_lwp_info>
7144 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7145 methods.
7146 <struct ptid_hash>: New inner struct.
7147 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7148 members.
7149 (saved_dabr_value, hwdebug_info, max_slots_number)
7150 (struct hw_break_tuple, struct thread_points, ppc_threads)
7151 (have_ptrace_hwdebug_interface)
7152 (hwdebug_find_thread_points_by_tid)
7153 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7154 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7155 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7156 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7157 use m_dreg_interface.
7158 (hwdebug_point_cmp): Change to...
7159 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7160 reference arguments instead of pointers.
7161 (ppc_linux_nat_target::ranged_break_num_registers): Use
7162 m_dreg_interface.
7163 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7164 m_dreg_interface. Call register_hw_breakpoint.
7165 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7166 m_dreg_interface. Call clear_hw_breakpoint.
7167 (get_trigger_type): Change to...
7168 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7169 comment.
7170 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7171 use m_dreg_interface. Call register_hw_breakpoint.
7172 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7173 use m_dreg_interface. Call clear_hw_breakpoint.
7174 (can_use_watchpoint_cond_accel): Change to...
7175 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7176 method. Update comment, use m_dreg_interface and
7177 m_process_info.
7178 (calculate_dvc): Change to...
7179 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7180 m_dreg_interface.
7181 (num_memory_accesses): Change to...
7182 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7183 (check_condition): Change to...
7184 (ppc_linux_nat_target::check_condition): ...this method.
7185 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7186 comment, use m_dreg_interface.
7187 (create_watchpoint_request): Change to...
7188 (ppc_linux_nat_target::create_watchpoint_request): ...this
7189 method. Use m_dreg_interface.
7190 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7191 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7192 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7193 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7194 (ppc_linux_nat_target::low_forget_process)
7195 (ppc_linux_nat_target::low_new_fork)
7196 (ppc_linux_nat_target::low_new_clone)
7197 (ppc_linux_nat_target::low_delete_thread)
7198 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7199 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7200 only call mark_thread_stale.
7201 (ppc_linux_thread_exit): Remove.
7202 (ppc_linux_nat_target::stopped_data_address): Change to...
7203 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7204 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7205 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7206 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7207 comment. Call low_stopped_data_address.
7208 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7209 m_dreg_interface.
7210 (ppc_linux_nat_target::masked_watch_num_registers): Use
7211 m_dreg_interface.
7212 (ppc_linux_nat_target::copy_thread_dreg_state)
7213 (ppc_linux_nat_target::mark_thread_stale)
7214 (ppc_linux_nat_target::mark_debug_registers_changed)
7215 (ppc_linux_nat_target::register_hw_breakpoint)
7216 (ppc_linux_nat_target::clear_hw_breakpoint)
7217 (ppc_linux_nat_target::register_wp)
7218 (ppc_linux_nat_target::clear_wp)
7219 (ppc_linux_nat_target::init_arch_lwp_info)
7220 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7221 (_initialize_ppc_linux_nat): Remove observer callback.
7222
4db10d8f
PFC
72232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7224
7225 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7226 (ppc_linux_nat_target::auxv_parse)
7227 (ppc_linux_nat_target::read_description)
7228 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7229 Move up.
7230
1310c1b0
PFC
72312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7232
7233 * linux-nat.h (low_new_clone): New method.
7234 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7235
69b037c3
SM
72362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7237
7238 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7239 (dbx_expand_psymtab): ... this.
7240 (start_psymtab): Update.
7241 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7242 (mdebug_expand_psymtab): ... this.
7243 (parse_partial_symbols): Update.
7244 (new_psymtab): Update.
7245 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7246 (xcoff_expand_psymtab): ... this.
7247 (xcoff_start_psymtab): Update.
7248
48993951
SM
72492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7250
7251 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7252 <expand_dependencies>: ... this.
7253 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7254 (partial_symtab::expand_dependencies): ... this.
7255 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7256 Update.
7257 (dwarf2_psymtab::expand_psymtab): Update.
7258 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7259 * mdebugread.c (psymtab_to_symtab_1): Update.
7260 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7261
3ad83046
SM
72622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7263
7264 * psympriv.h (discard_psymtab): Remove.
7265 * dbxread.c (dbx_end_psymtab): Update.
7266 * xcoffread.c (xcoff_end_psymtab): Update.
7267
4d1b9ab6
TT
72682020-03-28 Tom Tromey <tom@tromey.com>
7269
7270 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7271 comment.
7272
f1749218
TT
72732020-03-28 Tom Tromey <tom@tromey.com>
7274
7275 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7276
ebea7626
HD
72772020-03-27 Hannes Domani <ssbssa@yahoo.de>
7278
7279 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7280
a879b4d5
JB
72812020-03-26 John Baldwin <jhb@FreeBSD.org>
7282
7283 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7284
0826b30a
TT
72852020-03-26 Tom Tromey <tom@tromey.com>
7286
7287 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7288 (mark_common_block_symbol_computed, read_tag_string_type)
7289 (attr_to_dynamic_prop, read_subrange_type): Update.
7290 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7291 to be methods on struct attribute.
7292 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7293 (read_call_site_scope, partial_die_info::read)
7294 (partial_die_info::read, lookup_die_type, follow_die_ref):
7295 Update.
7296 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7297 from dwarf2_get_ref_die_offset.
7298 (attribute::constant_value): New method, from
7299 dwarf2_get_attr_constant_value.
7300 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7301 Declare method.
7302 <constant_value>: New method.
7303
2b2558bf
TT
73042020-03-26 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7307 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7308 (dwarf_type_encoding_name): Move to stringify.c.
7309 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7310 * dwarf2/stringify.c: New file.
7311 * dwarf2/stringify.h: New file.
7312
eeb64781
TT
73132020-03-26 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7316 Rewrite.
7317
a39fdb41
TT
73182020-03-26 Tom Tromey <tom@tromey.com>
7319
7320 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7321 methods.
7322 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7323 (lookup_ranges_base): Likewise.
7324 (read_cutu_die_from_dwo, read_full_die_1): Update.
7325
436c571c
TT
73262020-03-26 Tom Tromey <tom@tromey.com>
7327
7328 * dwarf2/read.c (read_import_statement, read_file_scope)
7329 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7330 (read_lexical_block_scope, read_call_site_scope)
7331 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7332 (handle_struct_member_die, process_structure_scope)
7333 (update_enumeration_type_from_children)
7334 (process_enumeration_scope, read_array_type, read_common_block)
7335 (read_namespace, read_module, read_subroutine_type): Update.
7336 (sibling_die): Remove.
7337
052c8bb8
TT
73382020-03-26 Tom Tromey <tom@tromey.com>
7339
7340 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7341 (build_type_psymtabs_reader, read_structure_type)
7342 (read_enumeration_type, read_full_die_1): Update.
7343 (dwarf2_attr_no_follow): Move to die.h.
7344 * dwarf2/die.h (struct die_info) <attr>: New method.
7345
2b24b6e4
TT
73462020-03-26 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7349 <base_address>: Now an optional.
7350 (dwarf2_find_base_address, dwarf2_rnglists_process)
7351 (dwarf2_ranges_process, fill_in_loclist_baton)
7352 (dwarf2_symbol_mark_computed): Update.
7353
c2d50fd0
TT
73542020-03-26 Tom Tromey <tom@tromey.com>
7355
7356 * dwarf2/read.c (struct die_info): Move to die.h.
7357 * dwarf2/die.h: New file.
7358
0df7ad3a
TT
73592020-03-26 Tom Tromey <tom@tromey.com>
7360
7361 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7362 * dwarf2/read.c
7363 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7364 Move to line-header.c.
7365 (read_checked_initial_length_and_offset, read_formatted_entries):
7366 Likewise.
7367 (dwarf_decode_line_header): Split into two.
7368 * dwarf2/line-header.c
7369 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7370 Move from read.c.
7371 (read_checked_initial_length_and_offset, read_formatted_entries):
7372 Likewise.
7373 (dwarf_decode_line_header): New function, split from read.c.
7374
86c0bb4c
TT
73752020-03-26 Tom Tromey <tom@tromey.com>
7376
7377 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7378 Declare method.
7379 * dwarf2/read.c (read_attribute_value): Update.
7380 (dwarf2_per_objfile::read_line_string): Rename from
7381 read_indirect_line_string.
7382 (read_formatted_entries): Update.
7383
2ef46c2f
TT
73842020-03-26 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7387 variable.
7388
4f9c1eda
TT
73892020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7392 const.
7393 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7394 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7395 parameter const.
7396
5a0e026f
TT
73972020-03-26 Tom Tromey <tom@tromey.com>
7398
7399 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7400 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7401 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7402 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7403
8844c11b
TT
74042020-03-26 Tom Tromey <tom@tromey.com>
7405
7406 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7407 file_names_size, file_full_name, file_file_name>: Use const.
7408 <file_name_at, file_names>: Add const overload.
7409 * dwarf2/line-header.c (line_header::file_file_name)
7410 (line_header::file_full_name): Update.
7411
c90ec28a
TT
74122020-03-26 Tom Tromey <tom@tromey.com>
7413
7414 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7415 (macro_start_file, consume_improper_spaces)
7416 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7417 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7418 (dwarf_decode_macros): Move to macro.c.
7419 * dwarf2/macro.c: New file.
7420 * dwarf2/macro.h: New file.
7421 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7422
4f44ae6c
TT
74232020-03-26 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7426 method.
7427 * dwarf2/section.c: New method. From
7428 read_indirect_string_at_offset_from.
7429 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7430 (read_indirect_string_at_offset_from): Move to section.c.
7431 (read_indirect_string_at_offset): Rewrite.
7432 (read_indirect_line_string_at_offset): Remove.
7433 (read_indirect_string, read_indirect_line_string)
7434 (dwarf_decode_macro_bytes): Update.
7435
a0194fa8
TT
74362020-03-26 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2/section.h (struct dwarf2_section_info)
7439 <overload_complaint>: Declare.
7440 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7441 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7442 Rename from dwarf2_section_buffer_overflow_complaint.
7443 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7444 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7445
3d27bbdb
TT
74462020-03-26 Tom Tromey <tom@tromey.com>
7447
7448 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7449 Declare.
7450 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7451 Move from read.c.
7452 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7453 to section.c.
7454
9eac9650
TT
74552020-03-26 Tom Tromey <tom@tromey.com>
7456
7457 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7458
bf80d710
TT
74592020-03-26 Tom Tromey <tom@tromey.com>
7460
7461 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7462 "builder".
7463 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7464 parameter.
7465 (dwarf_decode_macros): Update.
7466
0314b390
TT
74672020-03-26 Tom Tromey <tom@tromey.com>
7468
7469 * dwarf2/read.c (read_attribute_value): Update.
7470 (read_indirect_string_from_dwz): Move to dwz.c; change into
7471 method.
7472 (dwarf_decode_macro_bytes): Update.
7473 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7474 * dwarf2/dwz.c: New file.
7475 * Makefile.in (COMMON_SFILES): Add dwz.c.
7476
9fda78b6
TT
74772020-03-26 Tom Tromey <tom@tromey.com>
7478
7479 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7480 * dwarf2/read.c: Add include.
7481 * dwarf2/index-write.c: Add include.
7482 * dwarf2/index-cache.c: Add include.
7483 * dwarf2/dwz.h: New file.
7484
33aa3c10
TT
74852020-03-25 Tom Tromey <tom@tromey.com>
7486
7487 * compile/compile-object-load.c (get_out_value_type): Mention
7488 correct symbol name in error message.
7489
d503b685
HD
74902020-03-25 Hannes Domani <ssbssa@yahoo.de>
7491
7492 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7493
7b1eff95
TV
74942020-03-25 Tom de Vries <tdevries@suse.de>
7495
7496 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7497 * symmisc.c (dump_symtab_1): Print user and includes fields.
7498 (maintenance_info_symtabs): Same.
7499
dd895392
AB
75002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7501
7502 PR gdb/25534
7503 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7504 (riscv_regcache_cooked_write): New function.
7505 (riscv_push_dummy_call): Use new function.
7506 (riscv_return_value): Likewise.
7507
5ab2fbf1
SM
75082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7509
7510 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7511 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7512 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7513 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7514 * infrun.c (follow_fork): Likewise.
7515 (follow_fork_inferior): Likewise.
7516 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7517 * linux-nat.h (class linux_nat_target): Likewise.
7518 * remote.c (class remote_target) <follow_fork>: Likewise.
7519 (remote_target::follow_fork): Likewise.
7520 * target-delegates.c: Re-generate.
7521 * target.c (default_follow_fork): Likewise.
7522 (target_follow_fork): Likewise.
7523 * target.h (struct target_ops) <follow_fork>: Likewise.
7524 (target_follow_fork): Likewise.
7525
a64fafb5
TV
75262020-03-24 Tom de Vries <tdevries@suse.de>
7527
7528 * psymtab.c (maintenance_info_psymtabs): Print user field.
7529
fe26d3a3
TT
75302020-03-20 Tom Tromey <tromey@adacore.com>
7531
7532 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7533 const.
7534 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7535 const.
7536
c884cc46
SM
75372020-03-20 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * ptrace.m4: Don't check for ptrace declaration.
7540 * config.in: Re-generate.
7541 * configure: Re-generate.
7542 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7543 not defined.
7544
1ff700c2
KR
75452020-03-20 Kamil Rytarowski <n54@gmx.com>
7546
7547 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7548 `PTRACE_TYPE_RET'.
7549 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7550 * sparc-nat.c (gdb_ptrace): Likewise.
7551 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7552
f7d4f0b1
TT
75532020-03-20 Tom Tromey <tromey@adacore.com>
7554
7555 * c-exp.y (lex_one_token): Fix assert.
7556
f67210ff
TT
75572020-03-20 Tom Tromey <tromey@adacore.com>
7558
7559 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7560 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7561 strncpy call.
7562
1773be9e
TT
75632020-03-20 Tom Tromey <tromey@adacore.com>
7564
7565 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7566
70304be9
TT
75672020-03-20 Tom Tromey <tromey@adacore.com>
7568
7569 * ada-valprint.c (print_variant_part): Remove parameters; switch
7570 to value-based API.
7571 (print_field_values): Likewise.
7572 (ada_val_print_struct_union): Likewise.
7573 (ada_value_print_1): Update.
7574
9faa006d
KR
75752020-03-20 Kamil Rytarowski <n54@gmx.com>
7576
7577 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7578 nbsd_nat_target instead of inf_ptrace_target.
7579 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7580 nbsd_nat_target.
7581
4a90f062
KR
75822020-03-20 Kamil Rytarowski <n54@gmx.com>
7583
7584 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7585 it to the ptrace call.
7586 * (store_registers): Likewise.
7587
75882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7589
7590 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7591 it to the ptrace call.
7592 * (store_registers): Likewise.
7593
2d07da27
LM
75942020-03-19 Luis Machado <luis.machado@linaro.org>
7595
7596 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7597 valid, fetch vg value from ptrace.
7598
f09db380
KR
75992020-03-19 Kamil Rytarowski <n54@gmx.com>
7600 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7601 * inf-ptrace.c: Likewise.
7602 * (gdb_ptrace): Add.
7603 * (inf_ptrace_target::resume): Update.
7604 * (inf_ptrace_target::xfer_partial): Likewise.
7605 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7606 * (inf_ptrace_peek_poke): Update.
7607
fcc7376e
KR
76082020-03-19 Kamil Rytarowski <n54@gmx.com>
7609
7610 * x86-bsd-nat.c (gdb_ptrace): New.
7611 * (x86bsd_dr_set): Add new argument `ptid'.
7612 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7613 x86bsd_dr_set_addr): Update.
7614
cada5fc9
AB
76152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * remote.c (remote_target::process_stop_reply): Handle events for
7618 all threads differently.
7619
19a2740f
AB
76202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * completer.c (completion_tracker::remove_completion): Define new
7623 function.
7624 * completer.h (completion_tracker::remove_completion): Declare new
7625 function.
7626 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7627 when adding a C++ function symbol.
7628
724fd9ba
AB
76292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * completer.c (completion_tracker::completion_hash_entry): Define
7632 new class.
7633 (advance_to_filename_complete_word_point): Call
7634 recompute_lowest_common_denominator.
7635 (completion_tracker::completion_tracker): Call discard_completions
7636 to setup the hash table.
7637 (completion_tracker::discard_completions): Allow for being called
7638 from the constructor, pass new equal function, and element deleter
7639 when constructing the hash table. Initialise new class member
7640 variables.
7641 (completion_tracker::maybe_add_completion): Remove use of
7642 m_entries_vec, and store more information into m_entries_hash.
7643 (completion_tracker::recompute_lcd_visitor): New function, most
7644 content taken from...
7645 (completion_tracker::recompute_lowest_common_denominator):
7646 ...here, this now just visits each item in the hash calling the
7647 above visitor.
7648 (completion_tracker::build_completion_result): Remove use of
7649 m_entries_vec, call recompute_lowest_common_denominator.
7650 * completer.h (completion_tracker::have_completions): Remove use
7651 of m_entries_vec.
7652 (completion_tracker::completion_hash_entry): Declare new class.
7653 (completion_tracker::recompute_lowest_common_denominator): Change
7654 function signature.
7655 (completion_tracker::recompute_lcd_visitor): Declare new function.
7656 (completion_tracker::m_entries_vec): Delete.
7657 (completion_tracker::m_entries_hash): Initialize to NULL.
7658 (completion_tracker::m_lowest_common_denominator_valid): New
7659 member variable.
7660 (completion_tracker::m_lowest_common_denominator_max_length): New
7661 member variable.
7662
5a82b8a1
KR
76632020-03-17 Kamil Rytarowski <n54@gmx.com>
7664
7665 * regformats/regdef.h: Put reg in gdb namespace.
7666
fb516a69
KR
76672020-03-17 Kamil Rytarowski <n54@gmx.com>
7668
7669 * i386-bsd-nat.c (gdb_ptrace): New.
7670 * (i386bsd_fetch_inferior_registers,
7671 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7672 * (i386bsd_fetch_inferior_registers,
7673 i386bsd_store_inferior_registers) Use gdb_ptrace.
7674
1c0aa1fb
KR
76752020-03-17 Kamil Rytarowski <n54@gmx.com>
7676
7677 * amd64-bsd-nat.c (gdb_ptrace): New.
7678 * (amd64bsd_fetch_inferior_registers,
7679 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7680 * (amd64bsd_fetch_inferior_registers,
7681 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7682
5ccd2fb7
KR
76832020-03-17 Kamil Rytarowski <n54@gmx.com>
7684
7685 * user-regs.c (user_reg::read): Rename to...
7686 (user_reg::xread): ...this.
7687 * (append_user_reg): Rename argument `read' to `xread'.
7688 * (user_reg_add_builtin): Likewise.
7689 * (user_reg_add): Likewise.
7690 * (value_of_user_reg): Likewise.
7691
2108a63a
KR
76922020-03-17 Kamil Rytarowski <n54@gmx.com>
7693
7694 * sparc-nat.c (gdb_ptrace): New.
7695 * sparc-nat.c (sparc_fetch_inferior_registers)
7696 (sparc_store_inferior_registers) Remove obsolete comment.
7697 * sparc-nat.c (sparc_fetch_inferior_registers)
7698 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7699 * sparc-nat.c (sparc_fetch_inferior_registers)
7700 (sparc_store_inferior_registers) Use gdb_ptrace.
7701
a225c9a8
KR
77022020-03-17 Kamil Rytarowski <n54@gmx.com>
7703
7704 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7705 it to the ptrace call.
7706 * sh-nbsd-nat.c (store_registers): Likewise.
7707
98097623
KR
77082020-03-17 Kamil Rytarowski <n54@gmx.com>
7709
7710 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7711 nbsd_nat_target instead of inf_ptrace_target.
7712 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7713 nbsd_nat_target.
7714
9e38d619
KR
77152020-03-17 Kamil Rytarowski <n54@gmx.com>
7716
7717 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7718
a2ecbe9f
KR
77192020-03-17 Kamil Rytarowski <n54@gmx.com>
7720
7721 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7722 <sys/sysctl.h>.
7723 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7724
58990295
TV
77252020-03-17 Tom de Vries <tdevries@suse.de>
7726
7727 PR gdb/23710
7728 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7729 fields.
7730 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7731 fields.
7732 (process_imported_unit_die): Skip import of c++ CUs.
7733
771dd3a8
TT
77342020-03-16 Tom Tromey <tom@tromey.com>
7735
7736 * p-valprint.c (pascal_object_print_value): Initialize
7737 base_value.
7738
817a7585
AK
77392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7740 Shahab Vahedi <shahab@synopsys.com>
7741
7742 * Makefile.in: Add arch/arc.o
7743 * configure.tgt: Likewise.
7744 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7745 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7746 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7747 * arc-tdep.h (arc_read_description): Add proto type.
7748 * arch/arc.c: New file.
7749 * arch/arc.h: Likewise.
7750 * features/Makefile: Replace old target descriptions with new.
7751 * features/arc-arcompact.c: Remove.
7752 * features/arc-arcompact.xml: Likewise.
7753 * features/arc-v2.c: Likewise
7754 * features/arc-v2.xml: Likewise
7755 * features/arc/aux-arcompact.xml: New file.
7756 * features/arc/aux-v2.xml: Likewise.
7757 * features/arc/core-arcompact.xml: Likewise.
7758 * features/arc/core-v2.xml: Likewise.
7759 * features/arc/aux-arcompact.c: Generate.
7760 * features/arc/aux-v2.c: Likewise.
7761 * features/arc/core-arcompact.c: Likewise.
7762 * features/arc/core-v2.c: Likewise.
7763 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7764
67430cd0
TT
77652020-03-16 Tom Tromey <tromey@adacore.com>
7766
7767 PR gdb/25663:
7768 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7769 putting value into bcache.
7770
30efb6c7
SM
77712020-03-16 Simon Marchi <simon.marchi@efficios.com>
7772
7773 PR gdb/21500
7774 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7775 to...
7776 (amd64_windows_init_abi_common): ... this. Don't set size of
7777 long type.
7778 (amd64_windows_init_abi): New function.
7779 (amd64_cygwin_init_abi): New function.
7780 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7781 the Cygwin OS ABI.
7782 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7783 comment.
7784
8db52437
SM
77852020-03-16 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7788 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7789 (pe_import_directory_entry): New struct type.
7790 (is_linked_with_cygwin_dll): New function.
7791 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7792 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7793 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7794
5982a56a
SM
77952020-03-16 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7798 i386_cygwin_core_osabi_sniffer.
7799
7a1998df
SM
78002020-03-16 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * i386-cygwin-tdep.c: Rename to...
7803 * i386-windows-tdep.c: ... this.
7804 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7805 i386-windows-tdep.c.
7806 * configure.tgt: Likewise.
7807
053205cc
SM
78082020-03-16 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7811 * osabi.c (gdb_osabi_names): Add "Windows".
7812 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7813 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7814 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7815 i386_cygwin_osabi_sniffer.
7816 (_initialize_i386_cygwin_tdep): Register OS ABI
7817 GDB_OSABI_WINDOWS for i386.
7818 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7819 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7820 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7821 for x86-64.
7822 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7823 when the target matches '*-*-mingw*'.
7824
fe4b2ee6
SM
78252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7826
7827 * defs.h (enum gdb_osabi): Move to...
7828 * osabi.h (enum gdb_osabi): ... here.
7829 * gdbarch.sh: Include osabi.h in gdbarch.h.
7830 * gdbarch.h: Re-generate.
7831
cb9b645d
SM
78322020-03-16 Simon Marchi <simon.marchi@efficios.com>
7833
7834 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7835 function.
7836 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7837
3293bbaf
TT
78382020-03-14 Tom Tromey <tom@tromey.com>
7839
7840 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7841 for C++.
7842 (c_type_print_modifier): Likewise. Add "language" parameter.
7843 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7844 (c_type_print_base_1): Update.
7845 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7846 constants.
7847 * type-stack.c (type_stack::insert): Handle tp_atomic and
7848 tp_restrict.
7849 (type_stack::follow_type_instance_flags): Likewise.
7850 (type_stack::follow_types): Likewise. Merge type-following code.
7851 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7852 (space_identifier, cv_with_space_id)
7853 (const_or_volatile_or_space_identifier_noopt)
7854 (const_or_volatile_or_space_identifier): Remove.
7855 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7856 rules.
7857 (ptr_operator, typebase): Update.
7858 (enum token_flag) <FLAG_C>: New constant.
7859 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7860 "_Atomic".
7861 (lex_one_token): Handle FLAG_C.
7862
154151a6
KR
78632020-03-14 Kamil Rytarowski <n54@gmx.com>
7864
7865 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7866 it to the ptrace call.
7867 * m68k-bsd-nat.c (store_registers): Likewise.
7868
bc107784
KR
78692020-03-14 Kamil Rytarowski <n54@gmx.com>
7870
7871 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7872 gdb_byte *.
7873 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7874 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7875 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7876
01a80117
KR
78772020-03-14 Kamil Rytarowski <n54@gmx.com>
7878
7879 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7880 nbsd_nat_target instead of inf_ptrace_target.
7881 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7882 nbsd_nat_target.
7883
f90280ca
KR
78842020-03-14 Kamil Rytarowski <n54@gmx.com>
7885
7886 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7887 register_t.
7888
6def66f1
KR
78892020-03-14 Kamil Rytarowski <n54@gmx.com>
7890
7891 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7892 it to the ptrace call.
7893 * alpha-bsd-nat.c (store_registers): Likewise.
7894
66eaca97
KR
78952020-03-14 Kamil Rytarowski <n54@gmx.com>
7896
7897 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7898 includes.
7899 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7900 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7901 fill_fpregset): Likewise.
7902
4fed520b
KR
79032020-03-14 Kamil Rytarowski <n54@gmx.com>
7904
7905 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7906 nbsd_nat_target instead of inf_ptrace_target.
7907 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7908 nbsd_nat_target.
7909
2190cf06
KR
79102020-03-14 Kamil Rytarowski <n54@gmx.com>
7911
7912 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7913 register_t.
7914
75c56d3d
KR
79152020-03-14 Kamil Rytarowski <n54@gmx.com>
7916
7917 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7918 it to the ptrace call.
7919 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7920 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7921 * arm-nbsd-nat.c (store_register): Likewise.
7922 * arm-nbsd-nat.c (store_regs): Likewise.
7923 * arm-nbsd-nat.c (store_fp_register): Likewise.
7924 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7925
6018d381
KR
79262020-03-14 Kamil Rytarowski <n54@gmx.com>
7927
7928 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7929 nbsd_nat_target instead of inf_ptrace_target.
7930 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7931 nbsd_nat_target.
7932
013f99f0
KR
79332020-03-14 Kamil Rytarowski <n54@gmx.com>
7934
7935 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7936 it to the ptrace call.
7937 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7938
12753073
KR
79392020-03-14 Kamil Rytarowski <n54@gmx.com>
7940
6227b330
KR
7941 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7942 it to the ptrace call.
7943 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7944
79452020-03-14 Kamil Rytarowski <n54@gmx.com>
7946
7947 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7948 gdb_byte *.
12753073
KR
7949 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7950
d5be5fa4
KR
79512020-03-14 Kamil Rytarowski <n54@gmx.com>
7952
7953 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7954 instead of inf_ptrace_target.
7955 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7956 nbsd_nat_target.
7957
8110f842
KR
79582020-03-14 Kamil Rytarowski <n54@gmx.com>
7959
7960 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7961 register_t.
7962
52feded7
KR
79632020-03-14 Kamil Rytarowski <n54@gmx.com>
7964
7965 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7966 register_t.
7967
25567eee
KR
79682020-03-14 Kamil Rytarowski <n54@gmx.com>
7969
7970 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7971 register_t.
7972
426a9c18
TT
79732020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * value.h (val_print): Don't declare.
7976 * valprint.h (val_print_array_elements)
7977 (val_print_scalar_formatted, generic_val_print): Don't declare.
7978 * valprint.c (generic_val_print_array): Take a struct value.
7979 (generic_val_print_ptr, generic_val_print_memberptr)
7980 (generic_val_print_bool, generic_val_print_int)
7981 (generic_val_print_char, generic_val_print_complex)
7982 (generic_val_print): Remove.
7983 (generic_value_print): Update.
7984 (do_val_print): Remove unused parameters. Don't call
7985 la_val_print.
7986 (val_print): Remove.
7987 (common_val_print): Update. Don't call value_check_printable.
7988 (val_print_scalar_formatted, val_print_array_elements): Remove.
7989 * rust-lang.c (rust_val_print): Remove.
7990 (rust_language_defn): Update.
7991 * p-valprint.c (pascal_val_print): Remove.
7992 (pascal_value_print_inner): Update.
7993 (pascal_object_print_val_fields, pascal_object_print_val):
7994 Remove.
7995 (pascal_object_print_static_field): Update.
7996 * p-lang.h (pascal_val_print): Don't declare.
7997 * p-lang.c (pascal_language_defn): Update.
7998 * opencl-lang.c (opencl_language_defn): Update.
7999 * objc-lang.c (objc_language_defn): Update.
8000 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8001 * m2-lang.h (m2_val_print): Don't declare.
8002 * m2-lang.c (m2_language_defn): Update.
8003 * language.h (struct language_defn) <la_val_print>: Remove.
8004 * language.c (unk_lang_value_print_inner): Rename. Change
8005 argument types.
8006 (unknown_language_defn, auto_language_defn): Update.
8007 * go-valprint.c (go_val_print): Remove.
8008 * go-lang.h (go_val_print): Don't declare.
8009 * go-lang.c (go_language_defn): Update.
8010 * f-valprint.c (f_val_print): Remove.
8011 * f-lang.h (f_value_print): Don't declare.
8012 * f-lang.c (f_language_defn): Update.
8013 * d-valprint.c (d_val_print): Remove.
8014 * d-lang.h (d_value_print): Don't declare.
8015 * d-lang.c (d_language_defn): Update.
8016 * cp-valprint.c (cp_print_value_fields)
8017 (cp_print_value_fields_rtti, cp_print_value): Remove.
8018 (cp_print_static_field): Update.
8019 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8020 (c_val_print_struct, c_val_print_union, c_val_print_int)
8021 (c_val_print_memberptr, c_val_print): Remove.
8022 * c-lang.h (c_val_print_array, cp_print_value_fields)
8023 (cp_print_value_fields_rtti): Don't declare.
8024 * c-lang.c (c_language_defn, cplus_language_defn)
8025 (asm_language_defn, minimal_language_defn): Update.
8026 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8027 (ada_val_print_enum): Take a struct value.
8028 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8029 (ada_val_print): Remove.
8030 (ada_value_print_1): Update.
8031 (printable_val_type): Remove.
8032 * ada-lang.h (ada_val_print): Don't declare.
8033 * ada-lang.c (ada_language_defn): Update.
8034
42331a1e
TT
80352020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * valprint.c (do_val_print): Update.
8038 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8039 a struct value.
8040 (value_to_value_object_no_release): Declare.
8041 * python/py-value.c (value_to_value_object_no_release): New
8042 function.
8043 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8044 struct value.
8045 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8046 function.
8047 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8048 a struct value.
8049 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8050 Declare.
8051 (gdbscm_apply_val_pretty_printer): Take a struct value.
8052 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8053 value.
8054 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8055 value.
8056 * extension-priv.h (struct extension_language_ops)
8057 <apply_val_pretty_printer>: Take a struct value.
8058 * cp-valprint.c (cp_print_value): Create a struct value.
8059 (cp_print_value): Update.
8060
3a916a97
TT
80612020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * ada-valprint.c (print_field_values): Call common_val_print.
8064
b59eac37
TT
80652020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * ada-valprint.c (val_print_packed_array_elements): Remove
8068 bitoffset and val parameters. Call common_val_print.
8069 (ada_val_print_string): Remove offset, address, and original_value
8070 parameters.
8071 (ada_val_print_array): Update.
8072 (ada_value_print_array): New function.
8073 (ada_value_print_1): Call it.
8074
03371129
TT
80752020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * ada-valprint.c (ada_value_print): Use common_val_print.
8078
2e088f8b
TT
80792020-03-13 Tom Tromey <tom@tromey.com>
8080
8081 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8082
39ef85a8
TT
80832020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * ada-valprint.c (ada_value_print_num): New function.
8086 (ada_value_print_1): Use it.
8087
b9fa6e07
TT
80882020-03-13 Tom Tromey <tom@tromey.com>
8089
8090 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8091
416595d6
TT
80922020-03-13 Tom Tromey <tom@tromey.com>
8093
8094 * ada-valprint.c (ada_value_print_ptr): New function.
8095 (ada_value_print_1): Use it.
8096
5b5e15ec
TT
80972020-03-13 Tom Tromey <tom@tromey.com>
8098
8099 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8100 call common_val_print.
8101 (ada_val_print_1): Update.
8102 (ada_value_print_1): New function.
8103 (ada_value_print_inner): Rewrite.
8104
fbf54e75
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * cp-valprint.c (cp_print_value_fields): Update.
8108 (cp_print_value): New function.
8109
64b653ca
TT
81102020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * m2-valprint.c (m2_value_print_inner): Use
8113 cp_print_value_fields.
8114 * cp-valprint.c (cp_print_value_fields): New function.
8115 * c-valprint.c (c_value_print_struct): New function.
8116 (c_value_print_inner): Use c_value_print_struct.
8117 * c-lang.h (cp_print_value_fields): Declare.
8118
6999f067
TT
81192020-03-13 Tom Tromey <tom@tromey.com>
8120
8121 * c-valprint.c (c_value_print_array): New function.
8122 (c_value_print_inner): Use it.
8123
ce80b8bd
TT
81242020-03-13 Tom Tromey <tom@tromey.com>
8125
8126 * c-valprint.c (c_value_print_memberptr): New function.
8127 (c_value_print_inner): Use it.
8128
2faac269
TT
81292020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * c-valprint.c (c_value_print_int): New function.
8132 (c_value_print_inner): Use it.
8133
da3e2c29
TT
81342020-03-13 Tom Tromey <tom@tromey.com>
8135
8136 * c-valprint.c (c_value_print_ptr): New function.
8137 (c_value_print_inner): Use it.
8138
50836231
TT
81392020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * c-valprint.c (c_value_print_inner): Rewrite.
8142
4f412b6e
TT
81432020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * valprint.c (generic_value_print_complex): New function.
8146 (generic_value_print): Use it.
8147
f5354008
TT
81482020-03-13 Tom Tromey <tom@tromey.com>
8149
8150 * valprint.c (generic_val_print_float): Don't call
8151 val_print_scalar_formatted.
8152 (generic_val_print, generic_value_print): Update.
8153
3eec3b05
TT
81542020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * valprint.c (generic_value_print_char): New function
8157 (generic_value_print): Use it.
8158
fdddfccb
TT
81592020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * valprint.c (generic_value_print_int): New function.
8162 (generic_value_print): Use it.
8163
6dde7521
TT
81642020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * valprint.c (generic_value_print_bool): New function.
8167 (generic_value_print): Use it.
8168
4112d2e6
TT
81692020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * valprint.c (generic_val_print_func): Simplify.
8172 (generic_val_print, generic_value_print): Update.
8173
65786af6
TT
81742020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * valprint.c (generic_val_print_flags): Remove.
8177 (generic_val_print, generic_value_print): Update.
8178 (val_print_type_code_flags): Add original_value parameter.
8179
40f3ce18
TT
81802020-03-13 Tom Tromey <tom@tromey.com>
8181
8182 * valprint.c (generic_val_print): Update.
8183 (generic_value_print): Update.
8184 * valprint.c (generic_val_print_enum): Don't call
8185 val_print_scalar_formatted.
8186
2a5b130b
TT
81872020-03-13 Tom Tromey <tom@tromey.com>
8188
8189 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8190 * valprint.c (generic_value_print_ptr): New function.
8191
abc66ce9
TT
81922020-03-13 Tom Tromey <tom@tromey.com>
8193
8194 * valprint.c (generic_value_print): Rewrite.
8195
07a32858
TT
81962020-03-13 Tom Tromey <tom@tromey.com>
8197
8198 * p-valprint.c (pascal_object_print_value_fields)
8199 (pascal_object_print_value): New functions.
8200
64d64d3a
TT
82012020-03-13 Tom Tromey <tom@tromey.com>
8202
8203 * p-valprint.c (pascal_value_print_inner): Rewrite.
8204
6a95a1f5
TT
82052020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * f-valprint.c (f_value_print_innner): Rewrite.
8208
59fcdac6
TT
82092020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * m2-valprint.c (m2_print_unbounded_array): New overload.
8212 (m2_print_unbounded_array): Update.
8213 (m2_print_array_contents): Take a struct value.
8214 (m2_value_print_inner): Rewrite.
8215
d133c3e1
TT
82162020-03-13 Tom Tromey <tom@tromey.com>
8217
8218 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8219 (d_value_print_inner): New function.
8220 * d-lang.h (d_value_print_inner): Declare.
8221 * d-lang.c (d_language_defn): Use d_value_print_inner.
8222
23b0f06b
TT
82232020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * go-valprint.c (go_value_print_inner): New function.
8226 * go-lang.h (go_value_print_inner): Declare.
8227 * go-lang.c (go_language_defn): Use go_value_print_inner.
8228
5f56f7cb
TT
82292020-03-13 Tom Tromey <tom@tromey.com>
8230
8231 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8232 API.
8233 (rust_val_print): Rewrite.
8234 (rust_value_print_inner): New function, from rust_val_print.
8235 (rust_language_defn): Use rust_value_print_inner.
8236
26792ee0
TT
82372020-03-13 Tom Tromey <tom@tromey.com>
8238
8239 * ada-valprint.c (ada_value_print_inner): New function.
8240 * ada-lang.h (ada_value_print_inner): Declare.
8241 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8242
24051bbe
TT
82432020-03-13 Tom Tromey <tom@tromey.com>
8244
8245 * f-valprint.c (f_value_print_innner): New function.
8246 * f-lang.h (f_value_print_innner): Declare.
8247 * f-lang.c (f_language_defn): Use f_value_print_innner.
8248
c0941be6
TT
82492020-03-13 Tom Tromey <tom@tromey.com>
8250
8251 * p-valprint.c (pascal_value_print_inner): New function.
8252 * p-lang.h (pascal_value_print_inner): Declare.
8253 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8254
62c4663d
TT
82552020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * m2-valprint.c (m2_value_print_inner): New function.
8258 * m2-lang.h (m2_value_print_inner): Declare.
8259 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8260
62182190
TT
82612020-03-13 Tom Tromey <tom@tromey.com>
8262
8263 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8264 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8265 * c-valprint.c (c_value_print_inner): New function.
8266 * c-lang.h (c_value_print_inner): Declare.
8267 * c-lang.c (c_language_defn, cplus_language_defn)
8268 (asm_language_defn, minimal_language_defn): Use
8269 c_value_print_inner.
8270
1e592a8a
TT
82712020-03-13 Tom Tromey <tom@tromey.com>
8272
8273 * p-valprint.c (pascal_object_print_value_fields): Now static.
8274 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8275
7fe471e9
TT
82762020-03-13 Tom Tromey <tom@tromey.com>
8277
8278 * c-valprint.c (c_val_print_array): Simplify.
8279
d121c6ce
TT
82802020-03-13 Tom Tromey <tom@tromey.com>
8281
8282 * valprint.c (value_print_array_elements): New function.
8283 * valprint.h (value_print_array_elements): Declare.
8284
4dba70ee
TT
82852020-03-13 Tom Tromey <tom@tromey.com>
8286
8287 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8288 * mips-tdep.c (mips_print_register): Use
8289 value_print_scalar_formatted.
8290
4f9ae810
TT
82912020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.h (value_print_scalar_formatted): Declare.
8294 * valprint.c (value_print_scalar_formatted): New function.
8295
156bfec9
TT
82962020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * valprint.h (generic_value_print): Declare.
8299 * valprint.c (generic_value_print): New function.
8300
2b4e573d
TT
83012020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * valprint.c (do_val_print): Call la_value_print_inner, if
8304 available.
8305 * rust-lang.c (rust_language_defn): Update.
8306 * p-lang.c (pascal_language_defn): Update.
8307 * opencl-lang.c (opencl_language_defn): Update.
8308 * objc-lang.c (objc_language_defn): Update.
8309 * m2-lang.c (m2_language_defn): Update.
8310 * language.h (struct language_defn) <la_value_print_inner>: New
8311 member.
8312 * language.c (unknown_language_defn, auto_language_defn): Update.
8313 * go-lang.c (go_language_defn): Update.
8314 * f-lang.c (f_language_defn): Update.
8315 * d-lang.c (d_language_defn): Update.
8316 * c-lang.c (c_language_defn, cplus_language_defn)
8317 (asm_language_defn, minimal_language_defn): Update.
8318 * ada-lang.c (ada_language_defn): Update.
8319
a1f6a07c
TT
83202020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * c-valprint.c (c_value_print): Use common_val_print.
8323
410cf315
TT
83242020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8327
72a45c93
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * f-valprint.c (f77_print_array_1, f_val_print): Use
8331 common_val_print.
8332
040f66bd
TT
83332020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * riscv-tdep.c (riscv_print_one_register_info): Use
8336 common_val_print.
8337
a6e05a6c
TT
83382020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * mi/mi-main.c (output_register): Use common_val_print.
8341
3444c526
TT
83422020-03-13 Tom Tromey <tom@tromey.com>
8343
8344 * infcmd.c (default_print_one_register_info): Use
8345 common_val_print.
8346
c2a44efe
TT
83472020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * valprint.h (common_val_print_checked): Declare.
8350 * valprint.c (common_val_print_checked): New function.
8351 * stack.c (print_frame_arg): Use common_val_print_checked.
8352
b0c26e99
TT
83532020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * valprint.c (do_val_print): New function, from val_print.
8356 (val_print): Use do_val_print.
8357 (common_val_print): Use do_val_print.
8358
ce3acbe9
TT
83592020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * valprint.c (value_print): Use scoped_value_mark.
8362
96c7f873
TV
83632020-03-13 Tom de Vries <tdevries@suse.de>
8364
8365 PR symtab/25646
8366 * psymtab.c (partial_symtab::partial_symtab): Don't set
8367 globals_offset and statics_offset. Push element onto
8368 current_global_psymbols and current_static_psymbols stacks.
8369 (concat): New function.
8370 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8371 element from current_global_psymbols and current_static_psymbols
8372 stacks. Concat popped elements to global_psymbols and
8373 static_symbols.
8374 (add_psymbol_to_list): Use current_global_psymbols and
8375 current_static_psymbols stacks.
8376 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8377 current_static_psymbols fields.
8378
6ba0a321
CB
83792020-03-12 Christian Biesinger <cbiesinger@google.com>
8380
8381 * corelow.c (sniff_core_bfd): Remove.
8382 (class core_target) <m_core_vec>: Remove.
8383 (core_target::core_target): Update.
8384 (core_file_fns): Remove.
8385 (deprecated_add_core_fns): Remove.
8386 (default_core_sniffer): Remove.
8387 (sniff_core_bfd): Remove.
8388 (default_check_format): Remove.
8389 (gdb_check_format): Remove.
8390 (core_target_open): Update.
8391 (core_target::get_core_register_section): Update.
8392 (get_core_registers_cb): Update.
8393 (core_target::fetch_registers): Update.
8394 * gdbcore.h (struct core_fns): Remove.
8395 (deprecated_add_core_fns): Remove.
8396 (default_core_sniffer): Remove.
8397 (default_check_format): Remove.
8398
227031b2
TT
83992020-03-12 Tom Tromey <tom@tromey.com>
8400
8401 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8402 CORE_ADDR.
8403 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8404
53807e9f
TT
84052020-03-12 Tom Tromey <tom@tromey.com>
8406
8407 * remote.c (remote_target::download_tracepoint)
8408 (remote_target::enable_tracepoint)
8409 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8410 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8411 sprintf_vma.
8412
64f25102
TT
84132020-03-12 Tom Tromey <tom@tromey.com>
8414
8415 * symfile-mem.c: Update CORE_ADDR size assert.
8416
272cd5a3
SM
84172020-03-12 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * selftest.m4: Move to gdbsupport/.
8420 * acinclude.m4: Update path to selftest.m4.
8421
74cd3f9d
SM
84222020-03-12 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8425 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8426 gdbarch-selfselftests.c and selftest-arch.c.
8427 (SUBDIR_UNITTESTS_OBS): Rename to...
8428 (SELFTESTS_OBS): ... this.
8429 (COMMON_SFILES): Remove disasm-selftests.c and
8430 gdbarch-selftests.c.
8431 * configure.ac: Don't add selftest-arch.{c,o} to
8432 CONFIG_{SRCS,OBS}.
8433 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8434 preprocessor conditions.
8435
db6878ac
SM
84362020-03-12 Simon Marchi <simon.marchi@efficios.com>
8437
8438 * configure.ac: Don't source bfd/development.sh.
8439 * selftest.m4: Modify comment.
8440 * configure: Re-generate.
8441
4d696a5c
SM
84422020-03-12 Simon Marchi <simon.marchi@efficios.com>
8443
8444 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8445 not "true" or "false".
8446 * configure: Re-generate.
8447
8dd8e1c7
CB
84482020-03-12 Christian Biesinger <cbiesinger@google.com>
8449
8450 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8451 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8452 renamed to arm_nbsd_supply_gregset.
8453 (fetch_register): Update to call arm_nbsd_supply_gregset.
8454 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8455 (arm_netbsd_nat_target::fetch_registers): Update.
8456 (fetch_elfcore_registers): Removed.
8457 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8458 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8459 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8460 not require NetBSD system headers.
8461 (arm_nbsd_regset): New struct.
8462 (arm_nbsd_iterate_over_regset_sections): New function.
8463 (arm_netbsd_init_abi_common): Updated to call
8464 set_gdbarch_iterate_over_regset_sections.
8465 * arm-nbsd-tdep.h: New file.
8466
dd69bf7a
KB
84672020-03-11 Kevin Buettner <kevinb@redhat.com>
8468
8469 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8470 recursion.
8471
a0761e34
SM
84722020-03-11 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * configure: Re-generate.
8475
e7a82140
TT
84762020-03-11 Tom Tromey <tromey@adacore.com>
8477
8478 * ada-typeprint.c (print_choices): Fix comment.
8479
dcc050c8
AB
84802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8483 previous item in the list, when the list has no items.
8484
1c33af77
TV
84852020-03-11 Tom de Vries <tdevries@suse.de>
8486
8487 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8488 PROP_LOCLIST handling code.
8489
8c95582d
AB
84902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8491
8492 * buildsym-legacy.c (record_line): Pass extra parameter to
8493 record_line.
8494 * buildsym.c (buildsym_compunit::record_line): Take an extra
8495 parameter, reduce duplication in the line table, and record the
8496 is_stmt flag in the line table.
8497 * buildsym.h (buildsym_compunit::record_line): Add extra
8498 parameter.
8499 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8500 non-statement lines.
8501 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8502 this to the symtab builder.
8503 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8504 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8505 through to dwarf_record_line_1.
8506 * infrun.c (process_event_stop_test): When stepping, don't stop at
8507 a non-statement instruction, and only refresh the step info when
8508 we land in the middle of a line's range. Also add an extra
8509 comment.
8510 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8511 field.
8512 * record-btrace.c (btrace_find_line_range): Only record lines
8513 marked as is-statement.
8514 * stack.c (frame_show_address): Show the frame address if we are
8515 in a non-statement sal.
8516 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8517 (maintenance_print_one_line_table): Print a header for the is_stmt
8518 column, and include is_stmt information in the output.
8519 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8520 preference to non-statements.
8521 (find_pcs_for_symtab_line): Prefer is-statement entries.
8522 (find_line_common): Likewise.
8523 * symtab.h (struct linetable_entry): Add is_stmt field.
8524 (struct symtab_and_line): Likewise.
8525 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8526 arranging the line table.
8527
e4003a34
TV
85282020-03-07 Tom de Vries <tdevries@suse.de>
8529
8530 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8531 DIE.
8532
e8932576
TT
85332020-03-07 Tom Tromey <tom@tromey.com>
8534
8535 * valops.c (value_literal_complex): Remove obsolete comment.
8536 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8537 comment.
8538
29734269
SM
85392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8540
8541 * infrun.h: Forward-declare thread_info.
8542 (set_step_info): Add thread_info parameter, add doc.
8543 * infrun.c (set_step_info): Add thread_info parameter, move doc
8544 to header.
8545 * infrun.c (process_event_stop_test): Pass thread to
8546 set_step_info call.
8547 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8548 set_step_info.
8549 (prepare_one_step): Add thread_info parameter, pass it to
8550 set_step_frame and prepare_one_step (recursive) call.
8551 (step_1): Pass thread to prepare_one_step call.
8552 (step_command_fsm::should_stop): Pass thread to
8553 prepare_one_step.
8554 (until_next_fsm): Pass thread to set_step_frame call.
8555 (finish_command): Pass thread to set_step_info call.
8556
b7d64b29
HD
85572020-03-06 Hannes Domani <ssbssa@yahoo.de>
8558
8559 * windows-tdep.c (windows_solib_create_inferior_hook):
8560 Check if inferior is running.
8561
09f2921c
TV
85622020-03-06 Tom de Vries <tdevries@suse.de>
8563
8564 * NEWS: Fix "the the".
8565 * ctfread.c: Same.
8566
fd760e79
TV
85672020-03-06 Tom de Vries <tdevries@suse.de>
8568
8569 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8570
20ea4a60
AB
85712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * .dir-locals.el: Add a comment referencing the other copies of
8574 this file.
8575
0afbabf0
JB
85762020-03-05 John Baldwin <jhb@FreeBSD.org>
8577
8578 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8579 psargs.
8580
842806cb
TBA
85812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8582
8583 * .gitattributes: New file.
8584
be1e3d3e
TT
85852020-03-04 Tom Tromey <tom@tromey.com>
8586
8587 * symmisc.c (print_symbol_bcache_statistics)
8588 (print_objfile_statistics): Update.
8589 * symfile.c (allocate_symtab): Use intern.
8590 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8591 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8592 macro_cache>: Remove.
8593 <string_cache>: New member.
8594 (struct objfile) <intern>: New methods.
8595 * elfread.c (elf_symtab_read): Use intern.
8596 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8597 (dwarf2_compute_name, dwarf2_physname)
8598 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8599 names.
8600 (guess_partial_die_structure_name): Update.
8601 (partial_die_info::fixup): Intern name.
8602 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8603 name.
8604 (dwarf2_name): Intern name. Update.
8605 * buildsym.c (buildsym_compunit::get_macro_table): Use
8606 string_cache.
8607
4e7625fd
TT
86082020-03-04 Tom Tromey <tom@tromey.com>
8609
8610 * jit.c (bfd_open_from_target_memory): Make "target" const.
8611 * corefile.c (gnutarget): Now const.
8612 * gdbcore.h (gnutarget): Now const.
8613
46f9f931
HD
86142020-03-04 Hannes Domani <ssbssa@yahoo.de>
8615
8616 * NEWS: Mention support for WOW64 processes.
8617 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8618 (amd64_windows_segment_register_p): Remove static.
8619 (_initialize_amd64_windows_nat): Update.
8620 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8621 * i386-windows-nat.c (context_offset): Update.
8622 (i386_mappings): Rename and remove static.
8623 (i386_windows_segment_register_p): Remove static.
8624 (_initialize_i386_windows_nat): Update.
8625 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8626 (STATUS_WX86_SINGLE_STEP): New macro.
8627 (EnumProcessModulesEx): New macro.
8628 (Wow64SuspendThread): New macro.
8629 (Wow64GetThreadContext): New macro.
8630 (Wow64SetThreadContext): New macro.
8631 (Wow64GetThreadSelectorEntry): New macro.
8632 (windows_set_context_register_offsets): Add static.
8633 (windows_set_segment_register_p): Likewise.
8634 (windows_add_thread): Adapt for WOW64 processes.
8635 (windows_fetch_one_register): Likewise.
8636 (windows_nat_target::fetch_registers): Likewise.
8637 (windows_store_one_register): Likewise.
8638 (display_selector): Likewise.
8639 (display_selectors): Likewise.
8640 (handle_exception): Likewise.
8641 (windows_continue): Likewise.
8642 (windows_nat_target::resume): Likewise.
8643 (windows_add_all_dlls): Likewise.
8644 (do_initial_windows_stuff): Likewise.
8645 (windows_nat_target::attach): Likewise.
8646 (windows_get_exec_module_filename): Likewise.
8647 (windows_nat_target::create_inferior): Likewise.
8648 (windows_xfer_siginfo): Likewise.
8649 (_initialize_loadable): Initialize Wow64SuspendThread,
8650 Wow64GetThreadContext, Wow64SetThreadContext,
8651 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8652 * windows-nat.h (windows_set_context_register_offsets):
8653 Remove declaration.
8654 (windows_set_segment_register_p): Likewise.
8655 (i386_windows_segment_register_p): Add declaration.
8656 (amd64_windows_segment_register_p): Likewise.
8657
440cf44e
LM
86582020-03-04 Luis Machado <luis.machado@linaro.org>
8659
8660 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8661 in "info registers" for AArch64/ARM.
8662
8663 The change caused "info registers" to not print GPR's.
8664
8665 gdb/ChangeLog:
8666
8667 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8668
8669 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8670 when reg->group is empty and reggroup is not.
8671
1009d92f
TT
86722020-03-03 Tom Tromey <tromey@adacore.com>
8673
8674 * dwarf2/frame.c (struct dwarf2_frame_cache)
8675 <checked_tailcall_bottom, entry_cfa_sp_offset,
8676 entry_cfa_sp_offset_p>: Remove members.
8677 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8678 (dwarf2_frame_prev_register): Don't call
8679 dwarf2_tailcall_sniffer_first.
8680 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8681 * frame-unwind.c (add_unwinder): New fuction.
8682 (frame_unwind_init): Use it. Add tailcall unwinder.
8683
5e5d66b6
AB
86842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8685 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8686
8687 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8688 value should be printed as true.
8689
584cf46d
HD
86902020-03-03 Hannes Domani <ssbssa@yahoo.de>
8691
8692 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8693 (windows_init_abi): Set and use windows_so_ops.
8694
7b973adc
SDJ
86952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8696
8697 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8698 when verifying if dealing with a convenience variable.
8699
bb7b70ab
LM
87002020-03-03 Luis Machado <luis.machado@linaro.org>
8701
8702 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8703
9822cb57
SM
87042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8705
8706 * infrun.c (gdbarch_supports_displaced_stepping): New.
8707 (use_displaced_stepping): Break up conditions in smaller pieces.
8708 Use gdbarch_supports_displaced_stepping.
8709 (displaced_step_prepare_throw): Use
8710 gdbarch_supports_displaced_stepping.
8711
63e163f2
AB
87122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * NEWS: Mention new behaviour of the history filename.
8715 * top.c (write_history_p): Add comment.
8716 (show_write_history_p): Add header comment, give a different
8717 message when history writing is on, but the history filename is
8718 empty.
8719 (history_filename): Add comment.
8720 (history_filename_empty): New function.
8721 (show_history_filename): Add header comment, give a different
8722 message when the filename is empty.
8723 (init_history): Compare history_filename against nullptr, and only
8724 read history if the filename is not empty.
8725 (set_history_filename): Add header comment, and only make
8726 non-empty filenames absolute.
8727 (init_main): Make the filename argument to 'set history filename'
8728 optional.
8729
81b86b97
CB
87302020-03-02 Christian Biesinger <cbiesinger@google.com>
8731
8732 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8733 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8734 (fetch_fp_register): Update.
8735 (fetch_fp_regs): Update.
8736 (store_fp_register): Update.
8737 (store_fp_regs): Update.
8738 (arm_netbsd_nat_target::read_description): New function.
8739 (fetch_elfcore_registers): Update.
8740
24ed6739
AB
87412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8742
8743 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8744 general_thread if the stop reply is missing a thread-id.
8745 (remote_target::process_stop_reply): Use the first non-exited
8746 thread if the target didn't pass a thread-id.
8747 * infrun.c (do_target_wait): Move call to
8748 switch_to_inferior_no_thread to ....
8749 (do_target_wait_1): ... here.
8750
a84bb2a0
JT
87512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8752
8753 * debuginfod-support.c: Include defs.h first.
8754
658dadf0
TV
87552020-02-28 Tom de Vries <tdevries@suse.de>
8756
8757 * symfile.c (set_initial_language): Use default language for lookup.
8758
4ebe4877
SM
87592020-02-28 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8762 reader variable, pass `this` to read_cutu_die_from_dwo.
8763
e5da1139
AM
87642020-02-27 Aaron Merey <amerey@redhat.com>
8765
8766 * source.c (open_source_file): Check for nullptr when computing
8767 srcpath.
8768
317f7127
TT
87692020-02-27 Tom Tromey <tromey@adacore.com>
8770
8771 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8772 member.
8773 (dwarf2_add_field): Don't update nfields.
8774 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8775
3104d9ee
AB
87762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8779 abs.
8780
b83470bf
TT
87812020-02-26 Tom Tromey <tom@tromey.com>
8782
8783 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8784 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8785 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8786 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8787 per_cu_data.
8788
edfe0a0c
TT
87892020-02-26 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2/index-write.c (psym_index_map): Change type.
8792 (add_address_entry_worker, write_one_signatured_type)
8793 (recursively_count_psymbols, recursively_write_psymbols)
8794 (class debug_names, psyms_seen_size, write_gdbindex)
8795 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8796
0d79cdc4
AM
87972020-02-26 Aaron Merey <amerey@redhat.com>
8798
8799 * Makefile.in: Handle optional debuginfod support.
8800 * NEWS: Update.
8801 * README: Add --with-debuginfod summary.
8802 * config.in: Regenerate.
8803 * configure: Regenerate.
8804 * configure.ac: Handle optional debuginfod support.
8805 * debuginfod-support.c: debuginfod helper functions.
8806 * debuginfod-support.h: Ditto.
8807 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8808 summary.
8809 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8810 when a dwz file cannot be found.
8811 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8812 debuginfo file cannot be found.
8813 * source.c (open_source_file): Query debuginfod servers when a
8814 source file cannot be found.
8815 * top.c (print_gdb_configuration): Include
8816 --{with,without}-debuginfod in the output.
8817
b65ce565
JG
88182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8819
8820 * thread.c (thr_try_catch_cmd): Print thread name.
8821
d4c9a4f8
SM
88222020-02-26 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8825 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8826 dwarf2_fetch_die_type_sect_off): Move to...
8827 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8828 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8829 dwarf2_fetch_die_type_sect_off): ... here.
8830 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8831 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8832 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8833
0dce4280
TV
88342020-02-26 Tom de Vries <tdevries@suse.de>
8835
8836 PR gdb/25603
8837 * symfile.c (set_initial_language): Exit-early if
8838 language_mode == language_mode_manual.
8839
450a1bfc
SM
88402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8841
8842 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8843 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8844 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8845
9e80cfa1
AB
88462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8847
8848 * gdbtypes.c (create_array_type_with_stride): Handle negative
8849 array strides.
8850 * valarith.c (value_subscripted_rvalue): Likewise.
8851
09624f1f
LM
88522020-02-25 Luis Machado <luis.machado@linaro.org>
8853
8854 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8855
8cb5117c
SM
88562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8857
8858 * loc.h (dwarf2_get_die_type): Move to...
8859 * read.h (dwarf2_get_die_type): ... here.
8860 * read.c (dwarf2_get_die_type): Move doc to header.
8861
c325c44e
JB
88622020-02-25 Joel Brobecker <brobecker@adacore.com>
8863
8864 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8865 'gnulib/Makefile.in' to the list.
8866
4ac93832
TT
88672020-02-24 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8870 Remove.
8871 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8872 XOBNEWVEC.
8873
197400e8
TT
88742020-02-24 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8877 New method.
8878 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8879 (dw2_do_instantiate_symtab, dw2_get_file_names)
8880 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8881
76935768
TT
88822020-02-24 Tom Tromey <tom@tromey.com>
8883
8884 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8885 make_scoped_restore.
8886 (dwarf2_psymtab::read_symtab): Don't clear
8887 reading_partial_symbols.
8888
a88ef40d
TV
88892020-02-24 Tom de Vries <tdevries@suse.de>
8890
8891 PR gdb/25592
8892 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8893
c9af6521
TV
88942020-02-24 Tom de Vries <tdevries@suse.de>
8895
8896 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8897 commands layout next/prev/regs.
8898
5707a07a
TT
88992020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8902 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8903
3b0fb49e
TT
89042020-02-22 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8907
283be8bf
TT
89082020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8911 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8912 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8913 * tui/tui.c (_initialize_tui): Add usage text.
8914
ca793b96
TT
89152020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui-win.c (tui_set_focus_command)
8918 (tui_set_win_height_command): Use error_no_arg.
8919 (_initialize_tui_win): Update help text.
8920 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8921
432b5c40
TT
89222020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8925 * tui/tui-disasm.h (struct tui_disasm_window)
8926 <display_start_addr>: Declare.
8927 * tui/tui-source.h (struct tui_source_window)
8928 <display_start_addr>: Declare.
8929 * tui/tui-winsource.h (struct tui_source_window_base)
8930 <show_source_line, display_start_addr>: New methods.
8931 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8932 Rename and move to protected section.
8933 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8934 (tui_source_window_base::do_erase_source_content): Update.
8935 (tui_source_window_base::show_source_line): Now a method.
8936 (tui_source_window_base::show_source_content)
8937 (tui_source_window_base::tui_source_window_base)
8938 (tui_source_window_base::rerender)
8939 (tui_source_window_base::refill)
8940 (tui_source_window_base::do_scroll_horizontal)
8941 (tui_source_window_base::set_is_exec_point_at)
8942 (tui_source_window_base::update_breakpoint_info)
8943 (tui_source_window_base::update_exec_info): Update.
8944 * tui/tui-source.c (tui_source_window::set_contents)
8945 (tui_source_window::showing_source_p)
8946 (tui_source_window::do_scroll_vertical)
8947 (tui_source_window::location_matches_p)
8948 (tui_source_window::line_is_displayed): Update.
8949 (tui_source_window::display_start_addr): New method.
8950 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8951 (tui_disasm_window::do_scroll_vertical)
8952 (tui_disasm_window::location_matches_p): Update.
8953 (tui_disasm_window::display_start_addr): New method.
8954
01b1af32
TT
89552020-02-22 Tom Tromey <tom@tromey.com>
8956
8957 * NEWS: Add entry for gdb.register_window_type.
8958 * tui/tui-layout.h (window_factory): New typedef.
8959 (tui_register_window): Declare.
8960 * tui/tui-layout.c (saved_tui_windows): New global.
8961 (tui_apply_current_layout): Use it.
8962 (tui_register_window): New function.
8963 * python/python.c (do_start_initialization): Call
8964 gdbpy_initialize_tui.
8965 (python_GdbMethods): Add "register_window_type" function.
8966 * python/python-internal.h (gdbpy_register_tui_window)
8967 (gdbpy_initialize_tui): Declare.
8968 * python/py-tui.c: New file.
8969 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8970
fc96d20b
TT
89712020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8974
935c78c0
TT
89752020-02-22 Tom Tromey <tom@tromey.com>
8976
8977 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8978 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8979 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8980 (tui_set_win_focus_to): Move from tui-win.c.
8981
0240c8f1
TT
89822020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8985 functions.
8986 (known_window_types): New global.
8987 (tui_get_window_by_name): Reimplement.
8988 (initialize_known_windows): New function.
8989 (validate_window_name): Rewrite.
8990 (_initialize_tui_layout): Call initialize_known_windows.
8991
fdb01f0c
TT
89922020-02-22 Tom Tromey <tom@tromey.com>
8993
8994 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8995 Remove constants.
8996 * tui/tui-winsource.h (struct tui_source_window_base)
8997 <tui_source_window_base>: Remove parameter.
8998 * tui/tui-winsource.c
8999 (tui_source_window_base::tui_source_window_base): Remove
9000 parameter.
9001 (tui_source_window_base::refill): Update.
9002 * tui/tui-stack.h (struct tui_locator_window)
9003 <tui_locator_window>: Update.
9004 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9005 Default the constructor.
9006 * tui/tui-regs.h (struct tui_data_item_window)
9007 <tui_data_item_window>: Default the constructor.
9008 (struct tui_data_window) <tui_data_window>: Likewise.
9009 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9010 Default the constructor.
9011 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9012 Default the constructor.
9013 <type>: Remove.
9014 (struct tui_win_info) <tui_win_info>: Default the constructor.
9015 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9016 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9017 Default the constructor.
9018
865a5aec
TT
90192020-02-22 Tom Tromey <tom@tromey.com>
9020
9021 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9022 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9023 * tui/tui-win.c (tui_resize_all): Don't call
9024 tui_delete_invisible_windows.
9025 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9026 done.
9027 (tui_set_layout): Update.
9028 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9029 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9030 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9031
e098d18c
TT
90322020-02-22 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9035 correctly.
9036
eb9c8874
TT
90372020-02-22 Tom Tromey <tom@tromey.com>
9038
9039 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9040
7eed1a8e
TT
90412020-02-22 Tom Tromey <tom@tromey.com>
9042
9043 * tui/tui-winsource.h (struct tui_source_window_iterator)
9044 <inner_iterator>: New etytypedef.
9045 <tui_source_window_iterator>: Take "end" parameter.
9046 <tui_source_window_iterator>: Take iterator.
9047 <operator*, advance>: Update.
9048 <m_iter>: Change type.
9049 <m_end>: New field.
9050 (struct tui_source_windows) <begin, end>: Update.
9051 * tui/tui-layout.c (tui_windows): New global.
9052 (tui_apply_current_layout): Clear tui_windows.
9053 (tui_layout_window::apply): Update tui_windows.
9054 * tui/tui-data.h (tui_windows): Declare.
9055 (all_tui_windows): Now inline function.
9056 (class tui_window_iterator, struct all_tui_windows): Remove.
9057
7c043ba6
TT
90582020-02-22 Tom Tromey <tom@tromey.com>
9059
9060 PR tui/17850:
9061 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9062 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9063 "height" argument.
9064 (class tui_layout_window) <get_sizes>: Likewise.
9065 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9066 argument.
9067 <get_sizes>: Add "height" argument.
9068 <m_vertical>: New field.
9069 * tui/tui-layout.c (tui_layout_split::clone): Update.
9070 (tui_layout_split::get_sizes): Add "height" argument.
9071 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9072 (tui_new_layout_command): Parse "-horizontal".
9073 (_initialize_tui_layout): Update help string.
9074 (tui_layout_split::specification): Add "-horizontal" when needed.
9075 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9076 argument.
9077 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9078 New methods.
9079
6bc56648
TT
90802020-02-22 Tom Tromey <tom@tromey.com>
9081
9082 * tui/tui-layout.h (enum tui_adjust_result): New.
9083 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9084 (class tui_layout_window) <adjust_size>: Return
9085 tui_adjust_result. Rewrite.
9086 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9087 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9088
c22fef7e
TT
90892020-02-22 Tom Tromey <tom@tromey.com>
9090
9091 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9092 parameter and return types.
9093 (class tui_layout_base) <specification>: Add "depth".
9094 (class tui_layout_window) <specification>: Add "depth".
9095 (class tui_layout_split) <specification>: Add "depth".
9096 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9097 and return types.
9098 (tui_new_layout_command): Parse sub-layouts.
9099 (_initialize_tui_layout): Update help string.
9100 (tui_layout_window::specification): Add "depth".
9101 (add_layout_command): Update.
9102
ee325b61
TT
91032020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * NEWS: Add "tui new-layout" item.
9106 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9107 Add new-layout command to help text.
9108 (validate_window_name): New function.
9109 (tui_new_layout_command): New function.
9110 (_initialize_tui_layout): Register "new-layout".
9111 (tui_layout_window::specification): New method.
9112 (tui_layout_window::specification): New method.
9113 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9114 method.
9115 (class tui_layout_window) <specification>: New method.
9116 (class tui_layout_split) <specification>: New method.
9117
416eb92d
TT
91182020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9121 * tui/tui-win.c (window_name_completer): Update comment.
9122 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9123 Declare method.
9124 (class tui_layout_window) <replace_window>: Likewise.
9125 (class tui_layout_split) <replace_window>: Likewise.
9126 (tui_set_layout): Don't declare.
9127 (tui_set_initial_layout): Declare function.
9128 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9129 (asm_regs_layout): New globals.
9130 (tui_current_layout, show_layout): Remove.
9131 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9132 (find_layout, tui_apply_layout): New function.
9133 (layout_completer): Remove.
9134 (tui_next_layout): Reimplement.
9135 (tui_next_layout_command): New function.
9136 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9137 (tui_regs_layout): Reimplement.
9138 (tui_regs_layout_command): New function.
9139 (extract_display_start_addr): Rewrite.
9140 (next_layout, prev_layout): Remove.
9141 (tui_layout_window::replace_window): New method.
9142 (tui_layout_split::replace_window): New method.
9143 (destroy_layout): New function.
9144 (layout_list): New global.
9145 (add_layout_command): New function.
9146 (initialize_layouts): Update.
9147 (tui_layout_command): New function.
9148 (_initialize_tui_layout): Install "layout" commands.
9149 * tui/tui-data.h (enum tui_layout_type): Remove.
9150 (tui_current_layout): Don't declare.
9151
0dbc2fc7
TT
91522020-02-22 Tom Tromey <tom@tromey.com>
9153
9154 * tui/tui-regs.c (tui_reg_layout): Remove.
9155 (tui_reg_command): Use tui_regs_layout.
9156 * tui/tui-layout.h (tui_reg_command): Declare.
9157 * tui/tui-layout.c (tui_reg_command): New function.
9158
5afe342e
TT
91592020-02-22 Tom Tromey <tom@tromey.com>
9160
9161 * tui/tui.c (tui_rl_delete_other_windows): Call
9162 tui_remove_some_windows.
9163 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9164 Declare method.
9165 (class tui_layout_window) <remove_windows>: New method.
9166 (class tui_layout_split) <remove_windows>: Declare.
9167 (tui_remove_some_windows): Declare.
9168 * tui/tui-layout.c (tui_remove_some_windows): New function.
9169 (tui_layout_split::remove_windows): New method.
9170
427326a8
TT
91712020-02-22 Tom Tromey <tom@tromey.com>
9172
9173 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9174 * tui/tui-layout.h (tui_next_layout): Declare.
9175 * tui/tui-layout.c (tui_next_layout): New function.
9176
3fe12b6d
TT
91772020-02-22 Tom Tromey <tom@tromey.com>
9178
9179 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9180 correct coordinates.
9181
59b8b5d2
TT
91822020-02-22 Tom Tromey <tom@tromey.com>
9183
9184 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9185 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9186 DATA_WIN case.
9187
2a3d458b
TT
91882020-02-22 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9191 TUI_DISASM_WIN, not tui_win_list.
9192
3f0cbb04
TT
91932020-02-22 Tom Tromey <tom@tromey.com>
9194
9195 * valprint.c (generic_val_print_enum_1)
9196 (val_print_type_code_flags): Style member names.
9197 * rust-lang.c (val_print_struct, rust_print_enum)
9198 (rust_print_struct_def, rust_internal_print_type): Style member
9199 names.
9200 * p-valprint.c (pascal_object_print_value_fields): Style member
9201 names. Only call fprintf_symbol_filtered for static members.
9202 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9203 * f-valprint.c (f_val_print): Style member names.
9204 * f-typeprint.c (f_type_print_base): Style member names.
9205 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9206 call fprintf_symbol_filtered for static members.
9207 (cp_print_class_member): Style member names.
9208 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9209 member names.
9210 * ada-valprint.c (ada_print_scalar): Style enum names.
9211 (ada_val_print_enum): Likewise.
9212 * ada-typeprint.c (print_enum_type): Style enum names.
9213
d4d947ae
TT
92142020-02-21 Tom Tromey <tom@tromey.com>
9215
9216 * psympriv.h (struct partial_symtab): Update comment.
9217
e94e944b
TT
92182020-02-21 Tom Tromey <tromey@adacore.com>
9219
9220 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9221 type is CORE_ADDR.
9222
1eb73179
TV
92232020-02-21 Tom de Vries <tdevries@suse.de>
9224
9225 PR gdb/25534
9226 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9227 if dependencies[i]->user != NULL.
9228
4f180d53
AT
92292020-02-21 Ali Tamur <tamur@google.com>
9230
9231 * dwarf2/read.c (dwarf2_name): Add null check.
9232
22b6cd70
TT
92332020-02-20 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9236 ">=", in binary search.
9237 (dwarf2_find_containing_comp_unit): New overload.
9238 (run_test): New self-test.
9239 (_initialize_dwarf2_read): Register new test.
9240
bd0cf5a6
NC
92412020-02-20 Nelson Chu <nelson.chu@sifive.com>
9242
9243 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9244 * riscv-tdep.h: Likewise.
9245 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9246 rv32-only CSR.
9247 * features/riscv/64bit-csr.xml: Regenerated.
9248
3f702acd
SDJ
92492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9250 Tom Tromey <tom@tromey.com>
9251
9252 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9253 of 'fputc_unfiltered'.
9254 (putchar_unfiltered): Call 'fputc_unfiltered'.
9255 (fputc_unfiltered): Call 'fputs_unfiltered'.
9256
d13c7322
AB
92572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9258
9259 * config.in: Regenerate.
9260 * configure: Regenerate.
9261 * configure.ac: Add --with-python-libdir option.
9262 * main.c: Use WITH_PYTHON_LIBDIR.
9263
869d8950
TT
92642020-02-19 Tom Tromey <tom@tromey.com>
9265
9266 * symtab.c (general_symbol_info::compute_and_set_names): Use
9267 obstack_strndup. Simplify call to symbol_set_demangled_name.
9268
298e9637
SM
92692020-02-19 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * dwarf2/read.c (allocate_signatured_type_table,
9272 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9273 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9274 Remove objfile parameter, update all callers.
9275
08410482
DE
92762020-02-19 Doug Evans <dje@google.com>
9277
9278 PR rust/25535
9279 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9280 rust_enum_variant calculation.
9281
dfdeeca1
TT
92822020-02-19 Tom Tromey <tromey@adacore.com>
9283
9284 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9285
2ef5453b
TT
92862020-02-19 Tom Tromey <tromey@adacore.com>
9287
9288 * ada-lang.c (cache_symbol): Use obstack_strdup.
9289
9f1528a1
AB
92902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9291
9292 * configure: Regenerate.
9293
d3c22fa8
TT
92942020-02-19 Tom Tromey <tromey@adacore.com>
9295
9296 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9297 NULL check.
9298
bf84f706
MR
92992020-02-19 Maciej W. Rozycki <macro@wdc.com>
9300
9301 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9302
d1c9b20f
AB
93032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9304
9305 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9306 if GDBSERVER is not defined.
9307 (riscv_tdesc_cache): Likewise, also store const target_desc.
9308 (STATIC_IN_GDB): Define.
9309 (riscv_create_target_description): Update declaration with
9310 STATIC_IN_GDB.
9311 (riscv_lookup_target_description): New function, only define if
9312 GDBSERVER is not defined.
9313 * arch/riscv.h (riscv_create_target_description): Declare only
9314 when GDBSERVER is defined.
9315 (riscv_lookup_target_description): New declaration when GDBSERVER
9316 is not defined.
9317 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9318 (riscv_linux_read_features): ...this, and return
9319 riscv_gdbarch_features instead of target_desc.
9320 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9321 (riscv_linux_read_description): Rename to...
9322 (riscv_linux_read_features): ...this.
9323 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9324 Update to use riscv_gdbarch_features and
9325 riscv_lookup_target_description.
9326 * riscv-tdep.c (riscv_find_default_target_description): Use
9327 riscv_lookup_target_description instead of
9328 riscv_create_target_description.
9329
373d7ac0
SM
93302020-02-18 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * valprint.c (generic_val_print_enum_1): When printing a flag
9333 enum with value 0 and there is no enumerator with value 0, print
9334 just "0" instead of "(unknown: 0x0)".
9335
b29a2df0
SM
93362020-02-18 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * valprint.c (generic_val_print_enum_1): Print unknown part of
9339 flag enum in hex.
9340
6740f0cc
SM
93412020-02-18 Simon Marchi <simon.marchi@efficios.com>
9342
9343 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9344 flag enums to contain duplicate enumerators.
9345 * valprint.c (generic_val_print_enum_1): Update comment.
9346
edd45eb0
SM
93472020-02-18 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * dwarf2/read.c: Include "count-one-bits.h".
9350 (update_enumeration_type_from_children): If an enumerator has
9351 multiple bits set, don't treat the enumeration as a "flag enum".
9352 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9353 of flag enums have 0 or 1 bit set.
9354
6d0cf446
BE
93552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9356
9357 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9358 conversion.
9359 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9360 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9361 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9362 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9363 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9364
7001c1b7
SM
93652020-02-18 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9368
fdb61c6c
SM
93692020-02-14 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9372 displaced_step_closure_up.
9373 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9374 (struct displaced_step_closure_up):
9375 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9376 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9377 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9378 Likewise.
9379 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9380 * gdbarch.c, gdbarch.h: Re-generate.
9381 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9382 displaced_step_closure_up.
9383 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9384 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9385 * infrun.h (displaced_step_closure_up): New type alias.
9386 (struct displaced_step_inferior_state) <step_closure>: Change
9387 type to displaced_step_closure_up.
9388 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9389 displaced_step_closure_up.
9390 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9391
a4a38eb4
TT
93922020-02-14 Tom Tromey <tom@tromey.com>
9393
9394 * minidebug.c (gnu_debug_key): New global.
9395 (find_separate_debug_file_in_section): Use it.
9396
e8217e61
SM
93972020-02-14 Simon Marchi <simon.marchi@efficios.com>
9398
9399 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9400 std::unique_ptr.
9401 * gdbarch.c: Re-generate.
9402 * gdbarch.h: Re-generate.
9403 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9404 change.
9405 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9406 type to std::unique_ptr.
9407 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9408 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9409 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9410 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9411 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9412 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9413 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9414 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9415 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9416
d8d83535
SM
94172020-02-14 Simon Marchi <simon.marchi@efficios.com>
9418
9419 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9420 std::unique_ptr.
9421 (displaced_step_clear): Rename to...
9422 (displaced_step_reset): ... this. Just call displaced->reset ().
9423 (displaced_step_clear_cleanup): Rename to...
9424 (displaced_step_reset_cleanup): ... this.
9425 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9426 (displaced_step_fixup): Likewise.
9427 (resume_1): Likewise.
9428 (handle_inferior_event): Restore child's memory before calling
9429 displaced_step_fixup on the parent.
9430 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9431 to std::unique_ptr.
9432 <step_closure>: Change type to std::unique_ptr.
9433
5f661e03
SM
94342020-02-14 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * arm-tdep.c: Include count-one-bits.h.
9437 (cleanup_block_store_pc): Use count_one_bits.
9438 (cleanup_block_load_pc): Use count_one_bits.
9439 (arm_copy_block_xfer): Use count_one_bits.
9440 (thumb2_copy_block_xfer): Use count_one_bits.
9441 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9442 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9443 (thumb_get_next_pcs_raw): Use count_one_bits.
9444 (arm_get_next_pcs_raw): Use count_one_bits_l.
9445 * arch/arm.c (bitcount): Remove.
9446 * arch/arm.h (bitcount): Remove.
9447
8084e579
TT
94482020-02-14 Tom Tromey <tromey@adacore.com>
9449
9450 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9451 Update.
9452 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9453 * dwarf2/loc.c (call_site_find_chain_1): Return
9454 unique_xmalloc_ptr.
9455 (call_site_find_chain): Likewise.
9456
258bf0ee
RB
94572020-02-14 Richard Biener <rguenther@suse.de>
9458
9459 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9460 on expression with division operators.
9461
f98a8458
AKS
94622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9463
9464 * MAINTAINERS (Write After Approval): Adding myself.
9465
d1437c0e
TT
94662020-02-12 Tom Tromey <tom@tromey.com>
9467
9468 * event-loop.c (event_data, gdb_event, event_handler_func):
9469 Remove.
9470
3d4560f7
TT
94712020-02-12 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9474 (dwarf2_frame_objfile_data): Add comment.
9475 (find_comp_unit, set_comp_unit): New functions.
9476 (dwarf2_frame_find_fde): Use find_comp_unit.
9477 (dwarf2_build_frame_info): Use set_comp_unit.
9478
21982304
TT
94792020-02-12 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9482 (comp_unit): Don't initialize objfile.
9483 (execute_cfa_program): Add text_offset parameter.
9484 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9485 (dwarf2_frame_cache): Update.
9486 (dwarf2_build_frame_info): Don't set "objfile" member.
9487
4debb237
TT
94882020-02-12 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9491 (decode_frame_entry): Likewise.
9492 (dwarf2_build_frame_info): Update.
9493
0d404d44
TT
94942020-02-12 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9497 (decode_frame_entry_1): Use the comp_unit obstack.
9498
a7a3ae5c
TT
94992020-02-12 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/frame.c (struct comp_unit): Add initializers and
9502 constructor.
9503 (dwarf2_frame_objfile_data): Store a comp_unit.
9504 (dwarf2_frame_find_fde): Update.
9505 (dwarf2_build_frame_info): Use "new".
9506
a9d65418
TT
95072020-02-12 Tom Tromey <tom@tromey.com>
9508
9509 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9510 (dwarf2_fde_table): Typedef for std::vector.
9511 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9512 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9513 (decode_frame_entry): Update.
9514 (dwarf2_build_frame_info): Use "new".
9515
7559c217
CB
95162020-02-12 Christian Biesinger <cbiesinger@google.com>
9517
9518 * arm-tdep.c (arm_gdbarch_init): Update.
9519 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9520 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9521 have_neon, is_m>: Change to bool.
9522
aeefc73c
CB
95232020-02-12 Christian Biesinger <cbiesinger@google.com>
9524
9525 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9526
d27b8e5f
TT
95272020-02-12 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9530
cd5900f3
HD
95312020-02-12 Hannes Domani <ssbssa@yahoo.de>
9532
9533 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9534 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9535
f056b22b
TT
95362020-02-11 Tom Tromey <tom@tromey.com>
9537
9538 * psymtab.h: Update comment.
9539
f92ff6b5
TT
95402020-02-11 Tom Tromey <tom@tromey.com>
9541
9542 * gdb_obstack.h (struct auto_obstack): Use
9543 DISABLE_COPY_AND_ASSIGN.
9544
3fd6912b
TT
95452020-02-11 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/frame.h (struct objfile): Don't forward declare.
9548
69ed9b74
CB
95492020-02-11 Christian Biesinger <cbiesinger@google.com>
9550
9551 * cris-tdep.c (cris_supply_gregset): Change signature to match
9552 what struct regset expects.
9553 (cris_regset): New struct.
9554 (fetch_core_registers): Remove.
9555 (cris_iterate_over_regset_sections): New function.
9556 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9557 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9558
bda874f6
CB
95592020-02-11 Christian Biesinger <cbiesinger@google.com>
9560
9561 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9562 registers.
9563
754e1564
CB
95642020-02-11 Christian Biesinger <cbiesinger@google.com>
9565
9566 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9567
8ddd8e0e
SM
95682020-02-11 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * configure: Re-generate.
9571
898e7f60
SM
95722020-02-11 Simon Marchi <simon.marchi@efficios.com>
9573
9574 * configure: Re-generate.
9575
58df732b
SM
95762020-02-11 Simon Marchi <simon.marchi@efficios.com>
9577
9578 * acinclude: Update warning.m4 path.
9579 * warning.m4: Move to gdbsupport.
9580
da5bd37e
TT
95812020-02-11 Tom Tromey <tromey@adacore.com>
9582
9583 * remote.c (remote_console_output): Update.
9584 * printcmd.c (printf_command): Update.
9585 * event-loop.c (gdb_wait_for_event): Update.
9586 * linux-nat.c (sigchld_handler): Update.
9587 * remote-sim.c (gdb_os_write_stdout): Update.
9588 (gdb_os_flush_stdout): Update.
9589 (gdb_os_flush_stderr): Update.
9590 (gdb_os_write_stderr): Update.
9591 * exceptions.c (print_exception): Update.
9592 * remote-fileio.c (remote_fileio_func_read): Update.
9593 (remote_fileio_func_write): Update.
9594 * tui/tui.c (tui_enable): Update.
9595 * tui/tui-interp.c (tui_interp::init): Update.
9596 * utils.c (init_page_info): Update.
9597 (putchar_unfiltered, fputc_unfiltered): Update.
9598 (gdb_flush): Update.
9599 (emit_style_escape): Update.
9600 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9601 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9602 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9603 (stderr_file::write): Update.
9604 (stderr_file::puts): Update.
9605 * ui-file.h (ui_file_isatty, ui_file_write)
9606 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9607 (ui_file_puts): Don't declare.
9608
85f0dd3c
TV
96092020-02-10 Tom de Vries <tdevries@suse.de>
9610
9611 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9612 sentinel to char *.
9613
2e927613
TV
96142020-02-09 Tom de Vries <tdevries@suse.de>
9615
9616 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9617 filename if it matches "<artificial>".
9618
6bafc845
HD
96192020-02-09 Hannes Domani <ssbssa@yahoo.de>
9620
9621 * windows-tdep.c (struct enum_value_name): New struct.
9622 (create_enum): New function.
9623 (windows_get_siginfo_type): Create and use enum types.
9624
7928d571
HD
96252020-02-09 Hannes Domani <ssbssa@yahoo.de>
9626
9627 * NEWS: Mention $_siginfo support for Windows.
9628 * windows-nat.c (handle_exception): Set siginfo_er.
9629 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9630 (windows_xfer_siginfo): New function.
9631 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9632 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9633 (init_windows_gdbarch_data): New function.
9634 (get_windows_gdbarch_data): New function.
9635 (windows_get_siginfo_type): New function.
9636 (windows_init_abi): Register windows_get_siginfo_type.
9637 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9638
6751ebae
TT
96392020-02-08 Tom Tromey <tom@tromey.com>
9640
9641 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9642 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9643 <keep>: Declare method.
9644 <m_keep>: Remove member.
9645 <~cutu_reader>: Remove.
9646 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9647 (cutu_reader::cutu_reader): Update.
9648 (cutu_reader::keep): Rename from ~cutu_reader.
9649 (process_psymtab_comp_unit, build_type_psymtabs_1)
9650 (process_skeletonless_type_unit, load_partial_comp_unit)
9651 (load_full_comp_unit, dwarf2_read_addr_index)
9652 (read_signatured_type): Update.
9653
135f5437
TT
96542020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9657 "want_partial_unit" parameter.
9658 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9659 Inline check for DW_TAG_partial_unit.
9660 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9661
9f66ff1c
TT
96622020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9665 read.c.
9666 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9667 read.c.
9668
c8a7a66f
TT
96692020-02-08 Tom Tromey <tom@tromey.com>
9670
9671 * dwarf2/read.c (read_address): Move to comp-unit.c.
9672 (dwarf2_rnglists_process, dwarf2_ranges_process)
9673 (read_attribute_value, dwarf_decode_lines_1)
9674 (var_decode_location, decode_locdesc): Update.
9675 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9676 read.c. Remove "cu" parameter.
9677 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9678 method.
9679
8266302d
TT
96802020-02-08 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9683 (read_indirect_line_string): Update.
9684 * dwarf2/comp-unit.c (read_offset): Remove.
9685 (read_comp_unit_head): Update.
9686 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9687 method.
9688 (read_offset): Don't declare.
9689
4057dfde
TT
96902020-02-08 Tom Tromey <tom@tromey.com>
9691
9692 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9693 * dwarf2/read.c (struct comp_unit_head): Move to
9694 dwarf2/comp-unit.h.
9695 (enum class rcuh_kind): Move to comp-unit.h.
9696 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9697 (read_comp_unit_head, error_check_comp_unit_head)
9698 (read_and_check_comp_unit_head): Move to comp-unit.c.
9699 (read_offset, dwarf_unit_type_name): Likewise.
9700 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9701 (cutu_reader::cutu_reader, read_call_site_scope)
9702 (find_partial_die, follow_die_offset): Update.
9703 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9704
24aa364d
TT
97052020-02-08 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/read.c (read_offset_1): Move to leb.c.
9708 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9709 (dwarf_decode_macro_bytes): Update.
9710 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9711 * dwarf2/leb.h (read_offset): Declare.
9712
2c7d5afc
TT
97132020-02-08 Tom Tromey <tom@tromey.com>
9714
9715 * dwarf2/read.c (dwarf2_section_size): Remove.
9716 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9717 Update.
9718 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9719
4075cb26
TT
97202020-02-08 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (read_initial_length): Move to leb.c.
9723 * dwarf2/leb.h (read_initial_length): Declare.
9724 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9725 handle_nonstd parameter.
9726 * dwarf2/frame.c (read_initial_length): Remove.
9727 (decode_frame_entry_1): Update.
9728
09ba997f
TT
97292020-02-08 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/loc.c (dwarf2_find_location_expression)
9732 (dwarf_evaluate_loc_desc::get_tls_address)
9733 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9734 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9735 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9736 (dwarf2_compile_property_to_c)
9737 (dwarf2_loc_desc_get_symbol_read_needs)
9738 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9739 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9740 (loclist_describe_location, loclist_tracepoint_var_ref)
9741 (loclist_generate_c_location): Update.
9742 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9743 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9744 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9745 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9746 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9747 (dwarf2_per_cu_data::addr_size)
9748 (dwarf2_per_cu_data::ref_addr_size)
9749 (dwarf2_per_cu_data::text_offset)
9750 (dwarf2_per_cu_data::addr_type): Now methods.
9751 (per_cu_header_read_in): Make per_cu "const".
9752 (dwarf2_version): Remove.
9753 (dwarf2_per_cu_data::int_type): Now a method.
9754 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9755 (set_die_type, read_array_type, read_subrange_index_type)
9756 (read_tag_string_type, read_subrange_type): Update.
9757 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9758 offset_size, ref_addr_size, text_offset, addr_type, version,
9759 objfile, int_type, addr_sized_int_type>: Declare methods.
9760
96c738c0
TT
97612020-02-08 Tom Tromey <tom@tromey.com>
9762
9763 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9764 Move earlier.
9765
8fdd972c
TT
97662020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.h (dwarf_line_debug): Declare.
9769 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9770 * dwarf2/read.c: Move line_header code to new files.
9771 (dwarf_line_debug): No longer static.
9772 * dwarf2/line-header.c: New file.
9773 * dwarf2/line-header.h: New file.
9774
03075812
TT
97752020-02-08 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/read.c (struct line_header) <file_full_name,
9778 file_file_name>: Return unique_xmalloc_ptr.
9779 (line_header::file_file_name): Update.
9780 (line_header::file_full_name): Update.
9781 (dw2_get_file_names_reader): Update.
9782 (macro_start_file): Update.
9783
bb822404
TT
97842020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/read.c (struct line_header) <file_full_name,
9787 file_file_name>: Declare methods.
9788 (dw2_get_file_names_reader): Update.
9789 (file_file_name): Now a method.
9790 (file_full_name): Likewise.
9791 (macro_start_file): Update.
9792
009b64fc
TT
97932020-02-08 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2/read.c (dwarf_always_disassemble)
9796 (show_dwarf_always_disassemble): Move to loc.c.
9797 (_initialize_dwarf2_read): Move "always-disassemble" registration
9798 to loc.c.
9799 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9800 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9801 static.
9802 (show_dwarf_always_disassemble): Move from read.c.
9803 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9804
5895093f
TT
98052020-02-08 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9808 (create_quick_file_names_table): Return htab_up.
9809 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9810 Update.
9811 * dwarf2/read.h (struct dwarf2_per_objfile)
9812 <quick_file_names_table>: Now htab_up.
9813
b3b32279
TT
98142020-02-08 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9817
1d33d811
TT
98182020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9821 Rewrite.
9822 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9823 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9824 (abbrev_table::abbrev_table): No longer inline.
9825 (ABBREV_HASH_SIZE): Remove.
9826 (abbrev_table::m_abbrevs): Now an htab_up.
9827
86de1d91
TT
98282020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9831 (cutu_reader): Update.
9832 (build_type_psymtabs_1): Update.
9833 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9834 (abbrev_table::alloc_abbrev): Update.
9835 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9836 (abbrev_table::read): New static method, renamed from
9837 abbrev_table_read_table.
9838 (abbrev_table::alloc_abbrev)
9839 (abbrev_table::add_abbrev): Now private.
9840 (abbrev_table::abbrev_table): Now private.
9841 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9842
0335378b
TT
98432020-02-08 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9846 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9847 htab_up.
9848
48b490f2
TT
98492020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9852 htab_up.
9853 (lookup_dwo_unit_in_dwp): Update.
9854 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9855 on obstack.
9856
bc68fb19
TT
98572020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9860 obstack.
9861
d15acc42
TT
98622020-02-08 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9865 line_header_hash.
9866 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9867 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9868 Change type to htab_up.
9869
eaa5fa8b
TT
98702020-02-08 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9873 htab_up. Don't allocate on obstack.
9874 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9875 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9876 Change type to htab_up.
9877
b0b6a987
TT
98782020-02-08 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9881 Change type to htab_up.
9882 * dwarf2/read.c (create_signatured_type_table_from_index)
9883 (create_signatured_type_table_from_debug_names)
9884 (create_all_type_units, add_type_unit)
9885 (lookup_dwo_signatured_type, lookup_signatured_type)
9886 (process_skeletonless_type_unit): Update.
9887 (create_debug_type_hash_table, create_debug_types_hash_table):
9888 Change type of types_htab.
9889 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9890 htab_up. Don't allocate on obstack.
9891 (create_cus_hash_table): Change type of cus_htab parameter.
9892 (struct dwo_file) <cus, tus>: Now htab_up.
9893 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9894 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9895 (queue_and_load_all_dwo_tus): Update.
9896 * dwarf2/index-write.c (write_gdbindex): Update.
9897 (write_debug_names): Update.
9898
39856def
TT
98992020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9902 dwarf2/read.c. Remove "next" member. Add constructor ntad
9903 destructor.
9904 (struct dwarf2_per_objfile) <queue>: New member.
9905 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9906 dwarf2/read.h.
9907 (dwarf2_queue, dwarf2_queue_tail): Remove.
9908 (class dwarf2_queue_guard): Add parameter to constructor. Use
9909 DISABLE_COPY_AND_ASSIGN.
9910 <m_per_objfile>: New member.
9911 <~dwarf2_queue_guard>: Rewrite.
9912 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9913 Update.
9914 (~dwarf2_queue_item): New.
9915
3e225074
TT
99162020-02-08 Tom Tromey <tom@tromey.com>
9917
9918 * dwarf2/read.c (struct die_info) <has_children>: New member.
9919 (dw2_get_file_names_reader): Remove has_children.
9920 (dw2_get_file_names): Update.
9921 (read_cutu_die_from_dwo): Remove has_children.
9922 (cutu_reader::init_tu_and_read_dwo_dies)
9923 (cutu_reader::cutu_reader): Update.
9924 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9925 Remove has_children.
9926 (build_type_psymtabs_1, process_skeletonless_type_unit)
9927 (load_partial_comp_unit, load_full_comp_unit): Update.
9928 (create_dwo_cu_reader): Remove has_children.
9929 (create_cus_hash_table, read_die_and_children): Update.
9930 (read_full_die_1,read_full_die): Remove has_children.
9931 (read_signatured_type): Update.
9932 (class cutu_reader) <has_children>: Remove.
9933
82ca8957
TT
99342020-02-08 Tom Tromey <tom@tromey.com>
9935
9936 * dwarf2/expr.c: Rename from dwarf2expr.c.
9937 * dwarf2/expr.h: Rename from dwarf2expr.h.
9938 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9939 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9940 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9941 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9942 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9943 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9944 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9945 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9946 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9947 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9948 * dwarf2/loc.c: Rename from dwarf2loc.c.
9949 * dwarf2/loc.h: Rename from dwarf2loc.h.
9950 * dwarf2/read.c: Rename from dwarf2read.c.
9951 * dwarf2/read.h: Rename from dwarf2read.h.
9952 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9953 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9954 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9955 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9956 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9957 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9958 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9959 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9960 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9961 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9962 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9963 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9964 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9965 Update.
9966 * Makefile.in (COMMON_SFILES): Update.
9967 (HFILES_NO_SRCDIR): Update.
9968
9e35d499
TT
99692020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9972 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9973
1eba2311
TT
99742020-02-08 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2read.h (struct die_info): Don't declare.
9977
e41c2da2
TT
99782020-02-08 Tom Tromey <tom@tromey.com>
9979
9980 * dwarf2read.h (die_info_ptr): Remove typedef.
9981
4fc6c0d5
TT
99822020-02-08 Tom Tromey <tom@tromey.com>
9983
9984 * dwarf2read.c (read_call_site_scope)
9985 (handle_data_member_location, dwarf2_add_member_fn)
9986 (mark_common_block_symbol_computed, read_common_block)
9987 (attr_to_dynamic_prop, partial_die_info::read)
9988 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9989 (dwarf2_symbol_mark_computed, set_die_type): Update.
9990 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9991 method.
9992 (attr_form_is_block): Don't declare.
9993 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9994
cd6c91b4
TT
99952020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2read.c (dwarf2_find_base_address, )
9998 (read_call_site_scope, rust_containing_type)
9999 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10000 (handle_data_member_location, dwarf2_add_member_fn)
10001 (get_alignment, read_structure_type, process_structure_scope)
10002 (mark_common_block_symbol_computed, read_common_block)
10003 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10004 (partial_die_info::read, read_attribute_value, new_symbol)
10005 (lookup_die_type, dwarf2_get_ref_die_offset)
10006 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10007 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10008 (dwarf2_symbol_mark_computed): Update.
10009 * dwarf2/attribute.h (struct attribute) <value_as_address,
10010 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10011 methods.
10012 (value_as_address, attr_form_is_section_offset)
10013 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10014 * dwarf2/attribute.c (attribute::value_as_address)
10015 (attribute::form_is_section_offset, attribute::form_is_constant)
10016 (attribute::form_is_ref): Now methods.
10017
162dce55
TT
100182020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2read.c (struct attribute, DW_STRING)
10021 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10022 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10023 (attr_form_is_block, attr_form_is_section_offset)
10024 (attr_form_is_constant, attr_form_is_ref): Move.
10025 * dwarf2/attribute.h: New file.
10026 * dwarf2/attribute.c: New file, from dwarf2read.c.
10027 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10028
3054dd54
TT
100292020-02-08 Tom Tromey <tom@tromey.com>
10030
10031 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10032 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10033 Move.
10034 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10035 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10036 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10037 abbrev.c.
10038 * dwarf2/abbrev.h: New file.
10039 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10040 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10041
96b79293
TT
100422020-02-08 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10045 (dwarf2_section_size, dwarf2_get_section_info)
10046 (create_signatured_type_table_from_debug_names)
10047 (create_addrmap_from_aranges, read_debug_names_from_section)
10048 (get_gdb_index_contents_from_section, read_comp_unit_head)
10049 (error_check_comp_unit_head, read_abbrev_offset)
10050 (create_debug_type_hash_table, init_cu_die_reader)
10051 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10052 (read_comp_units_from_section, create_cus_hash_table)
10053 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10054 (create_dwp_v2_section, dwarf2_rnglists_process)
10055 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10056 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10057 (read_indirect_string_from_dwz, read_addr_index_1)
10058 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10059 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10060 (fill_in_loclist_baton): Update.
10061 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10062 get_containing_section, get_bfd_owner, get_bfd_section,
10063 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10064 (dwarf2_read_section, get_section_name, get_section_file_name)
10065 (get_containing_section, get_section_bfd_owner)
10066 (get_section_bfd_section, get_section_name, get_section_file_name)
10067 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10068 declare.
10069 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10070 (dwarf2_section_info::get_bfd_owner)
10071 (dwarf2_section_info::get_bfd_section)
10072 (dwarf2_section_info::get_name)
10073 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10074 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10075 (dwarf2_section_info::read): Now methods.
10076 * dwarf-index-write.c (class debug_names): Update.
10077
2c86cff9
TT
100782020-02-08 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10081 Move to dwarf2/section.h.
10082 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10083 (get_section_bfd_section, get_section_name)
10084 (get_section_file_name, get_section_id, get_section_flags)
10085 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10086 dwarf2/section.c.
10087 * dwarf2/section.h: New file.
10088 * dwarf2/section.c: New file, from dwarf2read.c.
10089 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10090
f4382c45
TT
100912020-02-08 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10094 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10095 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10096 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10097 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10098 * dwarf2/leb.h: New file, from dwarf2read.c.
10099 * dwarf2/leb.c: New file, from dwarf2read.c.
10100 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10101 Remove.
10102 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10103 (COMMON_SFILES): Add dwarf2/leb.c.
10104
01840b7a
JB
101052020-02-08 Joel Brobecker <brobecker@adacore.com>
10106
10107 GDB 9.1 released.
10108
dfcb27e4
IB
101092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10110
10111 PR gdb/25190:
aac66a4c
SM
10112 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10113 * gdb/remote.c (remote_console_output): Update.
10114 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10115 (ui_file_puts): ...this.
10116 * gdb/ui-file.h (ui_file_puts): Add declaration.
10117 * gdb/utils.c (emit_style_escape): Update.
10118 (flush_wrap_buffer): Update.
10119 (fputs_maybe_filtered): Update.
10120 (fputs_unfiltered): Add function.
dfcb27e4 10121
faa17681
IB
101222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10123
aac66a4c
SM
10124 * gdb/event-loop.c (gdb_wait_for_event): Update.
10125 * gdb/printcmd.c (printf_command): Update.
10126 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10127 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10128 (gdb_os_flush_stderr): Update.
10129 * gdb/remote.c (remote_console_output): Update.
10130 * gdb/ui-file.c (gdb_flush): Rename to...
10131 (ui_file_flush): ...this.
10132 (stderr_file::write): Update.
10133 (stderr_file::puts): Update.
10134 * gdb/ui-file.h (gdb_flush): Rename to...
10135 (ui_file_flush): ...this.
10136 * gdb/utils.c (gdb_flush): Add function.
10137 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10138
5abbbe1d
TT
101392020-02-07 Tom Tromey <tromey@adacore.com>
10140
10141 PR breakpoints/24915:
10142 * source.c (find_and_open_source): Do not check basenames_may_differ.
10143
919adfe8
TT
101442020-02-07 Tom Tromey <tom@tromey.com>
10145
10146 * README: Update gdbserver documentation.
10147 * gdbserver: Move to top level.
10148 * configure.tgt (build_gdbserver): Remove.
10149 * configure.ac: Remove --enable-gdbserver.
10150 * configure: Rebuild.
10151 * Makefile.in (distclean): Don't mention gdbserver.
10152
1d5d29e7
SV
101532020-02-06 Shahab Vahedi <shahab@synopsys.com>
10154
10155 * source-cache.c (source_cache::ensure): Surround
10156 get_plain_source_lines with a try/catch.
10157 (source_cache::get_line_charpos): Get rid of try/catch
10158 and only check for the return value of "ensure".
10159 * tui/tui-source.c (tui_source_window::set_contents):
10160 Simplify "nlines" calculation.
10161
6eb1129c
SV
101622020-02-06 Shahab Vahedi <shahab@synopsys.com>
10163
10164 * MAINTAINERS (Write After Approval): Add myself.
10165
c6a42d11
CB
101662020-02-05 Christian Biesinger <cbiesinger@google.com>
10167
10168 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10169 function call.
10170
c8ecdda6
CB
101712020-02-05 Christian Biesinger <cbiesinger@google.com>
10172
10173 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10174
f6480e70
MR
101752020-02-05 Maciej W. Rozycki <macro@wdc.com>
10176
10177 * nat/riscv-linux-tdesc.h: New file.
10178 * nat/riscv-linux-tdesc.c: New file, taking code from...
10179 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10180 ... here.
10181 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10182 NATDEPFILES.
10183
dcc9fbc6
AB
101842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10187 we don't set the fake simulator ptid to the null_ptid.
10188
719546c4
SM
101892020-02-03 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10192 * gdbthread.h (class thread_info) <resumed>: Likewise.
10193 * infrun.c (resume_1): Likewise.
10194 (proceed): Likewise.
10195 (infrun_thread_stop_requested): Likewise.
10196 (stop_all_threads): Likewise.
10197 (handle_inferior_event): Likewise.
10198 (restart_threads): Likewise.
10199 (finish_step_over): Likewise.
10200 (keep_going_stepped_thread): Likewise.
10201 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10202 (linux_handle_extended_wait): Likewise.
10203 * record-btrace.c (get_thread_current_frame_id): Likewise.
10204 * record-full.c (record_full_wait_1): Likewise.
10205 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10206 * target.c (target_resume): Likewise.
10207 * thread.c (set_running_thread): Likewise.
10208
e409c542
AKS
102092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10210
10211 * f-valprint.c (f77_print_array_1): Changed datatype of index
10212 variable to LONGEST from int to enable it to contain bound
10213 values correctly.
10214
ee98c0da
MR
102152020-02-03 Maciej W. Rozycki <macro@wdc.com>
10216
10217 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10218 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10219 offsets according to FLEN determined.
10220 (riscv_linux_nat_target::read_description): Determine FLEN
10221 dynamically.
10222 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10223 according to FLEN determined.
10224 (riscv_linux_nat_target::store_registers): Likewise.
10225
aa66aac4
SV
102262020-02-01 Shahab Vahedi <shahab@synopsys.com>
10227
10228 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10229 when reg->group is empty and reggroup is not.
10230
fd9faca8
TT
102312020-01-31 Tom Tromey <tromey@adacore.com>
10232
10233 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10234 Call beneath target's mourn_inferior after unpushing.
10235
42330a68
AB
102362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 PR tui/9765
10239 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10240 have enough lines to fill the screen, still return the lowest
10241 address we found.
10242
7a27a45b
AB
102432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10244
10245 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10246 '-', '<', and '>' commands.
10247
c47f70e2
PA
102482020-01-29 Pedro Alves <palves@redhat.com>
10249 Sergio Durigan Junior <sergiodj@redhat.com>
10250
10251 * infcmd.c (construct_inferior_arguments): Assert that
10252 'argc' is greater than 0.
10253
5133a315
LM
102542020-01-29 Luis Machado <luis.machado@linaro.org>
10255
10256 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10257 (BRK_INSN_MASK): Define to 0xd4200000.
10258 (aarch64_program_breakpoint_here_p): New function.
10259 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10260 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10261 breakpoint.c.
10262 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10263 breakpoint.h
10264 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10265 call gdbarch_program_breakpoint_here_p.
10266 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10267 default_program_breakpoint_here_p, changed return type to bool and
10268 simplified.
10269 * breakpoint.h (program_breakpoint_here): Moved prototype to
10270 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10271 return type to bool.
10272 * gdbarch.c: Regenerate.
10273 * gdbarch.h: Regenerate.
10274 * gdbarch.sh (program_breakpoint_here_p): New method.
10275 * infrun.c (handle_signal_stop): Call
10276 gdbarch_program_breakpoint_here_p.
10277
168f8c6b
TT
102782020-01-26 Tom Tromey <tom@tromey.com>
10279
10280 * ctfread.c (struct ctf_fp_info): Reindent.
10281 (_initialize_ctfread): Remove.
10282
128a391f
TT
102832020-01-26 Tom Tromey <tom@tromey.com>
10284
10285 * psymtab.c (partial_map_expand_apply)
10286 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10287 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10288 (psym_print_stats, psym_expand_symtabs_for_function)
10289 (psym_map_symbol_filenames, psym_map_matching_symbols)
10290 (psym_expand_symtabs_matching)
10291 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10292 (maintenance_check_psymtabs): Use new methods.
10293 * psympriv.h (struct partial_symtab) <readin_p,
10294 get_compunit_symtab>: New methods.
10295 <readin, compunit_symtab>: Remove members.
10296 (struct standard_psymtab): New.
10297 (struct legacy_psymtab): Derive from standard_psymtab.
10298 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10299 standard_psymtab.
10300 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10301
0494dbec
TT
103022020-01-26 Tom Tromey <tom@tromey.com>
10303
10304 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10305 read_dependencies. Add assert.
10306 * psymtab.c (partial_symtab::read_dependencies): New method.
10307 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10308 method.
10309 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10310 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10311 read_dependencies.
10312 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10313 Add assert.
10314
8566b89b
TT
103152020-01-26 Tom Tromey <tom@tromey.com>
10316
10317 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10318 Call expand_psymtab.
10319 (xcoff_read_symtab): Call expand_psymtab.
10320 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10321 legacy_expand_psymtab.
10322 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10323 method.
10324 (struct legacy_psymtab) <expand_psymtab>: Implement.
10325 <legacy_expand_psymtab>: New member.
10326 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10327 (parse_partial_symbols): Set legacy_expand_psymtab.
10328 (psymtab_to_symtab_1): Change argument order. Call
10329 expand_psymtab.
10330 (new_psymtab): Set legacy_expand_psymtab.
10331 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10332 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10333 expand_psymtab.
10334 (dwarf2_psymtab::expand_psymtab): Rename from
10335 psymtab_to_symtab_1. Call expand_psymtab.
10336 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10337 (dbx_end_psymtab): Likewise.
10338 (dbx_psymtab_to_symtab_1): Change argument order. Call
10339 expand_psymtab.
10340 (dbx_read_symtab): Call expand_psymtab.
10341 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10342 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10343 (ctf_psymtab::read_symtab): Call expand_psymtab.
10344
077cbab2
TT
103452020-01-26 Tom Tromey <tom@tromey.com>
10346
10347 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10348 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10349 messages.
10350 * mdebugread.c (mdebug_read_symtab): Remove prints.
10351 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10352 assert.
10353 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10354
891813be
TT
103552020-01-26 Tom Tromey <tom@tromey.com>
10356
10357 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10358 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10359 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10360 legacy_symtab.
10361 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10362 * psymtab.c (psymtab_to_symtab): Call method.
10363 (dump_psymtab): Update.
10364 * psympriv.h (struct partial_symtab): Add virtual destructor.
10365 <read_symtab>: New method.
10366 (struct legacy_symtab): New.
10367 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10368 (struct pst_map) <pst>: Now a legacy_psymtab.
10369 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10370 (new_psymtab): Use legacy_psymtab.
10371 * dwarf2read.h (struct dwarf2_psymtab): New.
10372 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10373 * dwarf2read.c (dwarf2_create_include_psymtab)
10374 (dwarf2_build_include_psymtabs, create_type_unit_group)
10375 (create_partial_symtab, process_psymtab_comp_unit_reader)
10376 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10377 (set_partial_user): Use dwarf2_psymtab.
10378 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10379 (psymtab_to_symtab_1, process_full_comp_unit)
10380 (process_full_type_unit, dwarf2_ranges_read)
10381 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10382 (dwarf_decode_lines): Use dwarf2_psymtab.
10383 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10384 (add_address_entry_worker, write_one_signatured_type)
10385 (recursively_count_psymbols, recursively_write_psymbols)
10386 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10387 (write_debug_names): Likewise.
10388 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10389 <pst>: Now a legacy_psymtab.
10390 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10391 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10392 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10393 * ctfread.c (struct ctf_psymtab): New.
10394 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10395 ctf_psymtab.
10396 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10397 (create_partial_symtab): Return a ctf_psymtab.
10398 (scan_partial_symbols): Update.
10399
c3693a1d
TT
104002020-01-26 Tom Tromey <tom@tromey.com>
10401
10402 * xcoffread.c (xcoff_start_psymtab): Use new.
10403 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10404 renamed from start_psymtab_common.
10405 * psympriv.h (struct partial_symtab): Add new constructor.
10406 (start_psymtab_common): Don't declare.
10407 * mdebugread.c (parse_partial_symbols): Use new.
10408 * dwarf2read.c (create_partial_symtab): Use new.
10409 * dbxread.c (start_psymtab): Use new.
10410 * ctfread.c (create_partial_symtab): Use new.
10411
32caafd0
TT
104122020-01-26 Tom Tromey <tom@tromey.com>
10413
10414 * xcoffread.c (xcoff_end_psymtab): Use new.
10415 * psymtab.c (start_psymtab_common): Use new.
10416 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10417 Update.
10418 * psympriv.h (struct partial_symtab): Add parameters to
10419 constructor. Don't inline.
10420 (allocate_psymtab): Don't declare.
10421 * mdebugread.c (new_psymtab): Use new.
10422 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10423 * dbxread.c (dbx_end_psymtab): Use new.
10424
abaa2f23
TT
104252020-01-26 Tom Tromey <tom@tromey.com>
10426
10427 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10428 allocate_psymtab. Update documentation.
10429 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10430 allocate_psymtab. Do not use new.
10431 (allocate_psymtab): Use new. Update.
10432
6d94535f
TT
104332020-01-26 Tom Tromey <tom@tromey.com>
10434
10435 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10436 * psymtab.c (psym_print_stats): Update.
10437 * psympriv.h (struct partial_symtab) <readin,
10438 psymtabs_addrmap_supported, anonymous>: Now bool.
10439 * mdebugread.c (psymtab_to_symtab_1): Update.
10440 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10441 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10442 (process_full_comp_unit, process_full_type_unit): Update.
10443 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10444 * ctfread.c (psymtab_to_symtab): Update.
10445
6f17252b
TT
104462020-01-26 Tom Tromey <tom@tromey.com>
10447
10448 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10449 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10450 * psymtab.c (psymtab_storage): Delete psymtabs.
10451 (psymtab_storage::allocate_psymtab): Use new.
10452 (psymtab_storage::discard_psymtab): Use delete.
10453 * psympriv.h (struct partial_symtab): Add constructor and
10454 initializers.
10455
f6f1cebc
TT
104562020-01-26 Tom Tromey <tom@tromey.com>
10457
10458 * machoread.c: Do not include psympriv.h.
10459
e47e48f6
PW
104602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10461
10462 * NEWS: Mention the new option and the set/show commands.
10463
a2fedca9
PW
104642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10465
10466 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10467 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10468 (validate_exec_file): New variables, enums, functions.
10469 (exec_file_locate_attach, print_section_info): Style the filenames.
10470 (_initialize_exec): Install show_exec_file_mismatch_command and
10471 set_exec_file_mismatch_command.
10472 * gdbcore.h (validate_exec_file): Declare.
10473 * infcmd.c (attach_command): Call validate_exec_file.
10474 * remote.c ( remote_target::remote_add_inferior): Likewise.
10475
7ffa82e1
AB
104762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 * frame.c (find_frame_sal): Move call to get_next_frame into more
10479 inner scope.
10480 * inline-frame.c (inilne_state) <inline_state>: Update argument
10481 types.
10482 (inilne_state) <skipped_symbol>: Rename to...
10483 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10484 (skip_inline_frames): Build vector of skipped symbols and use this
10485 to reate the inline_state.
10486 (inline_skipped_symbol): Add a comment and some assertions, fetch
10487 skipped symbol from the list.
10488
3d92a3e3
AB
104892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 * buildsym.c (lte_is_less_than): Delete.
10492 (buildsym_compunit::end_symtab_with_blockvector): Create local
10493 lambda function to sort line table entries, and use
10494 std::stable_sort instead of std::sort.
10495 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10496 markers when looking for a previous line.
10497
94a72be7
AB
104982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10499
10500 * dwarf2read.c (lnp_state_machine::record_line): Include
10501 end_sequence parameter in debug print out. Record the line if we
10502 are at an end_sequence marker even if it's not the start of a
10503 statement.
10504 * symmisc.c (maintenance_print_one_line_table): Print end of
10505 sequence markers with 'END' not '0'.
10506
53af73bf
PA
105072020-01-24 Pedro Alves <palves@redhat.com>
10508
10509 PR gdb/25410
10510 * thread.c (scoped_restore_current_thread::restore): Use
10511 switch_to_inferior_no_thread.
10512 * exec.c: Include "progspace-and-thread.h".
10513 (add_target_sections, remove_target_sections):
10514 scoped_restore_current_pspace_and_thread instead of
10515 scoped_restore_current_thread.
10516 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10517 and aspace to the inferior before calling clone_program_space.
10518 Remove stale comment.
10519
3050c6f4
CB
105202020-01-24 Christian Biesinger <cbiesinger@google.com>
10521
10522 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10523 (arm_netbsd_nat_target::fetch_registers): ...this.
10524 (arm_nbsd_nat_target::store_registers): Rename to...
10525 (arm_netbsd_nat_target::store_registers): ...this.
10526
73685c7e
CB
105272020-01-24 Christian Biesinger <cbiesinger@google.com>
10528
10529 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10530 register_t.
10531
89203d40
CB
105322020-01-24 Christian Biesinger <cbiesinger@google.com>
10533
10534 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10535 Update comment.
10536 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10537 Likewise.
10538 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10539 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10540 the correct replacement (iterate_over_regset_sections).
10541 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10542 Update comment.
10543
1ba1ac88
AB
105442020-01-24 Graham Markall <graham.markall@embecosm.com>
10545
10546 PR gdb/23718
10547 * gdb/python/python.c (execute_gdb_command): Call
10548 async_enable_stdin in catch block.
10549
f3364a6d
AB
105502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10553 SWITCH_THRU_ALL_UIS.
10554
733d0a67
AB
105552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 PR tui/9765
10558 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10559 comment, add extra parameter, and update to store previous symbol
10560 when appropriate.
10561 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10562 add extra parameter.
10563 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10564 remove unneeded parameter, add try/catch around gdb_print_insn,
10565 rewrite to add items to asm_lines vector.
10566 (tui_find_backward_disassembly_start_address): New function.
10567 (tui_find_disassembly_address): Updated throughout.
10568 (tui_disasm_window::set_contents): Update for changes to
10569 tui_disassemble.
10570 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10571 number of lines to scroll.
10572
b3b3bada
SM
105732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10576 (SECT_OFF_DATA): Likewise.
10577 (SECT_OFF_RODATA): Likewise.
10578 (SECT_OFF_TEXT): Likewise.
10579 (SECT_OFF_BSS): Likewise.
10580 (struct objfile) <text_section_offset, data_section_offset>: New
10581 methods.
10582 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10583 objfile::text_section_offset.
10584 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10585 * coffread.c (coff_symtab_read): Likewise.
10586 (enter_linenos): Likewise.
10587 (process_coff_symbol): Likewise.
10588 * ctfread.c (get_objfile_text_range): Likewise.
10589 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10590 Use objfile::data_section_offset.
10591 * dwarf2-frame.c (execute_cfa_program): Use
10592 objfile::text_section_offset.
10593 (dwarf2_frame_find_fde): Likewise.
10594 * dwarf2read.c (create_addrmap_from_index): Likewise.
10595 (create_addrmap_from_aranges): Likewise.
10596 (dw2_find_pc_sect_compunit_symtab): Likewise.
10597 (process_psymtab_comp_unit_reader): Likewise.
10598 (add_partial_symbol): Likewise.
10599 (add_partial_subprogram): Likewise.
10600 (process_full_comp_unit): Likewise.
10601 (read_file_scope): Likewise.
10602 (read_func_scope): Likewise.
10603 (read_lexical_block_scope): Likewise.
10604 (read_call_site_scope): Likewise.
10605 (dwarf2_rnglists_process): Likewise.
10606 (dwarf2_ranges_process): Likewise.
10607 (dwarf2_ranges_read): Likewise.
10608 (dwarf_decode_lines_1): Likewise.
10609 (new_symbol): Likewise.
10610 (dwarf2_fetch_die_loc_sect_off): Likewise.
10611 (dwarf2_per_cu_text_offset): Likewise.
10612 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10613 * hppa-tdep.c (read_unwind_info): Likewise.
10614 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10615 * psympriv.h (struct partial_symtab): Likewise.
10616 * psymtab.c (find_pc_sect_psymtab): Likewise.
10617 * solib-svr4.c (enable_break): Likewise.
10618 * stap-probe.c (relocate_address): Use
10619 objfile::data_section_offset.
10620 * xcoffread.c (enter_line_range): Use
10621 objfile::text_section_offset.
10622 (read_xcoff_symtab): Likewise.
10623
ab53f382
SM
106242020-01-23 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10627 declaration to narrower scopes.
10628
e7eee665
SM
106292020-01-23 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * darwin-nat.h (struct darwin_exception_msg, enum
10632 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10633 Move up.
10634 (class darwin_nat_target) <wait_1, check_new_threads,
10635 decode_exception_message, decode_message, stop_inferior,
10636 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10637 * darwin-nat.c (darwin_check_new_threads): Rename to...
10638 (darwin_nat_target::check_new_threads): ... this.
10639 (darwin_suspend_inferior_it): Remove.
10640 (darwin_decode_exception_message): Rename to...
10641 (darwin_nat_target::decode_exception_message): ... this.
10642 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10643 (darwin_decode_message): Rename to...
10644 (darwin_nat_target::decode_message): ... this.
10645 (cancel_breakpoint): Rename to...
10646 (darwin_nat_target::cancel_breakpoint): ... this.
10647 (darwin_wait): Rename to...
10648 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10649 instead of iterate_over_inferiors.
10650 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10651 (darwin_stop_inferior): Rename to...
10652 (darwin_nat_target::stop_inferior): ... this.
10653 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10654 (darwin_init_thread_list): Rename to...
10655 (darwin_nat_target::init_thread_list): ... this.
10656 (darwin_ptrace_him): Rename to...
10657 (darwin_nat_target::ptrace_him): ... this.
10658 (darwin_nat_target::create_inferior): Pass lambda function to
10659 fork_inferior.
10660 (darwin_nat_target::detach): Call stop_inferior instead of
10661 darwin_stop_inferior.
10662 * fork-inferior.h (fork_inferior): Change init_trace_fun
10663 parameter to gdb::function_view.
10664 * fork-inferior.c (fork_inferior): Likewise.
10665
c162ed3e
HD
106662020-01-23 Hannes Domani <ssbssa@yahoo.de>
10667
10668 * i386-cygwin-tdep.c (core_process_module_section): Update.
10669 * windows-nat.c (struct lm_info_windows): Add text_offset.
10670 (windows_xfer_shared_libraries): Update.
10671 * windows-tdep.c (windows_xfer_shared_library):
10672 Add text_offset_cached argument.
10673 * windows-tdep.h (windows_xfer_shared_library): Update.
10674
a1237872
SM
106752020-01-21 Simon Marchi <simon.marchi@efficios.com>
10676
10677 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10678
b3ee6dd9
SM
106792020-01-21 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10682 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10683 replace with range-based for.
10684 (gdbsim_interrupt_inferior): Remove.
10685 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10686 with a range-based for. Inline code from
10687 gdbsim_interrupt_inferior.
10688
f9fac3c8
SM
106892020-01-21 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * infrun.c (proceed): Fix indentation.
10692
f6474de9
TT
106932020-01-21 Tom Tromey <tromey@adacore.com>
10694
10695 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10696 * python/python.c (python_extension_ops): Update.
10697 (gdbpy_colorize): New function.
10698 * python/lib/gdb/__init__.py (colorize): New function.
10699 * extension.h (ext_lang_colorize): Declare.
10700 * extension.c (ext_lang_colorize): New function.
10701 * extension-priv.h (struct extension_language_ops) <colorize>: New
10702 member.
10703 * cli/cli-style.c (_initialize_cli_style): Update help text.
10704
f0c702d4
LM
107052020-01-21 Luis Machado <luis.machado@linaro.org>
10706
10707 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10708 <cond>: Change type to bool.
10709 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10710 (aarch64_displaced_step_cb): Likewise.
10711 (aarch64_displaced_step_tb): Likewise.
10712
1ab139e5
LM
107132020-01-21 Luis Machado <luis.machado@linaro.org>
10714
10715 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10716 output.
10717
0c271889
LM
107182020-01-21 Luis Machado <luis.machado@linaro.org>
10719
10720 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10721 <pc_adjust>: Adjust the documentation.
10722 (aarch64_displaced_step_fixup): Check if PC really moved before
10723 adjusting it.
10724
4d89c1c7
TT
107252020-01-19 Tom Tromey <tom@tromey.com>
10726
10727 * disasm.c (~gdb_disassembler): New destructor.
10728 (gdb_buffered_insn_length): Call disassemble_free_target.
10729 * disasm.h (class gdb_disassembler): Declare destructor. Use
10730 DISABLE_COPY_AND_ASSIGN.
10731
c0ab21c2
TT
107322020-01-19 Tom Tromey <tom@tromey.com>
10733
10734 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10735 (die_reader_func_ftype): Remove.
10736 (cutu_reader): New class.
10737 (dw2_get_file_names_reader): Remove "data" parameter.
10738 (dw2_get_file_names): Use cutu_reader.
10739 (create_debug_type_hash_table): Update.
10740 (read_cutu_die_from_dwo): Update comment.
10741 (lookup_dwo_unit): Add dwo_name parameter.
10742 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10743 die_reader_func_ftype and data parameters.
10744 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10745 Remove die_reader_func_ftype and data parameters.
10746 (~cutu_reader): New; from init_cutu_and_read_dies.
10747 (cutu_reader::cutu_reader): Rename from
10748 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10749 and data parameters.
10750 (init_cutu_and_read_dies_simple): Remove.
10751 (struct process_psymtab_comp_unit_data): Remove.
10752 (process_psymtab_comp_unit_reader): Remove data parameter; add
10753 want_partial_unit and pretend_language parameters.
10754 (process_psymtab_comp_unit): Use cutu_reader.
10755 (build_type_psymtabs_reader): Remove data parameter.
10756 (build_type_psymtabs_1): Use cutu_reader.
10757 (process_skeletonless_type_unit): Likewise.
10758 (load_partial_comp_unit_reader): Remove.
10759 (load_partial_comp_unit): Use cutu_reader.
10760 (load_full_comp_unit_reader): Remove.
10761 (load_full_comp_unit): Use cutu_reader.
10762 (struct create_dwo_cu_data): Remove.
10763 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10764 dwo_unit parameters.
10765 (create_cus_hash_table): Use cutu_reader.
10766 (struct dwarf2_read_addr_index_data): Remove.
10767 (dwarf2_read_addr_index_reader): Remove.
10768 (dwarf2_read_addr_index): Use cutu_reader.
10769 (read_signatured_type_reader): Remove.
10770 (read_signatured_type): Use cutu_reader.
10771
45bbae5c
TT
107722020-01-19 Tom Tromey <tom@tromey.com>
10773
10774 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10775 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10776 (tui_wrefresh): Declare.
10777 * tui/tui-wingeneral.c (suppress_output): New global.
10778 (tui_suppress_output, ~tui_suppress_output): New constructor and
10779 destructor.
10780 (tui_wrefresh): New function.
10781 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10782 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10783 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10784 method.
10785 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10786 tui_wrefresh.
10787 (tui_data_window::no_refresh): New method.
10788 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10789 (tui_reg_command): Use tui_suppress_output
10790 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10791 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10792 method.
10793 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10794
4f13c1c0
TT
107952020-01-19 Tom Tromey <tom@tromey.com>
10796
10797 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10798 Handle case where symtab is null.
10799
fa47e446
SM
108002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10801
10802 * linux-fork.c (one_fork_p): Simplify.
10803
26f42329
SM
108042020-01-17 Simon Marchi <simon.marchi@efficios.com>
10805
10806 * top.c (struct qt_args): Remove.
10807 (kill_or_detach): Change return type to void, replace `void *`
10808 parameter with a proper one.
10809 (print_inferior_quit_action): Likewise.
10810 (quit_confirm): Use range-based for loop to iterate over inferiors.
10811 (quit_force): Likewise.
10812
a9ac81b1
SM
108132020-01-17 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10816 `void *` parameter with proper parameters.
10817 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10818 (print_one_inferior): Change return type to void, replace `void *`
10819 parameter with proper parameters.
10820 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10821 inferiors.
10822 (get_other_inferior): Remove.
10823 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10824 inferiors.
10825
788eca49
SM
108262020-01-17 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * mi/mi-interp.c (report_initial_inferior): Remove.
10829 (mi_interp::init): Use range-based for to iterate over inferiors.
10830
d9bc85b6
SM
108312020-01-17 Simon Marchi <simon.marchi@efficios.com>
10832
10833 * python/py-inferior.c (build_inferior_list): Remove.
10834 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10835
40c94099
CB
108362020-01-16 Christian Biesinger <cbiesinger@google.com>
10837
10838 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10839 (btrace_stitch_trace): Likewise.
10840 * charset.c (intermediate_encoding): Likewise (vaild).
10841 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10842 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10843 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10844
e0cdfe3c
HD
108452020-01-16 Hannes Domani <ssbssa@yahoo.de>
10846
10847 * windows-tdep.c (windows_get_tlb_type):
10848 Add rtl_user_process_parameters type.
10849
790f1718 108502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10851 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10852
10853 PR build/24805
10854 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10855 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10856 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10857 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10858 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10859 (ps_plog): Redeclare exported functions with default visibility.
10860
3112ed97
NA
108612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10862
10863 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10864 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10865
8dc3273e
SM
108662020-01-15 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * infcmd.c (post_create_inferior): Use get_thread_regcache
10869 instead of get_current_regcache.
10870
ff47f4f0
TT
108712020-01-14 Tom Tromey <tom@tromey.com>
10872
10873 PR symtab/12535:
10874 * python/python.c (gdbpy_decode_line): Treat empty string the same
10875 as no argument.
10876
975f45b7
TT
108772020-01-14 Tom Tromey <tom@tromey.com>
10878
10879 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10880
25e57356
TT
108812020-01-14 Tom Tromey <tom@tromey.com>
10882
10883 * nat/linux-btrace.c: Don't include <config.h>.
10884 * nat/linux-ptrace.c: Don't include <config.h>.
10885 * nat/x86-linux-dregs.c: Don't include <config.h>.
10886
05ea2a05
TT
108872020-01-14 Tom Tromey <tom@tromey.com>
10888
10889 * configure: Rebuild.
10890 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10891
01027315
TT
108922020-01-14 Tom Tromey <tom@tromey.com>
10893
10894 * nat/x86-linux-dregs.c: Include configh.h.
10895 * nat/linux-ptrace.c: Include configh.h.
10896 * nat/linux-btrace.c: Include configh.h.
10897 * defs.h: Include config.h, bfd.h.
10898 * configure.ac: Don't source common.host.
10899 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10900 * configure: Rebuild.
10901 * acinclude.m4: Update path.
10902 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10903 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10904 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10905 (CLIBS): Add LIBSUPPORT.
10906 (CDEPS): Likewise.
10907 (COMMON_SFILES): Remove gdbsupport files.
10908 (HFILES_NO_SRCDIR): Likewise.
10909 (stamp-version): Update path to create-version.sh.
10910 (ALLDEPFILES): Remove gdbsupport files.
10911
b2ceabe8
TT
109122020-01-14 Tom Tromey <tom@tromey.com>
10913
10914 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10915 USE_WIN32API when needed.
10916 * configure.ac (USE_WIN32API): Don't define.
10917 (WIN32LIBS): Use WIN32APILIBS.
10918 * configure: Rebuild.
10919
25c51f71
TT
109202020-01-14 Tom Tromey <tom@tromey.com>
10921
10922 * configure: Rebuild.
10923 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10924
717c684d
BE
109252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10926
10927 * skip.c (skip_function_command): Make skip w/o arguments use the
10928 name of the inlined function if pc is inside any inlined function.
10929
7da6a5b9
LM
109302020-01-14 Luis Machado <luis.machado@linaro.org>
10931
10932 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10933 * infrun.c (resume_1): Likewise.
10934 (handle_inferior_event): Remove stale comment.
10935 * linux-nat.c (linux_nat_target::resume): Update comments.
10936 (save_stop_reason): Likewise.
10937 (linux_nat_filter_event): Likewise.
10938 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10939
44e4c775
AB
109402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * elfread.c (record_minimal_symbol): Set section index to 0 for
10943 non-allocatable sections.
10944
18a8505e
AT
10945
109462020-01-13 Ali Tamur <tamur@google.com>
10947
10948 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10949 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10950 to gdb::optional. Update comments.
10951 (dwo_file): Update comments.
10952 (read_attribute): Update API to take an additional out parameter,
10953 need_reprocess. This is used to mark attributes that need other
10954 attributes (e.g. str_offsets_base) for correct computation which may not
10955 have been read yet.
10956 (read_attribute_reprocess): New function declaration.
10957 (read_addr_index): Likewise.
10958 (read_dwo_str_index): Likewise.
10959 (read_stub_str_index): Likewise.
10960 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10961 (lookup_addr_base): New function definition.
10962 (lookup_ranges_base): Likewise.
10963 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10964 lookup_ranges_base.
10965 (init_cutu_and_read_dies): Update comments.
10966 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10967 unit. This is used to inherit parent's str_offsets_base and addr_base.
10968 Update comments.
10969 (init_cutu_and_read_dies_simple): Reflect API changes.
10970 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10971 (create_cus_hash_table): Change API to take parent compile unit.
10972 Reflect API changes.
10973 (open_and_init_dwo_file): Reflect API changes.
10974 (dwarf2_get_pc_bounds): Update comments.
10975 (dwarf2_record_block_ranges): Likewise.
10976 (read_full_die_1): Change implementation to reprocess attributes that
10977 need str_offsets_base and addr_base.
10978 (partial_die_info::read): Likewise.
10979 (read_attribute_reprocess): New function definition.
10980 (read_attribute_value): Change API to take an additional out parameter,
10981 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10982 when a non-dwo compile unit has index based attributes.
10983 (read_attribute): Reflect API changes.
10984 (read_addr_index_1): Reflect API changes. Update comments.
10985 (dwarf2_read_addr_index_data): Reflect API changes.
10986 (dwarf2_read_addr_index): Likewise.
10987 (read_str_index): Change API and implementation. This becomes a helper
10988 to be used by the new string index related methods. Update error
10989 message and comments.
10990 (read_dwo_str_index): New function definition.
10991 (read_stub_str_index): Likewise.
10992 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10993 * symfile.h (dwarf2_debug_sections): Likewise.
10994 * xcoffread.c (dwarf2_debug_sections): Likewise.
10995
0cac9354
SM
109962020-01-13 Simon Marchi <simon.marchi@efficios.com>
10997
10998 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10999 core_reg_sect type to gdb_byte *.
11000 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11001 * cris-tdep.c (fetch_core_registers): Likewise.
11002 * corelow.c (core_target::get_core_register_section): Change
11003 type of `contents` to gdb::byte_vector.
11004
9a6d629c
AB
110052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11006
11007 * tui/tui-wingeneral.c (box_win): Position the title in the center
11008 of the border.
11009
d8b2f9e3
SM
110102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11011
11012 * corelow.c (core_target::get_core_register_section): Use
11013 std::vector instead of alloca.
11014
bb564c58
SM
110152020-01-13 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * warning.m4: Add -Wmissing-declarations to build_warnings.
11018 * configure: Re-generate.
11019
6b366111
SM
110202020-01-13 Simon Marchi <simon.marchi@efficios.com>
11021
11022 * python/python.c (init__gdb_module): Add declaration.
11023
6c265988
SM
110242020-01-13 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11027 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11028 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11029 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11030 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11031 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11032 * ada-exp.y (_initialize_ada_exp): Add declaration.
11033 * ada-lang.c (_initialize_ada_language): Add declaration.
11034 * ada-tasks.c (_initialize_tasks): Add declaration.
11035 * agent.c (_initialize_agent): Add declaration.
11036 * aix-thread.c (_initialize_aix_thread): Add declaration.
11037 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11038 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11039 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11040 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11041 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11042 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11043 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11044 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11045 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11046 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11047 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11048 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11049 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11050 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11051 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11052 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11053 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11054 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11055 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11056 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11057 * annotate.c (_initialize_annotate): Add declaration.
11058 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11059 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11060 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11061 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11062 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11063 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11064 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11065 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11066 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11067 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11068 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11069 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11070 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11071 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11072 * auto-load.c (_initialize_auto_load): Add declaration.
11073 * auxv.c (_initialize_auxv): Add declaration.
11074 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11075 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11076 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11077 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11078 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11079 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11080 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11081 * breakpoint.c (_initialize_breakpoint): Add declaration.
11082 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11083 * btrace.c (_initialize_btrace): Add declaration.
11084 * charset.c (_initialize_charset): Add declaration.
11085 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11086 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11087 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11088 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11089 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11090 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11091 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11092 * coffread.c (_initialize_coffread): Add declaration.
11093 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11094 * compile/compile.c (_initialize_compile): Add declaration.
11095 * complaints.c (_initialize_complaints): Add declaration.
11096 * completer.c (_initialize_completer): Add declaration.
11097 * copying.c (_initialize_copying): Add declaration.
11098 * corefile.c (_initialize_core): Add declaration.
11099 * corelow.c (_initialize_corelow): Add declaration.
11100 * cp-abi.c (_initialize_cp_abi): Add declaration.
11101 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11102 * cp-support.c (_initialize_cp_support): Add declaration.
11103 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11104 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11105 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11106 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11107 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11108 * ctfread.c (_initialize_ctfread): Add declaration.
11109 * d-lang.c (_initialize_d_language): Add declaration.
11110 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11111 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11112 * dbxread.c (_initialize_dbxread): Add declaration.
11113 * dcache.c (_initialize_dcache): Add declaration.
11114 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11115 * disasm.c (_initialize_disasm): Add declaration.
11116 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11117 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11118 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11119 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11120 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11121 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11122 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11123 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11124 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11125 * elfread.c (_initialize_elfread): Add declaration.
11126 * exec.c (_initialize_exec): Add declaration.
11127 * extension.c (_initialize_extension): Add declaration.
11128 * f-lang.c (_initialize_f_language): Add declaration.
11129 * f-valprint.c (_initialize_f_valprint): Add declaration.
11130 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11131 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11132 * filesystem.c (_initialize_filesystem): Add declaration.
11133 * findcmd.c (_initialize_mem_search): Add declaration.
11134 * findvar.c (_initialize_findvar): Add declaration.
11135 * fork-child.c (_initialize_fork_child): Add declaration.
11136 * frame-base.c (_initialize_frame_base): Add declaration.
11137 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11138 * frame.c (_initialize_frame): Add declaration.
11139 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11140 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11141 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11142 * gcore.c (_initialize_gcore): Add declaration.
11143 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11144 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11145 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11146 * gdbarch.c (_initialize_gdbarch): Add declaration.
11147 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11148 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11149 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11150 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11151 * go-lang.c (_initialize_go_language): Add declaration.
11152 * go32-nat.c (_initialize_go32_nat): Add declaration.
11153 * guile/guile.c (_initialize_guile): Add declaration.
11154 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11155 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11156 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11157 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11158 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11159 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11160 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11161 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11162 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11163 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11164 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11165 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11166 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11167 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11168 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11169 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11170 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11171 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11172 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11173 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11174 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11175 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11176 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11177 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11178 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11179 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11180 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11181 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11182 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11183 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11184 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11185 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11186 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11187 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11188 * infcall.c (_initialize_infcall): Add declaration.
11189 * infcmd.c (_initialize_infcmd): Add declaration.
11190 * inflow.c (_initialize_inflow): Add declaration.
11191 * infrun.c (_initialize_infrun): Add declaration.
11192 * interps.c (_initialize_interpreter): Add declaration.
11193 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11194 * jit.c (_initialize_jit): Add declaration.
11195 * language.c (_initialize_language): Add declaration.
11196 * linux-fork.c (_initialize_linux_fork): Add declaration.
11197 * linux-nat.c (_initialize_linux_nat): Add declaration.
11198 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11199 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11200 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11201 * m2-lang.c (_initialize_m2_language): Add declaration.
11202 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11203 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11204 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11205 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11206 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11207 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11208 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11209 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11210 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11211 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11212 * machoread.c (_initialize_machoread): Add declaration.
11213 * macrocmd.c (_initialize_macrocmd): Add declaration.
11214 * macroscope.c (_initialize_macroscope): Add declaration.
11215 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11216 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11217 * maint.c (_initialize_maint_cmds): Add declaration.
11218 * mdebugread.c (_initialize_mdebugread): Add declaration.
11219 * memattr.c (_initialize_mem): Add declaration.
11220 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11221 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11222 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11223 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11224 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11225 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11226 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11227 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11228 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11229 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11230 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11231 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11232 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11233 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11234 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11235 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11236 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11237 * mipsread.c (_initialize_mipsread): Add declaration.
11238 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11239 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11240 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11241 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11242 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11243 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11244 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11245 * nto-procfs.c (_initialize_procfs): Add declaration.
11246 * objc-lang.c (_initialize_objc_language): Add declaration.
11247 * observable.c (_initialize_observer): Add declaration.
11248 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11249 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11250 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11251 * osabi.c (_initialize_gdb_osabi): Add declaration.
11252 * osdata.c (_initialize_osdata): Add declaration.
11253 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11254 * parse.c (_initialize_parse): Add declaration.
11255 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11256 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11257 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11258 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11259 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11260 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11261 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11262 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11263 * printcmd.c (_initialize_printcmd): Add declaration.
11264 * probe.c (_initialize_probe): Add declaration.
11265 * proc-api.c (_initialize_proc_api): Add declaration.
11266 * proc-events.c (_initialize_proc_events): Add declaration.
11267 * proc-service.c (_initialize_proc_service): Add declaration.
11268 * procfs.c (_initialize_procfs): Add declaration.
11269 * producer.c (_initialize_producer): Add declaration.
11270 * psymtab.c (_initialize_psymtab): Add declaration.
11271 * python/python.c (_initialize_python): Add declaration.
11272 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11273 * record-btrace.c (_initialize_record_btrace): Add declaration.
11274 * record-full.c (_initialize_record_full): Add declaration.
11275 * record.c (_initialize_record): Add declaration.
11276 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11277 * regcache.c (_initialize_regcache): Add declaration.
11278 * reggroups.c (_initialize_reggroup): Add declaration.
11279 * remote-notif.c (_initialize_notif): Add declaration.
11280 * remote-sim.c (_initialize_remote_sim): Add declaration.
11281 * remote.c (_initialize_remote): Add declaration.
11282 * reverse.c (_initialize_reverse): Add declaration.
11283 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11284 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11285 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11286 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11287 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11288 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11289 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11290 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11291 Add declaration.
11292 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11293 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11294 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11295 * rust-exp.y (_initialize_rust_exp): Add declaration.
11296 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11297 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11298 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11299 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11300 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11301 * score-tdep.c (_initialize_score_tdep): Add declaration.
11302 * ser-go32.c (_initialize_ser_dos): Add declaration.
11303 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11304 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11305 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11306 * ser-uds.c (_initialize_ser_socket): Add declaration.
11307 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11308 * serial.c (_initialize_serial): Add declaration.
11309 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11310 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11311 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11312 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11313 * skip.c (_initialize_step_skip): Add declaration.
11314 * sol-thread.c (_initialize_sol_thread): Add declaration.
11315 * solib-aix.c (_initialize_solib_aix): Add declaration.
11316 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11317 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11318 * solib-frv.c (_initialize_frv_solib): Add declaration.
11319 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11320 * solib-target.c (_initialize_solib_target): Add declaration.
11321 * solib.c (_initialize_solib): Add declaration.
11322 * source-cache.c (_initialize_source_cache): Add declaration.
11323 * source.c (_initialize_source): Add declaration.
11324 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11325 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11326 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11327 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11328 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11329 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11330 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11331 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11332 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11333 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11334 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11335 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11336 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11337 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11338 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11339 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11340 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11341 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11342 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11343 * stabsread.c (_initialize_stabsread): Add declaration.
11344 * stack.c (_initialize_stack): Add declaration.
11345 * stap-probe.c (_initialize_stap_probe): Add declaration.
11346 * std-regs.c (_initialize_frame_reg): Add declaration.
11347 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11348 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11349 * symfile.c (_initialize_symfile): Add declaration.
11350 * symmisc.c (_initialize_symmisc): Add declaration.
11351 * symtab.c (_initialize_symtab): Add declaration.
11352 * target.c (_initialize_target): Add declaration.
11353 * target-connection.c (_initialize_target_connection): Add
11354 declaration.
11355 * target-dcache.c (_initialize_target_dcache): Add declaration.
11356 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11357 * thread.c (_initialize_thread): Add declaration.
11358 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11359 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11360 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11361 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11362 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11363 * tracectf.c (_initialize_ctf): Add declaration.
11364 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11365 * tracefile.c (_initialize_tracefile): Add declaration.
11366 * tracepoint.c (_initialize_tracepoint): Add declaration.
11367 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11368 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11369 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11370 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11371 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11372 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11373 * tui/tui.c (_initialize_tui): Add declaration.
11374 * typeprint.c (_initialize_typeprint): Add declaration.
11375 * ui-style.c (_initialize_ui_style): Add declaration.
11376 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11377 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11378 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11379 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11380 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11381 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11382 * unittests/filtered_iterator-selftests.c
11383 (_initialize_filtered_iterator_selftests): Add declaration.
11384 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11385 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11386 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11387 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11388 * unittests/main-thread-selftests.c
11389 (_initialize_main_thread_selftests): Add declaration.
11390 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11391 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11392 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11393 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11394 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11395 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11396 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11397 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11398 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11399 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11400 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11401 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11402 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11403 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11404 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11405 declaration.
11406 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11407 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11408 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11409 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11410 * user-regs.c (_initialize_user_regs): Add declaration.
11411 * utils.c (_initialize_utils): Add declaration.
11412 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11413 * valops.c (_initialize_valops): Add declaration.
11414 * valprint.c (_initialize_valprint): Add declaration.
11415 * value.c (_initialize_values): Add declaration.
11416 * varobj.c (_initialize_varobj): Add declaration.
11417 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11418 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11419 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11420 * windows-nat.c (_initialize_windows_nat): Add declaration.
11421 (_initialize_check_for_gdb_ini): Add declaration.
11422 (_initialize_loadable): Add declaration.
11423 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11424 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11425 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11426 * xcoffread.c (_initialize_xcoffread): Add declaration.
11427 * xml-support.c (_initialize_xml_support): Add declaration.
11428 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11429 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11430 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11431 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11432
e2de1eec
SM
114332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11434
11435 * regformats/regdat.sh: Generate declaration for init function.
11436
e0037b4c
SM
114372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11438
11439 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11440 up.
11441 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11442 close_one_inferior>: New methods.
11443 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11444 pass down target to find_inferior_pid.
11445 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11446 Pass down target to find_inferior_ptid.
11447 (gdbsim_target::create_inferior): Pass down target to
11448 add_thread_silent.
11449 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11450 target down to find_inferior_ptid and switch_to_thread.
11451 (gdbsim_target::close): Update to call close_one_inferior.
11452 (struct resume_data): Remove.
11453 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11454 directly, rather than through a void pointer.
11455 (gdbsim_target::resume): Update to call resume_one_inferior.
11456
58920b5b
SM
114572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11458
11459 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11460
4ec89149
PA
114612020-01-12 Pedro Alves <palves@redhat.com>
11462
11463 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11464 directly for the current inferior instead of
11465 discard_all_inferiors.
11466 (discard_all_inferiors): Delete.
11467
7c392d1d
TT
114682020-01-11 Tom Tromey <tom@tromey.com>
11469
11470 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11471 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11472 deprecated_safe_get_selected_frame.
11473
d9ebdab7
TBA
114742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11475
11476 * inferior.c (print_inferior): Switch inferior before printing it.
11477
f3c469b9
PA
114782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11479 Pedro Alves <palves@redhat.com>
11480
11481 * progspace-and-thread.c (switch_to_program_space_and_thread):
11482 Assert there's an inferior for PSPACE. Use
11483 switch_to_inferior_no_thread to switch the inferior too.
11484 * progspace.c (program_space::~program_space): Call
11485 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11486 (program_space::free_all_objfiles): Don't call clear_symtab_users
11487 here.
11488 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11489
65c574f6
PA
114902020-01-10 Pedro Alves <palves@redhat.com>
11491
11492 * NEWS: Mention multi-target debugging, "info connections", and
11493 "add-inferior -no-connection".
11494
2f4fcf00
PA
114952020-01-10 Pedro Alves <palves@redhat.com>
11496
11497 * infrun.c: Include "target-connection.h".
11498 (check_multi_target_resumption): New.
11499 (proceed): Call it.
11500 * target-connection.c (make_target_connection_string): Make
11501 extern.
11502 * target-connection.h (make_target_connection_string): Declare.
11503
121b3efd
PA
115042020-01-10 Pedro Alves <palves@redhat.com>
11505
11506 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11507 * inferior.c (uiout_field_connection): New function.
11508 (print_inferior): Add new "connection-id" column.
11509 (add_inferior_command): Show connection number/string of added
11510 inferior.
11511 * process-stratum-target.h
11512 (process_stratum_target::connection_string): New virtual method.
11513 (process_stratum_target::connection_number): New field.
11514 * remote.c (remote_target::connection_string): New override.
11515 * target-connection.c: New file.
11516 * target-connection.h: New file.
11517 * target.c (decref_target): Remove process_stratum targets from
11518 the connection list.
11519 (target_stack::push): Add process_stratum targets to the
11520 connection list.
11521
4f837581
PA
115222020-01-10 Pedro Alves <palves@redhat.com>
11523
11524 Revert:
11525 2016-04-12 Pedro Alves <palves@redhat.com>
11526 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11527 Remove references to name.
11528 * serial.h (struct serial) <name>: Delete.
11529
f4ec508e
PA
115302020-01-10 Pedro Alves <palves@redhat.com>
11531
11532 * gdbarch-selftests.c (register_to_value_test): Remove "target
11533 already pushed" check.
11534
5b6d1e4f
PA
115352020-01-10 Pedro Alves <palves@redhat.com>
11536 John Baldwin <jhb@FreeBSD.org>
11537
11538 * aarch64-linux-nat.c
11539 (aarch64_linux_nat_target::thread_architecture): Adjust.
11540 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11541 (task_command_1): Likewise.
11542 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11543 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11544 (aix_thread_target::store_registers)
11545 (aix_thread_target::thread_alive): Adjust.
11546 * amd64-fbsd-tdep.c: Include "inferior.h".
11547 (amd64fbsd_get_thread_local_address): Pass down target.
11548 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11549 thread's gdbarch instead of target_gdbarch.
11550 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11551 get_last_target_status.
11552 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11553 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11554 inferiors.
11555 (update_inserted_breakpoint_locations): Skip if inferiors with no
11556 execution.
11557 (update_global_location_list): When handling moribund locations,
11558 find representative inferior for location's pspace, and use thread
11559 count of its process_stratum target.
11560 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11561 * bsd-uthread.c (bsd_uthread_target::wait): Use
11562 as_process_stratum_target and adjust thread_change_ptid and
11563 add_thread calls.
11564 (bsd_uthread_target::update_thread_list): Use
11565 as_process_stratum_target and adjust find_thread_ptid,
11566 thread_change_ptid and add_thread calls.
11567 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11568 find_thread_ptid call.
11569 * corelow.c (add_to_thread_list): Adjust add_thread call.
11570 (core_target_open): Adjust add_thread_silent and thread_count
11571 calls.
11572 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11573 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11574 * event-top.c (async_disconnect): Pop targets from all inferiors.
11575 * exec.c (add_target_sections): Push exec target on all inferiors
11576 sharing the program space.
11577 (remove_target_sections): Remove the exec target from all
11578 inferiors sharing the program space.
11579 (exec_on_vfork): New.
11580 * exec.h (exec_on_vfork): Declare.
11581 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11582 Pass it down.
11583 (fbsd_nat_target::update_thread_list): Adjust.
11584 (fbsd_nat_target::resume): Adjust.
11585 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11586 down.
11587 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11588 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11589 get_thread_arch_regcache call.
11590 * fork-child.c (gdb_startup_inferior): Pass target down to
11591 startup_inferior and set_executing.
11592 * gdbthread.h (struct process_stratum_target): Forward declare.
11593 (add_thread, add_thread_silent, add_thread_with_info)
11594 (in_thread_list): Add process_stratum_target parameter.
11595 (find_thread_ptid(inferior*, ptid_t)): New overload.
11596 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11597 parameter.
11598 (all_threads()): Delete overload.
11599 (all_threads, all_non_exited_threads): Add process_stratum_target
11600 parameter.
11601 (all_threads_safe): Use brace initialization.
11602 (thread_count): Add process_stratum_target parameter.
11603 (set_resumed, set_running, set_stop_requested, set_executing)
11604 (threads_are_executing, finish_thread_state): Add
11605 process_stratum_target parameter.
11606 (switch_to_thread): Use is_current_thread.
11607 * i386-fbsd-tdep.c: Include "inferior.h".
11608 (i386fbsd_get_thread_local_address): Pass down target.
11609 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11610 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11611 have_inferiors check.
11612 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11613 (inf_ptrace_target::attach): Adjust.
11614 * infcall.c (run_inferior_call): Adjust.
11615 * infcmd.c (run_command_1): Pass target to
11616 scoped_finish_thread_state.
11617 (proceed_thread_callback): Skip inferiors with no execution.
11618 (continue_command): Rename 'all_threads' local to avoid hiding
11619 'all_threads' function. Adjust get_last_target_status call.
11620 (prepare_one_step): Adjust set_running call.
11621 (signal_command): Use user_visible_resume_target. Compare thread
11622 pointers instead of inferior_ptid.
11623 (info_program_command): Adjust to pass down target.
11624 (attach_command): Mark target's 'thread_executing' flag.
11625 (stop_current_target_threads_ns): New, factored out from ...
11626 (interrupt_target_1): ... this. Switch inferior before making
11627 target calls.
11628 * inferior-iter.h
11629 (struct all_inferiors_iterator, struct all_inferiors_range)
11630 (struct all_inferiors_safe_range)
11631 (struct all_non_exited_inferiors_range): Filter on
11632 process_stratum_target too. Remove explicit.
11633 * inferior.c (inferior::inferior): Push dummy target on target
11634 stack.
11635 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11636 Add process_stratum_target parameter, and pass it down.
11637 (have_live_inferiors): Adjust.
11638 (switch_to_inferior_and_push_target): New.
11639 (add_inferior_command, clone_inferior_command): Handle
11640 "-no-connection" parameter. Use
11641 switch_to_inferior_and_push_target.
11642 (_initialize_inferior): Mention "-no-connection" option in
11643 the help of "add-inferior" and "clone-inferior" commands.
11644 * inferior.h: Include "process-stratum-target.h".
11645 (interrupt_target_1): Use bool.
11646 (struct inferior) <push_target, unpush_target, target_is_pushed,
11647 find_target_beneath, top_target, process_target, target_at,
11648 m_stack>: New.
11649 (discard_all_inferiors): Delete.
11650 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11651 (all_inferiors, all_non_exited_inferiors): Add
11652 process_stratum_target parameter.
11653 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11654 (target_last_proc_target): New global.
11655 (follow_fork_inferior): Push target on new inferior. Pass target
11656 to add_thread_silent. Call exec_on_vfork. Handle target's
11657 reference count.
11658 (follow_fork): Adjust get_last_target_status call. Also consider
11659 target.
11660 (follow_exec): Push target on new inferior.
11661 (struct execution_control_state) <target>: New field.
11662 (user_visible_resume_target): New.
11663 (do_target_resume): Call target_async.
11664 (resume_1): Set target's threads_executing flag. Consider resume
11665 target.
11666 (commit_resume_all_targets): New.
11667 (proceed): Also consider resume target. Skip threads of inferiors
11668 with no execution. Commit resumtion in all targets.
11669 (start_remote): Pass current inferior to wait_for_inferior.
11670 (infrun_thread_stop_requested): Consider target as well. Pass
11671 thread_info pointer to clear_inline_frame_state instead of ptid.
11672 (infrun_thread_thread_exit): Consider target as well.
11673 (random_pending_event_thread): New inferior parameter. Use it.
11674 (do_target_wait): Rename to ...
11675 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11676 down.
11677 (threads_are_resumed_pending_p, do_target_wait): New.
11678 (prepare_for_detach): Adjust calls.
11679 (wait_for_inferior): New inferior parameter. Handle it. Use
11680 do_target_wait_1 instead of do_target_wait.
11681 (fetch_inferior_event): Adjust. Switch to representative
11682 inferior. Pass target down.
11683 (set_last_target_status): Add process_stratum_target parameter.
11684 Save target in global.
11685 (get_last_target_status): Add process_stratum_target parameter and
11686 handle it.
11687 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11688 (context_switch): Check inferior_ptid == null_ptid before calling
11689 inferior_thread().
11690 (get_inferior_stop_soon): Pass down target.
11691 (wait_one): Rename to ...
11692 (poll_one_curr_target): ... this.
11693 (struct wait_one_event): New.
11694 (wait_one): New.
11695 (stop_all_threads): Adjust.
11696 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11697 event's target.
11698 (switch_back_to_stepped_thread): Also consider target.
11699 (print_stop_event): Update.
11700 (normal_stop): Update. Also consider the resume target.
11701 * infrun.h (wait_for_inferior): Remove declaration.
11702 (user_visible_resume_target): New declaration.
11703 (get_last_target_status, set_last_target_status): New
11704 process_stratum_target parameter.
11705 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11706 process_stratum_target parameter, and use it.
11707 (clear_inline_frame_state (thread_info*)): New.
11708 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11709 process_stratum_target parameter.
11710 (clear_inline_frame_state (thread_info*)): Declare.
11711 * linux-fork.c (delete_checkpoint_command): Pass target down to
11712 find_thread_ptid.
11713 (checkpoint_command): Adjust.
11714 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11715 instead of just tweaking inferior_ptid.
11716 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11717 (exit_lwp): Pass target down to find_thread_ptid.
11718 (attach_proc_task_lwp_callback): Pass target down to
11719 add_thread/set_running/set_executing.
11720 (linux_nat_target::attach): Pass target down to
11721 thread_change_ptid.
11722 (get_detach_signal): Pass target down to find_thread_ptid.
11723 Consider last target status's target.
11724 (linux_resume_one_lwp_throw, resume_lwp)
11725 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11726 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11727 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11728 (linux_nat_target::async_wait_fd): New.
11729 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11730 target down.
11731 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11732 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11733 * linux-thread-db.c (struct thread_db_info::process_target): New
11734 field.
11735 (add_thread_db_info): Save target.
11736 (get_thread_db_info): New process_stratum_target parameter. Also
11737 match target.
11738 (delete_thread_db_info): New process_stratum_target parameter.
11739 Also match target.
11740 (thread_from_lwp): Adjust to pass down target.
11741 (thread_db_notice_clone): Pass down target.
11742 (check_thread_db_callback): Pass down target.
11743 (try_thread_db_load_1): Always push the thread_db target.
11744 (try_thread_db_load, record_thread): Pass target down.
11745 (thread_db_target::detach): Pass target down. Always unpush the
11746 thread_db target.
11747 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11748 target down. Always unpush the thread_db target.
11749 (find_new_threads_callback, thread_db_find_new_threads_2)
11750 (thread_db_target::update_thread_list): Pass target down.
11751 (thread_db_target::pid_to_str): Pass current inferior down.
11752 (thread_db_target::get_thread_local_address): Pass target down.
11753 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11754 target down.
11755 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11756 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11757 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11758 (procfs_init_inferior): Rename to ...
11759 (procfs_target::procfs_init_inferior): ... this and adjust.
11760 (procfs_target::create_inferior, procfs_notice_thread)
11761 (procfs_do_thread_registers): Adjust.
11762 * ppc-fbsd-tdep.c: Include "inferior.h".
11763 (ppcfbsd_get_thread_local_address): Pass down target.
11764 * proc-service.c (ps_xfer_memory): Switch current inferior and
11765 program space as well.
11766 (get_ps_regcache): Pass target down.
11767 * process-stratum-target.c
11768 (process_stratum_target::thread_address_space)
11769 (process_stratum_target::thread_architecture): Pass target down.
11770 * process-stratum-target.h
11771 (process_stratum_target::threads_executing): New field.
11772 (as_process_stratum_target): New.
11773 * ravenscar-thread.c
11774 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11775 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11776 down.
11777 * record-btrace.c (record_btrace_target::info_record): Adjust.
11778 (record_btrace_target::record_method)
11779 (record_btrace_target::record_is_replaying)
11780 (record_btrace_target::fetch_registers)
11781 (get_thread_current_frame_id, record_btrace_target::resume)
11782 (record_btrace_target::wait, record_btrace_target::stop): Pass
11783 target down.
11784 * record-full.c (record_full_wait_1): Switch to event thread.
11785 Pass target down.
11786 * regcache.c (regcache::regcache)
11787 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11788 process_stratum_target parameter and handle it.
11789 (current_thread_target): New global.
11790 (get_thread_regcache): Add process_stratum_target parameter and
11791 handle it. Switch inferior before calling target method.
11792 (get_thread_regcache): Pass target down.
11793 (get_thread_regcache_for_ptid): Pass target down.
11794 (registers_changed_ptid): Add process_stratum_target parameter and
11795 handle it.
11796 (registers_changed_thread, registers_changed): Pass target down.
11797 (test_get_thread_arch_aspace_regcache): New.
11798 (current_regcache_test): Define a couple local test_target_ops
11799 instances and use them for testing.
11800 (readwrite_regcache): Pass process_stratum_target parameter.
11801 (cooked_read_test, cooked_write_test): Pass mock_target down.
11802 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11803 (get_thread_arch_aspace_regcache): Add process_stratum_target
11804 parameter.
11805 (regcache::target): New method.
11806 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11807 (regcache::registers_changed_ptid): Add process_stratum_target
11808 parameter.
11809 (regcache::m_target): New field.
11810 (registers_changed_ptid): Add process_stratum_target parameter.
11811 * remote.c (remote_state::supports_vCont_probed): New field.
11812 (remote_target::async_wait_fd): New method.
11813 (remote_unpush_and_throw): Add remote_target parameter.
11814 (get_current_remote_target): Adjust.
11815 (remote_target::remote_add_inferior): Push target.
11816 (remote_target::remote_add_thread)
11817 (remote_target::remote_notice_new_inferior)
11818 (get_remote_thread_info): Pass target down.
11819 (remote_target::update_thread_list): Skip threads of inferiors
11820 bound to other targets. (remote_target::close): Don't discard
11821 inferiors. (remote_target::add_current_inferior_and_thread)
11822 (remote_target::process_initial_stop_replies)
11823 (remote_target::start_remote)
11824 (remote_target::remote_serial_quit_handler): Pass down target.
11825 (remote_target::remote_unpush_target): New remote_target
11826 parameter. Unpush the target from all inferiors.
11827 (remote_target::remote_unpush_and_throw): New remote_target
11828 parameter. Pass it down.
11829 (remote_target::open_1): Check whether the current inferior has
11830 execution instead of checking whether any inferior is live. Pass
11831 target down.
11832 (remote_target::remote_detach_1): Pass down target. Use
11833 remote_unpush_target.
11834 (extended_remote_target::attach): Pass down target.
11835 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11836 (remote_target::append_resumption): Pass down target.
11837 (remote_target::append_pending_thread_resumptions)
11838 (remote_target::remote_resume_with_hc, remote_target::resume)
11839 (remote_target::commit_resume): Pass down target.
11840 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11841 (remote_target::interrupt_query)
11842 (remote_target::remove_new_fork_children)
11843 (remote_target::check_pending_events_prevent_wildcard_vcont)
11844 (remote_target::remote_parse_stop_reply)
11845 (remote_target::process_stop_reply): Pass down target.
11846 (first_remote_resumed_thread): New remote_target parameter. Pass
11847 it down.
11848 (remote_target::wait_as): Pass down target.
11849 (unpush_and_perror): New remote_target parameter. Pass it down.
11850 (remote_target::readchar, remote_target::remote_serial_write)
11851 (remote_target::getpkt_or_notif_sane_1)
11852 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11853 down target.
11854 (remote_target::mourn_inferior): Pass down target. Use
11855 remote_unpush_target.
11856 (remote_target::core_of_thread)
11857 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11858 (remote_target::pid_to_exec_file)
11859 (remote_target::thread_handle_to_thread_info): Pass down target.
11860 (remote_target::async_wait_fd): New.
11861 * riscv-fbsd-tdep.c: Include "inferior.h".
11862 (riscv_fbsd_get_thread_local_address): Pass down target.
11863 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11864 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11865 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11866 Adjust.
11867 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11868 * solib-svr4.c (enable_break): Pass down target.
11869 * spu-multiarch.c (parse_spufs_run): Pass down target.
11870 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11871 * target-delegates.c: Regenerate.
11872 * target.c (g_target_stack): Delete.
11873 (current_top_target): Return the current inferior's top target.
11874 (target_has_execution_1): Refer to the passed-in inferior's top
11875 target.
11876 (target_supports_terminal_ours): Check whether the initial
11877 inferior was already created.
11878 (decref_target): New.
11879 (target_stack::push): Incref/decref the target.
11880 (push_target, push_target, unpush_target): Adjust.
11881 (target_stack::unpush): Defref target.
11882 (target_is_pushed): Return bool. Adjust to refer to the current
11883 inferior's target stack.
11884 (dispose_inferior): Delete, and inline parts ...
11885 (target_preopen): ... here. Only dispose of the current inferior.
11886 (target_detach): Hold strong target reference while detaching.
11887 Pass target down.
11888 (target_thread_name): Add assertion.
11889 (target_resume): Pass down target.
11890 (target_ops::beneath, find_target_at): Adjust to refer to the
11891 current inferior's target stack.
11892 (get_dummy_target): New.
11893 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11894 has a thread running.
11895 (initialize_targets): Rename to ...
11896 (_initialize_target): ... this.
11897 * target.h: Include "gdbsupport/refcounted-object.h".
11898 (struct target_ops): Inherit refcounted_object.
11899 (target_ops::shortname, target_ops::longname): Make const.
11900 (target_ops::async_wait_fd): New method.
11901 (decref_target): Declare.
11902 (struct target_ops_ref_policy): New.
11903 (target_ops_ref): New typedef.
11904 (get_dummy_target): Declare function.
11905 (target_is_pushed): Return bool.
11906 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11907 (all_matching_threads_iterator::all_matching_threads_iterator):
11908 Handle filter target.
11909 * thread-iter.h (struct all_matching_threads_iterator, struct
11910 all_matching_threads_range, class all_non_exited_threads_range):
11911 Filter by target too. Remove explicit.
11912 * thread.c (threads_executing): Delete.
11913 (inferior_thread): Pass down current inferior.
11914 (clear_thread_inferior_resources): Pass down thread pointer
11915 instead of ptid_t.
11916 (add_thread_silent, add_thread_with_info, add_thread): Add
11917 process_stratum_target parameter. Use it for thread and inferior
11918 searches.
11919 (is_current_thread): New.
11920 (thread_info::deletable): Use it.
11921 (find_thread_ptid, thread_count, in_thread_list)
11922 (thread_change_ptid, set_resumed, set_running): New
11923 process_stratum_target parameter. Pass it down.
11924 (set_executing): New process_stratum_target parameter. Pass it
11925 down. Adjust reference to 'threads_executing'.
11926 (threads_are_executing): New process_stratum_target parameter.
11927 Adjust reference to 'threads_executing'.
11928 (set_stop_requested, finish_thread_state): New
11929 process_stratum_target parameter. Pass it down.
11930 (switch_to_thread): Also match inferior.
11931 (switch_to_thread): New process_stratum_target parameter. Pass it
11932 down.
11933 (update_threads_executing): Reimplement.
11934 * top.c (quit_force): Pop targets from all inferior.
11935 (gdb_init): Don't call initialize_targets.
11936 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11937 Declare.
11938 (windows_add_thread, windows_delete_thread): Adjust.
11939 (get_windows_debug_event): Rename to ...
11940 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11941 * tracefile-tfile.c (tfile_target_open): Pass down target.
11942 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11943 Forward declare.
11944 (switch_to_thread): Add process_stratum_target parameter.
11945 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11946 parameter. Use it.
11947 (mi_on_resume): Pass target down.
11948 * nat/fork-inferior.c (startup_inferior): Add
11949 process_stratum_target parameter. Pass it down.
11950 * nat/fork-inferior.h (startup_inferior): Add
11951 process_stratum_target parameter.
11952 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11953
75c6c844
PA
119542020-01-10 Pedro Alves <palves@redhat.com>
11955
11956 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11957 directly. Instead find the first thread in the thread list and
11958 use switch_to_thread.
11959
78f2c40a
PA
119602020-01-10 Pedro Alves <palves@redhat.com>
11961
11962 * remote.c (remote_target::remote_add_inferior): Don't bind a
11963 process to the current inferior if the current inferior is already
11964 bound to a process.
11965
e7af6c70
TBA
119662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11967 Pedro Alves <palves@redhat.com>
11968
11969 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11970 If no process is specified, return null_ptid instead of
11971 inferior_ptid.
11972 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11973 TARGET_WAITKIND_SIGNALLED with no pid.
11974
31ba933e
PA
119752020-01-10 Pedro Alves <palves@redhat.com>
11976
11977 * remote.c (first_remote_resumed_thread): New.
11978 (remote_target::wait_as): Use it as default event_ptid instead of
11979 inferior_ptid.
11980
735fc2ca
PA
119812020-01-10 Pedro Alves <palves@redhat.com>
11982
11983 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11984
c17e02e1
PA
119852020-01-10 Pedro Alves <palves@redhat.com>
11986
11987 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11988 not -1.
11989
ab1ddbcf
PA
119902020-01-10 Pedro Alves <palves@redhat.com>
11991
11992 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11993 ptid to get_last_target_status.
11994 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11995 ptid to get_last_target_status.
11996 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11997 get_last_target_status.
11998 (info_program_command): Don't pass a target_waitstatus to
11999 get_last_target_status.
12000 * infrun.c (init_wait_for_inferior): Use
12001 nullify_last_target_wait_ptid.
12002 (get_last_target_status): Handle nullptr arguments.
12003 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12004 (print_stop_event): Don't pass a ptid to get_last_target_status.
12005 (normal_stop): Don't pass a ptid to get_last_target_status.
12006 * infrun.h (get_last_target_status, set_last_target_status): Move
12007 comments here and update.
12008 (nullify_last_target_wait_ptid): Declare.
12009 * linux-fork.c (fork_load_infrun_state): Remove local extern
12010 declaration of nullify_last_target_wait_ptid.
12011 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12012 to get_last_target_status.
12013
f3f8ece4
PA
120142020-01-10 Pedro Alves <palves@redhat.com>
12015
12016 * gdbthread.h (scoped_restore_current_thread)
12017 <dont_restore, restore, m_dont_restore>: Declare.
12018 * thread.c (thread_alive): Add assertion. Return bool.
12019 (switch_to_thread_if_alive): New.
12020 (prune_threads): Switch inferior/thread.
12021 (print_thread_info_1): Switch thread before calling target methods.
12022 (scoped_restore_current_thread::restore): New, factored out from
12023 ...
12024 (scoped_restore_current_thread::~scoped_restore_current_thread):
12025 ... this.
12026 (scoped_restore_current_thread::scoped_restore_current_thread):
12027 Add assertion.
12028 (thread_apply_all_command, thread_select): Use
12029 switch_to_thread_if_alive.
12030 * infrun.c (proceed, restart_threads, handle_signal_stop)
12031 (switch_back_to_stepped_thread): Switch current thread before
12032 calling target methods.
12033
db2d40f7
PA
120342020-01-10 Pedro Alves <palves@redhat.com>
12035
12036 * inferior.c (switch_to_inferior_no_thread): New function,
12037 factored out from ...
12038 (inferior_command): ... here.
12039 * inferior.h (switch_to_inferior_no_thread): Declare.
12040 * mi/mi-main.c (run_one_inferior): Use
12041 switch_to_inferior_no_thread.
12042
bd420a2d
PA
120432020-01-10 Pedro Alves <palves@redhat.com>
12044
12045 * infcmd.c (kill_command): Remove dead code.
12046
ddf5db90
PA
120472020-01-10 Pedro Alves <palves@redhat.com>
12048
12049 * remote.c (remote_target::mourn_inferior): No longer check
12050 whether the target is running.
12051
5018ce90
PA
120522020-01-10 Pedro Alves <palves@redhat.com>
12053
12054 * corelow.c (core_target::has_execution): Change parameter type to
12055 inferior pointer.
12056 * inferior.c (number_of_live_inferiors): Use
12057 inferior::has_execution instead of target_has_execution_1.
12058 * inferior.h (inferior::has_execution): New.
12059 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12060 inferior::has_execution instead of target_has_execution_1.
12061 * process-stratum-target.c
12062 (process_stratum_target::has_execution): Change parameter type to
12063 inferior pointer. Check the inferior's PID instead of
12064 inferior_ptid.
12065 * process-stratum-target.h
12066 (process_stratum_target::has_execution): Change parameter type to
12067 inferior pointer.
12068 * record-full.c (record_full_core_target::has_execution): Change
12069 parameter type to inferior pointer.
12070 * target.c (target_has_execution_1): Change parameter type to
12071 inferior pointer.
12072 (target_has_execution_current): Adjust.
12073 * target.h (target_ops::has_execution): Change parameter type to
12074 inferior pointer.
12075 (target_has_execution_1): Change parameter type to inferior
12076 pointer. Change return type to bool.
12077 * tracefile.h (tracefile_target::has_execution): Change parameter
12078 type to inferior pointer.
12079
74375d18
PA
120802020-01-10 Pedro Alves <palves@redhat.com>
12081
12082 * exceptions.c (print_flush): Remove current_top_target() check.
12083
acdf84a6
PA
120842020-01-10 Pedro Alves <palves@redhat.com>
12085
12086 * remote.c (show_remote_exec_file): Show the current inferior's
12087 exec-file instead of the command variable's value.
12088
ec506636
PA
120892020-01-10 Pedro Alves <palves@redhat.com>
12090
12091 * record-full.c (record_full_resume_ptid): New global.
12092 (record_full_target::resume): Set it.
12093 (record_full_wait_1): Use record_full_resume_ptid instead of
12094 inferior_ptid.
12095
873657b9
PA
120962020-01-10 Pedro Alves <palves@redhat.com>
12097
12098 * gdbthread.h (scoped_restore_current_thread)
12099 <dont_restore, restore, m_dont_restore>: Declare.
12100 * thread.c (thread_alive): Add assertion. Return bool.
12101 (switch_to_thread_if_alive): New.
12102 (prune_threads): Switch inferior/thread.
12103 (print_thread_info_1): Switch thread before calling target methods.
12104 (scoped_restore_current_thread::restore): New, factored out from
12105 ...
12106 (scoped_restore_current_thread::~scoped_restore_current_thread):
12107 ... this.
12108 (scoped_restore_current_thread::scoped_restore_current_thread):
12109 Add assertion.
12110 (thread_apply_all_command, thread_select): Use
12111 switch_to_thread_if_alive.
12112
7f0ae84c
GB
121132020-01-10 George Barrett <bob@bob131.so>
12114
12115 * stap-probe.c (stap_modify_semaphore): Don't check for null
12116 semaphores.
12117 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12118 for null semaphores.
12119
f5a7c406
AB
121202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12121
12122 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12123 all source windows, and maintain horizontal scroll status while
12124 doing so.
12125
9ae6bf64
TT
121262020-01-09 Tom Tromey <tom@tromey.com>
12127
12128 PR tui/18932:
12129 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12130 update_source_window, not print_source_lines.
12131
b2efe70c
AB
121322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12133
12134 * tui/tui.c (tui_enable): Register tui hooks after calling
12135 tui_display_main.
12136
5f23a082
CB
121372020-01-09 Christian Biesinger <cbiesinger@google.com>
12138
12139 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12140
3061113b
SM
121412020-01-08 Simon Marchi <simon.marchi@efficios.com>
12142
12143 * thread.c (print_thread_info_1): Fix indentation.
12144
57d75002
CB
121452020-01-09 Christian Biesinger <cbiesinger@google.com>
12146
12147 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12148 unique_xmalloc_ptr outside the if to always free the demangled name.
12149
6a053cb1
TT
121502020-01-08 Tom Tromey <tromey@adacore.com>
12151
12152 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12153 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12154 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12155 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12156 Remove.
12157 (section_offsets): New typedef.
12158 * symtab.c (fixup_section, get_msymbol_address): Update.
12159 * symmisc.c (dump_msymbols): Update.
12160 * symfile.h (relative_addr_info_to_section_offsets)
12161 (symfile_map_offsets_to_segments): Update.
12162 * symfile.c (build_section_addr_info_from_objfile)
12163 (init_objfile_sect_indices): Update.
12164 (struct place_section_arg): Change type of "offsets".
12165 (place_section): Update.
12166 (relative_addr_info_to_section_offsets): Change type of
12167 "section_offsets". Remove "num_sections" parameter.
12168 (default_symfile_offsets, syms_from_objfile_1)
12169 (set_objfile_default_section_offset): Update.
12170 (reread_symbols): No need to preserve section offsets by hand.
12171 (symfile_map_offsets_to_segments): Change type of "offsets".
12172 * stap-probe.c (relocate_address): Update.
12173 * stabsread.h (process_one_symbol): Update.
12174 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12175 (solib_target_relocate_section_addresses): Update.
12176 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12177 Update.
12178 * solib-frv.c (frv_relocate_main_executable): Update.
12179 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12180 * solib-aix.c (solib_aix_get_section_offsets): Change return
12181 type.
12182 (solib_aix_solib_create_inferior_hook): Update.
12183 * remote.c (remote_target::get_offsets): Update.
12184 * psymtab.c (find_pc_sect_psymtab): Update.
12185 * psympriv.h (struct partial_symbol) <address, text_low,
12186 text_high>: Update.
12187 * objfiles.h (obj_section_offset): Update.
12188 (struct objfile) <section_offsets>: Change type.
12189 <num_sections>: Remove.
12190 (objfile_relocate): Update.
12191 * objfiles.c (entry_point_address_query): Update
12192 (relocate_one_symbol): Change type of "section_offsets".
12193 (objfile_relocate1, objfile_relocate1): Change type of
12194 "new_offsets".
12195 (objfile_rebase1): Update.
12196 * mipsread.c (mipscoff_symfile_read): Update.
12197 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12198 parameter.
12199 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12200 (parse_external, psymtab_to_symtab_1): Update.
12201 * machoread.c (macho_symfile_offsets): Update.
12202 * ia64-tdep.c (ia64_find_unwind_table): Update.
12203 * hppa-tdep.c (read_unwind_info): Update.
12204 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12205 * dwarf2read.c (create_addrmap_from_index)
12206 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12207 (process_psymtab_comp_unit_reader, add_partial_symbol)
12208 (add_partial_subprogram, process_full_comp_unit)
12209 (read_file_scope, read_func_scope, read_lexical_block_scope)
12210 (read_call_site_scope, dwarf2_rnglists_process)
12211 (dwarf2_ranges_process, dwarf2_ranges_read)
12212 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12213 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12214 Update.
12215 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12216 Update.
12217 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12218 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12219 (process_one_symbol): Change type of "section_offsets".
12220 * ctfread.c (get_objfile_text_range): Update.
12221 * coffread.c (coff_symtab_read, enter_linenos)
12222 (process_coff_symbol): Update.
12223 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12224 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12225
456e800a
TT
122262020-01-08 Tom Tromey <tromey@adacore.com>
12227
12228 * dwarf2read.c (parse_macro_definition): Use std::string.
12229 (parse_macro_definition): Likewise.
12230
6dfa2fc2
TT
122312020-01-08 Tom Tromey <tromey@adacore.com>
12232
12233 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12234 (ATTR_ALLOC_CHUNK): Remove.
12235
421d1616
TT
122362020-01-08 Tom Tromey <tromey@adacore.com>
12237
12238 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12239
43816ebc
TT
122402020-01-08 Tom Tromey <tromey@adacore.com>
12241
12242 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12243 (dwarf2_compute_name, open_dwo_file): Likewise.
12244 (process_enumeration_scope): Use std::vector.
12245 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12246 (partial_die_info::fixup, dwarf2_start_subfile)
12247 (guess_full_die_structure_name, dwarf2_name): Likewise.
12248 (determine_prefix): Update.
12249 (guess_full_die_structure_name): Make return type const.
12250 (partial_die_full_name): Return unique_xmalloc_ptr.
12251 (DW_FIELD_ALLOC_CHUNK): Remove.
12252
4212d509
TT
122532020-01-07 Tom Tromey <tromey@adacore.com>
12254
12255 PR build/24937:
12256 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12257
06a6207a
JT
122582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12259
12260 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12261
153d79c4
AB
122622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12263
12264 * stack.c (print_frame_info): Move disassemble_next_line code
12265 inside source_print block.
12266
66182876
EZ
122672020-01-06 Eli Zaretskii <eliz@gnu.org>
12268
12269 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12270 gdb/signals.h, as we are now using native signal symbols.
12271
cbfa8581
SV
122722020-01-06 Shahab Vahedi <shahab@synopsys.com>
12273
12274 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12275 overflow by an early check of content vs threshold.
aac66a4c 12276 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12277 Likewise.
12278
3f602821
EZ
122792020-01-06 Eli Zaretskii <eliz@gnu.org>
12280
12281 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12282
a08c904d
JT
122832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12284
12285 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12286 export table if no section contains it's RVA.
12287
89a65580
EZ
122882020-01-06 Eli Zaretskii <eliz@gnu.org>
12289
12290 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12291
8b7fcda2
HD
122922020-01-06 Hannes Domani <ssbssa@yahoo.de>
12293
12294 * source.c (print_source_lines_base): Set last_line_listed.
12295
a61b4f69
SV
122962020-01-06 Shahab Vahedi <shahab@synopsys.com>
12297
12298 * tui/tui-disasm.c: Remove trailing spaces.
12299
559e7e50
EZ
123002020-01-06 Eli Zaretskii <eliz@gnu.org>
12301 Pedro Alves <palves@redhat.com>
12302
12303 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12304 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12305 (windows_gdb_signal_to_target): New function, uses the above
12306 enumeration to convert GDB internal signal codes to equivalent
12307 Windows codes.
12308 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12309 * windows-nat.c: Include "gdb_wait.h".
12310 (get_windows_debug_event): Extract the fatal exception from the
12311 exit status and convert to the equivalent Posix signal number.
12312 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12313 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12314 * gdbsupport/gdb_wait.c: New file, implements
12315 windows_status_to_termsig.
12316 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12317 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12318
f2302a34
AB
123192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12320
12321 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12322 show_layout.
12323
6a5206eb
LM
123242020-01-05 Luis Machado <luis.machado@linaro.org>
12325
12326 * aarch64-linux-nat.c
12327 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12328 and bfd_mach_aarch64.
12329
6ec1d75e
PW
123302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12331
12332 * ui-file.c (stdio_file::can_emit_style_escape)
12333 (tee_file::can_emit_style_escape): Ensure style is used also on
12334 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12335 to gdb_stdout.
12336 * main.c (set_gdb_data_directory): Use file style to output the
12337 warning that the given pathname is not a directory.
12338 * top.c (show_history_filename, gdb_safe_append_history)
12339 (show_gdb_datadir): Use file style.
12340
44f81a76
HD
123412020-01-03 Hannes Domani <ssbssa@yahoo.de>
12342
12343 * solib-target.c (struct lm_info_target):
12344 Change offsets to be a unique_xmalloc_ptr.
12345 (solib_target_relocate_section_addresses): Update.
12346
25057eb0
HD
123472020-01-03 Hannes Domani <ssbssa@yahoo.de>
12348
12349 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12350
6e2118f5
BE
123512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12352
12353 * MAINTAINERS (Write After Approval): Add myself.
12354
8133c7dc
LM
123552020-01-02 Luis Machado <luis.machado@linaro.org>
12356
12357 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12358 Cell BE architecture.
12359 * target.h (struct target_ops) <thread_architecture>: Likewise.
12360
48189bec
HD
123612020-01-01 Hannes Domani <ssbssa@yahoo.de>
12362
12363 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12364
ead1063b
HD
123652020-01-01 Hannes Domani <ssbssa@yahoo.de>
12366
12367 * MAINTAINERS (Write After Approval): Add myself.
12368
e5d78223
JB
123692020-01-01 Joel Brobecker <brobecker@adacore.com>
12370
12371 * gdbarch.sh: Update copyright year range of generated files.
12372
b811d2c2
JB
123732020-01-01 Joel Brobecker <brobecker@adacore.com>
12374
12375 Update copyright year range in all GDB files.
12376
5f4def5c
JB
123772020-01-01 Joel Brobecker <brobecker@adacore.com>
12378
12379 * copyright.py: Convert to Python 3.
12380
51fd4002
JB
123812020-01-01 Joel Brobecker <brobecker@adacore.com>
12382
12383 * copyright.py: Adapt after move of gnulib directory from gdb
12384 directory to toplevel directory.
12385
5fb651f2
JB
123862020-01-01 Joel Brobecker <brobecker@adacore.com>
12387
12388 * copyright.py (main): Exit if run from the wrong directory.
12389
5dd8bf88
JB
123902020-01-01 Joel Brobecker <brobecker@adacore.com>
12391
12392 * top.c (print_gdb_version): Change copyright year to 2020.
12393
9f71dacb 123942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12395
9f71dacb 12396 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12397
9f71dacb 12398For older changes see ChangeLog-2019.
c906108c
SS
12399\f
12400Local Variables:
12401mode: change-log
12402left-margin: 8
12403fill-column: 74
12404version-control: never
57da7796 12405coding: utf-8
c906108c 12406End: