]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix gdb.base/advance-until-multiple-locations.exp with some compilers
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e0814aae
TT
12020-08-28 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (xcoff_end_psymtab): Update comment.
4 * dbxread.c (dbx_end_psymtab): Update comment.
5
626d2320
TV
62020-08-28 Tom de Vries <tdevries@suse.de>
7
8 PR breakpoint/26544
9 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
10 event_location.
11 (create_breakpoint): Same.
12 (base_breakpoint_decode_location): Same.
13 (bkpt_create_sals_from_location): Same.
14 (bkpt_decode_location): Same.
15 (bkpt_probe_create_sals_from_location): Same.
16 (bkpt_probe_decode_location): Same.
17 (tracepoint_create_sals_from_location): Same.
18 (tracepoint_decode_location): Same.
19 (tracepoint_probe_decode_location): Same.
20 (strace_marker_create_sals_from_location): Same.
21 (strace_marker_decode_location): Same.
22 (create_sals_from_location_default): Same.
23 (decode_location_default): Same.
24 * breakpoint.h (struct breakpoint_ops): Same.
25 (create_breakpoint): Same.
26 * linespec.h (decode_line_full): Same.
27 * linespec.c (decode_line_full): Same. Throw error if
28 result.size () == 0.
29
df631783
PA
302020-08-27 Pedro Alves <pedro@palves.net>
31
32 PR gdb/26524
33 * breakpoint.c (until_break_fsm) <location_breakpoint,
34 caller_breakpoint>: Delete fields.
35 <breakpoints>: New field.
36 <until_break_fsm>: Adjust to save a breakpoint vector instead of
37 two individual breakpoints.
38 (until_break_fsm::should_stop): Loop over breakpoints in the
39 breakpoint vector.
40 (until_break_fsm::clean_up): Adjust to clear the breakpoints
41 vector.
42 (until_break_command): Handle location expanding into multiple
43 sals.
44
b2b38aa4
PA
452020-08-27 Pedro Alves <pedro@palves.net>
46
47 PR gdb/26523
48 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
49 bp_until breakpoints user-specified locations. Update intro
50 comment.
51
b886559f
SM
522020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
55 gdb_bfd_sections): New.
56 * maint.c (print_bfd_section_info): Change param type to
57 maint_print_section_data.
58 (print_objfile_section_info): Likewise.
59 (print_bfd_section_info_maybe_relocated): Likewise.
60 (maintenance_info_sections): Use gdb_bfd_sections.
61
4c6e63bf
SV
622020-08-25 Shahab Vahedi <shahab@synopsys.com>
63
64 * MAINTAINERS: Add ARC target and maintainer.
65
8d7f0635
AK
662020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
67
68 * configure.tgt: ARC support for GNU/Linux.
69 * Makefile.in (ALL_TARGET_OBJS): Likewise.
70 * arc-linux-tdep.c: New file.
71 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
72 * arc-tdep.c (arc_write_pc): Use it.
73
fdd8731b
SV
742020-08-25 Shahab Vahedi <shahab@synopsys.com>
75
76 * arc-tdep.c (arc_check_for_hardware_loop): New.
77 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
78
22459524
SV
792020-08-25 Shahab Vahedi <shahab@synopsys.com>
80
81 * arc-tdep.h: Include "gdbarch.h".
82
995d3a19
SV
832020-08-25 Shahab Vahedi <shahab@synopsys.com>
84
85 * arch/arc.h
86 (arc_gdbarch_features): New class to stir the selection of target XML.
87 (arc_create_target_description): Use FEATURES to choose XML target.
88 (arc_lookup_target_description): Use arc_create_target_description
89 to create _new_ target descriptions or return the already created
90 ones if the FEATURES is the same.
91 * arch/arc.c: Implementation of prototypes described above.
92 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
93 (arc_gdbarch_features_init): Initialize the FEATURES struct.
94 * arc-tdep.c (*_feature_name): Make feature names consistent.
95 (arc_register_feature): A new struct to hold information about
96 registers of a particular target/feature.
97 (arc_check_tdesc_feature): Check if XML provides registers in
98 compliance with ARC_REGISTER_FEATURE structs.
99 (arc_update_acc_reg_names): Add aliases for r58 and r59.
100 (determine_*_reg_feature_set): Which feature name to look for.
101 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
102 (mach_type_to_arc_isa): Convert from a set of binutils machine types
103 to expected ISA enums to be used in arc_gdbarch_features structs.
104 * features/Makefile (FEATURE_XMLFILES): Add new files.
105 * gdb/features/arc/v1-aux.c: New file.
106 * gdb/features/arc/v1-aux.xml: Likewise.
107 * gdb/features/arc/v1-core.c: Likewise.
108 * gdb/features/arc/v1-core.xml: Likewise.
109 * gdb/features/arc/v2-aux.c: Likewise.
110 * gdb/features/arc/v2-aux.xml: Likewise.
111 * gdb/features/arc/v2-core.c: Likewise.
112 * gdb/features/arc/v2-core.xml: Likewise.
113 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
114
3945d2d7
GM
1152020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
116 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 PR m2/26372
fc5d6901 119 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
120 an assert. Remove single element array indexing pattern as the
121 MULTI_SUBSCRIPT support will handle this case too.
122
2677f2d3
SM
1232020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * value.h (valprint_check_validity): Move declaration from
126 here...
127 * valprint.h (valprint_check_validity): ... to here.
128
c426fddb
SM
1292020-08-24 Simon Marchi <simon.marchi@efficios.com>
130
131 * debug.h: New file.
132 * debug.c (debug_prefixed_vprintf): New function.
133 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
134 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
135
1eb8556f
SM
1362020-08-24 Simon Marchi <simon.marchi@efficios.com>
137
138 * infrun.h (infrun_debug_printf_1): New function declaration.
139 (infrun_debug_printf): New macro.
140 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
141 throughout.
142 (infrun_debug_printf): New function.
143 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
144 (handle_jit_event): Likewise.
145
b8fff44e
MW
1462020-08-21 Mark Wielaard <mark@klomp.org>
147
148 * ada-lex.l: Extend register warnings diagnostics comment for g++.
149
d19c3068
SM
1502020-08-22 Simon Marchi <simon.marchi@efficios.com>
151
152 * frame.c (enum class frame_id_status): New.
153 (struct frame_info) <this_id::p>: Change type to frame_id_status.
154 (fprintf_frame): Update.
155 (compute_frame_id): Set frame id status to "computing" on entry.
156 Set it back to "not_computed" on failure and to "computed" on
157 success.
158 (get_frame_id): Assert the frame id is not being computed.
159 (create_sentinel_frame): Use frame_id_status::COMPUTED.
160 (create_new_frame): Likewise.
161 (frame_cleanup_after_sniffer): Update assert.
162
b70e516e
SM
1632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * regcache.c (pid_ptid_regcache_map): New type.
166 (target_ptid_regcache_map): Remove.
167 (target_pid_ptid_regcache_map): New type.
168 (regcaches): Change type to target_pid_ptid_regcache_map.
169 (get_thread_arch_aspace_regcache): Update.
170 (regcache_thread_ptid_changed): Update, handle pid-like ptid
171 case.
172 (regcaches_size): Update.
173 (regcache_count): Update.
174 (registers_changed_ptid_target_pid_test): New.
175 (_initialize_regcache): Register new test.
176
cdd9148a
SM
1772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * regcache.c (regcache_count): New.
180 (struct regcache_test_data): New.
181 (regcache_test_data_up): New.
182 (populate_regcaches_for_test): New.
183 (regcaches_test): Remove.
184 (get_thread_arch_aspace_regcache_test): New.
185 (registers_changed_ptid_all_test): New.
186 (registers_changed_ptid_target_test): New.
187 (registers_changed_ptid_target_ptid_test): New.
188 (regcache_thread_ptid_changed): Remove regcache_count lambda.
189 (_initialize_regcache): Register new tests.
190
dd125343
SM
1912020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
194 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
195 gdbarch and aspace parameter. Use current inferior's aspace.
196 Validate regcache's arch value.
197 (regcaches_test): Update.
198
3ee93972
SM
1992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * regcache.c (regcaches_test): Call registers_changed.
202
33bf4c5c
TBA
2032020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
204
205 * infrun.c (process_event_stop_test): Fix typo "breapoint".
206
c2fd7fae
AKS
2072020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
208
209 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
210 to find the end of prologue for flang compiled binaries.
211 * arm-tdep.c (arm_skip_prologue): Likewise.
212 * i386-tdep.c (i386_skip_prologue): Likewise.
213 * producer.c (producer_is_llvm): New function.
214 (producer_parsing_tests): Added new tests for clang/flang.
215 * producer.h (producer_is_llvm): New declaration.
216
9327494e
SM
2172020-08-18 Simon Marchi <simon.marchi@efficios.com>
218
219 * linux-nat.c (linux_nat_debug_printf): New function.
220 (linux_nat_debug_printf_1): New macro. Use throughout the file.
221
d138725a
AM
2222020-08-18 Aaron Merey <amerey@redhat.com>
223
224 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
225 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
226 (CLIBS): Add DEBUGINFOD_LIBS.
227
f9b11e6b
ST
2282020-08-17 Sergei Trofimovich <siarheit@google.com>
229
230 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
231 'gdbarch_num_regs'.
232
3ae7ab99
TT
2332020-08-17 Tom Tromey <tromey@adacore.com>
234
235 * ada-varobj.c (ada_varobj_decode_var): Handle case where
236 ada_get_decoded_value returns NULL.
237
b017825f
TT
2382020-08-17 Tom Tromey <tromey@adacore.com>
239
240 * python/py-inferior.c (infpy_search_memory): Use
241 gdb_py_object_from_ulongest.
242 * python/py-infevents.c (create_inferior_call_event_object)
243 (create_memory_changed_event_object): Use
244 gdb_py_object_from_ulongest.
245 * python/py-linetable.c (ltpy_entry_get_pc): Use
246 gdb_py_object_from_ulongest.
247
7635cf79
SM
2482020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * loc.c (class symbol_needs_eval_context): Fix indentation.
251
f54be24b
SM
2522020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
255 bool.
256
53d5a2a5
TV
2572020-08-17 Tom de Vries <tdevries@suse.de>
258
259 PR gdb/26393
260 * gdbtypes.c (dump_dynamic_prop): New function.
261 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
262
547ce8f0
TV
2632020-08-15 Tom de Vries <tdevries@suse.de>
264
265 PR backtrace/26390
266 * stack.c (print_frame_args): Temporarily set the selected
267 frame to FRAME while printing the frame's arguments.
268
6ea815e7
PFC
2692020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
270
271 PR breakpoints/26385
272 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
273 Always clear watchpoint with PTRACE_SET_DEBUGREG.
274
6e562fa3
PFC
2752020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
276
277 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
278 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
279 and >= to check return value instead of == -1 and != -1.
280
d369b608
SM
2812020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * utils.h (class gdb_argv) <as_array_view>: New method.
284 * utils.c (gdb_argv_as_array_view_test): New.
285 (_initialize_utils): Register selftest.
286 * maint.c (maintenance_selftest): Use the new method.
287
b31488a3
KR
2882020-08-13 Kamil Rytarowski <n54@gmx.com>
289
290 * target.h (supports_dumpcore, dumpcore): New
291 function declarations.
292 * target.c (supports_dumpcore, dumpcore): New
293 functions.
294 * target-delegates.c: Rebuild.
295 * gcore.c (gcore_command): Use target_supports_dumpcore ()
296 and target_dumpcore ().
297
002a3166
AM
2982020-08-13 Aaron Merey <amerey@redhat.com>
299
300 * debuginfod-support.c: Replace global variables with user_data.
301
ece5bc8a
SM
3022020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * maint.c (maintenance_selftest): Split args and pass array_view
305 to run_tests.
306
6d8a0a5e
LM
3072020-08-12 Luis Machado <luis.machado@linaro.org>
308
309 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
310 type's length.
311 Use %s and pulongest to print the length.
312
7cf663a9
PA
3132020-08-12 Pedro Alves <palves@redhat.com>
314
315 * NEWS: Move "Multi-target debugging support" item to the
316 "Changes since GDB 9" section.
317
27c7b875
PA
3182020-08-12 Pedro Alves <palves@redhat.com>
319
320 PR gdb/26336
321 * progspace.c (program_space::remove_objfile): Invalidate the
322 frame cache.
323
1796a2a1
TV
3242020-08-11 Tom de Vries <tdevries@suse.de>
325
326 * MAINTAINERS: Mark ms1 as deleted.
327
f8e3fe0d
LM
3282020-08-10 Luis Machado <luis.machado@linaro.org>
329
330 PR gdb/26310
331
332 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
333 act accordingly.
334 (aarch64_analyze_prologue_test): Add more unit tests to exercise
335 movz/str/stur/stp skipping behavior.
336
cc308722
LM
3372020-08-10 Luis Machado <luis.machado@linaro.org>
338
339 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
340 struct user_sve_header instead of struct sve_context.
341
041d9819
SM
3422020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * read.h (dwarf2_fetch_die_loc_sect_off,
345 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
346 `void *` parameter with function_view.
347 * read.c (dwarf2_fetch_die_loc_sect_off,
348 dwarf2_fetch_die_loc_cu_off): Likewise.
349 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
350 (per_cu_dwarf_call): Adjust.
351 (get_frame_address_in_block_wrapper): Remove.
352 (indirect_synthetic_pointer): Adjust.
353 (get_ax_pc): Remove.
354 (dwarf2_compile_expr_to_ax): Adjust.
355
38f8aa06
TV
3562020-08-08 Tom de Vries <tdevries@suse.de>
357
358 PR build/26344
359 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
360 constructor.
361 * regcache.c (get_thread_arch_aspace_regcache): Same.
362
a52b3ae2
TT
3632020-08-07 Tom Tromey <tromey@adacore.com>
364
365 * ravenscar-thread.c
366 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
367 New method.
368 (ravenscar_thread_target::wait): Check
369 runtime_initialized.
370 (ravenscar_thread_target::prepare_to_store)
371 (ravenscar_thread_target::stopped_by_sw_breakpoint)
372 (ravenscar_thread_target::stopped_by_hw_breakpoint)
373 (ravenscar_thread_target::stopped_by_watchpoint)
374 (ravenscar_thread_target::stopped_data_address)
375 (ravenscar_thread_target::core_of_thread): Use
376 scoped_restore_current_thread and
377 set_base_thread_from_ravenscar_task.
378
0e29517d
TT
3792020-08-07 Tom Tromey <tromey@adacore.com>
380
381 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
382
592f9bd7
TT
3832020-08-07 Tom Tromey <tromey@adacore.com>
384
385 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
386 update_inferior_ptid before update_thread_list.
387 (temporarily_change_regcache_ptid): New class.
388 (ravenscar_thread_target::fetch_registers)
389 (ravenscar_thread_target::store_registers)
390 (ravenscar_thread_target::prepare_to_store): Use base thread when
391 forwarding operation.
392
39e2018a
TT
3932020-08-07 Tom Tromey <tromey@adacore.com>
394
395 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
396 "is_pid" case.
397
2080266b
TT
3982020-08-07 Tom Tromey <tromey@adacore.com>
399
400 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
401 New methods.
402 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
403 first.
404 (ravenscar_thread_target::add_thread): Rename from
405 ravenscar_add_thread.
406 (ravenscar_thread_target::update_thread_list): Use a lambda.
407 (ravenscar_thread_target::xfer_partial): New method.
408
78c02f21
TT
4092020-08-07 Tom Tromey <tromey@adacore.com>
410
411 * ada-lang.h (ada_task_list_iterator_ftype): Now a
412 gdb::function_view.
413 (iterate_over_live_ada_tasks): Change type of argument.
414 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
415 of argument.
416
d5d833af
TT
4172020-08-07 Tom Tromey <tromey@adacore.com>
418
419 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
420 Remove.
421 (ravenscar_thread_target::extra_thread_info): Remove.
422 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
423 defer to target beneath for non-Ravenscar threads.
424
a8ac85bb
TT
4252020-08-07 Tom Tromey <tromey@adacore.com>
426
427 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
428 get_base_thread_from_ravenscar_task>: Now methods.
429 <m_cpu_map>: New member.
430 (ravenscar_thread_target::get_thread_base_cpu): Rename from
431 ravenscar_get_thread_base_cpu. Check m_cpu_map.
432 (ravenscar_thread_target::task_is_currently_active): Update.
433 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
434 Now a method.
435 (ravenscar_thread_target::add_active_thread): Put initial thread
436 into the m_cpu_map.
437
550ab58d
TT
4382020-08-07 Tom Tromey <tromey@adacore.com>
439
440 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
441 event_ptid.
442
e9546579
TT
4432020-08-07 Tom Tromey <tromey@adacore.com>
444
445 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
446 runtime_initialized.
447
3d4470e5
TT
4482020-08-07 Tom Tromey <tromey@adacore.com>
449
450 * ravenscar-thread.c (ravenscar_thread_target): Don't call
451 add_active_thread.
452 (ravenscar_thread_target::add_active_thread): Now public.
453 (ravenscar_inferior_created): Call add_active_thread after pushing
454 the target.
455
888bdb2b
SM
4562020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * regcache.c (ptid_regcache_map): New type.
459 (target_ptid_regcache_map): New type.
460 (regcaches): Change type to target_ptid_regcache_map.
461 (get_thread_arch_aspace_regcache): Update to regcaches' new
462 type.
463 (regcache_thread_ptid_changed): Likewise.
464 (registers_changed_ptid): Likewise.
465 (regcaches_size): Likewise.
466 (regcaches_test): Update.
467 (regcache_thread_ptid_changed): Update.
468 * regcache.h (regcache_up): New type.
469 * gdbsupport/ptid.h (hash_ptid): New struct.
470
b161a60d
SM
4712020-08-07 Simon Marchi <simon.marchi@efficios.com>
472
473 * observable.h (thread_ptid_changed): Add parameter
474 `process_stratum_target *`.
475 * infrun.c (infrun_thread_ptid_changed): Add parameter
476 `process_stratum_target *` and use it.
477 (selftests): New namespace.
478 (infrun_thread_ptid_changed): New function.
479 (_initialize_infrun): Register selftest.
480 * regcache.c (regcache_thread_ptid_changed): Add parameter
481 `process_stratum_target *` and use it.
482 (regcache_thread_ptid_changed): New function.
483 (_initialize_regcache): Register selftest.
484 * thread.c (thread_change_ptid): Pass target to
485 thread_ptid_changed observable.
486
d2854d8d
CT
4872020-08-06 Caroline Tice <cmtice@google.com>
488
fe4c3d43
SM
489 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
490 (struct dwp_sections): Update field comments. Add loclists and
491 rnglists fields.
492 (struct virtual_v2_dwo_sections): Rename struct to
493 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
494 size & offset fields for loclists and rnglists.
495 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
496 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
497 skipping dummy type units.
498 (create_dwp_hash_table): Update the large comment above the function to
499 discuss Version 5 DWP files as well, with references. Update all the
500 version checks in the function to check for version 5 as well. Add new
501 section at the end to create dwp hash table for version 5.
502 (create_dwp_v2_section): Rename function to
503 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
504 Add V5 to error message text.
505 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
506 into calls to create_dwp_v2_or_v5_section.
507 (create_dwo_unit_in_dwp_v5): New function.
508 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
509 check for version2; add else clause to handle version 5.
510 (open_and_init_dwo_file): Add code to check dwarf version & only call
511 create_debug_types_hash_table (with sections.types) if version is not 5;
512 else call create_debug_type_hash_table, with sections.info.
513 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
514 version 5.
515 (dwarf2_locate_v5_dwp_sections): New function.
516 (open_and_init_dwp_file): Add else-if clause for version 5 to call
517 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 518
159ed7d9
SM
5192020-08-06 Simon Marchi <simon.marchi@efficios.com>
520
521 * regcache.h (class regcache): Remove friend
522 registers_changed_ptid.
523 <regcache_thread_ptid_changed>: Remove.
524 <regcaches>: Remove.
525 * regcache.c (regcache::regcaches): Rename to...
526 (regcaches): ... this. Make static.
527 (get_thread_arch_aspace_regcache): Update.
528 (regcache::regcache_thread_ptid_changed): Rename to...
529 (regcache_thread_ptid_changed): ... this. Update.
530 (class regcache_access): Remove.
531 (regcaches_test): Update.
532 (_initialize_regcache): Update.
533 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
534 <forward_list>.
535
174981ae
SM
5362020-08-06 Simon Marchi <simon.marchi@efficios.com>
537
538 * regcache.h (class regcache) <current_regcache>: Rename to...
539 <regcaches>: ... this. Move doc here.
540 * regcache.c (regcache::current_regcache) Rename to...
541 (regcache::regcaches): ... this. Move doc to header.
542 (get_thread_arch_aspace_regcache): Update.
543 (regcache::regcache_thread_ptid_changed): Update.
544 (registers_changed_ptid): Update.
545 (class regcache_access) <current_regcache_size>: Rename to...
546 <regcaches_size>: ... this.
547 (current_regcache_test): Rename to...
548 (regcaches_test): ... this.
549 (_initialize_regcache): Update.
550
ed908db6
VC
5512020-08-06 Victor Collod <vcollod@nvidia.com>
552
553 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
554
b5582ab7
KB
5552020-08-05 Kevin Buettner <kevinb@redhat.com>
556
557 * corelow.c (core_target::build_file_mappings): Don't output
558 null pathname in warning.
559
ea946b86
SM
5602020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
563 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
564 gdb.dwarf2/dw2-single-line-discriminators.exp,
565 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
566
57d02173
TT
5672020-08-05 Tom Tromey <tromey@adacore.com>
568
569 PR rust/26197:
570 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
571 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
572 Fix off-by-one and type size errors in ordinary case.
573
5555c86d
TV
5742020-08-05 Tom de Vries <tdevries@suse.de>
575
576 * gdbtypes.c (type_not_allocated, type_not_associated): Use
577 "prop->const_val () == 0" instead of "prop->const_val () != 0".
578
97916bfe
SM
5792020-08-04 Simon Marchi <simon.marchi@efficios.com>
580
581 * frame.h (frame_id_p): Return bool.
582 (frame_id_artificial_p): Return bool.
583 (frame_id_eq): Return bool.
584 (has_stack_frames): Return bool.
585 (get_selected_frame): Fix typo in comment.
586 (get_frame_pc_if_available): Return bool.
587 (get_frame_address_in_block_if_available): Return bool.
588 (get_frame_func_if_available): Return bool.
589 (read_frame_register_unsigned): Return bool.
590 (get_frame_register_bytes): Return bool.
591 (safe_frame_unwind_memory): Return bool.
592 (deprecated_frame_register_read): Return bool.
593 (frame_unwinder_is): Return bool.
594 * frame.c (struct frame_info) <prev_arch::p>: Change type to
595 bool.
596 <this_id::p>: Likewise.
597 <prev_p>: Likewise.
598 (frame_stash_add): Return bool.
599 (get_frame_id): Use bool.
600 (frame_id_build_special) Use bool.
601 (frame_id_build_unavailable_stack): Use bool.
602 (frame_id_build): Use bool.
603 (frame_id_p): Return bool, use true/false instead of 1/0.
604 (frame_id_artificial_p): Likewise.
605 (frame_id_eq): Likewise.
606 (frame_id_inner): Likewise.
607 (get_frame_func_if_available): Likewise.
608 (read_frame_register_unsigned): Likewise.
609 (deprecated_frame_register_read): Likewise.
610 (get_frame_register_bytes): Likewise.
611 (has_stack_frames): Likewise.
612 (inside_main_func): Likewise.
613 (inside_entry_func): Likewise.
614 (get_frame_pc_if_available): Likewise.
615 (get_frame_address_in_block_if_available): Likewise.
616 (frame_unwinder_is): Likewise.
617 (safe_frame_unwind_memory): Likewise.
618 (frame_unwind_arch): Likewise.
619
fedfee88
SM
6202020-08-04 Simon Marchi <simon.marchi@efficios.com>
621
622 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
623 type to cached_copy_status.
624 (fprintf_frame): Adjust.
625 (get_frame_func_if_available): Adjust.
626 (frame_cleanup_after_sniffer): Adjust.
627
6cfa9b59
MW
6282020-08-04 Mark Wielaard <mark@klomp.org>
629
630 * MAINTAINERS (Write After Approval): Update email address.
631
66d6346b
SM
6322020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
635 dynamic_prop::const_val.
636
8a6d5e35
SM
6372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
640 dynamic_prop::kind.
641
51d6067d
SM
6422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
645
b26e2ae7
JM
6462020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
647
648 * configure.tgt: Set gdb_sim for bpf-*-* targets.
649
39791af2
JM
6502020-08-04 Weimin Pan <weimin.pan@oracle.com>
651 Jose E. Marchesi <jose.marchesi@oracle.com>
652
653 * configure.tgt: Add entry for bpf-*-*.
654 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
655 (ALLDEPFILES): Add bpf-tdep.c.
656 * bpf-tdep.c: New file.
657 * MAINTAINERS: Add bpf target and maintainer.
658 * NEWS: Mention the support for the new target.
659
521894aa
TV
6602020-08-04 Tom de Vries <tdevries@suse.de>
661
662 PR symtab/23270
663 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
664 Error.
665
5d6356e9
JB
6662020-08-03 John Baldwin <jhb@FreeBSD.org>
667
668 * syscalls/freebsd.xml: Regenerate.
669
0cf82b81
JB
6702020-08-03 John Baldwin <jhb@FreeBSD.org>
671
672 * syscalls/update-freebsd.sh: Fix usage and year range.
673
8f34b746
TV
6742020-08-03 Tom de Vries <tdevries@suse.de>
675
676 PR symtab/26333
677 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
678 DW_LNE_lo_user/DW_LNE_hi_user range.
679
5e500d33
SM
6802020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
681
682 PR ada/26318
683 * ada-lang.c (ada_modulus): Return 0 if property is not of const
684 kind.
685
78319c15
TBA
6862020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687
688 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
689
4c55e970
TBA
6902020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691
692 * breakpoint.c (set_breakpoint_condition): Update the condition
693 expressions after checking that the input condition string parses
694 successfully and does not contain junk at the end.
695
1e620590
TBA
6962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
697
698 * breakpoint.c (set_breakpoint_condition): Update the
699 condition string after parsing the new condition successfully.
700
c8693053
RO
7012020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
702
703 * proc-api.c (_STRUCTURED_PROC): Don't define.
704 * proc-events.c: Likewise.
705 * proc-flags.c: Likewise.
706 * proc-why.c: Likewise.
707 * procfs.c: Likewise.
708
709 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
710 * configure, config.in: Regenerate.
711
5a99adb8
TV
7122020-07-30 Tom de Vries <tdevries@suse.de>
713
714 PR build/26320
715 * ui-style.h (struct ui_file_style::color): Wrap m_value and
716 m_red/m_green/m_blue in a union.
717
8ba83e91
TV
7182020-07-29 Tom de Vries <tdevries@suse.de>
719
720 PR tdep/26280
721 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
722
f75a0693
AB
7232020-07-28 Tom Tromey <tromey@adacore.com>
724
725 PR symtab/26270:
726 * symtab.h (find_pc_partial_function_sym): Declare.
727 * cli/cli-cmds.c (disassemble_command): Use
728 find_pc_partial_function_sym. Check asm_demangle.
729 * blockframe.c (cache_pc_function_sym): New global.
730 (cache_pc_function_name): Remove.
731 (clear_pc_function_cache): Update.
732 (find_pc_partial_function_sym): New function, from
733 find_pc_partial_function.
734 (find_pc_partial_function): Rewrite using
735 find_pc_partial_function_sym.
736
16f3242c
TT
7372020-07-28 Tom Tromey <tromey@adacore.com>
738
739 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
740 help. Add usage.
741
4888741a
TT
7422020-07-28 Tom Tromey <tromey@adacore.com>
743
744 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
745 <DW_OP_GNU_variable_value>: Cast to address type.
746
4d46f402
KR
7472020-07-28 Kamil Rytarowski <n54@gmx.com>
748
749 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
750 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
751 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
752 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
753 (nbsd_get_siginfo_type): New.
754 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
755 (_initialize_nbsd_tdep): New.
756
d70f978b
L
7572020-07-28 H.J. Lu <hongjiu.lu@intel.com>
758
759 PR binutils/26301
760 * configure: Regenerated.
761
377170fa
L
7622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
763
764 PR binutils/26301
765 * configure: Regenerated.
766
43d5901d
AB
7672020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * python/py-frame.c: Remove 'user-regs.h' include.
770 (frapy_read_register): Rewrite to make use of
771 gdbpy_parse_register_id.
772 * python/py-registers.c (gdbpy_parse_register_id): New function,
773 moved here from python/py-unwind.c. Updated the return type, and
774 also accepts register descriptor objects.
775 * python/py-unwind.c: Remove 'user-regs.h' include.
776 (pyuw_parse_register_id): Moved to python/py-registers.c.
777 (unwind_infopy_add_saved_register): Update to use
778 gdbpy_parse_register_id.
779 (pending_framepy_read_register): Likewise.
780 * python/python-internal.h (gdbpy_parse_register_id): Declare.
781
14fa8fb3
AB
7822020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * python/py-registers.c: Add 'user-regs.h' include.
785 (register_descriptor_iter_find): New function.
786 (register_descriptor_iterator_object_methods): New static global
787 methods array.
788 (register_descriptor_iterator_object_type): Add pointer to methods
789 array.
790
ddce1758
JB
7912020-07-27 John Baldwin <jhb@FreeBSD.org>
792
793 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
794 for all architectures on FreeBSD 11.3 and later.
795
a4089f52
TT
7962020-07-27 Tom Tromey <tromey@adacore.com>
797
798 * gcore.h (load_corefile): Don't declare.
799
95420d30
TV
8002020-07-27 Tom de Vries <tdevries@suse.de>
801
802 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
803 * config.in: Regenerate.
804 * configure: Regenerate.
805
05a6b8c2
EZ
8062020-07-26 Eli Zaretskii <eliz@gnu.org>
807
808 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
809 ws2tcpip.h. When checking whether socklen_t type is defined, use
810 ws2tcpip.h if it is available and sys/socket.h isn't.
811 * configure: Regenerate.
812 * config.in: Regenerate.
813
e79eb02f
AB
8142020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 PR fortran/23051
817 PR fortran/26139
818 * valops.c (value_ind): Pass address to
819 readjust_indirect_value_type.
820 * value.c (readjust_indirect_value_type): Make parameter
821 non-const, and add extra address parameter. Resolve original type
822 before using it.
823 * value.h (readjust_indirect_value_type): Update function
824 signature and comment.
825
876518dd
TV
8262020-07-25 Tom de Vries <tdevries@suse.de>
827
828 PR symtab/26243
829 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
830 entries.
831
f6720b1c
AM
8322020-07-24 Aaron Merey <amerey@redhat.com>
833
834 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
835 * configure: Rebuild.
836
513487e1
KB
8372020-07-23 Kevin Buettner <kevinb@redhat.com>
838
839 PR corefiles/26294
840 * corelow.c (_initialize_corelow): Add period to help text
841 for "maintenance print core-file-backed-mappings".
842
e7bc9db8
PA
8432020-07-23 Pedro Alves <pedro@palves.net>
844
845 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
846 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
847 meanwhile.
848 * frame.c (frame_cache_generation, get_frame_cache_generation):
849 New.
850 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
851 (get_prev_frame_if_no_cycle): On exception, don't touch
852 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
853 * frame.h (get_frame_cache_generation): Declare.
854
90fcc466
TV
8552020-07-23 Tom de Vries <tdevries@suse.de>
856
857 PR tui/26282
858 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
859 New default constructor.
860
78344df7
AB
8612020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
864 exclude non-statement entries.
865
b089853a
KB
8662020-07-22 Kevin Buettner <kevinb@redhat.com>
867
868 * NEWS (New commands): Mention new command
869 "maintenance print core-file-backed-mappings".
870
09c2f5d4
KB
8712020-07-22 Kevin Buettner <kevinb@redhat.com>
872
873 * corelow.c (gdbcmd.h): Include.
874 (core_target::info_proc_mappings): New method.
875 (get_current_core_target): New function.
876 (maintenance_print_core_file_backed_mappings): New function.
877 (_initialize_corelow): Add core-file-backed-mappings to
878 "maint print" commands.
879
9c5ec5c2 8802020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 881
9c5ec5c2
KB
882 * linux-tdep.c (dump_note_entry_p): New function.
883 (linux_dump_mapping_p_ftype): New typedef.
884 (linux_find_memory_regions_full): Add new parameter,
885 should_dump_mapping_p.
886 (linux_find_memory_regions): Adjust call to
887 linux_find_memory_regions_full.
888 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
889 call to linux_find_memory_regions_full.
890
db082f59
KB
8912020-07-22 Kevin Buettner <kevinb@redhat.com>
892
893 * corelow.c (solist.h, unordered_map): Include.
894 (class core_target): Add field m_core_file_mappings and
895 method build_file_mappings.
896 (core_target::core_target): Call build_file_mappings.
897 (core_target::~core_target): Free memory associated with
898 m_core_file_mappings.
899 (core_target::build_file_mappings): New method.
900 (core_target::xfer_partial): Use m_core_file_mappings
901 for memory transfers.
902 * linux-tdep.c (linux_read_core_file_mappings): New
903 function.
904 (linux_core_info_proc_mappings): Rewrite to use
905 linux_read_core_file_mappings.
906 (linux_init_abi): Register linux_read_core_file_mappings.
907
7e183d27
KB
9082020-07-22 Kevin Buettner <kevinb@redhat.com>
909
910 * arch-utils.c (default_read_core_file_mappings): New function.
911 * arch-utils.c (default_read_core_file_mappings): Declare.
912 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
913 * gdbarch.h, gdbarch.c: Regenerate.
914
2735d421
KB
9152020-07-22 Kevin Buettner <kevinb@redhat.com>
916
917 PR corefiles/25631
918 * corelow.c (core_target:xfer_partial): Revise
919 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
920 case after first checking the stratum beneath the core
921 target.
922 (has_all_memory): Return true.
923 * target.c (raw_memory_xfer_partial): Revise comment
924 regarding use of has_all_memory.
925
e56cb451
KB
9262020-07-22 Kevin Buettner <kevinb@redhat.com>
927
928 * exec.h (section_table_xfer_memory): Revise declaration,
929 replacing section name parameter with an optional callback
930 predicate.
931 * exec.c (section_table_xfer_memory): Likewise.
932 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
933 of section_table_xfer_memory.
934
32fa152e
TT
9352020-07-22 Tom Tromey <tromey@adacore.com>
936
937 * mi/mi-cmd-stack.c (list_args_or_locals): Use
938 lookup_symbol_search_name.
939
a67a1c41
AB
9402020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * python/py-registers.c (gdbpy_register_object_data_init): Remove
943 redundant local variable.
944 (gdbpy_get_register_descriptor): Extract descriptor vector as a
945 reference, not pointer, update code accordingly.
946
a7b4ff4f
SM
9472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
948 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
949
950 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
951 * jit.c (jit_breakpoint_re_set_internal): Use the
952 `skip_jit_symbol_lookup` field.
953
2340e834
SM
9542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
955 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
956
957 * jit.c (jit_read_descriptor): Define the descriptor address once,
958 use twice.
959 (jit_breakpoint_deleted): Move the declaration of the loop variable
960 `iter` into the loop header.
961 (jit_breakpoint_re_set_internal): Move the declaration of the local
962 variable `objf_data` to the first point of definition.
963 (jit_event_handler): Move the declaration of local variables
964 `code_entry`, `entry_addr`, and `objf` to their first point of use.
965 Rename `objf` to `jited`.
966
c1072906
SM
9672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
970 Remove.
971 * jit.c (get_jiter_objfile_data): Update.
972
c8474dc3
TBA
9732020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
974 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * jit.c (struct jit_program_space_data): Remove.
977 (jit_program_space_key): Remove.
978 (jiter_objfile_data::~jiter_objfile_data): Remove program space
979 stuff.
980 (get_jit_program_space_data): Remove.
981 (jit_breakpoint_deleted): Iterate on all of the program space's
982 objfiles.
983 (jit_inferior_init): Likewise.
984 (jit_breakpoint_re_set_internal): Likewise. Also change return
985 type to void.
986 (jit_breakpoint_re_set): Pass current_program_space to
987 jit_breakpoint_re_set_internal.
988
77208eb7
SM
9892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * jit.h (struct jiter_objfile_data) <cached_code_address,
992 jit_breakpoint>: Move to here from ...
993 * jit.c (jit_program_space_data): ... here.
994 (jiter_objfile_data::~jiter_objfile_data): Update.
995 (jit_breakpoint_deleted): Update.
996 (jit_breakpoint_re_set_internal): Update.
997
8c1c720f
SM
9982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1001 checks.
1002 (jit_read_descriptor): Remove NULL check.
1003 (jit_event_handler): Add an assertion.
1004
0e74a041
SM
10052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * jit.h (struct jit_objfile_data): Split into...
1008 (struct jiter_objfile_data): ... this ...
1009 (struct jited_objfile_data): ... and this.
1010 * objfiles.h (struct objfile) <jit_data>: Remove.
1011 <jiter_data, jited_data>: New fields.
1012 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1013 (jiter_objfile_data::~jiter_objfile_data): ... this.
1014 (get_jit_objfile_data): Rename to ...
1015 (get_jiter_objfile_data): ... this.
1016 (add_objfile_entry): Update.
1017 (jit_read_descriptor): Use get_jiter_objfile_data.
1018 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1019 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1020 (jit_inferior_exit_hook): Use objfile's jited_data field.
1021
238b5c9f
SM
10222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * jit.h: Forward-declare `struct minimal_symbol`.
1025 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1026 constructor, destructor, and an objfile* field.
1027 * jit.c (jit_objfile_data): Remove.
1028 (struct jit_objfile_data): Migrate from here to jit.h.
1029 (jit_objfile_data::~jit_objfile_data): New destructor
1030 implementation with code moved from free_objfile_data.
1031 (free_objfile_data): Delete.
1032 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1033 (jit_find_objf_with_entry_addr): Ditto.
1034 (jit_inferior_exit_hook): Ditto.
1035 (_initialize_jit): Remove the call to
1036 register_objfile_data_with_cleanup.
1037 * objfiles.h (struct objfile) <jit_data>: New field.
1038
fe053b9e
TBA
10392020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * jit.h: Forward-declare `struct objfile`.
1042 (jit_event_handler): Add a second parameter, the JITer objfile.
1043 * jit.c (jit_read_descriptor): Change the signature to take the
1044 JITer objfile as an argument instead of the jit_program_space_data.
1045 (jit_inferior_init): Update the call to jit_read_descriptor.
1046 (jit_event_handler): Use the new JITer objfile argument when calling
1047 jit_read_descriptor.
1048 * breakpoint.c (handle_jit_event): Update the call to
1049 jit_event_handler to pass the JITer objfile.
1050
4cec0c66
JB
10512020-07-21 John Baldwin <jhb@FreeBSD.org>
1052
1053 * gdbarch.c: Regenerate.
1054 * gdbarch.h: Regenerate.
1055 * gdbarch.sh (handle_segmentation_fault): Remove method.
1056 * infrun.c (handle_segmentation_fault): Remove.
1057 (print_signal_received_reason): Remove call to
1058 handle_segmentation_fault.
1059
0e42f66a
JB
10602020-07-21 John Baldwin <jhb@FreeBSD.org>
1061
1062 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1063 Rename to sparc64_linux_report_signal_info and add siggnal
1064 argument.
1065 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1066 instead of sparc64_linux_handle_segmentation_fault.
1067
77bdfeb2
JB
10682020-07-21 John Baldwin <jhb@FreeBSD.org>
1069
1070 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1071 i386_linux_report_signal_info instead of
1072 i386_linux_handle_segmentation_fault.
1073 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1074 to i386_linux_report_signal_info and add siggnal argument.
1075 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1076 of i386_linux_handle_segmentation_fault.
1077 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1078 to i386_linux_report_signal_info and add siggnal argument.
1079
ad97bfc5
JB
10802020-07-21 John Baldwin <jhb@FreeBSD.org>
1081
1082 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1083 hook if present.
1084
272bb05c
JB
10852020-07-21 John Baldwin <jhb@FreeBSD.org>
1086
1087 * gdbarch.c: Regenerate.
1088 * gdbarch.h: Regenerate.
1089 * gdbarch.sh (report_signal_info): New method.
1090 * infrun.c (print_signal_received_reason): Invoke gdbarch
1091 report_signal_info hook if present.
1092
baf8791e
AB
10932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * python/py-registers.c : Add 'unordered_map' include.
1096 (gdbpy_new_reggroup): Renamed to...
1097 (gdbpy_get_reggroup): ...this. Update to only create register
1098 group descriptors when needed.
1099 (gdbpy_reggroup_iter_next): Update.
1100
f7306dac
AB
11012020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * python/py-registers.c (gdbpy_register_object_data): New static
1104 global.
1105 (gdbpy_register_object_data_init): New function.
1106 (gdbpy_new_register_descriptor): Renamed to...
1107 (gdbpy_get_register_descriptor): ...this, and update to reuse
1108 existing register descriptors where possible.
1109 (gdbpy_register_descriptor_iter_next): Update.
1110 (gdbpy_initialize_registers): Register new gdbarch data.
1111
05c309a8
SM
11122020-07-21 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * linux-nat.c (stopped_pids): Make static.
1115
d1fd641e
SM
11162020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 PR ada/26235
1119 * gdbtypes.c (ada_discrete_type_low_bound,
1120 ada_discrete_type_high_bound): Handle undefined bounds.
1121
1de14d77
KR
11222020-07-21 Kamil Rytarowski <n54@gmx.com>
1123
1124 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1125 declaration.
1126 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1127 function.
1128
ed810cc7
JB
11292020-07-20 John Baldwin <jhb@FreeBSD.org>
1130
1131 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1132 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1133 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1134 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1135 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1136 method.
1137
ae5369e7
LC
11382020-07-20 Ludovic Courtès <ludo@gnu.org>
1139
1140 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1141 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1142 which are deprecated in Guile 3.0.
1143 * configure.ac (try_guile_versions): Add "guile-3.0".
1144 * configure (try_guile_versions): Regenerate.
1145 * NEWS: Update entry.
1146
68cf161c
LC
11472020-07-20 Ludovic Courtès <ludo@gnu.org>
1148 Doug Evans <dje@google.com>
1149
1150 PR gdb/21104
1151 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1152 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1153 USING_GUILE_BEFORE_2_2.
1154 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1155 Change type to 'scm_t_port_type *'.
1156 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1157 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1158 parameter and honor it. Update callers.
1159 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1160 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1161 functions.
1162 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1163 USING_GUILE_BEFORE_2_2.
1164 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1165 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1166 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1167 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1168 and 'SCM_PORT_TYPE'.
1169 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1170 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1171 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1172 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1173 [!USING_GUILE_BEFORE_2_2]: New functions.
1174 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1175 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1176 'gdbscm_memory_port_read'.
1177 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1178 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1179 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1180 function.
1181 (ioscm_init_memory_port): Remove.
1182 (ioscm_init_memory_port_stream): New function
1183 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1184 function.
1185 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1186 Return scm_from_uint (0).
1187 (gdbscm_set_memory_port_read_buffer_size_x)
1188 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1189 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1190 Return scm_from_uint (0).
1191 (gdbscm_set_memory_port_write_buffer_size_x)
1192 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1193 * configure.ac (try_guile_versions): Add "guile-2.2".
1194 * configure: Regenerate.
1195 * NEWS: Add entry.
1196
aee91db3
TT
11972020-07-18 Tom Tromey <tom@tromey.com>
1198
1199 * linux-nat.c (linux_multi_process): Remove.
1200 (linux_nat_target::supports_multi_process): Return true.
1201
0e267416
AB
12022020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1205 (riscv_lookup_target_description): Return pointer out of
1206 unique_ptr.
1207 * target-descriptions.c (allocate_target_description): Add
1208 comment.
1209 (target_desc_deleter::operator()): Likewise.
1210 * target-descriptions.h (struct target_desc_deleter): Moved to
1211 gdbsupport/tdesc.h.
1212 (target_desc_up): Likewise.
1213
f80c8ec4
TT
12142020-07-17 Tom Tromey <tromey@adacore.com>
1215
1216 * linux-nat.c (linux_nat_target::supports_non_stop)
1217 (linux_nat_target::always_non_stop_p): Use "true".
1218 (linux_nat_target::supports_disable_randomization): Use "true" and
1219 "false".
1220
d0ce17d8
CT
12212020-07-16 Caroline Tice <cmtice@google.com>
1222
1223 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1224 (RNGLIST_HEADER_SIZE64): New constant definition.
1225 (struct dwop_section_names): Add rnglists_dwo.
1226 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1227 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1228 (struct dwo_sections): Add rnglists field.
1229 (read_attribut_reprocess): Add tag parameter.
1230 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1231 (cu_debug_rnglists_section): New function (decl & definition).
1232 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1233 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1234 die whose range is being checked; get rnglist section from
1235 cu_debug_rnglists_section, to get from either objfile or dwo file as
1236 appropriate. Add cases for DW_RLE_base_addressx,
1237 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1238 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1239 test inside if-condition and updating complaint message.
1240 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1241 dwarf2_rnglists_process.
1242 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1243 dwarf2_ranges_process.
1244 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1245 need_ranges_base and update comment appropriately. Also pass die tag
1246 to dwarf2_ranges_read.
1247 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1248 need_ranges_base and update comment appropriately. Also pass die tag
1249 to dwarf2_ranges_process.
1250 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1251 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1252 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1253 need_ranges_base and update comment appropriately. Also pass die tag
1254 to read_attribute_reprocess and dwarf2_ranges_read.
1255 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1256 and update function comment appropriately.
1257 (read_loclist_index): Call read_loclists_rnglists_header instead of
1258 read_loclist_header.
1259 (read_rnglist_index): New function.
1260 (read_attribute_reprocess): Add tag parameter. Add code for
1261 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1262 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1263
3dcc261c
AB
12642020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1267 being resolved.
1268
ccb9eba6
AB
12692020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * arch-utils.c (show_architecture): Update formatting of messages.
1272
cf88be68
SM
12732020-07-12 Simon Marchi <simon.marchi@efficios.com>
1274
1275 * gdbtypes.h (struct type) <bounds>: Handle array and string
1276 types.
1277 * ada-lang.c (assign_aggregate): Use type::bounds on
1278 array/string type.
1279 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1280 * c-varobj.c (c_number_of_children): Likewise.
1281 (c_describe_child): Likewise.
1282 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1283 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1284 (f_type_print_base): Likewise.
1285 * f-valprint.c (f77_array_offset_tbl): Likewise.
1286 (f77_get_upperbound): Likewise.
1287 (f77_print_array_1): Likewise.
1288 * guile/scm-type.c (gdbscm_type_range): Likewise.
1289 * m2-typeprint.c (m2_array): Likewise.
1290 (m2_is_long_set_of_type): Likewise.
1291 * m2-valprint.c (get_long_set_bounds): Likewise.
1292 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1293 * python/py-type.c (typy_range): Likewise.
1294 * rust-lang.c (rust_internal_print_type): Likewise.
1295 * type-stack.c (type_stack::follow_types): Likewise.
1296 * valarith.c (value_subscripted_rvalue): Likewise.
1297 * valops.c (value_cast): Likewise.
1298
509971ae
SM
12992020-07-12 Simon Marchi <simon.marchi@efficios.com>
1300
1301 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1302 callers to use the equivalent accessor methods.
1303
107406b7
SM
13042020-07-12 Simon Marchi <simon.marchi@efficios.com>
1305
1306 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1307 (struct type) <bit_stride>: New method.
1308 (TYPE_BIT_STRIDE): Remove.
1309 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1310
bb789949
SM
13112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1312
1313 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1314 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1315 callers to use the equivalent accessor methods instead.
1316
39498edb
SM
13172020-07-12 Simon Marchi <simon.marchi@efficios.com>
1318
1319 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1320 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1321 callers to use the equivalent accessor methods instead.
1322
3b606f38
SM
13232020-07-12 Simon Marchi <simon.marchi@efficios.com>
1324
1325 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1326 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1327 to use dynamic_prop::kind.
1328
064d9cb9
SM
13292020-07-12 Simon Marchi <simon.marchi@efficios.com>
1330
1331 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1332 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1333 to get the bound property's kind and check against
1334 PROP_UNDEFINED.
1335
5537ddd0
SM
13362020-07-12 Simon Marchi <simon.marchi@efficios.com>
1337
1338 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1339 all callers to use type::range_bounds followed by
1340 dynamic_prop::{low,high}.
1341
8c2e4e06
SM
13422020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1345 const_val, set_const_val, baton, set_locexpr, set_loclist,
1346 set_addr_offset, variant_parts, set_variant_parts,
1347 original_type, set_original_type>: New methods.
1348 <kind>: Rename to...
1349 <m_kind>: ... this. Update all users to use the new methods
1350 instead.
1351 <data>: Rename to...
1352 <m_data>: ... this. Update all users to use the new methods
1353 instead.
1354
7c6f2712
SM
13552020-07-12 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * gdbtypes.c (get_discrete_bounds): Return failure if
1358 the range type's bounds are not both defined and constant
1359 values.
1360 (get_array_bounds): Update comment. Remove undefined bound check.
1361
599088e3
SM
13622020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1365 the type::bounds method directly.
1366
c4dfcb36
SM
13672020-07-12 Simon Marchi <simon.marchi@efficios.com>
1368
1369 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1370 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1371 are used to set the range type's bounds to use set_bounds.
1372
0a278aa7
PW
13732020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1374
1375 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1376
cce20f10
PA
13772020-07-10 Pedro Alves <pedro@palves.net>
1378
1379 * gdbthread.h (inferior_ref): Define.
1380 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1381 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1382 * thread.c
1383 (scoped_restore_current_thread::restore):
1384 Adjust to gdb::ref_ptr.
1385 (scoped_restore_current_thread::~scoped_restore_current_thread):
1386 Remove manual decref handling.
1387 (scoped_restore_current_thread::scoped_restore_current_thread):
1388 Adjust to use
1389 inferior_ref::new_reference/thread_info_ref::new_reference.
1390 Incref the thread before calling get_frame_id instead of after.
1391 Let TARGET_CLOSE_ERROR propagate.
1392
6d7aa592
PA
13932020-07-10 Pedro Alves <pedro@palves.net>
1394
1395 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1396 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1397 NOT_AVAILABLE_ERROR.
1398 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1399 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1400
b3e3a4c1
SM
14012020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1402 Pedro Alves <pedro@palves.net>
1403
1404 PR gdb/26199
1405 * infrun.c (threads_are_resumed_pending_p): Delete.
1406 (do_target_wait): Remove threads_are_executing and
1407 threads_are_resumed_pending_p checks from the inferior_matches
1408 lambda. Update comments.
1409
d6cc5d98
PA
14102020-07-10 Pedro Alves <pedro@palves.net>
1411
1412 PR gdb/26199
1413 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1414 executing threads.
1415
7d3badc6
PA
14162020-07-10 Pedro Alves <pedro@palves.net>
1417
1418 PR gdb/26199
1419 * infrun.c (handle_no_resumed): Handle multiple targets.
1420
42bd97a6
PA
14212020-07-10 Pedro Alves <pedro@palves.net>
1422
1423 PR gdb/26199
1424 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1425 target_is_async_p.
1426
43667cc6
PA
14272020-07-10 Pedro Alves <pedro@palves.net>
1428
1429 PR gdb/26199
1430 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1431 threads, not all threads.
1432
96118d11
PA
14332020-07-10 Pedro Alves <pedro@palves.net>
1434
1435 PR gdb/26199
1436 * remote.c (remote_target::open_1): Pass remote target pointer as
1437 data to create_async_event_handler.
1438 (remote_async_inferior_event_handler): Mark async event handler
1439 before returning if the remote target still has either pending
1440 events or unacknowledged notifications.
1441
54904d81
JB
14422020-07-10 John Baldwin <jhb@FreeBSD.org>
1443
1444 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1445 declaration.
1446 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1447 function.
1448
f37e5866
JB
14492020-07-09 John Baldwin <jhb@FreeBSD.org>
1450
1451 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1452 inferior_ptid.
1453
fc238d4a
JB
14542020-07-09 John Baldwin <jhb@FreeBSD.org>
1455
1456 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1457 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1458 AT_FREEBSD_PS_STRINGS.
1459
6e2469ff
HD
14602020-07-08 Hannes Domani <ssbssa@yahoo.de>
1461
1462 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1463 of debugfile path on Windows.
1464
d1076c41
JB
14652020-07-08 John Baldwin <jhb@FreeBSD.org>
1466
1467 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1468 argument to 'data'.
1469
15f3b077
TT
14702020-07-08 Tom Tromey <tromey@adacore.com>
1471
1472 * ada-lang.c (ada_exception_message_1): Use read_memory.
1473
9fc501fd
AB
14742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 PR python/22748
1477 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1478 special handling for inline frames.
1479 * findvar.c (value_of_register_lazy): Skip inline frames when
1480 creating lazy register values.
1481 * frame.c (frame_id_computed_p): Delete definition.
1482 * frame.h (frame_id_computed_p): Delete declaration.
1483
64cb3757
AB
14842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * NEWS: Mention additions to Python API.
1487 * python/py-arch.c (archpy_register_groups): New function.
1488 (arch_object_methods): Add 'register_groups' method.
1489 * python/py-registers.c (reggroup_iterator_object): New struct.
1490 (reggroup_object): New struct.
1491 (gdbpy_new_reggroup): New function.
1492 (gdbpy_reggroup_to_string): New function.
1493 (gdbpy_reggroup_name): New function.
1494 (gdbpy_reggroup_iter): New function.
1495 (gdbpy_reggroup_iter_next): New function.
1496 (gdbpy_new_reggroup_iterator): New function
1497 (gdbpy_initialize_registers): Register new types.
1498 (reggroup_iterator_object_type): Define new Python type.
1499 (gdbpy_reggroup_getset): New static global.
1500 (reggroup_object_type): Define new Python type.
1501 * python/python-internal.h
1502
0f767f94
AB
15032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1506 * python/py-arch.c (archpy_registers): New function.
1507 (arch_object_methods): Add 'registers' method.
1508 * python/py-registers.c: New file.
1509 * python/python-internal.h
1510 (gdbpy_new_register_descriptor_iterator): Declare.
1511 (gdbpy_initialize_registers): Declare.
1512 * python/python.c (do_start_initialization): Call
1513 gdbpy_initialize_registers.
1514 * NEWS: Mention additions to the Python API.
1515
87dbc774
AB
15162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * NEWS: Mention new Python API method.
1519 * python/py-unwind.c (pending_framepy_architecture): New function.
1520 (pending_frame_object_methods): Add architecture method.
1521
3bc98c0c
AB
15222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * gdbarch.c: Regenerate.
1525 * gdbarch.h: Regenerate.
1526 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1527 (gdbarch_data): Use internal_error for the case where
1528 deprecated_set_gdbarch_data was originally needed.
1529 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1530 and use passed in obstack.
1531 (libunwind_frame_set_descr): Should no longer get back NULL from
1532 gdbarch_data.
1533 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1534 type.
1535 * user-regs.c (user_regs_init): Update parameters, and use passed
1536 in obstack.
1537 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1538 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1539
d8cc8af6
TV
15402020-07-06 Tom de Vries <tdevries@suse.de>
1541
1542 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1543 End-Of-Sequence in lte_is_less_than.
1544 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1545 "gdb: Don't reorder line table entries too much when sorting".
1546
947f7597
TV
15472020-07-06 Tom de Vries <tdevries@suse.de>
1548
1549 PR tui/26205
1550 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1551
1e7c1b22
TV
15522020-07-05 Tom de Vries <tdevries@suse.de>
1553
1554 PR build/26187
1555 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1556 std::uncaught_exceptions instead of deprecated
1557 std::uncaught_exception.
1558
a36158ec
SM
15592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * macroexp.h (macro_stringify): Return
1562 gdb::unique_xmalloc_ptr<char>.
1563 * macroexp.c (macro_stringify): Likewise.
1564 * macrotab.c (fixup_definition): Update.
1565
14d960c8
SM
15662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1569 (lex_one_token): Update.
1570 * macroexp.c (struct macro_buffer) <release>: Return
1571 gdb::unique_xmalloc_ptr<char>.
1572 (macro_stringify): Update.
1573 (macro_expand): Update.
1574 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1575 * macroexp.h (macro_expand_next): Likewise.
1576
211d5b1c
SM
15772020-07-02 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * macroexp.h (macro_lookup_ftype): Remove.
1580 (macro_expand, macro_expand_once, macro_expand_next): Remove
1581 lookup function parameters, add scope parameter.
1582 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1583 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1584 * macroscope.h (standard_macro_lookup): Change parameter type
1585 to macro_scope.
1586 * macroscope.c (standard_macro_lookup): Likewise.
1587 * c-exp.y (lex_one_token): Update.
1588 * macrocmd.c (macro_expand_command): Likewise.
1589 (macro_expand_once_command): Likewise.
1590
b1a35af2
SM
15912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1592
1593 * inf-loop.c (inferior_event_handler): Remove client_data param.
1594 * inf-loop.h (inferior_event_handler): Likewise.
1595 * infcmd.c (step_1): Adjust.
1596 * infrun.c (proceed): Adjust.
1597 (fetch_inferior_event): Remove client_data param.
1598 (infrun_async_inferior_event_handler): Adjust.
1599 * infrun.h (fetch_inferior_event): Remove `void *` param.
1600 * linux-nat.c (handle_target_event): Adjust.
1601 * record-btrace.c (record_btrace_handle_async_inferior_event):
1602 Adjust.
1603 * record-full.c (record_full_async_inferior_event_handler):
1604 Adjust.
1605 * remote.c (remote_async_inferior_event_handler): Adjust.
1606
1cdf9e33
TT
16072020-07-01 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1610 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1611
32c1e210
TT
16122020-07-01 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1615 tui_gen_win_info.
1616 (tui_win_info::make_window): Merge with
1617 tui_gen_win_info::make_window.
1618 (tui_win_info::make_visible): Move from tui_gen_win_info.
1619 * tui/tui-win.c (tui_win_info::max_width): Move from
1620 tui_gen_win_info.
1621 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1622 type.
1623 <window_factory>: Likewise.
1624 * tui/tui-layout.c (tui_win_info::resize): Move from
1625 tui_gen_win_info.
1626 (make_standard_window): Change return type.
1627 (get_locator_window, tui_get_window_by_name): Likewise.
1628 (tui_layout_window::apply): Remove a cast.
1629 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1630 (struct tui_win_info): Merge with tui_gen_win_info.
1631 (struct tui_gen_win_info): Remove.
1632
a30cb6da
TT
16332020-07-01 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-stack.h (struct tui_locator_window): Derive from
1636 tui_win_info.
1637 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1638 <can_box>: New method.
1639
1eb2161f
TT
16402020-07-01 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1643
7134f2eb
TT
16442020-07-01 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-regs.c (tui_data_window::display_registers_from)
1647 (tui_data_window::display_registers_from)
1648 (tui_data_window::first_data_item_displayed)
1649 (tui_data_window::delete_data_content_windows): Update.
1650 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1651 Remove.
1652 (tui_data_window::check_register_values): Update.
1653 (tui_data_item_window::rerender): Add parameters. Update.
1654 (tui_data_item_window::refresh_window): Remove.
1655 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1656 virtual.
1657 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1658 tui_gen_win_info.
1659 <refresh_window, max_height, min_height>: Remove.
1660 <rerender>: Add parameters.
1661 <x, y, visible>: New members.
1662 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1663 <m_item_width>: New member.
1664
22b7b041
TT
16652020-07-01 Tom Tromey <tom@tromey.com>
1666
1667 * tui/tui-regs.c (tui_data_window::show_register_group)
1668 (tui_data_window::check_register_values): Update.
1669 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1670 from item_no.
1671
c9753adb
TT
16722020-07-01 Tom Tromey <tom@tromey.com>
1673
1674 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1675 useless "if".
1676
9ab26b4a
TT
16772020-07-01 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1680 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1681
e555083f
TT
16822020-07-01 Tom Tromey <tom@tromey.com>
1683
1684 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1685 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1686 (struct tui_line_or_address): Move from tui-data.h.
1687 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1688 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1689 (tui_cmd_window, tui_source_window_base, tui_source_window)
1690 (tui_disasm_window): Don't declare.
1691 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1692 to tui-winsource.h.
1693 (SINGLE_KEY): Move to tui-stack.c.
1694
7a02bab7
TT
16952020-07-01 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1698 std::string.
1699 * tui/tui-regs.c (class tab_expansion_file): New.
1700 (tab_expansion_file::write): New method.
1701 (tui_register_format): Change return type. Use
1702 tab_expansion_file.
1703 (tui_get_register, tui_data_window::display_registers_from)
1704 (tui_data_item_window::rerender): Update.
1705 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1706 * tui/tui-io.c (tui_expand_tabs): Remove.
1707
ea68593b
TT
17082020-07-01 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1711
a8caed5d
FS
17122020-07-01 Fangrui Song <maskray@google.com>
1713
1714 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1715
9cdf9820
AKS
17162020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1717
1718 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1719 forms for DW_AT_associated and DW_AT_allocated attributes,
1720 which is already checked in function attr_to_dynamic_prop.
1721
a1520ad8
TT
17222020-06-30 Tom Tromey <tromey@adacore.com>
1723
1724 * dwarf2/read.c (quirk_rust_enum): Correctly call
1725 alloc_rust_variant for default-less enum.
1726
5ac58899
TT
17272020-06-30 Tom Tromey <tromey@adacore.com>
1728
1729 PR build/26183:
1730 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1731 gdb::to_string.
1732
19b187a9
SM
17332020-06-29 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1736 * gdbarch.h: Re-generate.
1737
cd4c4c07
TT
17382020-06-28 Tom Tromey <tom@tromey.com>
1739
1740 * command.h (cmd_types): Remove.
1741 (cmd_type): Don't declare.
1742 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1743 typedef.
1744 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1745 * cli/cli-decode.c (cmd_type): Remove.
1746
05779d57
PA
17472020-06-27 Pedro Alves <palves@redhat.com>
1748
1749 * fork-child.c (prefork_hook): Adjust.
1750 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1751 Delete.
1752 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1753 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1754 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1755 Remove declarations.
1756 (struct inferior) <set_tty, tty>: New methods.
1757 (struct inferior) <terminal>: Rename to ...
1758 (struct inferior) <m_terminal>: ... this and make private.
1759 * main.c (captured_main_1): Adjust.
1760 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1761 (mi_cmd_inferior_tty_show): Adjust.
1762 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1763 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1764
1776e3e5
NA
17652020-06-26 Nick Alcock <nick.alcock@oracle.com>
1766
1767 * configure.ac: Add --enable-libctf: handle --disable-static
1768 properly.
1769 * acinclude.m4: sinclude ../config/enable.m4.
1770 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1771 (LIBCTF): Substitute in.
1772 (CTF_DEPS): New, likewise.
1773 (CLIBS): libctf needs symbols from libbfd: move earlier.
1774 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1775 flags.
1776 * ctfread.c: Surround in ENABLE_LIBCTF.
1777 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1778 * configure: Regenerate.
1779 * config.in: Likewise.
1780
58373b80
SM
17812020-06-25 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1784
277474ee
SM
17852020-06-25 Simon Marchi <simon.marchi@efficios.com>
1786
1787 * inferior.h (struct inferior) <terminal>: Change type to
1788 gdb::unique_xmalloc_ptr<char>.
1789 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1790 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1791 field, adjust to unique pointer.
1792 (get_inferior_io_terminal): Adjust to unique pointer.
1793
6d74da72
AB
17942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1797 registers, not just the known core set of registers.
1798
2e52d038
AB
17992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1802 fflags, frm, and fcsr registers.
1803 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1804 restore groups.
1805 (riscv_tdesc_unknown_reg): New function.
1806 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1807 tdesc_use_registers.
1808 * riscv-tdep.h (struct gdbarch_tdep): Add
1809 unknown_csrs_first_regnum, unknown_csrs_count,
1810 duplicate_fflags_regnum, duplicate_frm_regnum, and
1811 duplicate_fcsr_regnum fields.
1812
be64fd07
AB
18132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1816 callback, use the callback (when not null) to help number unknown
1817 registers.
1818 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1819 (tdesc_use_registers): Add extra parameter to declaration.
1820
3b9fce96
AB
18212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1824 in the file.
1825 (class riscv_pending_register_alias): Likewise.
1826 (riscv_register_feature::register_info): Change 'required_p' field
1827 to 'required', and change its type. Add 'check' member function.
1828 (riscv_register_feature::register_info::check): Define new member
1829 function.
1830 (riscv_xreg_feature): Change initialisation of 'required' field.
1831 (riscv_freg_feature): Likewise.
1832 (riscv_virtual_feature): Likewise.
1833 (riscv_csr_feature): Likewise.
1834 (riscv_check_tdesc_feature): Take extra parameter, the csr
1835 tdesc_feature, rewrite the function to use the new
1836 riscv_register_feature::register_info::check function.
1837 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1838
865bad26
AB
18392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * features/Makefile: Remove all references to the deleted files
1842 below.
1843 * features/riscv/32bit-csr.c: Deleted.
1844 * features/riscv/32bit-csr.xml: Deleted.
1845 * features/riscv/64bit-csr.c: Deleted.
1846 * features/riscv/64bit-csr.xml: Deleted.
1847 * features/riscv/rebuild-csr-xml.sh: Deleted.
1848
ed69cbc8
AB
18492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1852 whitespace error for declaration of names member variable.
1853 (struct riscv_register_feature): Add new prefer_first_name member
1854 variable, and fix whitespace error in declaration of registers.
1855 (riscv_xreg_feature): Initialize prefer_first_name field.
1856 (riscv_freg_feature): Likewise.
1857 (riscv_virtual_feature): Likewise.
1858 (riscv_csr_feature): Likewise.
1859 (riscv_register_name): Expand on comments. Remove register name
1860 modifications for CSR and virtual registers.
1861
4445e8f5
AB
18622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1865 errors.
1866
767a879e
AB
18672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1870 riscv-opc.h.
1871 (class riscv_pending_register_alias): New class.
1872 (riscv_check_tdesc_feature): Take vector of pending aliases and
1873 populate it as appropriate.
1874 (riscv_setup_register_aliases): Delete.
1875 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1876 to riscv_check_tdesc_feature in all cases. Use the vector to
1877 create the register aliases.
1878
bb6e55f3
RO
18792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1880
1881 * sol2-tdep.c (sol2_static_transform_name): Remove.
1882 (sol2_init_abi): Don't register it.
1883 * gdbarch.sh (static_transform_name): Remove.
1884 * gdbarch.c, gdbarch.h: Regenerate.
1885
1886 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1887 gdbarch_static_transform_name.
1888 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1889 * stabsread.c (define_symbol) <'X'>: Remove.
1890 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1891 handling.
1892 <'V'>: Likewise.
1893 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1894 <'S'>: Remove call to gdbarch_static_transform_name.
1895
c6d36836
RO
18962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1897
1898 * procfs.c (procfs_pre_trace): New function.
1899 (procfs_target::create_inferior): Pass it to fork_inferior.
1900
a7e6196b
RO
19012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1904 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1905 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1906 sol2-tdep.o, sparc-sol2-tdep.o.
1907 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1908 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1909 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1910 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1911
d412e696
RO
19122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1913
1914 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1915 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1916 Call sol2_init_abi.
1917 Remove calls to set_gdbarch_skip_solib_resolver,
1918 set_gdbarch_core_pid_to_str.
1919 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1920 (i386_sol2_static_transform_name): Remove.
1921 (i386_sol2_init_abi): Call sol2_init_abi.
1922 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1923 set_gdbarch_static_transform_name,
1924 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1925 Use sol2_sigtramp_p.
1926 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1927 (sol2_sigtramp_p): New function.
1928 (sol2_static_transform_name): New function.
1929 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1930 (sol2_init_abi): New function.
1931 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1932 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1933 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1934 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1935 (sparc_sol2_static_transform_name): Remove.
1936 (sparc32_sol2_init_abi): Call sol2_init_abi.
1937 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1938 set_gdbarch_static_transform_name,
1939 set_gdbarch_skip_solib_resolver,
1940 set_gdbarch_core_pid_to_str.
1941 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1942 (sparc_sol2_static_transform_name): Remove
1943 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1944 call sol2_sigtramp_p.
1945 (sparc64_sol2_init_abi): Call sol2_init_abi.
1946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1947 set_gdbarch_static_transform_name,
1948 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1949
a8654e7d
PW
19502020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1951
1952 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1953 * exec.c (validate_exec_file): If from_tty, set both
1954 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1955 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1956 and from_tty, unconditionally ask a confirmation.
1957
caa7fd04
AB
19582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * target-descriptions.c (tdesc_architecture_name): Protect against
1961 NULL pointer dereference.
1962 (maint_print_xml_tdesc_cmd): New function.
1963 (_initialize_target_descriptions): Register new 'maint print
1964 xml-tdesc' command and give it the filename completer.
1965 * NEWS: Mention new 'maint print xml-tdesc' command.
1966
fbf42f4e
AB
19672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * target-descriptions.c (class tdesc_compatible_info): New class.
1970 (struct target_desc): Change type of compatible vector.
1971 (tdesc_compatible_p): Update for change in type of
1972 target_desc::compatible.
1973 (tdesc_compatible_info_list): New function.
1974 (tdesc_compatible_info_arch_name): New function.
1975 (tdesc_add_compatible): Update for change in type of
1976 target_desc::compatible.
1977 (print_c_tdesc::visit_pre): Likewise.
1978
20821f4e
AB
19792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1980
1981 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1982 whitespace to underscore.
1983 (maint_print_c_tdesc_cmd): Use fake filename for target
1984 descriptions that came from the target.
1985 (_initialize_target_descriptions): Add filename command completion
1986 for 'maint print c-tdesc'.
1987
1fb5ee62
SM
19882020-06-23 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1991 lines.
1992
fc3ecb3e
SM
19932020-06-23 Simon Marchi <simon.marchi@efficios.com>
1994
1995 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1996 lines.
1997 (dwarf2_find_location_expression): Likewise.
1998 (call_site_parameter_matches): Likewise.
1999 (dwarf2_compile_expr_to_ax): Likewise.
2000 (disassemble_dwarf_expression): Likewise.
2001 (loclist_describe_location): Likewise.
2002
236ef034
PA
20032020-06-23 Pedro Alves <palves@redhat.com>
2004
2005 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2006 progspace-and-thread.h. Include scoped-mock-context.h instead.
2007 (register_to_value_test): Use scoped_mock_context.
2008 * regcache.c: Include "scoped-mock-context.h".
2009 (cooked_read_test): Don't error out if a target is already pushed.
2010 Use scoped_mock_context. Adjust.
2011 * scoped-mock-context.h: New file.
2012
39e7ecca
AB
20132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2016 initializer.
2017 (ada_language::is_string_type_p): New member function.
2018 * c-lang.c (c_language_data): Delete la_is_string_type_p
2019 initializer.
2020 (cplus_language_data): Likewise.
2021 (asm_language_data): Likewise.
2022 (minimal_language_data): Likewise.
2023 * d-lang.c (d_language_data): Likewise.
2024 * f-lang.c (f_is_string_type_p): Delete function, implementation
2025 moved to f_language::is_string_type_p.
2026 (f_language_data): Delete la_is_string_type_p initializer.
2027 (f_language::is_string_type_p): New member function,
2028 implementation from f_is_string_type_p.
2029 * go-lang.c (go_is_string_type_p): Delete function, implementation
2030 moved to go_language::is_string_type_p.
2031 (go_language_data): Delete la_is_string_type_p initializer.
2032 (go_language::is_string_type_p): New member function,
2033 implementation from go_is_string_type_p.
2034 * language.c (language_defn::is_string_type_p): Define new member
2035 function.
2036 (default_is_string_type_p): Make static, add comment copied from
2037 header file.
2038 (unknown_language_data): Delete la_is_string_type_p initializer.
2039 (unknown_language::is_string_type_p): New member function.
2040 (auto_language_data): Delete la_is_string_type_p initializer.
2041 (auto_language::is_string_type_p): New member function.
2042 * language.h (language_data): Delete la_is_string_type_p field.
2043 (language_defn::is_string_type_p): Declare new function.
2044 (default_is_string_type_p): Delete desclaration, move comment to
2045 definition.
2046 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2047 moved to m2_language::is_string_type_p.
2048 (m2_language_data): Delete la_is_string_type_p initializer.
2049 (m2_language::is_string_type_p): New member function,
2050 implementation from m2_is_string_type_p.
2051 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2052 initializer.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_is_string_type_p): Delete function,
2055 implementation moved to pascal_language::is_string_type_p.
2056 (pascal_language_data): Delete la_is_string_type_p initializer.
2057 (pascal_language::is_string_type_p): New member function,
2058 implementation from pascal_is_string_type_p.
2059 * rust-lang.c (rust_is_string_type_p): Delete function,
2060 implementation moved to rust_language::is_string_type_p.
2061 (rust_language_data): Delete la_is_string_type_p initializer.
2062 (rust_language::is_string_type_p): New member function,
2063 implementation from rust_is_string_type_p.
2064 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2065 is_string_type_p.
2066
4ffc13fb
AB
20672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (ada_language_data): Delete la_print_typedef
2070 initializer.
2071 (ada_language::print_typedef): New member function.
2072 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2073 (cplus_language_data): Likewise.
2074 (asm_language_data): Likewise.
2075 (minimal_language_data): Likewise.
2076 * d-lang.c (d_language_data): Likewise.
2077 * f-lang.c (f_language_data): Likewise.
2078 (f_language::print_typedef): New member function.
2079 * go-lang.c (go_language_data): Delete la_print_typedef
2080 initializer.
2081 * language.c (language_defn::print_typedef): Define member
2082 function.
2083 (unknown_language_data): Delete la_print_typedef initializer.
2084 (unknown_language::print_typedef): New member function.
2085 (auto_language_data): Delete la_print_typedef initializer.
2086 (auto_language::print_typedef): New member function.
2087 * language.h (language_data): Delete la_print_typedef field.
2088 (language_defn::print_typedef): Declare new member function.
2089 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2090 (default_print_typedef): Delete declaration.
2091 * m2-lang.c (m2_language_data): Delete la_print_typedef
2092 initializer.
2093 (m2_language::print_typedef): New member function.
2094 * objc-lang.c (objc_language_data): Delete la_print_typedef
2095 initializer.
2096 * opencl-lang.c (opencl_language_data): Likewise.
2097 * p-lang.c (pascal_language_data): Likewise.
2098 (pascal_language::print_typedef): New member function.
2099 * rust-lang.c (rust_print_typedef): Delete function,
2100 implementation moved to rust_language::print_typedef.
2101 (rust_language): Delete la_print_typedef initializer.
2102 (rust_language::print_typedef): New member function,
2103 implementation from rust_print_typedef.
2104 * typeprint.c (default_print_typedef): Delete.
2105
d711ee67
AB
21062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2109 (ada_language::printstr): New member function.
2110 * c-lang.c (c_language_data): Delete la_printstr initializer.
2111 (cplus_language_data): Likewise.
2112 (asm_language_data): Likewise.
2113 (minimal_language_data): Likewise.
2114 * d-lang.c (d_language_data): Likewise.
2115 * f-lang.c (f_printstr): Rename to f_language::printstr.
2116 (f_language_data): Delete la_printstr initializer.
2117 (f_language::printstr): New member function, implementation from
2118 f_printstr.
2119 * go-lang.c (go_language_data): Delete la_printstr initializer.
2120 * language.c (language_defn::printstr): Define new member
2121 function.
2122 (unk_lang_printstr): Delete.
2123 (unknown_language_data): Delete la_printstr initializer.
2124 (unknown_language::printstr): New member function.
2125 (auto_language_data): Delete la_printstr initializer.
2126 (auto_language::printstr): New member function.
2127 * language.h (language_data): Delete la_printstr field.
2128 (language_defn::printstr): Declare new member function.
2129 (LA_PRINT_STRING): Update call to printstr.
2130 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2131 (m2_language_data): Delete la_printstr initializer.
2132 (m2_language::printstr): New member function, implementation from
2133 m2_printstr.
2134 * objc-lang.c (objc_language_data): Delete la_printstr
2135 initializer.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2138 (pascal_language_data): Delete la_printstr initializer.
2139 (pascal_language::printstr): New member function, implementation
2140 from pascal_printstr.
2141 * p-lang.h (pascal_printstr): Delete declaration.
2142 * rust-lang.c (rust_printstr): Update header comment.
2143 (rust_language_data): Delete la_printstr initializer.
2144 (rust_language::printstr): New member function.
2145
52b50f2c
AB
21462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2149 (ada_language::printchar): New member function.
2150 * c-lang.c (c_language_data): Delete la_printchar initializer.
2151 (cplus_language_data): Likewise.
2152 (asm_language_data): Likewise.
2153 (minimal_language_data): Likewise.
2154 * d-lang.c (d_language_data): Likewise.
2155 * f-lang.c (f_printchar): Rename to f_language::printchar.
2156 (f_language_data): Delete la_printchar initializer.
2157 (f_language::printchar): New member function, implementation from
2158 f_printchar.
2159 * go-lang.c (go_language_data): Delete la_printchar initializer.
2160 * language.c (unk_lang_printchar): Delete.
2161 (language_defn::printchar): Define new member function.
2162 (unknown_language_data): Delete la_printchar initializer.
2163 (unknown_language::printchar): New member function.
2164 (auto_language_data): Delete la_printchar initializer.
2165 (auto_language::printchar): New member function.
2166 * language.h (language_data): Delete la_printchar field.
2167 (language_defn::printchar): Declare new member function.
2168 (LA_PRINT_CHAR): Update call to printchar.
2169 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2170 (m2_language::printchar): New member function.
2171 * objc-lang.c (objc_language_data): Delete la_printchar
2172 initializer.
2173 * opencl-lang.c (opencl_language_data): Likewise.
2174 * p-lang.c (pascal_language_data): Delete la_printchar
2175 initializer.
2176 (pascal_language::printchar): New member function.
2177 * rust-lang.c (rust_printchar): Rename to
2178 rust_language::printchar.
2179 (rust_language_data): Delete la_printchar initializer.
2180 (rust_language::printchar): New member function, implementation
2181 from rust_printchar.
2182
ec8cec5b
AB
21832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2186 (ada_language_data): Delete la_emitchar initializer.
2187 (ada_language::emitchar): New member function, implementation from
2188 emit_char.
2189 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2190 (cplus_language_data): Likewise.
2191 (asm_language_data): Likewise.
2192 (minimal_language_data): Likewise.
2193 * d-lang.c (d_language_data): Likewise.
2194 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2195 (f_language_data): Delete la_emitchar initializer.
2196 (f_language::emitchar): New member function, implementation from
2197 f_emit_char.
2198 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2199 * language.c (unk_lang_emit_char): Delete.
2200 (language_defn::emitchar): New member function definition.
2201 (unknown_language_data): Delete la_emitchar initializer.
2202 (unknown_language::emitchar): New member function.
2203 (auto_language_data): Delete la_emitchar initializer.
2204 (auto_language::emitchar): New member function.
2205 * language.h (language_data): Delete la_emitchar field.
2206 (language_defn::emitchar): New member field declaration.
2207 (LA_EMIT_CHAR): Update call to emitchar.
2208 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2209 (m2_language_data): Delete la_emitchar initializer.
2210 (m2_language::emitchar): New member function, implementation from
2211 m2_emit_char.
2212 * objc-lang.c (objc_language_data): Delete la_emitchar
2213 initializer.
2214 * opencl-lang.c (opencl_language_data): Likewise.
2215 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2216 (pascal_language_data): Delete la_emitchar initializer.
2217 (pascal_language::emitchar): New member function, implementation
2218 from pascal_emit_char.
2219 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2220 (rust_language_data): Delete la_emitchar initializer.
2221 (rust_language::emitchar): New member function, implementation
2222 from rust_emitchar.
2223
1bf9c363
AB
22242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2227 (ada_language_data): Delete la_post_parser initializer.
2228 (ada_language::post_parser): New member function.
2229 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2230 (cplus_language_data): Likewise.
2231 (asm_language_data): Likewise.
2232 (minimal_language_data): Likewise.
2233 * d-lang.c (d_language_data): Likewise.
2234 * f-lang.c (f_language_data): Likewise.
2235 * go-lang.c (go_language_data): Likewise.
2236 * language.c (unknown_language_data): Likewise.
2237 (auto_language_data): Likewise.
2238 * language.h (language_data): Delete la_post_parser field.
2239 (language_defn::post_parser): New member function.
2240 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2241 * objc-lang.c (objc_language_data): Likewise.
2242 * opencl-lang.c (opencl_language_data): Likewise.
2243 * p-lang.c (pascal_language_data): Likewise.
2244 * parse.c (parse_exp_in_context): Update call to post_parser.
2245 (null_post_parser): Delete definition.
2246 * parser-defs.h (null_post_parser): Delete declaration.
2247 * rust-lang.c (rust_language_data): Delete la_post_parser
2248 initializer.
2249
87afa652
AB
22502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * ada-lang.c (parse): Rename to ada_language::parser.
2253 (ada_language_data): Delete la_parser initializer.
2254 (ada_language::parser): New member function, implementation from
2255 parse.
2256 * c-lang.c (c_language_data): Delete la_parser initializer.
2257 (cplus_language_data): Likewise.
2258 (asm_language_data): Likewise.
2259 (minimal_language_data): Likewise.
2260 * d-lang.c (d_language_data): Likewise.
2261 (d_language::parser): New member function.
2262 * f-lang.c (f_language_data): Delete la_parser initializer.
2263 (f_language::parser): New member function.
2264 * go-lang.c (go_language_data): Delete la_parser initializer.
2265 (go_language::parser): New member function.
2266 * language.c (unk_lang_parser): Delete.
2267 (language_defn::parser): Define new member function.
2268 (unknown_language_data): Delete la_parser initializer.
2269 (unknown_language::parser): New member function.
2270 (auto_language_data): Delete la_parser initializer.
2271 (auto_language::parser): New member function.
2272 * language.h (language_data): Delete la_parser field.
2273 (language_defn::parser): Declare new member function.
2274 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2275 (m2_language::parser): New member function.
2276 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2277 * opencl-lang.c (opencl_language_data): Likewise.
2278 * p-lang.c (pascal_language_data): Likewise.
2279 (pascal_language::parser): New member function.
2280 * parse.c (parse_exp_in_context): Update call to parser.
2281 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2282 (rust_language::parser): New member function.
2283
37825800
AB
22842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * top.c (print_gdb_configuration): Print --with-python-libdir
2287 configuration value.
2288
5b860c93
PW
22892020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2290
2291 * NEWS: Mention change to the alias command.
2292
cf00cd6f
PW
22932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2294
2295 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2296 (alias_command_completer)
2297 (make_alias_options_def_group): New functions.
2298 (alias_opts, alias_option_defs): New struct and array.
2299 (alias_usage_error): Update usage.
2300 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2301 Use option framework.
2302 (_initialize_cli_cmds): Update alias command help.
2303 Update aliases command help.
2304 (show_user):
2305 Add NULL for new default_args lookup_cmd argument.
2306 (valid_command_p): Rename to validate_aliased_command.
2307 Add NULL for new default_args lookup_cmd argument. Verify that the
2308 aliased_command has no default args.
2309 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2310 (lookup_cmd_1, lookup_cmd): New argument default_args.
2311 (add_alias_cmd):
2312 Add NULL for new default_args lookup_cmd argument.
2313 (print_help_for_command): Show default args under the layout
2314 alias some_alias = some_aliased_cmd some_alias_default_arg.
2315 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2316 xfree default_args in destructor.
2317 * cli/cli-script.c (process_next_line, do_define_command):
2318 Add NULL for new default_args lookup_cmd argument.
2319 * command.h: Declare new default_args argument in lookup_cmd
2320 and lookup_cmd_1.
2321 * completer.c (complete_line_internal_1):
2322 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2323 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2324 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2325 Likewise.
2326 * infcmd.c (_initialize_infcmd): Likewise.
2327 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2328 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2329 * python/py-param.c (add_setshow_generic): Likewise.
2330 * remote.c (_initialize_remote): Likewise.
2331 * top.c (execute_command): Prepend default_args if command has some.
2332 (set_verbose):
2333 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2334 * tracepoint.c (validate_actionline, encode_actions_1):
2335 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2336
bd920864
TBA
23372020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338
2339 * jit.c (jit_read_descriptor): Use bool as the return type.
2340 (jit_breakpoint_re_set_internal): Use bool as the return type.
2341 Invert the return value logic; return true if the jit breakpoint
2342 has been successfully initialized.
2343 (jit_inferior_init): Update the call to
2344 jit_breakpoint_re_set_internal.
2345
f8098322
PA
23462020-06-22 Pedro Alves <palves@redhat.com>
2347
2348 PR gdb/25939
2349 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2350 Use the current inferior instead. Don't return
2351 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2352 wait again.
2353 * sol-thread.c (sol_thread_target::wait): Don't reference
2354 inferior_ptid.
2355 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2356 (sol_update_thread_list_callback): Use the current inferior's pid
2357 instead of inferior_ptid.
2358
196535a6
RO
23592020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2360
2361 * procfs.c: Cleanup many comments.
2362
2363 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2364 (AFTER_WATCHFLAG): Replace by value.
2365
2366 (MAIN_PROC_NAME_FORMAT): Inline ...
2367 (create_procinfo): ... here.
2368
2369 (procfs_debug_inferior): Remove SYS_exec handling.
2370 (syscall_is_exec): Likewise.
2371 (procfs_set_exec_trap): Likewise.
2372
2373 (syscall_is_lwp_exit): Inline in callers.
2374 (syscall_is_exit): Likewise.
2375 (syscall_is_exec): Likewise.
2376 (syscall_is_lwp_create): Likewise.
2377
2378 (invalidate_cache): Remove #if 0 code.
2379
2380 (make_signal_thread_runnable): Remove.
2381 (procfs_target::resume): Remove #if 0 code.
2382
cf6f3e86
RO
23832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2384
2385 PR gdb/25939
2386 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2387 call ...
2388 (procfs_target::create_inferior): ... here.
2389
48e9cc84
PW
23902020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2391
2392 * exec.c (validate_exec_file): Ensure the build-id is up to
2393 date by calling reopen_exec_file (that checks file timestamp
2394 to decide to re-read the file).
2395
3922b302
PA
23962020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 PR gdb/25412
2399 * gdbthread.h (delete_thread, delete_thread_silent)
2400 (find_thread_ptid): Update comments.
2401 * thread.c (current_thread_): New global.
2402 (is_current_thread): Move higher, and reimplement.
2403 (inferior_thread): Reimplement.
2404 (set_thread_exited): Use bool. Add assertions.
2405 (add_thread_silent): Simplify thread-reuse handling by always
2406 calling delete_thread.
2407 (delete_thread): Remove intro comment.
2408 (find_thread_ptid): Skip exited threads.
2409 (switch_to_thread_no_regs): Write to current_thread_.
2410 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2411 INFERIOR_PTID. Clear current_thread_.
2412
6dbdab44
PA
24132020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * aix-thread.c (pd_update): Use switch_to_thread.
2416
2da4b788
PA
24172020-06-18 Pedro Alves <palves@redhat.com>
2418
2419 * ravenscar-thread.c (ravenscar_thread_target): Update.
2420 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2421 (ravenscar_thread_target::add_active_thread): ... this. Don't
2422 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2423 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2424
50838d1b
PA
24252020-06-18 Pedro Alves <palves@redhat.com>
2426
2427 * nat/windows-nat.c (current_windows_thread): Remove.
2428 * nat/windows-nat.h (current_windows_thread): Remove.
2429 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2430 Adjust.
2431 (display_selectors): Adjust to fetch the current
2432 windows_thread_info based on inferior_ptid.
2433 (fake_create_process): No longer write to current_windows_thread.
2434 (windows_nat_target::get_windows_debug_event):
2435 Don't set inferior_ptid or current_windows_thread.
2436 (windows_nat_target::wait): Adjust to not rely on
2437 current_windows_thread.
2438 (do_initial_windows_stuff): Now a method of windows_nat_target.
2439 Switch to the last_ptid thread.
2440 (windows_nat_target::attach): Adjust.
2441 (windows_nat_target::detach): Use switch_to_no_thread instead of
2442 writing to inferior_ptid directly.
2443 (windows_nat_target::create_inferior): Adjust.
2444
31ce04e9
PA
24452020-06-18 Pedro Alves <palves@redhat.com>
2446
2447 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2448
1ee1a363
PA
24492020-06-18 Pedro Alves <palves@redhat.com>
2450
2451 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2452 after creating it, instead of writing to inferior_ptid. Don't
2453 write to inferior_ptid.
2454
6d350754
PA
24552020-06-18 Pedro Alves <palves@redhat.com>
2456
2457 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2458
5d971d48
PA
24592020-06-18 Pedro Alves <palves@redhat.com>
2460
2461 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2462 it, instead of writing to inferior_ptid.
2463
86e57d1b
PA
24642020-06-18 Pedro Alves <palves@redhat.com>
2465
2466 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2467 to inferior_ptid.
2468
f2e1c129
PA
24692020-06-18 Pedro Alves <palves@redhat.com>
2470
2471 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2472 instead of writing to inferior_ptid directly.
2473
60db1b85
PA
24742020-06-18 Pedro Alves <palves@redhat.com>
2475
2476 * corelow.c (core_target::close): Use switch_to_no_thread instead
2477 of writing to inferior_ptid directly.
2478 (add_to_thread_list, core_target_open): Use switch_to_thread
2479 instead of writing to inferior_ptid directly.
2480
fe7d6a8d
PA
24812020-06-18 Pedro Alves <palves@redhat.com>
2482
2483 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2484 inferior_ptid.
2485 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2486 inferior_ptid.
2487 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2488 inferior_ptid directly.
2489 (darwin_nat_target::init_thread_list): Switch to thread, instead
2490 of writing to inferior_ptid.
2491 (darwin_nat_target::attach): Don't write to inferior_ptid.
2492 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2493
975f8708
PA
24942020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2497 thread.
2498 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2499 Instead use switch_to_thread.
2500 (gnu_nat_target::detach): Use switch_to_no_thread
2501 instead of writing to inferior_ptid directly. Used passed-in
2502 inferior instead of looking up the inferior by pid.
2503
1a204730
PA
25042020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2507 inferior_ptid.
2508
ebe84f23
PA
25092020-06-18 Pedro Alves <palves@redhat.com>
2510
2511 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2512 inferior_ptid.
2513 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2514 thread.
2515 (nto_procfs_target::detach): Avoid referencing
2516 inferior_ptid. Use switch_to_no_thread instead of writing to
2517 inferior_ptid directly.
2518 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2519 instead of writing to inferior_ptid directly.
2520 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2521 to thread.
2522
191f02e5
PA
25232020-06-18 Pedro Alves <palves@redhat.com>
2524
2525 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2526 after creating it, instead of writing to inferior_ptid.
2527 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2528 to inferior_ptid directly.
2529 (gdbsim_target::wait): Don't write to inferior_ptid.
2530
0ac55310
PA
25312020-06-18 Pedro Alves <palves@redhat.com>
2532
2533 * remote.c (remote_target::remote_notice_new_inferior): Use
2534 switch_to_thread instead of writing to inferior_ptid directly.
2535 (remote_target::add_current_inferior_and_thread): Use
2536 switch_to_no_thread instead of writing to inferior_ptid directly.
2537 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2538 and switch_to_thread instead of using set_current_inferior or
2539 writing to inferior_ptid directly.
2540
5233f39b
PA
25412020-06-18 Pedro Alves <palves@redhat.com>
2542
2543 * tracectf.c (ctf_target_open): Switch to added thread instead of
2544 writing to inferior_ptid directly.
2545 (ctf_target::close): Use switch_to_no_thread instead of writing to
2546 inferior_ptid directly.
2547
087e161b
PA
25482020-06-18 Pedro Alves <palves@redhat.com>
2549
2550 * tracefile-tfile.c (tfile_target_open): Don't write to
2551 inferior_ptid directly, instead switch to added thread.
2552 (tfile_target::close): Use switch_to_no_thread instead of writing
2553 to inferior_ptid directly.
2554
7fb43e53
PA
25552020-06-18 Pedro Alves <palves@redhat.com>
2556
2557 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2558 (procfs_target::detach): Use switch_to_no_thread
2559 instead of writing to inferior_ptid directly.
2560 (do_attach): Change return type to void. Switch to the added
2561 thread.
2562 (procfs_target::create_inferior): Switch to the added thread.
2563 (procfs_do_thread_registers): Don't write to inferior_ptid.
2564
18493a00
PA
25652020-06-18 Pedro Alves <palves@redhat.com>
2566
2567 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2568 of writing to inferior_ptid.
2569 (scoped_restore_exited_inferior): Delete.
2570 (handle_vfork_child_exec_or_exit): Simplify using
2571 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2572 instead of writing to inferior_ptid.
2573 (THREAD_STOPPED_BY): Delete.
2574 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2575 (thread_stopped_by_hw_breakpoint): Delete.
2576 (save_waitstatus): Use
2577 scoped_restore_current_thread+switch_to_thread, and call
2578 target_stopped_by_watchpoint instead of
2579 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2580 instead of thread_stopped_by_sw_breakpoint, and
2581 target_stopped_by_hw_breakpoint instead of
2582 thread_stopped_by_hw_breakpoint.
2583 (handle_inferior_event)
2584 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2585 inferior_ptid directly, nor
2586 set_current_inferior/set_current_program_space. Use
2587 switch_to_thread / switch_to_inferior_no_thread instead.
2588
a0776b13
PA
25892020-06-18 Pedro Alves <palves@redhat.com>
2590
2591 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2592 instead of writing to inferior_ptid.
2593
6155c136
PA
25942020-06-18 Pedro Alves <palves@redhat.com>
2595
2596 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2597 added thread.
2598 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2599 to the added thread.
2600 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2601 instead of writing to inferior_ptid.
2602
c5316fc6
PA
26032020-06-18 Pedro Alves <palves@redhat.com>
2604
2605 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2606 (register_to_value_test): Mock a program_space too. Heap-allocate
2607 the address space. Don't write to inferior_ptid. Use
2608 switch_to_thread instead.
2609
8df01799
PA
26102020-06-18 Pedro Alves <palves@redhat.com>
2611
2612 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2613 Delete.
2614 (find_signalled_thread()): New, factored out from
2615 linux_make_corefile_notes and adjusted to handle exited threads.
2616 (linux_make_corefile_notes): Adjust to use the new
2617 find_signalled_thread.
2618
41792d68
PA
26192020-06-18 Pedro Alves <palves@redhat.com>
2620
2621 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2622 of saving/restoring inferior_ptid.
2623
612f258a
TT
26242020-06-17 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2627 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2628 declare.
2629 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2630
efb763a5
SM
26312020-06-15 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2634 of partial symtabs.
2635
2951f6c0
SM
26362020-06-17 Simon Marchi <simon.marchi@efficios.com>
2637
2638 * regformats/reg-arm.dat: Remove.
2639 * regformats/reg-bfin.dat: Remove.
2640 * regformats/reg-cris.dat: Remove.
2641 * regformats/reg-crisv32.dat: Remove.
2642 * regformats/reg-m32r.dat: Remove.
2643 * regformats/reg-tilegx.dat: Remove.
2644 * regformats/reg-tilegx32.dat: Remove.
2645
7d458ea5
SM
26462020-06-17 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * features/Makefile (WHICH): Remove arm files.
2649 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2650 * regformats/arm/arm-with-neon.dat: Remove.
2651 * regformats/arm/arm-with-vfpv2.dat: Remove.
2652 * regformats/arm/arm-with-vfpv3.dat: Remove.
2653
3af96c0d
SM
26542020-06-17 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * features/Makefile (XMLTOC): Remove rx.xml.
2657
b25e22fd
PA
26582020-06-17 Pedro Alves <palves@redhat.com>
2659
2660 * gdbthread.h (thread_control_state) <trap_expected> Update
2661 comments.
2662
a78a19b1
AB
26632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2666 ada_language::lookup_symbol_nonlocal.
2667 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2668 (ada_language::lookup_symbol_nonlocal): New member function,
2669 implementation from ada_lookup_symbol_nonlocal.
2670 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2671 initializer.
2672 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2673 initializer.
2674 (cplus_language::lookup_symbol_nonlocal): New member function.
2675 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2676 (minimal_language_data) Likewise.
2677 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2678 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2679 initializer.
2680 (d_language::lookup_symbol_nonlocal): New member function.
2681 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2682 initializer.
2683 (f_language::lookup_symbol_nonlocal): New member function.
2684 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2685 initializer.
2686 * language.c (unknown_language_data): Likewise.
2687 (auto_language_data): Likewise.
2688 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2689 field.
2690 (language_defn::lookup_symbol_nonlocal): New member function.
2691 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2692 initializer.
2693 * objc-lang.c (objc_language_data): Likewise.
2694 * opencl-lang.c (opencl_language_data): Likewise.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2697 rust_language::lookup_symbol_nonlocal.
2698 (rust_language_data): Delete la_lookup_symbol_nonlocal
2699 initializer.
2700 (rust_language::lookup_symbol_nonlocal): New member function,
2701 implementation from rust_lookup_symbol_nonlocal.
2702 * symtab.c (lookup_symbol_aux): Update call to
2703 lookup_symbol_nonlocal.
2704 (basic_lookup_symbol_nonlocal): Rename to...
2705 (language_defn::lookup_symbol_nonlocal): ...this, and update
2706 header comment. Remove language_defn parameter, and replace with
2707 uses of `this'.
2708 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2709
ebe2334e
AB
27102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2713 initializer.
2714 (ada_language::value_print_inner): New member function.
2715 * c-lang.c (c_language_data): Delete la_value_print_inner
2716 initializer.
2717 (cplus_language_data): Likewise.
2718 (asm_language_data): Likewise.
2719 (minimal_language_data): Likewise.
2720 * d-lang.c (d_language_data): Likewise.
2721 (d_language::value_print_inner): New member function.
2722 * f-lang.c (f_language_data): Delete la_value_print_inner
2723 initializer.
2724 (f_language::value_print_inner): New member function.
2725 * f-lang.h (f_value_print_innner): Rename to...
2726 (f_value_print_inner): ...this (note spelling of 'inner').
2727 * f-valprint.c (f_value_print_innner): Rename to...
2728 (f_value_print_inner): ...this (note spelling of 'inner').
2729 * go-lang.c (go_language_data): Delete la_value_print_inner
2730 initializer.
2731 (go_language::value_print_inner): New member function.
2732 * language.c (language_defn::value_print_inner): Define new member
2733 function.
2734 (unk_lang_value_print_inner): Delete.
2735 (unknown_language_data): Delete la_value_print_inner initializer.
2736 (unknown_language::value_print_inner): New member function.
2737 (auto_language_data): Delete la_value_print_inner initializer.
2738 (auto_language::value_print_inner): New member function.
2739 * language.h (language_data): Delete la_value_print_inner field.
2740 (language_defn::value_print_inner): Delcare new member function.
2741 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2742 initializer.
2743 (m2_language::value_print_inner): New member function.
2744 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2745 initializer.
2746 * opencl-lang.c (opencl_language_data): Likewise.
2747 * p-lang.c (pascal_language_data): Likewise.
2748 (pascal_language::value_print_inner): New member function.
2749 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2750 initializer.
2751 (rust_language::value_print_inner): New member function.
2752 * valprint.c (do_val_print): Update call to value_print_inner.
2753
a1d1fa3e
AB
27542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_language_data): Delete la_value_print
2757 initializer.
2758 (ada_language::value_print): New member function.
2759 * c-lang.c (c_language_data): Delete la_value_print initializer.
2760 (cplus_language_data): Likewise.
2761 (asm_language_data): Likewise.
2762 (minimal_language_data): Likewise.
2763 * d-lang.c (d_language_data): Likewise.
2764 * f-lang.c (f_language_data): Likewise.
2765 * go-lang.c (go_language_data): Likewise.
2766 * language.c (unk_lang_value_print): Delete.
2767 (language_defn::value_print): Define new member function.
2768 (unknown_language_data): Delete la_value_print initializer.
2769 (unknown_language::value_print): New member function.
2770 (auto_language_data): Delete la_value_print initializer.
2771 (auto_language::value_print): New member function.
2772 * language.h (language_data): Delete la_value_print field.
2773 (language_defn::value_print): Declare new member function.
2774 (LA_VALUE_PRINT): Update call to value_print.
2775 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2776 * objc-lang.c (objc_language_data): Likewise.
2777 * opencl-lang.c (opencl_language_data): Likewise.
2778 * p-lang.c (pascal_language_data): Likewise.
2779 (pascal_language::value_print): New member function.
2780 * rust-lang.c (rust_language_data): Delete la_value_print
2781 initializer.
2782
f16a9f57
AB
27832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * ada-lang.c (ada_watch_location_expression): Rename to
2786 ada_language::watch_location_expression.
2787 (ada_language_data): Delete la_watch_location_expression
2788 initializer.
2789 (ada_language::watch_location_expression): New member function,
2790 implementation from ada_watch_location_expression.
2791 * breakpoint.c (watch_command_1): Update call to
2792 watch_location_expression.
2793 * c-lang.c (c_watch_location_expression): Rename to
2794 language_defn::watch_location_expression.
2795 (c_language_data): Delete la_watch_location_expression
2796 initializer.
2797 (cplus_language_data): Likewise.
2798 (asm_language_data): Likewise.
2799 (minimal_language_data): Likewise.
2800 * c-lang.h (c_watch_location_expression): Delete declaration.
2801 * d-lang.c (d_language_data): Delete la_watch_location_expression
2802 initializer.
2803 * f-lang.c (f_language_data): Likewise.
2804 * go-lang.c (go_language_data): Likewise.
2805 * language.c (language_defn::watch_location_expression): Member
2806 function implementation from c_watch_location_expression.
2807 (unknown_language_data): Delete la_watch_location_expression
2808 initializer.
2809 (auto_language_data): Likewise.
2810 * language.h (language_data): Delete la_watch_location_expression
2811 field.
2812 (language_defn::watch_location_expression): Declare new member
2813 function.
2814 * m2-lang.c (m2_language_data): Delete
2815 la_watch_location_expression initializer.
2816 * objc-lang.c (objc_language_data): Likewise.
2817 * opencl-lang.c (opencl_language_data): Likewise.
2818 * p-lang.c (pascal_language_data): Likewise.
2819 * rust-lang.c (rust_watch_location_expression): Rename to
2820 rust_language::watch_location_expression.
2821 (rust_language_data): Delete la_watch_location_expression
2822 initializer.
2823 (rust_language::watch_location_expression): New member function,
2824 implementation from rust_watch_location_expression.
2825
7e56227d
AB
28262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2829 ada_language::collect_symbol_completion_matches.
2830 (ada_language_data): Delete la_collect_symbol_completion_matches
2831 initializer.
2832 (ada_language::collect_symbol_completion_matches): New member
2833 function, implementation from
2834 ada_collect_symbol_completion_matches.
2835 * c-lang.c (c_language_data): Delete
2836 la_collect_symbol_completion_matches initializer.
2837 (cplus_language_data): Likewise.
2838 (asm_language_data): Likewise.
2839 (minimal_language_data): Likewise.
2840 * d-lang.c (d_language_data): Likewise.
2841 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2842 f_language::collect_symbol_completion_matches.
2843 (f_language_data): Delete la_collect_symbol_completion_matches
2844 initializer.
2845 (f_language::collect_symbol_completion_matches) New member
2846 function, implementation from f_collect_symbol_completion_matches.
2847 * go-lang.c (go_language_data): Delete
2848 la_collect_symbol_completion_matches initializer.
2849 * language.c (unknown_language_data): Likewise.
2850 (auto_language_data): Likewise.
2851 * language.h (language_data): Delete
2852 la_collect_symbol_completion_matches field.
2853 (language_defn::collect_symbol_completion_matches): New member
2854 function.
2855 * m2-lang.c (m2_language_data): Delete
2856 la_collect_symbol_completion_matches initializer.
2857 * objc-lang.c (objc_language_data): Likewise.
2858 * opencl-lang.c (opencl_language_data): Likewise.
2859 * p-lang.c (pascal_language_data): Likewise.
2860 * rust-lang.c (rust_language_data): Likewise.
2861 * symtab.c (default_collect_symbol_completion_matches): Delete.
2862 (collect_symbol_completion_matches): Update call to
2863 collect_symbol_completion_matches.
2864 (collect_symbol_completion_matches_type): Likewise.
2865 * symtab.h (default_collect_symbol_completion_matches): Delete
2866 declaration.
2867
53fc67f8
AB
28682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2871 (ada_language_data): Delete la_word_break_characters initializer.
2872 (ada_language::word_break_characters): New member function.
2873 * c-lang.c (c_language_data): Delete la_word_break_characters
2874 initializer.
2875 (cplus_language_data): Likewise.
2876 (asm_language_data): Likewise.
2877 (minimal_language_data): Likewise.
2878 * completer.c: Update global comment.
2879 (advance_to_expression_complete_word_point): Update call to
2880 word_break_characters.
2881 (complete_files_symbols): Likewise.
2882 (complete_line_internal_1): Likewise.
2883 (default_completer_handle_brkchars): Likewise.
2884 (skip_quoted_chars): Likewise.
2885 * d-lang.c (d_language_data): Delete la_word_break_characters
2886 initializer.
2887 * f-lang.c (f_word_break_characters): Delete.
2888 (f_language_data): Delete la_word_break_characters initializer.
2889 (f_language::word_break_characters): New member function.
2890 * go-lang.c (go_language_data): Delete la_word_break_characters
2891 initializer.
2892 * language.c (unknown_language_data): Likewise.
2893 (auto_language_data): Likewise.
2894 * language.h (default_word_break_characters): Move declaration to
2895 earlier in the file.
2896 (language_data): Delete la_word_break_characters field.
2897 (language_defn::word_break_characters): New member function.
2898 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2899 initializer.
2900 * objc-lang.c (objc_language_data): Likewise.
2901 * opencl-lang.c (opencl_language_data): Likewise.
2902 * p-lang.c (pascal_language_data): Likewise.
2903 * rust-lang.c (rust_language_data): Likewise.
2904
c9debfb9
AB
29052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2908 (ada_language_data): Delete la_get_symbol_name_matcher
2909 initializer.
2910 (language_defn::get_symbol_name_matcher_inner): New member
2911 function.
2912 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2913 initializer.
2914 (cplus_language_data): Likewise.
2915 (cplus_language::get_symbol_name_matcher_inner): New member
2916 function.
2917 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2918 (minimal_language_data): Likewise.
2919 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2920 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2921 initializer.
2922 * dictionary.c (iter_match_first_hashed): Update call to
2923 get_symbol_name_matcher.
2924 (iter_match_next_hashed): Likewise.
2925 (iter_match_next_linear): Likewise.
2926 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2927 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2928 initializer.
2929 (f_language::get_symbol_name_matcher_inner): New member function.
2930 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2931 initializer.
2932 * language.c (default_symbol_name_matcher): Update header comment,
2933 make static.
2934 (language_defn::get_symbol_name_matcher): New definition.
2935 (language_defn::get_symbol_name_matcher_inner): Likewise.
2936 (get_symbol_name_matcher): Delete.
2937 (unknown_language_data): Delete la_get_symbol_name_matcher
2938 initializer.
2939 (auto_language_data): Likewise.
2940 * language.h (language_data): Delete la_get_symbol_name_matcher
2941 field.
2942 (language_defn::get_symbol_name_matcher): New member function.
2943 (language_defn::get_symbol_name_matcher_inner): Likewise.
2944 (default_symbol_name_matcher): Delete declaration.
2945 * linespec.c (find_methods): Update call to
2946 get_symbol_name_matcher.
2947 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2948 initializer.
2949 * minsyms.c (lookup_minimal_symbol): Update call to
2950 get_symbol_name_matcher.
2951 (iterate_over_minimal_symbols): Likewise.
2952 * objc-lang.c (objc_language_data): Delete
2953 la_get_symbol_name_matcher initializer.
2954 * opencl-lang.c (opencl_language_data): Likewise.
2955 * p-lang.c (pascal_language_data): Likewise.
2956 * psymtab.c (psymbol_name_matches): Update call to
2957 get_symbol_name_matcher.
2958 * rust-lang.c (rust_language_data): Delete
2959 la_get_symbol_name_matcher initializer.
2960 * symtab.c (symbol_matches_search_name): Update call to
2961 get_symbol_name_matcher.
2962 (compare_symbol_name): Likewise.
2963
9a49ad8c
AB
29642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * ada-lang.c (ada_language_data): Delete la_compute_program
2967 initializer.
2968 * c-lang.c (c_language_data): Likewise.
2969 (c_language::compute_program): New member function.
2970 (cplus_language_data): Delete la_compute_program initializer.
2971 (cplus_language::compute_program): New member function.
2972 (asm_language_data): Delete la_compute_program initializer.
2973 (minimal_language_data): Likewise.
2974 * c-lang.h (c_compute_program): Update comment.
2975 (cplus_compute_program): Likewise.
2976 * compile/compile-c-support.c (c_compute_program): Likewise.
2977 (cplus_compute_program): Likewise.
2978 * compile/compile.c (compile_to_object): Update call to
2979 la_compute_program.
2980 * d-lang.c (d_language_data): Delete la_compute_program
2981 initializer.
2982 * f-lang.c (f_language_data): Likewise.
2983 * go-lang.c (go_language_data): Likewise.
2984 * language.c (unknown_language_data): Likewise.
2985 (auto_language_data): Likewise.
2986 * language.h (language_data): Delete la_compute_program field.
2987 (language_defn::compute_program): New member function.
2988 * m2-lang.c (m2_language_data): Delete la_compute_program
2989 initializer.
2990 * objc-lang.c (objc_language_data): Likewise.
2991 * opencl-lang.c (opencl_language_data): Likewise.
2992 * p-lang.c (pascal_language_data): Likewise.
2993 * rust-lang.c (rust_language_data): Likewise.
2994
eff93b4d
AB
29952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * ada-lang.c (ada_language_data) Delete
2998 la_class_name_from_physname initializer.
2999 * c-lang.c (c_language_data): Likewise.
3000 (cplus_language_data): Likewise.
3001 (cplus_language::class_name_from_physname): New member function.
3002 (asm_language_data): Delete la_class_name_from_physname
3003 initializer.
3004 (minimal_language_data): Likewise.
3005 * d-lang.c (d_language_data): Likewise.
3006 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3007 method on language_defn class.
3008 (guess_full_die_structure_name): Likewise.
3009 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3010 initializer.
3011 * go-lang.c (go_language_data): Likewise.
3012 * language.c (language_class_name_from_physname): Delete.
3013 (unk_lang_class_name): Delete.
3014 (unknown_language_data): Delete la_class_name_from_physname
3015 initializer.
3016 (auto_language_data): Likewise.
3017 * language.h (language_data): Delete la_class_name_from_physname
3018 field.
3019 (language_defn::class_name_from_physname): New function.
3020 (language_class_name_from_physname): Delete declaration.
3021 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3022 initializer.
3023 * objc-lang.c (objc_language_data): Likewise.
3024 * opencl-lang.c (opencl_language_data): Likewise.
3025 * p-lang.c (pascal_language_data): Likewise.
3026 * rust-lang.c (rust_language_data): Likewise.
3027
de543742
TT
30282020-06-16 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-data.h (STATUS_NAME): New macro.
3031 * tui/tui-layout.c (tui_remove_some_windows)
3032 (initialize_known_windows, tui_register_window)
3033 (tui_layout_split::remove_windows, initialize_layouts)
3034 (tui_new_layout_command): Don't use hard-coded window names.
3035
a350efd4
TT
30362020-06-16 Tom Tromey <tom@tromey.com>
3037
3038 PR tui/25348:
3039 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3040 tui_initialize_readline. Only run once. Call rl_initialize.
3041 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3042 tui_initialize_readline.
3043 * tui/tui-io.c (tui_setup_io): Call
3044 tui_ensure_readline_initialized.
3045 * tui/tui-interp.c (tui_interp::init): Update.
3046
39ec0490
TT
30472020-06-16 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3050 Also preserve the status window.
3051
d2d1ea20
TT
30522020-06-16 Tom Tromey <tom@tromey.com>
3053
3054 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3055 where m_window==nullptr.
3056
66920317
TT
30572020-06-15 Tom Tromey <tromey@adacore.com>
3058
3059 * windows-nat.c (windows_nat::handle_output_debug_string):
3060 Update.
3061 (windows_nat::handle_ms_vc_exception): Update.
3062 * target.h (target_read_string): Change API.
3063 * target.c (target_read_string): Change API.
3064 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3065 Update.
3066 * solib-frv.c (frv_current_sos): Update.
3067 * solib-dsbt.c (dsbt_current_sos): Update.
3068 * solib-darwin.c (darwin_current_sos): Update.
3069 * linux-thread-db.c (inferior_has_bug): Update.
3070 * expprint.c (print_subexp_standard): Update.
3071 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3072 (ada_exception_message_1): Update.
3073
a5d871dd
TT
30742020-06-15 Tom Tromey <tromey@adacore.com>
3075
3076 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3077
670e35fa
TT
30782020-06-15 Tom Tromey <tromey@adacore.com>
3079
3080 * valprint.c (read_string): Update comment.
3081 * target.c (MIN): Remove.
3082 (target_read_string): Rewrite.
3083
f5272a3b
TT
30842020-06-15 Tom Tromey <tromey@adacore.com>
3085
3086 * corefile.c (read_memory_string): Remove.
3087 * ada-valprint.c (ada_value_print_ptr): Update.
3088 * ada-lang.h (ada_tag_name): Change return type.
3089 * ada-lang.c (type_from_tag): Update.
3090 (ada_tag_name_from_tsd): Change return type. Use
3091 target_read_string.
3092 (ada_tag_name): Likewise.
3093 * gdbcore.h (read_memory_string): Don't declare.
3094
2c074f49
HD
30952020-06-14 Hannes Domani <ssbssa@yahoo.de>
3096
3097 * symtab.c (rbreak_command): Ignore Windows drive colon.
3098
6a17d503
SM
30992020-06-12 Simon Marchi <simon.marchi@efficios.com>
3100
3101 * NEWS: Mention removed GDBserver host support.
3102
453c733f
NC
31032020-06-12 Nelson Chu <nelson.chu@sifive.com>
3104
3105 * features/riscv/rebuild-csr-xml.sh: Updated.
3106
2b4e6a3f
TT
31072020-06-11 Tom Tromey <tom@tromey.com>
3108
3109 PR gdb/18318:
3110 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3111
4412332f
JG
31122020-06-09 Jonny Grant <jg@jguk.org>
31132020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * main.c (captured_main_1): Don't print new line after help.
3116 (print_gdb_help): add mailing list and IRC channel information
3117 to --help. Add new lines between items in the footer. Remove
3118 quotes around bug url.
3119
2f33032a
KS
31202020-06-11 Keith Seitz <keiths@redhat.com>
3121
3122 PR gdb/21356
3123 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3124 Resolve typedefs for type length calculations.
3125
7ab96794
TV
31262020-06-10 Tom de Vries <tdevries@suse.de>
3127
3128 PR ada/24713
3129 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3130 (write_psymbols): Enable .gdb_index for ada.
3131 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3132 ada.
3133
e5f3ece2
TV
31342020-06-10 Tom de Vries <tdevries@suse.de>
3135
3136 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3137 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3138 namei" instead of "const char *name" argument.
3139 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3140 dw2_symtab_iter_init.
3141
940da03e
SM
31422020-06-08 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3145 to use type::field and field::type instead.
3146
b6cdac4b
SM
31472020-06-08 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3150 to use field::type instead.
3151
5d14b6e5
SM
31522020-06-08 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * gdbtypes.h (struct field) <type, set_type>: New methods.
3155 Rename `type` field to...
3156 <m_type>: ... this. Change references throughout to use type or
3157 set_type methods.
3158 (FIELD_TYPE): Use field::type. Change call sites that modify
3159 the field's type to use field::set_type instead.
3160
3d967001
SM
31612020-06-08 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3164 to use type::index_type instead.
3165
262abc0d
SM
31662020-06-08 Simon Marchi <simon.marchi@efficios.com>
3167
3168 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3169 methods.
3170 (TYPE_INDEX_TYPE): Use type::index_type.
3171 * gdbtypes.c (create_array_type_with_stride): Likewise.
3172
82836c92
TT
31732020-06-07 Tom Tromey <tom@tromey.com>
3174
3175 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3176 parameter.
3177 (generic_value_print): Update.
3178
940dace9
AB
31792020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 Revert commit 982a38f60b0.
3182 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3183
982a38f6
AB
31842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3187 avoid use after free.
3188
82f06518
TV
31892020-06-05 Tom de Vries <tdevries@suse.de>
3190
3191 * NEWS: Fix typos.
3192
f8c41851
SM
31932020-06-04 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3196 the per_bfd object.
3197 (dwarf2_read_debug_names): Likewise.
3198 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3199 object when re-using a per_bfd object with an index.
3200
f9b5d5ea
TV
32012020-06-03 Tom de Vries <tdevries@suse.de>
3202
3203 PR symtab/26046
3204 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3205 children for C++.
3206 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3207 DW_TAG_subprogram.
3208
f6eee2d0
AB
32092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (ada_language_data): Delete skip_trampoline
3212 initializer.
3213 * c-lang.c (c_language_data): Likewise.
3214 (cplus_language_data): Likewise.
3215 (cplus_language::skip_trampoline): New member function.
3216 (asm_language_data): Delete skip_trampoline initializer.
3217 (minimal_language_data): Likewise.
3218 * d-lang.c (d_language_data): Likewise.
3219 * f-lang.c (f_language_data): Likewise.
3220 * go-lang.c (go_language_data): Likewise.
3221 * language.c (unk_lang_trampoline): Delete function.
3222 (skip_language_trampoline): Update.
3223 (unknown_language_data): Delete skip_trampoline initializer.
3224 (auto_language_data): Likewise.
3225 * language.h (language_data): Delete skip_trampoline field.
3226 (language_defn::skip_trampoline): New function.
3227 * m2-lang.c (m2_language_data): Delete skip_trampoline
3228 initializer.
3229 * objc-lang.c (objc_skip_trampoline): Delete function, move
3230 implementation to objc_language::skip_trampoline.
3231 (objc_language_data): Delete skip_trampoline initializer.
3232 (objc_language::skip_trampoline): New member function with
3233 implementation from objc_skip_trampoline.
3234 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3235 initializer.
3236 * p-lang.c (pascal_language_data): Likewise.
3237 * rust-lang.c (rust_language_data): Likewise.
3238
0a50df5d
AB
32392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3242 (ada_language::demangle): New member function.
3243 * c-lang.c (c_language_data): Delete la_demangle initializer.
3244 (cplus_language_data): Delete la_demangle initializer.
3245 (cplus_language::demangle): New member function.
3246 (asm_language_data): Delete la_demangle initializer.
3247 (minimal_language_data): Delete la_demangle initializer.
3248 * d-lang.c (d_language_data): Delete la_demangle initializer.
3249 (d_language::demangle): New member function.
3250 * f-lang.c (f_language_data): Delete la_demangle initializer.
3251 (f_language::demangle): New member function.
3252 * go-lang.c (go_language_data): Delete la_demangle initializer.
3253 (go_language::demangle): New member function.
3254 * language.c (language_demangle): Update.
3255 (unk_lang_demangle): Delete.
3256 (unknown_language_data): Delete la_demangle initializer.
3257 (unknown_language::demangle): New member function.
3258 (auto_language_data): Delete la_demangle initializer.
3259 (auto_language::demangle): New member function.
3260 * language.h (language_data): Delete la_demangle field.
3261 (language_defn::demangle): New function.
3262 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3263 * objc-lang.c (objc_language_data): Delete la_demangle
3264 initializer.
3265 (objc_language::demangle): New member function.
3266 * opencl-lang.c (opencl_language_data): Delete la_demangle
3267 initializer.
3268 * p-lang.c (pascal_language_data): Likewise.
3269 * rust-lang.c (rust_language_data): Likewise.
3270 (rust_language::demangle): New member function.
3271
fbfb0a46
AB
32722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * ada-lang.c (ada_language_data): Delete la_print_type
3275 initializer.
3276 (ada_language::print_type): New member function.
3277 * c-lang.c (c_language_data): Delete la_print_type initializer.
3278 (c_language::print_type): New member function.
3279 (cplus_language_data): Delete la_print_type initializer.
3280 (cplus_language::print_type): New member function.
3281 (asm_language_data): Delete la_print_type initializer.
3282 (asm_language::print_type): New member function.
3283 (minimal_language_data): Delete la_print_type initializer.
3284 (minimal_language::print_type): New member function.
3285 * d-lang.c (d_language_data): Delete la_print_type initializer.
3286 (d_language::print_type): New member function.
3287 * f-lang.c (f_language_data): Delete la_print_type initializer.
3288 (f_language::print_type): New member function.
3289 * go-lang.c (go_language_data): Delete la_print_type initializer.
3290 (go_language::print_type): New member function.
3291 * language.c (unk_lang_print_type): Delete.
3292 (unknown_language_data): Delete la_print_type initializer.
3293 (unknown_language::print_type): New member function.
3294 (auto_language_data): Delete la_print_type initializer.
3295 (auto_language::print_type): New member function.
3296 * language.h (language_data): Delete la_print_type field.
3297 (language_defn::print_type): New function.
3298 (LA_PRINT_TYPE): Update.
3299 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3300 (m2_language::print_type): New member function.
3301 * objc-lang.c (objc_language_data): Delete la_print_type
3302 initializer.
3303 (objc_language::print_type): New member function.
3304 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3305 to opencl_language::print_type.
3306 (opencl_language_data): Delete la_print_type initializer.
3307 (opencl_language::print_type): New member function, implementation
3308 from opencl_print_type.
3309 * p-lang.c (pascal_language_data): Delete la_print_type
3310 initializer.
3311 (pascal_language::print_type): New member function.
3312 * rust-lang.c (rust_print_type): Delete, implementation moved to
3313 rust_language::print_type.
3314 (rust_language_data): Delete la_print_type initializer.
3315 (rust_language::print_type): New member function, implementation
3316 from rust_print_type.
3317
6f827019
AB
33182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3321 implementation moves to...
3322 (ada_language::sniff_from_mangled_name): ...here. Update return
3323 type.
3324 (ada_language_data): Delete la_sniff_from_mangled_name
3325 initializer.
3326 * c-lang.c (c_language_data): Likewise.
3327 (cplus_language_data): Likewise.
3328 (cplus_language::sniff_from_mangled_name): New member function,
3329 implementation taken from gdb_sniff_from_mangled_name.
3330 (asm_language_data): Delete la_sniff_from_mangled_name
3331 initializer.
3332 (minimal_language_data): Likewise.
3333 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3334 implementation moves to cplus_language::sniff_from_mangled_name.
3335 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3336 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3337 moves to...
3338 (d_language::sniff_from_mangled_name): ...here.
3339 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3340 * f-lang.c (f_language_data): Likewise.
3341 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3342 moves to...
3343 (go_language::sniff_from_mangled_name): ...here.
3344 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3345 * language.c (language_sniff_from_mangled_name): Delete.
3346 (unknown_language_data): Delete la_sniff_from_mangled_name
3347 initializer.
3348 (auto_language_data): Likewise.
3349 * language.h (language_data): Delete la_sniff_from_mangled_name
3350 field.
3351 (language_defn::sniff_from_mangled_name): New function.
3352 (language_sniff_from_mangled_name): Delete declaration.
3353 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3354 field.
3355 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3356 implementation moves to...
3357 (objc_language::sniff_from_mangled_name): ...here.
3358 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3359 * opencl-lang.c (opencl_language_data): Likewise.
3360 * p-lang.c (pascal_language_data): Likewise.
3361 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3362 implementation moves to...
3363 (rust_language::sniff_from_mangled_name): ...here.
3364 (rust_language_data): Delete la_sniff_from_mangled_name
3365 initializer.
3366 * symtab.c (symbol_find_demangled_name): Call
3367 sniff_from_mangled_name member function.
3368
fb8006fd
AB
33692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3370
3371 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3372 initializer.
3373 * c-lang.c (c_language_data): Likewise.
3374 (cplus_language_data): Likewise.
3375 (cplus_language::search_name_hash): New member function.
3376 (asm_language_data): Delete la_search_name_hash initializer.
3377 (minimal_language_data): Likewise.
3378 * d-lang.c (d_language_data): Likewise.
3379 * dictionary.c (default_search_name_hash): Rename to...
3380 (language_defn::search_name_hash): ...this.
3381 * f-lang.c (f_language_data): Likewise.
3382 (f_language::search_name_hash): New member function.
3383 * go-lang.c (go_language_data): Delete la_search_name_hash
3384 initializer.
3385 * language.c (unknown_language_data): Likewise.
3386 (auto_language_data): Likewise.
3387 * language.h (struct language_data): Delete la_search_name_hash
3388 field.
3389 (language_defn::search_name_hash): Declare new member function.
3390 (default_search_name_hash): Delete declaration.
3391 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3392 initializer.
3393 * objc-lang.c (objc_language_data): Likewise.
3394 * opencl-lang.c (opencl_language_data): Likewise.
3395 * p-lang.c (pascal_language_data): Likewise.
3396 * rust-lang.c (rust_language_data): Likewise.
3397 * symtab.c (search_name_hash): Update call.
3398
8e25bafe
AB
33992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3402 initializer.
3403 * c-lang.c (class compile_instance): Declare.
3404 (c_language_data): Delete la_get_compile_instance initializer.
3405 (c_language::get_compile_instance): New member function.
3406 (cplus_language_data): Delete la_get_compile_instance initializer.
3407 (cplus_language::get_compile_instance): New member function.
3408 (asm_language_data): Delete la_get_compile_instance initializer.
3409 (minimal_language_data): Likewise.
3410 * c-lang.h (c_get_compile_context): Update comment.
3411 (cplus_get_compile_context): Update comment.
3412 * compile/compile.c (compile_to_object): Update calls, don't rely
3413 on function pointer being NULL.
3414 * d-lang.c (d_language_data): Delete la_get_compile_instance
3415 initializer.
3416 * f-lang.c (f_language_data): Likewise.
3417 * go-lang.c (go_language_data): Likewise.
3418 * language.c (unknown_language_data): Likewise.
3419 (auto_language_data): Likewise.
3420 * language.h (language_data): Delete la_get_compile_instance field.
3421 (language_defn::get_compile_instance): New member function.
3422 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3423 initializer.
3424 * objc-lang.c (objc_language_data): Likewise.
3425 * opencl-lang.c (opencl_language_data): Likewise.
3426 * p-lang.c (pascal_language_data): Likewise.
3427 * rust-lang.c (rust_language_data): Likewise.
3428
4009ee92
AB
34292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_add_all_symbols): Update comment.
3432 (ada_iterate_over_symbols): Delete, move implementation to...
3433 (ada_language::iterate_over_symbols): ...here, a new member
3434 function, rewrite to use range based for loop.
3435 (ada_language_data): Delete la_iterate_over_symbols initializer.
3436 * c-lang.c (c_language_data): Likewise.
3437 (cplus_language_data): Likewise.
3438 (asm_language_data): Likewise.
3439 (minimal_language_data): Likewise.
3440 * d-lang.c (d_language_data): Likewise.
3441 * f-lang.c (f_language_data): Likewise.
3442 * go-lang.c (go_language_data): Likewise.
3443 * language.c (unknown_language_data): Likewise.
3444 (auto_language_data): Likewise.
3445 * language.h (language_data): Delete la_iterate_over_symbols field.
3446 (language_defn::iterate_over_symbols): New member function.
3447 (LA_ITERATE_OVER_SYMBOLS): Update.
3448 * linespec.c (iterate_over_all_matching_symtabs): Update.
3449 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3450 initializer.
3451 * objc-lang.c (objc_language_data): Likewise.
3452 * opencl-lang.c (opencl_language_data): Likewise.
3453 * p-lang.c (pascal_language_data): Likewise.
3454 * rust-lang.c (rust_language_data): Likewise.
3455
54f4ca46
AB
34562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * ada-lang.c (ada_language_data): Delete
3459 la_lookup_transparent_type initializer.
3460 * c-lang.c (c_language_data): Likewise.
3461 (cplus_language_data): Likewise.
3462 (cplus_language::lookup_transparent_type): New member function.
3463 (asm_language_data): Delete la_lookup_transparent_type
3464 initializer.
3465 (minimal_language_data): Likewise.
3466 * d-lang.c (d_language_data): Likewise.
3467 * f-lang.c (f_language_data): Likewise.
3468 * go-lang.c (go_language_data): Likewise.
3469 * language.c (unknown_language_data): Likewise.
3470 (auto_language_data): Likewise.
3471 * language.h (struct language_data): Delete
3472 la_lookup_transparent_type field.
3473 (language_defn::lookup_transparent_type): New member function.
3474 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3475 initializer.
3476 * objc-lang.c (objc_language_data): Likewise.
3477 * opencl-lang.c (opencl_language_data): Likewise.
3478 * p-lang.c (pascal_language_data): Likewise.
3479 * rust-lang.c (rust_language_data): Likewise.
3480 * symtab.c (symbol_matches_domain): Update call.
3481
1fb314aa
AB
34822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * ada-lang.c (ada_language_arch_info): Delete function, move
3485 implementation to...
3486 (ada_language::language_arch_info): ...here, a new member
3487 function.
3488 (ada_language_data): Delete la_language_arch_info.
3489 * c-lang.c (c_language_data): Likewise.
3490 (c_language::language_arch_info): New member function.
3491 (cplus_language_arch_info): Delete function, move
3492 implementation to...
3493 (cplus_language::language_arch_info): ...here, a new member
3494 function.
3495 (cplus_language_data): Delete la_language_arch_info.
3496 (asm_language_data): Likewise.
3497 (asm_language::language_arch_info): New member function.
3498 (minimal_language_data): Delete la_language_arch_info.
3499 (minimal_language::language_arch_info): New member function.
3500 * d-lang.c (d_language_arch_info): Delete function, move
3501 implementation to...
3502 (d_language::language_arch_info): ...here, a new member
3503 function.
3504 (d_language_data): Delete la_language_arch_info.
3505 * f-lang.c (f_language_arch_info): Delete function, move
3506 implementation to...
3507 (f_language::language_arch_info): ...here, a new member
3508 function.
3509 (f_language_data): Delete la_language_arch_info.
3510 * go-lang.c (go_language_arch_info): Delete function, move
3511 implementation to...
3512 (go_language::language_arch_info): ...here, a new member
3513 function.
3514 (go_language_data): Delete la_language_arch_info.
3515 * language.c (unknown_language_data): Likewise.
3516 (unknown_language::language_arch_info): New member function.
3517 (auto_language_data): Delete la_language_arch_info.
3518 (auto_language::language_arch_info): New member function.
3519 (language_gdbarch_post_init): Update call to
3520 la_language_arch_info.
3521 * language.h (language_data): Delete la_language_arch_info
3522 function pointer.
3523 (language_defn::language_arch_info): New function.
3524 * m2-lang.c (m2_language_arch_info): Delete function, move
3525 implementation to...
3526 (m2_language::language_arch_info): ...here, a new member
3527 function.
3528 (m2_language_data): Delete la_language_arch_info.
3529 * objc-lang.c (objc_language_arch_info): Delete function, move
3530 implementation to...
3531 (objc_language::language_arch_info): ...here, a new member
3532 function.
3533 (objc_language_data): Delete la_language_arch_info.
3534 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3535 implementation to...
3536 (opencl_language::language_arch_info): ...here, a new member
3537 function.
3538 (opencl_language_data): Delete la_language_arch_info.
3539 * p-lang.c (pascal_language_arch_info): Delete function, move
3540 implementation to...
3541 (pascal_language::language_arch_info): ...here, a new member
3542 function.
3543 (pascal_language_data): Delete la_language_arch_info.
3544 * rust-lang.c (rust_language_arch_info): Delete function, move
3545 implementation to...
3546 (rust_language::language_arch_info): ...here, a new member
3547 function.
3548 (rust_language_data): Delete la_language_arch_info.
3549
48448202
AB
35502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3553 initializer.
3554 * c-lang.c (c_language_data): Likewise.
3555 (cplus_language_data): Likewise.
3556 (cplus_language::pass_by_reference_info): New method.
3557 (asm_language_data): Delete la_pass_by_reference initializer.
3558 (minimal_language_data): Likewise.
3559 * cp-abi.c (cp_pass_by_reference): Remove use of
3560 default_pass_by_reference.
3561 * d-lang.c (d_language_data): Likewise.
3562 * f-lang.c (f_language_data): Likewise.
3563 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3564 default_pass_by_reference.
3565 * go-lang.c (go_language_data): Likewise.
3566 * language.c (language_pass_by_reference): Update.
3567 (default_pass_by_reference): Delete.
3568 (unknown_language_data): Delete la_pass_by_reference
3569 initializer.
3570 (auto_language_data): Likewise.
3571 * language.h (struct language_data): Delete la_pass_by_reference
3572 field.
3573 (language_defn::pass_by_reference_info): New member function.
3574 (default_pass_by_reference): Delete declaration.
3575 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3576 initializer.
3577 * objc-lang.c (objc_language_data): Likewise.
3578 * opencl-lang.c (opencl_language_data): Likewise.
3579 * p-lang.c (pascal_language_data): Likewise.
3580 * rust-lang.c (rust_language_data): Likewise.
3581
15e5fd35
AB
35822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_read_var_value): Delete function, move
3585 implementation to...
3586 (ada_language::read_var_value): ...here.
3587 (ada_language_data): Delete la_read_var_value initializer.
3588 * c-lang.c (c_language_data): Likewise.
3589 (cplus_language_data): Likewise.
3590 (minimal_language_data): Likewise.
3591 * d-lang.c (d_language_data): Likewise.
3592 * f-lang.c (f_language_data): Likewise.
3593 * findvar.c (default_read_var_value): Rename to...
3594 (language_defn::read_var_value): ...this.
3595 * findvar.c (read_var_value): Update header comment, and change to
3596 call member function instead of function pointer.
3597 * go-lang.c (go_language_data): Likewise.
3598 * language.c (unknown_language_data): Delete la_read_var_value
3599 initializer.
3600 (auto_language_data): Likewise.
3601 * language.h (struct language_data): Delete la_read_var_value
3602 field.
3603 (language_defn::read_var_value): New member function.
3604 (default_read_var_value): Delete declaration.
3605 * m2-lang.c (m2_language_data): Delete la_read_var_value
3606 initializer.
3607 * objc-lang.c (objc_language_data): Likewise.
3608 * opencl-lang.c (opencl_language_data): Likewise.
3609 * p-lang.c (pascal_language_data): Likewise.
3610 * rust-lang.c (rust_language_data): Likewise.
3611 * value.h (default_read_var_value): Delete declaration.
3612
5bd40f2a
AB
36132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * ada-lang.c (ada_print_array_index): Delete function, move
3616 implementation to...
3617 (ada_language::print_array_index): ...here.
3618 (ada_language_data): Delete la_print_array_index initializer.
3619 * c-lang.c (c_language_data): Likewise.
3620 (cplus_language_data): Likewise.
3621 (minimal_language_data): Likewise.
3622 * d-lang.c (d_language_data): Likewise.
3623 * f-lang.c (f_language_data): Likewise.
3624 * go-lang.c (go_language_data): Likewise.
3625 * language.c (default_print_array_index): Delete function, move
3626 implementation to...
3627 (language_defn::print_array_index): ...here.
3628 (unknown_language_data): Delete la_print_array_index initializer.
3629 (auto_language_data): Likewise.
3630 * language.h (struct language_data): Delete la_print_array_index
3631 field.
3632 (language_defn::print_array_index): New member function.
3633 (LA_PRINT_ARRAY_INDEX): Update.
3634 (default_print_array_index): Delete declaration.
3635 * m2-lang.c (m2_language_data): Delete la_print_array_index
3636 initializer.
3637 * objc-lang.c (objc_language_data): Likewise.
3638 * opencl-lang.c (opencl_language_data): Likewise.
3639 * p-lang.c (pascal_language_data): Likewise.
3640 * rust-lang.c (rust_language_data): Likewise.
3641
0874fd07
AB
36422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3643
3644 * gdb/ada-lang.c (ada_language_defn): Convert to...
3645 (ada_language_data): ...this.
3646 (class ada_language): New class.
3647 (ada_language_defn): New static global.
3648 * gdb/c-lang.c (c_language_defn): Convert to...
3649 (c_language_data): ...this.
3650 (class c_language): New class.
3651 (c_language_defn): New static global.
3652 (cplus_language_defn): Convert to...
3653 (cplus_language_data): ...this.
3654 (class cplus_language): New class.
3655 (cplus_language_defn): New static global.
3656 (asm_language_defn): Convert to...
3657 (asm_language_data): ...this.
3658 (class asm_language): New class.
3659 (asm_language_defn): New static global.
3660 (minimal_language_defn): Convert to...
3661 (minimal_language_data): ...this.
3662 (class minimal_language): New class.
3663 (minimal_language_defn): New static global.
3664 * gdb/d-lang.c (d_language_defn): Convert to...
3665 (d_language_data): ...this.
3666 (class d_language): New class.
3667 (d_language_defn): New static global.
3668 * gdb/f-lang.c (f_language_defn): Convert to...
3669 (f_language_data): ...this.
3670 (class f_language): New class.
3671 (f_language_defn): New static global.
3672 * gdb/go-lang.c (go_language_defn): Convert to...
3673 (go_language_data): ...this.
3674 (class go_language): New class.
3675 (go_language_defn): New static global.
3676 * gdb/language.c (unknown_language_defn): Remove declaration.
3677 (current_language): Initialize to nullptr, real initialization is
3678 moved to _initialize_language.
3679 (languages): Delete global.
3680 (language_defn::languages): Define.
3681 (set_language_command): Use language_defn::languages.
3682 (set_language): Likewise.
3683 (range_error): Likewise.
3684 (language_enum): Likewise.
3685 (language_def): Likewise.
3686 (add_set_language_command): Use language_def::languages for the
3687 language list, and language_def to lookup language pointers.
3688 (skip_language_trampoline): Use language_defn::languages.
3689 (unknown_language_defn): Convert to...
3690 (unknown_language_data): ...this.
3691 (class unknown_language): New class.
3692 (unknown_language_defn): New static global.
3693 (auto_language_defn): Convert to...
3694 (auto_language_data): ...this.
3695 (class auto_language): New class.
3696 (auto_language_defn): New static global.
3697 (language_gdbarch_post_init): Use language_defn::languages.
3698 (_initialize_language): Initialize current_language.
3699 * gdb/language.h (struct language_defn): Rename to...
3700 (struct language_data): ...this.
3701 (struct language_defn): New.
3702 (auto_language_defn): Delete.
3703 (unknown_language_defn): Delete.
3704 (minimal_language_defn): Delete.
3705 (ada_language_defn): Delete.
3706 (asm_language_defn): Delete.
3707 (c_language_defn): Delete.
3708 (cplus_language_defn): Delete.
3709 (d_language_defn): Delete.
3710 (f_language_defn): Delete.
3711 (go_language_defn): Delete.
3712 (m2_language_defn): Delete.
3713 (objc_language_defn): Delete.
3714 (opencl_language_defn): Delete.
3715 (pascal_language_defn): Delete.
3716 (rust_language_defn): Delete.
3717 * gdb/m2-lang.c (m2_language_defn): Convert to...
3718 (m2_language_data): ...this.
3719 (class m2_language): New class.
3720 (m2_language_defn): New static global.
3721 * gdb/objc-lang.c (objc_language_defn): Convert to...
3722 (objc_language_data): ...this.
3723 (class objc_language): New class.
3724 (objc_language_defn): New static global.
3725 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3726 (opencl_language_data): ...this.
3727 (class opencl_language): New class.
3728 (opencl_language_defn): New static global.
3729 * gdb/p-lang.c (pascal_language_defn): Convert to...
3730 (pascal_language_data): ...this.
3731 (class pascal_language): New class.
3732 (pascal_language_defn): New static global.
3733 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3734 language pointer, update comment format.
3735 * gdb/rust-lang.c (rust_language_defn): Convert to...
3736 (rust_language_data): ...this.
3737 (class rust_language): New class.
3738 (rust_language_defn): New static global.
3739
1313c56e
AB
37402020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3743 member variable.
3744 <m_stmt_at_address>: New member variable.
3745 (lnp_state_machine::record_line): Don't record some lines, update
3746 tracking of is_stmt at the same address.
3747 (lnp_state_machine::lnp_state_machine): Initialise new member
3748 variables.
3749
b7ed9f3d
ST
37502020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3751
3752 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3753 "-include gnu-nat-mig.h".
3754 * gnu-nat-mig.h: New file.
3755 * gnu-nat.c: Include "gnu-nat-mig.h".
3756 (exc_server, msg_reply_server, notify_server,
3757 process_reply_server): Remove declarations.
3758
14a8ad62
ST
37592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3760
3761 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3762 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3763 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3764 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3765 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3766 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3767 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3768 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3769 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3770 to gnu_nat_target class.
3771 * gnu-nat.c: Likewise.
3772 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3773 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3774 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3775 object.
3776 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3777 instead of `gnu_target'.
3778
0af5e106
ST
37792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3780
3781 * i386-gnu-tdep.c: Include "gdbcore.h"
3782 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3783 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3784 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3785 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3786 i386_gnu_sigcontext_addr): New functions
3787 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3788 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3789 tdep.
3790
078f2fc9
ST
37912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3792
3793 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3794 before fork_inferior call. Avoid calling it if target_is_pushed returns
3795 true.
3796
53dff92c
ST
37972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3798
3799 * gnu-nat.h (gnu_target): New variable declaration.
3800 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3801 gnu_target.
3802 * gnu-nat.c (gnu_target): New variable.
3803 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3804 add_thread_silent, and add_thread calls.
3805 (gnu_nat_target::create_inferior): Pass gnu_target to
3806 add_thread_silent, thread_change_ptid call.
3807 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3808 call.
3809
5a8b8627
ST
38102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3811
3812 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3813 (gnu_nat_target::find_memory_regions): Remove unused
3814 `old_address' variable.
3815
366f550a
ST
38162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3817
3818 * gnu-nat.c: Include "gdbarch.h".
3819
f14871bf
ST
38202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3821
3822 * reply_mig_hack.awk (Error return): Cast function through
3823 void *, to bypass compiler function call check.
3824
c6887cfb
ST
38252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3826
3827 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3828 $(srcdir)/reply_mig_hack.awk.
3829
6930bffe
ST
38302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3831
3832 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3833
112c22ed
JG
38342020-05-30 Jonny Grant <jg@jguk.org>
3835
3836 * configure.ac (ACX_BUGURL): change bug URL to https.
3837
f68f85b5
PA
38382020-05-30 Pedro Alves <palves@redhat.com>
3839
3840 * cp-support.c (replace_typedefs_template): New.
3841 (replace_typedefs_qualified_name): Handle
3842 DEMANGLE_COMPONENT_TEMPLATE.
3843
976ca316
SM
38442020-05-29 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3847 dwarf2/index-cache.h, dwarf2/index-write.c,
3848 dwarf2/index-write.h, dwarf2/line-header.c,
3849 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3850 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3851 variables and fields from `dwarf2_per_objfile` to just
3852 `per_objfile` throughout.
3853
989ade05
SM
38542020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3857 <push_dwarf_reg_entry_value>: Add comment.
3858
c47bae85
KB
38592020-05-28 Kevin Buettner <kevinb@redhat.com>
3860 Keith Seitz <keiths@redhat.com>
3861
3862 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3863 instead of PyEval_ReleaseLock.
3864 (class gdbpy_gil): Move to earlier in file.
3865 (finalize_python): Set gdb_python_initialized.
3866 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3867 when not initialized.
3868
44486dcf
SM
38692020-05-28 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3872 <push_dwarf_reg_entry_value>: Remove assert. Override
3873 per_objfile with caller_per_objfile.
3874
f030440d
TV
38752020-05-28 Tom de Vries <tdevries@suse.de>
3876
3877 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3878 PR gold/15646 workaround to symbol kind "type".
3879
f0fbb768
TT
38802020-05-27 Tom Tromey <tromey@adacore.com>
3881
3882 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3883
af0b2a3e
TT
38842020-05-27 Tom Tromey <tromey@adacore.com>
3885
3886 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3887 Use htab_find_with_hash.
3888 <add_abbrev>: Remove "abbrev_number" parameter.
3889 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3890 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3891 (hash_abbrev): Add comment.
3892 (abbrev_table::lookup_abbrev): Move to header file.
3893 (abbrev_table::read): Update.
3894
7d00ffec
TT
38952020-05-27 Tom Tromey <tromey@adacore.com>
3896
3897 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3898 method.
3899 <canonical_name>: New member.
3900 <raw_name>: Rename from "name".
3901 (partial_die_info): Initialize canonical_name.
3902 (scan_partial_symbols): Check raw_name.
3903 (partial_die_parent_scope, partial_die_full_name)
3904 (add_partial_symbol, add_partial_subprogram)
3905 (add_partial_enumeration, load_partial_dies): Use "name" method.
3906 (partial_die_info::name): New method.
3907 (partial_die_info::read, guess_partial_die_structure_name)
3908 (partial_die_info::fixup): Update.
3909
697bba18
TT
39102020-05-27 Tom Tromey <tromey@adacore.com>
3911
3912 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3913 <get_ref_die_offset>: Inline.
3914 <get_ref_die_offset_complaint>: New method.
3915 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3916 (attribute::get_ref_die_offset_complaint): Rename from
3917 get_ref_die_offset. Just issue complaint.
3918
c17ace43
HD
39192020-05-27 Hannes Domani <ssbssa@yahoo.de>
3920
3921 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3922
96445f0b
HD
39232020-05-27 Hannes Domani <ssbssa@yahoo.de>
3924
3925 * exec.c (exec_file_attach): Use errno value of first openp failure.
3926
ac637ec3
HD
39272020-05-27 Hannes Domani <ssbssa@yahoo.de>
3928
3929 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3930 Don't close thread handle.
3931
17ee85fc
TT
39322020-05-27 Tom Tromey <tom@tromey.com>
3933 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3936 shared_ptr.
3937 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3938 member.
3939 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3940 dwarf2_per_bfd_objfile_data_key>: New globals.
3941 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3942 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3943 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3944 shared.
3945 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3946 short-circuit when sharing.
3947 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3948 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3949
39b16f87
SM
39502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3953 to...
3954 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3955 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3956
fcf23d5b
SM
39572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3960 build_name_components, find_name_components_bounds>:
3961 Add per_objfile parameter.
3962 (struct mapped_index) <symbol_name_at>: Likewise.
3963 (struct mapped_debug_names): Remove constructor.
3964 <dwarf2_per_objfile>: Remove field.
3965 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3966 (mapped_index_base::find_name_components_bounds,
3967 mapped_index_base::build_name_components,
3968 dw2_expand_symtabs_matching_symbol): Likewise.
3969 (class mock_mapped_index) <symbol_name_at>: Likewise.
3970 (check_match): Likewise.
3971 (check_find_bounds_finds): Likewise.
3972 (test_mapped_index_find_name_component_bounds): Update.
3973 (CHECK_MATCH): Update.
3974 (dw2_expand_symtabs_matching): Update.
3975 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3976 per_objfile parameter.
3977 <find_vec_in_debug_names>: Likewise.
3978 <m_per_objfile>: New field.
3979 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3980 parameter.
3981 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3982 (dw2_debug_names_iterator::next): Update.
3983 (dw2_debug_names_lookup_symbol): Update.
3984 (dw2_debug_names_expand_symtabs_for_function): Update.
3985 (dw2_debug_names_map_matching_symbols): Update.
3986 (dw2_debug_names_expand_symtabs_matching): Update.
3987 (dwarf2_read_debug_names): Update.
3988
7188ed02
SM
39892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3992 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3993 move to dwarf2_per_objfile.
3994 <read_in_chain>: Remove.
3995 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3996 remove_all_cus, age_comp_units>: New methods.
3997 <m_dwarf2_cus>: New member.
3998 (struct dwarf2_per_cu_data) <cu>: Remove.
3999 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4000 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4001 moved to methods of dwarf2_per_objfile.
4002 (dwarf2_clear_marks): Remove.
4003 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4004 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4005 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4006 (dwarf2_per_objfile::remove_all_cus): New.
4007 (class free_cached_comp_units) <~free_cached_comp_units>:
4008 Update.
4009 (load_cu): Update.
4010 (dw2_do_instantiate_symtab): Adjust.
4011 (fill_in_sig_entry_from_dwo_entry): Adjust.
4012 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4013 (cutu_reader::cutu_reader): Likewise.
4014 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4015 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4016 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4017 and dwarf2_per_objfile::age_comp_units.
4018 (load_partial_comp_unit): Update.
4019 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4020 (process_queue): Likewise.
4021 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4022 backlink.
4023 (dwarf2_read_addr_index): Likewise.
4024 (follow_die_offset): Likewise.
4025 (dwarf2_fetch_die_loc_sect_off): Likewise.
4026 (dwarf2_fetch_constant_bytes): Likewise.
4027 (dwarf2_fetch_die_type_sect_off): Likewise.
4028 (follow_die_sig_1): Likewise.
4029 (load_full_type_unit): Likewise.
4030 (read_signatured_type): Likewise.
4031 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4032 (dwarf2_cu::~dwarf2_cu): Remove.
4033 (dwarf2_per_objfile::get_cu): New.
4034 (dwarf2_per_objfile::set_cu): New.
4035 (age_cached_comp_units): Rename to...
4036 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4037 to std::unordered_map.
4038 (free_one_cached_comp_unit): Rename to...
4039 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4040 to std::unordered_map.
4041 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4042 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4043 a dwarf2_per_objfile in data.
4044 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4045 (dwarf2_clear_marks): Remove.
4046
2e671100
SM
40472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4050 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4051 (init_tu_and_read_dwo_dies): Likewise.
4052 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4053 (cutu_reader::cutu_reader): Likewise.
4054 (load_partial_comp_unit): Likewise.
4055 (process_psymtab_comp_unit): Update.
4056 (build_type_psymtabs_1): Update.
4057 (process_skeletonless_type_unit): Update.
4058 (load_full_comp_unit): Update.
4059 (find_partial_die): Update.
4060 (dwarf2_read_addr_index): Update.
4061 (read_signatured_type): Update.
4062
2e6a9f79
SM
40632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4066 m_header_read_in>: New fields.
4067 <get_header>: New method.
4068 * dwarf2/read.c (per_cu_header_read_in): Remove.
4069 (dwarf2_per_cu_data::get_header): New.
4070 (dwarf2_per_cu_data::addr_size): Update.
4071 (dwarf2_per_cu_data::offset_size): Update.
4072 (dwarf2_per_cu_data::ref_addr_size): Update.
4073
1b555f17
SM
40742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4077 (dw2_do_instantiate_symtab): Update.
4078 (queue_and_load_all_dwo_tus): Change parameter from
4079 dwarf2_per_cu_data to dwarf2_cu.
4080 (dwarf2_fetch_die_loc_sect_off): Update.
4081 (dwarf2_fetch_constant_bytes): Update.
4082 (dwarf2_fetch_die_type_sect_off): Update.
4083
8fc0b21d
SM
40842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4085
4086 * dwarf2/read.c (process_full_comp_unit,
4087 process_full_type_unit): Remove per_cu, per_objfile paramters.
4088 Add dwarf2_cu parameter.
4089 (process_queue): Update.
4090
168c9250
SM
40912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * dwarf2/read.c (create_cu_from_index_list): Replace
4094 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4095 (create_cus_from_index_list): Likewise.
4096 (create_cus_from_index): Likewise.
4097 (create_signatured_type_table_from_index): Likewise.
4098 (create_cus_from_debug_names_list): Likewise.
4099 (create_cus_from_debug_names): Likewise.
4100 (dwarf2_read_gdb_index): Update.
4101 (dwarf2_read_debug_names): Update.
4102
e286671b
TT
41032020-05-27 Tom Tromey <tom@tromey.com>
4104 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * dwarf2/read.h (struct dwarf2_per_objfile)
4107 <get_type_for_signatured_type, set_type_for_signatured_type>:
4108 New methods.
4109 <m_type_map>: New member.
4110 (struct signatured_type) <type>: Remove.
4111 * dwarf2/read.c
4112 (dwarf2_per_objfile::get_type_for_signatured_type,
4113 dwarf2_per_objfile::set_type_for_signatured_type): New.
4114 (get_signatured_type): Use new methods.
4115
8adb8487
TT
41162020-05-27 Tom Tromey <tom@tromey.com>
4117 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4120 (struct dwarf2_per_objfile) <type_units>: New member.
4121 <get_type_unit_group_unshareable>: New method.
4122 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4123 num_symtabs, symtabs>: Remove; move to
4124 type_unit_group_unshareable.
4125 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4126 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4127 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4128
127bbf4b
SM
41292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * dwarf2/read.h (struct dwarf2_per_cu_data):
4132 <dwarf2_per_objfile>: Remove.
4133 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4134 dwarf2_per_objfile.
4135 (create_signatured_type_table_from_index): Likewise.
4136 (create_signatured_type_table_from_debug_names): Likewise.
4137 (create_debug_type_hash_table): Likewise.
4138 (fill_in_sig_entry_from_dwo_entry): Likewise.
4139 (create_type_unit_group): Likewise.
4140 (read_comp_units_from_section): Likewise.
4141 (create_cus_hash_table): Likewise.
4142
f6e649dd
SM
41432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4146 dwarf2_per_cu_data::dwarf2_per_objfile.
4147 (compute_compunit_symtab_includes): Likewise.
4148 (dwarf2_cu::start_symtab): Likewise.
4149
aa66c379
SM
41502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4153 parameter.
4154 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4155 (read_namespace_alias): Update.
4156 (lookup_die_type): Update.
4157 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4158 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4159 Update.
4160 (disassemble_dwarf_expression): Update.
4161
120ce1b5
SM
41622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2/read.h (struct dwarf2_queue_item): Add
4165 dwarf2_per_objfile parameter, assign new parameter.
4166 <per_objfile>: New field.
4167 * dwarf2/read.c (free_one_cached_comp_unit): Add
4168 dwarf2_per_objfile parameter.
4169 (queue_comp_unit): Likewise.
4170 (dw2_do_instantiate_symtab): Update.
4171 (process_psymtab_comp_unit): Update.
4172 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4173 (process_imported_unit_die): Update.
4174 (queue_and_load_dwo_tu): Update.
4175 (follow_die_offset): Update.
4176 (follow_die_sig_1): Update.
4177
9f47c707
SM
41782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4181 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4182 (read_call_site_scope): Assign per_objfile.
4183 (dwarf2_per_cu_data::objfile): Remove.
4184 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4185 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4186 dwarf2_per_objfile parameter.
4187 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4188 dwarf2_per_objfile parameter.
4189 (dwarf_expr_reg_to_entry_parameter): Add output
4190 dwarf2_per_objfile parameter.
4191 (locexpr_get_frame_base): Update.
4192 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4193 <push_dwarf_reg_entry_value>: Update.
4194 <call_site_to_target_addr>: Update.
4195 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4196 parameter.
4197 (value_of_dwarf_reg_entry): Update.
4198 (rw_pieced_value): Update.
4199 (indirect_synthetic_pointer): Update.
4200 (dwarf2_evaluate_property): Update.
4201 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4202 parameter.
4203 (locexpr_read_variable): Update.
4204 (locexpr_get_symbol_read_needs): Update.
4205 (loclist_read_variable): Update.
4206
14095eb3
SM
42072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4210 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4211 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4212 parameter.
4213 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4214 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4215 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4216 parameter.
4217 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4218 sect_variable_value): Add dwarf2_per_objfile parameter.
4219 (class dwarf_evaluate_loc_desc) <dwarf_call,
4220 dwarf_variable_value>: Update.
4221 (fetch_const_value_from_synthetic_pointer): Add
4222 dwarf2_per_objfile parameter.
4223 (fetch_const_value_from_synthetic_pointer): Update.
4224 (coerced_pieced_ref): Update.
4225 (class symbol_needs_eval_context) <dwarf_call,
4226 dwarf_variable_value>: Update.
4227 (dwarf2_compile_expr_to_ax): Update.
4228
3c3cd3d4
SM
42292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4232 parameter.
4233 (dwarf2_evaluate_loc_desc_full): Update.
4234
82ca3f51
SM
42352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4238 parameter.
4239 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4240 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4241 dwarf2_per_objfile parameter.
4242 (decode_debug_loc_dwo_addresses): Likewise.
4243 (dwarf2_find_location_expression): Update.
4244 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4245 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4246 parameter.
4247 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4248 parameter.
4249 (locexpr_describe_location_1): Likewise.
4250 (locexpr_describe_location): Update.
4251
4b167ea1
SM
42522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4255 Remove.
4256 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4257 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4258 (dwarf2_compile_property_to_c): Update.
4259 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4260 use text offset from objfile.
4261 (locexpr_tracepoint_var_ref): Update.
4262 (locexpr_generate_c_location): Update.
4263 (loclist_describe_location): Update.
4264 (loclist_tracepoint_var_ref): Update.
4265 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4266 dwarf2_per_objfile parameter.
4267 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4268 use text offset from objfile.
4269 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4270
89b07335
SM
42712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * dwarf2/expr.h (struct dwarf_expr_context)
4274 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4275 <offset>: Remove.
4276 <per_objfile>: New member.
4277 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4278 dwarf2_per_objfile parameter. Don't set offset, set
4279 per_objfile.
4280 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4281 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4282 a dwarf2_per_objfile object instead of an offset.
4283 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4284 constructor.
4285 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4286 to dwarf2_expr_executor constructor. Don't set offset.
4287 (dwarf2_fetch_cfa_info): Update.
4288 (struct dwarf2_frame_cache) <text_offset>: Remove.
4289 <per_objfile>: New field.
4290 (dwarf2_frame_cache): Update.
4291 (dwarf2_frame_prev_register): Update.
4292 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4293 <dwarf_evaluate_loc_desc>: Add constructor.
4294 (dwarf2_evaluate_loc_desc_full): Update.
4295 (dwarf2_locexpr_baton_eval): Update.
4296 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4297 Add constructor.
4298 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4299
293e7e51
SM
43002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4303 addr_sized_int_type>: Move to dwarf2_cu.
4304 <int_type>: Move to dwarf2_per_objfile.
4305 (struct dwarf2_per_objfile) <int_type>: Move here.
4306 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4307 addr_sized_int_type>: Move here.
4308 (read_func_scope): Update.
4309 (read_array_type): Update.
4310 (read_tag_string_type): Update.
4311 (attr_to_dynamic_prop): Update.
4312 (dwarf2_per_cu_data::int_type): Rename to...
4313 (dwarf2_per_objfile::int_type): ... this.
4314 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4315 (dwarf2_cu::addr_sized_int_type): ... this.
4316 (read_subrange_type): Update.
4317 (dwarf2_per_cu_data::addr_type): Rename to...
4318 (dwarf2_cu::addr_type): ... this.
4319 (set_die_type): Update.
4320
64874a40
SM
43212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4324 data through per_cu->cu.
4325
4ab09049
SM
43262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4329 dwarf2_per_cu_data parameter fo dwarf2_cu.
4330 (lookup_dwo_type_unit): Likewise.
4331 (read_cutu_die_from_dwo): Likewise.
4332 (lookup_dwo_unit): Likewise.
4333 (open_and_init_dwo_file): Likewise.
4334 (lookup_dwo_cutu): Likewise.
4335 (lookup_dwo_comp_unit): Likewise.
4336 (lookup_dwo_type_unit): Likewise.
4337 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4338 (cutu_reader::cutu_reader): Update.
4339
47b14e86
SM
43402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4343 parameter.
4344 (process_full_type_unit): Likewise.
4345 (process_queue): Update.
4346
43182c09
SM
43472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * dwarf2/read.c (recursively_compute_inclusions): Add
4350 dwarf2_per_objfile parameter.
4351 (compute_compunit_symtab_includes): Likewise.
4352 (process_cu_includes): Update.
4353
7aa104c4
SM
43542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4355
4356 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4357 parameter.
4358 (create_type_unit_group): Update.
4359 (process_psymtab_comp_unit_reader): Update.
4360 (build_type_psymtabs_reader): Update.
4361
e3beb21d
SM
43622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4365 object through m_this_cu->cu.
4366
d460f660
SM
43672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4370 the info parameter.
4371 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4372
ab432490
SM
43732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4376 per_objfile parameter.
4377 (load_full_type_unit): Add per_objfile parameter.
4378 (read_signatured_type): Likewise.
4379 (load_full_comp_unit): Likewise.
4380 (load_cu): Likewise.
4381 (dw2_do_instantiate_symtab): Likewise.
4382 (dw2_get_file_names): Likewise.
4383 (dw2_map_symtabs_matching_filename): Update.
4384 (dw_expand_symtabs_matching_file_matcher): Update.
4385 (dw2_map_symbol_filenames): Update.
4386 (process_psymtab_comp_unit): Add per_objfile parameter.
4387 (build_type_psymtabs_1): Update.
4388 (process_skeletonless_type_unit): Update.
4389 (dwarf2_build_psymtabs_hard): Update.
4390 (load_partial_comp_unit): Add per_objfile parameter.
4391 (scan_partial_symbols): Update.
4392 (load_full_comp_unit): Add per_objfile parameter.
4393 (process_imported_unit_die): Update.
4394 (create_cus_hash_table): Update.
4395 (find_partial_die): Update.
4396 (dwarf2_read_addr_index): Update.
4397 (follow_die_offset): Update.
4398 (dwarf2_fetch_die_loc_sect_off): Update.
4399 (dwarf2_fetch_constant_bytes): Update.
4400 (dwarf2_fetch_die_type_sect_off): Update.
4401 (follow_die_sig_1): Update.
4402 (load_full_type_unit): Add per_objfile parameter.
4403 (read_signatured_type): Likewise.
4404
313bad1b
SM
44052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4408 of objfile_name.
4409
c3699833
SM
44102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4411
4412 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4413 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4414 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4415 field.
4416 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4417 (create_cus_from_index): Update.
4418 (dwarf2_read_gdb_index): Update.
4419 (create_cus_from_debug_names): Update.
4420 (dwarf2_read_debug_names): Update.
4421 (get_abbrev_section_for_cu): Update.
4422 (create_all_comp_units): Update.
4423 (read_attribute_value): Update.
4424 (get_debug_line_section): Update.
4425 * dwarf2/index-cache.c (index_cache::store): Update.
4426 * dwarf2/index-write.c (save_gdb_index_command): Update.
4427 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4428
1859c670
SM
44292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4432 member.
4433 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4434 dwarf2_per_cu_data::per_bfd.
4435 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4436 (create_type_unit_group): Likewise.
4437 (queue_comp_unit): Remove reference to
4438 per_cu->dwarf2_per_objfile.
4439 (maybe_queue_comp_unit): Likewise.
4440 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4441 (create_cus_hash_table): Assign new field.
4442
5e22e966
SM
44432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * dwarf2/read.c: Replace
4446 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4447 dwarf2_cu->per_objfile throughout.
4448
97a1449a
SM
44492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4452 parameter, don't use per_cu->dwarf2_per_objfile.
4453 (dw2_instantiate_symtab): Likewise.
4454 (dw2_find_last_source_symtab): Update.
4455 (dw2_map_expand_apply): Update.
4456 (dw2_lookup_symbol): Update.
4457 (dw2_expand_symtabs_for_function): Update.
4458 (dw2_expand_all_symtabs): Update.
4459 (dw2_expand_symtabs_with_fullname): Update.
4460 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4461 don't use per_cu->dwarf2_per_objfile.
4462 (dw2_expand_marked_cus): Update.
4463 (dw2_find_pc_sect_compunit_symtab): Update.
4464 (dw2_debug_names_lookup_symbol): Update.
4465 (dw2_debug_names_expand_symtabs_for_function): Update.
4466 (dw2_debug_names_map_matching_symbols): Update.
4467 (dwarf2_psymtab::expand_psymtab): Update.
4468
9e021579
SM
44692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4472 <per_objfile>: New member.
4473 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4474 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4475 call to dwarf2_cu.
4476 (cutu_reader::cutu_reader): Update.
4477 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4478
ae090bdb
SM
44792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4482 struct dwarf2_per_objfile.
4483 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4484 dwarf2_per_bfd.
4485 * dwarf2/read.c (set_die_type): Update.
4486 (get_die_type_at_offset): Update.
4487
af758d11
SM
44882020-05-27 Tom Tromey <tom@tromey.com>
4489 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4492 method.
4493 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4494 get_symtab, set_symtab>: New methods.
4495 <m_symtabs>: New field.
4496 (struct dwarf2_psymtab): Derive from partial_symtab.
4497 <readin_p, get_compunit_symtab>: Declare methods.
4498 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4499 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4500 New methods.
4501 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4502 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4503 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4504 (dw2_symtab_iter_next, dw2_print_stats)
4505 (dw2_expand_symtabs_with_fullname)
4506 (dw2_expand_symtabs_matching_one)
4507 (dw_expand_symtabs_matching_file_matcher)
4508 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4509 (dw2_debug_names_iterator::next)
4510 (dw2_debug_names_map_matching_symbols)
4511 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4512 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4513 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4514 New methods.
4515 (get_compunit_symtab, process_full_comp_unit)
4516 (process_full_type_unit): Update.
4517 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4518
5989a64e
SM
45192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4520
4521 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4522 then introduce a new dwarf2_per_objfile type.
4523 <read_line_string>: Move to the new dwarf2_per_objfile type.
4524 <objfile>: Likewise.
4525 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4526 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4527 dwarf2_per_objfile->per_bfd.
4528 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4529 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4530 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4531 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4532 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4533 (dwarf2_per_objfile::locate_sections): Rename to...
4534 (dwarf2_per_bfd::locate_sections): ... this.
4535 (dwarf2_per_objfile::get_cutu): Rename to...
4536 (dwarf2_per_bfd::get_cutu): ... this.
4537 (dwarf2_per_objfile::get_cu): Rename to...
4538 (dwarf2_per_bfd::get_cu): ... this.
4539 (dwarf2_per_objfile::get_tu): Rename to...
4540 (dwarf2_per_bfd::get_tu): ... this.
4541 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4542 (dwarf2_per_bfd::allocate_per_cu): ... this.
4543 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4544 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4545 (get_gdb_index_contents_ftype): Change parameter from
4546 dwarf2_per_objfile to dwarf2_per_bfd.
4547 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4548 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4549
a50264ba
TT
45502020-05-27 Tom Tromey <tom@tromey.com>
4551 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4554 (allocate_piece_closure): Set "per_objfile" member.
4555 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4556 (locexpr_describe_location, loclist_describe_location): Use new
4557 member.
4558 * dwarf2/read.c (read_call_site_scope)
4559 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4560 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4561 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4562 handle_data_member_location): Set per_objfile member.
4563 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4564 member.
4565 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4566
d3473f0c
TT
45672020-05-27 Tom Tromey <tom@tromey.com>
4568
4569 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4570 allocate_signatured_type>: Declare new methods.
4571 <m_num_psymtabs>: New member.
4572 (struct dwarf2_per_cu_data) <index>: New member.
4573 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4574 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4575 (create_cu_from_index_list): Use allocate_per_cu.
4576 (create_signatured_type_table_from_index)
4577 (create_signatured_type_table_from_debug_names)
4578 (create_debug_type_hash_table, add_type_unit)
4579 (read_comp_units_from_section): Use allocate_signatured_type.
4580
5717c425
TT
45812020-05-27 Tom Tromey <tom@tromey.com>
4582
4583 * psymtab.c (partial_map_expand_apply)
4584 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4585 (psym_lookup_global_symbol_language)
4586 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4587 (psym_print_stats, psym_expand_symtabs_for_function)
4588 (psym_map_symbol_filenames, psym_map_matching_symbols)
4589 (psym_expand_symtabs_matching)
4590 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4591 (maintenance_check_psymtabs): Update.
4592 * psympriv.h (struct partial_symtab) <readin_p,
4593 get_compunit_symtab>: Add objfile parameter.
4594 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4595 Likewise.
4596 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4597 get_compunit_symtab>: Likewise.
4598 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4599
45940949
TT
46002020-05-27 Tom Tromey <tom@tromey.com>
4601
4602 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4603 member.
4604 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4605 (create_cu_from_index_list)
4606 (create_signatured_type_table_from_index)
4607 (create_signatured_type_table_from_debug_names)
4608 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4609 (dwarf2_create_include_psymtab)
4610 (create_debug_type_hash_table, add_type_unit)
4611 (create_type_unit_group, read_comp_units_from_section)
4612 (dwarf2_compute_name, create_cus_hash_table)
4613 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4614 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4615 obstack.
4616 (dw2_get_real_path): Likewise. Change argument to
4617 dwarf2_per_objfile.
4618
f8c6d152
LM
46192020-05-27 Luis Machado <luis.machado@linaro.org>
4620
4621 PR tdep/26000
4622 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4623 for ldrd (immediate).
4624
e98d2e6d
PW
46252020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4626
4627 * command.h: Add comment giving the name of class_tui.
4628 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4629 create the fake command for the help for class_tui.
4630
53a47a3e
TT
46312020-05-26 Tom Tromey <tromey@adacore.com>
4632
4633 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4634 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4635 (val_atr): New function.
4636 (value_val_atr): Use it.
4637 * ada-valprint.c (print_optional_low_bound): Change low bound
4638 handling for enums.
4639 (val_print_packed_array_elements): Don't call discrete_position.
4640 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4641 discrete_position for enum types.
4642 * language.c (default_print_array_index): Change type.
4643 * language.h (struct language_defn) <la_print_array_index>: Add
4644 index_type parameter, change type of index_value.
4645 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4646 (default_print_array_index): Update.
4647 * valprint.c (maybe_print_array_index): Don't call
4648 value_from_longest. Update.
4649 (value_print_array_elements): Don't call discrete_position.
4650
0bc2354b
TT
46512020-05-26 Tom Tromey <tromey@adacore.com>
4652
4653 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4654 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4655
1218a4bf
CDA
46562020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4657
4658 PR gdb/13519
4659 * avr-tdep.c (avr_integer_to_address): Return data or code
4660 address accordingly to the second 'type' argument of the
4661 function.
4662
92651b1d
MW
46632020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4664
4665 * infcmd.c, inferior.h: (construct_inferior_arguments):
4666 Moved function from here to gdbsupport/common-inferior.{h,cc}
4667
0a4f5f8c
TT
46682020-05-23 Tom Tromey <tom@tromey.com>
4669
4670 Revert commit eca1f90c:
4671 * NEWS: Remove entry for completion styling.
4672 * completer.c (_rl_completion_prefix_display_length): Move
4673 declaration later.
4674 (gdb_fnprint): Revert.
4675 (gdb_display_match_list_1): Likewise.
4676 * cli/cli-style.c (completion_prefix_style)
4677 (completion_difference_style, completion_suffix_style): Remove.
4678 (_initialize_cli_style): Revert.
4679 * cli/cli-style.h (completion_prefix_style)
4680 (completion_difference_style, completion_suffix_style): Don't
4681 declare.
4682
e08bd6c5
PA
46832020-05-24 Pedro Alves <palves@redhat.com>
4684
4685 * symtab.c (completion_list_add_name): Return boolean indication
4686 of whether the symbol matched.
4687 (completion_list_add_symbol): Don't try to remove C++ aliases if
4688 the symbol didn't match in the first place.
4689 * symtab.h (completion_list_add_name): Return bool.
4690
ceacbf6e
SM
46912020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4692
4693 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4694 type::field.
4695
26f16254
JB
46962020-05-23 Joel Brobecker <brobecker@adacore.com>
4697
4698 GDB 9.2 released.
4699
eca1f90c
TT
47002020-05-23 Tom Tromey <tom@tromey.com>
4701
4702 * NEWS: Add entry for completion styling.
4703 * completer.c (_rl_completion_prefix_display_length): Move
4704 declaration earlier.
4705 (gdb_fnprint): Use completion_style.
4706 (gdb_display_match_list_1): Likewise.
4707 * cli/cli-style.c (completion_prefix_style)
4708 (completion_difference_style, completion_suffix_style): New
4709 globals.
4710 (_initialize_cli_style): Register new globals.
4711 * cli/cli-style.h (completion_prefix_style)
4712 (completion_difference_style, completion_suffix_style): Declare.
4713
51e2cfa2
PA
47142020-05-23 Pedro Alves <palves@redhat.com>
4715
4716 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4717 (parse_escape): Use ISDIGIT instead of isdigit.
4718 (puts_debug): Use gdb_isprint instead of isprint.
4719 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4720 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4721 ISSPACE instead of isspace.
4722 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4723 instead of isspace.
4724 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4725 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4726 instead of isxdigit and ISDIGIT instead of isdigit.
4727
80fc5e77
SM
47282020-05-22 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * gdbtypes.h (struct type) <field>: New method.
4731 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4732 or type::field.
4733
3cabb6b0
SM
47342020-05-22 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4737 (TYPE_FIELDS): Use type::fields. Change all call sites that
4738 modify the propery to use type::set_fields instead.
4739
1f704f76
SM
47402020-05-22 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4743 type::num_fields instead.
4744
5e33d5f4
SM
47452020-05-22 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4748 methods.
4749 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4750 that modify the number of fields to use type::set_num_fields
4751 instead.
4752
9392ebb3
TT
47532020-05-22 Tom Tromey <tromey@adacore.com>
4754
4755 * compile/compile-object-load.h (munmap_list_free): Don't
4756 declare.
4757
7c13f4e8
AB
47582020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * annotate.c (annotate_source_line): Update return type, add call
4761 to update current symtab and line.
4762 * annotate.h (annotate_source_line): Update return type, and
4763 extend header comment.
4764 * source.c (info_line_command): Check annotation_level before
4765 calling annotate_source_line.
4766 * stack.c (print_frame_info): If calling annotate_source_line
4767 returns true, then don't print any other source line information.
4768
aa370940
SM
47692020-05-21 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4772
84d53fa9
SM
47732020-05-21 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * coffread.c (patch_type): Remove NULL check before xfree.
4776 * corefile.c (set_gnutarget): Likewise.
4777 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4778 * exec.c (build_section_table): Likewise.
4779 * remote.c (remote_target::pass_signals): Likewise.
4780 * utils.c (n_spaces): Likewise.
4781 * cli/cli-script.c (document_command): Likewise.
4782 * i386-windows-tdep.c (core_process_module_section): Likewise.
4783 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4784
9d428aae
SM
47852020-05-20 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * symfile.c (reread_symbols): Clear objfile's section_offsets
4788 vector and section indices, re-compute them by calling
4789 sym_offsets.
4790
250106a7
TT
47912020-05-20 Tom Tromey <tromey@adacore.com>
4792
4793 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4794 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4795
9a0bacfb
TV
47962020-05-20 Tom de Vries <tdevries@suse.de>
4797
4798 PR symtab/25833
4799 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4800
7b958a48
AM
48012020-05-20 Alan Modra <amodra@gmail.com>
4802
4803 PR 25993
4804 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4805 bfd_set_filename.
4806 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4807 passed to bfd_set_filename.
4808 * symfile-mem.c (add_vsyscall_page): Likewise for string
4809 passed to symbol_file_add_from_memory.
4810 (symbol_file_add_from_memory): Make name param a const char* and
4811 don't strdup.
4812
c7e97679
AM
48132020-05-20 Alan Modra <amodra@gmail.com>
4814
4815 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4816 rather than accessing bfd->filename directly.
4817 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4818 and use bfd_section_name.
4819 * dwarf2/frame.c (decode_frame_entry): Likewise.
4820 * exec.c (exec_set_section_address): Likewise.
4821 * solib-aix.c (solib_aix_bfd_open): Likewise.
4822 * stap-probe.c (get_stap_base_address): Likewise.
4823 * symfile.c (reread_symbols): Likewise.
4824
563c591b
TT
48252020-05-19 Tom Tromey <tromey@adacore.com>
4826
4827 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4828
f408d82c
SM
48292020-05-19 Simon Marchi <simon.marchi@efficios.com>
4830
4831 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4832
98c59b52
PA
48332020-05-19 Pedro Alves <palves@redhat.com>
4834
4835 * NEWS (set exec-file-mismatch): Adjust entry.
4836 * exec.c: Include "build-id.h".
4837 (validate_exec_file): Try to match build IDs instead of filenames.
4838 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4839 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4840 and pass down 'warn_if_slow'.
4841 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4842 gdb_bfd_open_closure to pass it down.
4843 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4844
4111f652
PA
48452020-05-19 Pedro Alves <palves@redhat.com>
4846
4847 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4848 * target.c (target_fileio_open_1): Rename to target_fileio_open
4849 and make extern. Use bool.
4850 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4851 (target_fileio_read_alloc_1): Adjust.
4852 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4853 (target_fileio_open_warn_if_slow): Delete declaration.
4854
ad80db5b
PA
48552020-05-19 Pedro Alves <palves@redhat.com>
4856
4857 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4858 Adjust all callers.
4859
1d6ce4d3
YS
48602020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4861
4862 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4863 whether disp is negative.
4864
9005fbbb
SM
48652020-05-19 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * symfile.h (struct symfile_segment_data)
4868 <~symfile_segment_data>: Remove.
4869 <segment_info>: Change to std::vector.
4870 * symfile.c (default_symfile_segments): Update.
4871 * elfread.c (elf_symfile_segments): Update.
4872
68b888ff
SM
48732020-05-19 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4876 <segments>: New.
4877 <segment_bases, segment_sizes>: Remove.
4878 * symfile.c (default_symfile_segments): Update.
4879 * elfread.c (elf_symfile_segments): Update.
4880 * remote.c (remote_target::get_offsets): Update.
4881 * solib-target.c (solib_target_relocate_section_addresses):
4882 Update.
4883
62982abd
SM
48842020-05-19 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * symfile.h (struct symfile_segment_data): Initialize fields.
4887 <~symfile_segment_data>: Add.
4888 (symfile_segment_data_up): New.
4889 (struct sym_fns) <sym_segments>: Return a
4890 symfile_segment_data_up.
4891 (default_symfile_segments): Return a symfile_segment_data_up.
4892 (free_symfile_segment_data): Remove.
4893 (get_symfile_segment_data): Return a symfile_segment_data_up.
4894 * symfile.c (default_symfile_segments): Likewise.
4895 (get_symfile_segment_data): Likewise.
4896 (free_symfile_segment_data): Remove.
4897 (symfile_find_segment_sections): Update.
4898 * elfread.c (elf_symfile_segments): Return a
4899 symfile_segment_data_up.
4900 * remote.c (remote_target::get_offsets): Update.
4901 * solib-target.c (solib_target_relocate_section_addresses):
4902 Update.
4903 * symfile-debug.c (debug_sym_segments): Return a
4904 symfile_segment_data_up.
4905
7f204339
RO
49062020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4907
e52a0f1b
RO
4908 PR build/25981
4909 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4910 Hardcode register numbers.
4911
7f204339
RO
4912 PR build/25981
4913 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4914 procfs_find_LDT_entry): Remove.
4915 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4916 procfs_find_LDT_entry): Remove.
4917 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4918 Remove.
4919
7f32a4d5
PA
49202020-05-17 Pedro Alves <palves@redhat.com>
4921 Andrew Burgess <andrew.burgess@embecosm.com>
4922 Keno Fischer <keno@juliacomputing.com>
4923
4924 PR gdb/25741
4925 * breakpoint.c (build_target_condition_list): Update comments.
4926 (build_target_command_list): Update comments and skip matching
4927 locations.
4928 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4929 a separate function. Simplify "set breakpoint auto-hw off"
4930 handling.
4931 (insert_breakpoints): Update comment.
4932 (tracepoint_locations_match): New parameter. For breakpoints,
4933 compare location types too, if the caller wants to.
4934 (handle_automatic_hardware_breakpoints): New functions.
4935 (bp_location_is_less_than): Also sort by location type and
4936 hardware breakpoint length.
4937 (update_global_location_list): Handle "set breakpoint auto-hw on"
4938 here.
4939 (update_breakpoint_locations): Ask breakpoint_locations_match to
4940 ignore location types.
4941
7d93a1e0
SM
49422020-05-16 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4945 type::name instead.
4946
d0e39ea2
SM
49472020-05-16 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (struct type) <name, set_name>: New methods.
4950 (TYPE_CODE): Use type::name. Change all call sites used to set
4951 the name to use type::set_name instead.
4952
2dab0c7b
TT
49532020-05-16 Tom Tromey <tom@tromey.com>
4954
4955 * top.c (quit_force): Update.
4956 * infrun.c (handle_no_resumed): Update.
4957 * top.h (all_uis): New function.
4958 (ALL_UIS): Remove.
4959
59f7bd8d
SM
49602020-05-16 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4963
9bf058f0
PA
49642020-05-16 Pedro Alves <palves@redhat.com>
4965
4966 * ia64-linux-nat.c
4967 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4968 Declare method.
4969 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4970
8f86ae1a
SM
49712020-05-15 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4974 (sparc64_adi_info): Likewise.
4975
d6bc0792
TT
49762020-05-15 Tom Tromey <tom@tromey.com>
4977
4978 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4979 block_objfile.
4980 (lookup_objfile_from_block): Remove.
4981 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4982 (lookup_global_symbol): Use block_objfile.
4983 * symtab.h (lookup_objfile_from_block): Don't declare.
4984 * printcmd.c (clear_dangling_display_expressions): Use
4985 block_objfile.
4986 * parse.c (operator_check_standard): Use block_objfile.
4987
8c14c3a3
TT
49882020-05-15 Tom Tromey <tom@tromey.com>
4989
4990 * language.c (language_alloc_type_symbol): Set
4991 SYMBOL_SECTION.
4992 * symtab.c (initialize_objfile_symbol): Remove.
4993 (allocate_symbol): Remove.
4994 (allocate_template_symbol): Remove.
4995 * dwarf2/read.c (fixup_go_packaging): Use "new".
4996 (new_symbol): Use "new".
4997 (read_variable): Don't call initialize_objfile_symbol. Use
4998 "new".
4999 (read_func_scope): Use "new".
5000 * xcoffread.c (process_xcoff_symbol): Don't call
5001 initialize_objfile_symbol.
5002 (SYMBOL_DUP): Remove.
5003 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5004 "new".
5005 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5006 (allocate_template_symbol): Don't declare.
5007 (struct symbol): Add copy constructor. Change defaults.
5008 * jit.c (finalize_symtab): Use "new".
5009 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5010 Use "new".
5011 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5012 (common_block_end): Use "new".
5013 * mdebugread.c (parse_symbol): Use "new".
5014 (new_symbol): Likewise.
5015
5b4a1a8d
PW
50162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * NEWS: Mention changes to help and apropos.
5019
57b4f16e
PW
50202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * command.h (enum command_class): Improve comments, document
5023 that class_alias is for user-defined aliases, give the class
5024 name for each class, remove unused class_xdb.
5025 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5026 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5027 by a precise class.
5028 * infcmd.c (_initialize_infcmd): Likewise.
5029 * reverse.c (_initialize_reverse): Likewise.
5030 * stack.c (_initialize_stack): Likewise.
5031 * symfile.c (_initialize_symfile): Likewise.
5032 * tracepoint.c (_initialize_tracepoint): Likewise.
5033
7c05caf7
PW
50342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5035
5036 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5037 when their aliased command is traversed.
5038 (help_cmd): Add fput_command_names_styled call to
5039 output command name and aliases when command has an alias.
5040
3b3aaacb
PW
50412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5042
5043 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5044 * cli/cli-decode.c (help_cmd_list): Declare as static,
5045 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5046 a command together with the command.
5047 (fput_command_name_styled, fput_command_names_styled): New functions.
5048 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5049 fput_command_name_styled.
5050 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5051 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5052
7aa1b46f
PW
50532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5054
5055 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5056 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5057 * command.h (cmd_show_list): Likewise.
5058 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5059 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5060
89bcba74
PW
50612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5062
5063 * unittests/command-def-selftests.c (traverse_command_structure):
5064 Verify all commands of a list have the same prefix command and
5065 that only the top cmdlist commands have a null prefix.
5066
3f4d92eb
PW
50672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5068
5069 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5070 as prefix, not one of its aliases.
5071 (set_cmd_prefix): Remove.
5072 (do_add_cmd): Centralize the setting of the prefix of a command, when
5073 command is defined after its full chain of prefix commands.
5074 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5075 (add_setshow_cmd_full): Likewise.
5076 (update_prefix_field_of_prefixed_commands): New function.
5077 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5078 update_prefix_field_of_prefixed_commands.
5079 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5080 addresses of remote_set_cmdlist and remote_show_cmdlist given
5081 as argument, not the address of an argument.
5082 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5083 * gdb/remote.c (_initialize_remote): Likewise.
5084
0605465f
PW
50852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5086
5087 * cli/cli-cmds.c (alias_command): Check for an existing alias
5088 using lookup_cmd_composition, as valid_command_p is too strict
5089 and forbids aliases that are the prefix of an existing alias
5090 or command.
5091 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5092 command is properly recognised as a valid command.
5093
58e6ac70
PW
50942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5095
5096 * unittests/help-doc-selftests.c: Rename to
5097 unittests/command-def-selftests.c
5098 * unittests/command-def-selftests.c (help_doc_tests): Update some
5099 comments.
5100 (command_structure_tests, traverse_command_structure): New namespace
5101 and function.
5102 (command_structure_invariants_tests): New function.
5103 (_initialize_command_def_selftests) Renamed from
5104 _initialize_help_doc_selftests, register command_structure_invariants
5105 selftest.
5106
a7b9ceb8
PW
51072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5108
5109 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5110 an alias of 'show'.
5111
b2188a06
JB
51122020-05-15 Joel Brobecker <brobecker@adacore.com>
5113
5114 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5115 ada_is_fixed_point_type. Update all callers.
5116 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5117 all callers.
5118 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5119 Update all callers.
5120 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5121 print_fixed_point_type. Update all callers.
5122 * ada-valprint.c (ada_value_print_num): Replace call to
5123 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5124
a51951c2
KB
51252020-05-14 Kevin Buettner <kevinb@redhat.com>
5126
5127 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5128 processors.
5129 (cpu_supports_bts): Add CV_AMD case.
5130
29d6859f
LM
51312020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5132 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * infrun.c (stop_all_threads): Collect multiple wait events at
5135 each pass.
5136
78134374
SM
51372020-05-14 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5140 type::code instead.
5141
67607e24
SM
51422020-05-14 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (struct type) <code, set_code>: New methods.
5145 (TYPE_CODE): Use type::code. Change all call sites used to set
5146 the code to use type::set_code instead.
5147
a05575d3
TBA
51482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5149 Tom de Vries <tdevries@suse.de>
5150 Pedro Alves <palves@redhat.com>
5151
5152 PR threads/25478
5153 * infrun.c (stop_all_threads): Do NOT ignore
5154 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5155 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5156 received.
5157 (handle_no_resumed): Remove code handling a live inferior with no
5158 threads.
5159 * remote.c (has_single_non_exited_thread): New.
5160 (remote_target::update_thread_list): Do not delete a thread if is
5161 the last thread of the process.
5162 * thread.c (thread_select): Call delete_exited_threads instead of
5163 prune_threads.
5164
6ad82919
TBA
51652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5166
5167 * infrun.c (stop_all_threads): Enable/disable thread events of all
5168 targets. Move a debug message denoting the end of the function
5169 into the SCOPED_EXIT block.
5170
d890404b
TBA
51712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5172
5173 * process-stratum-target.h: Include <set>.
5174 (all_non_exited_process_targets, switch_to_target_no_thread): New
5175 function declarations.
5176 * process-stratum-target.c (all_non_exited_process_targets)
5177 (switch_to_target_no_thread): New function implementations.
5178
293b3ebc
TBA
51792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5180
5181 * infrun.c (handle_inferior_event): Extract out a piece of code
5182 into...
5183 (mark_non_executing_threads): ...this new function.
5184
7ca9b62a
TBA
51852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5186
5187 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5188 use.
5189
fc75c28b
TBA
51902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5191
5192 * regcache.c (regcache_read_pc_protected): New function
5193 implementation that returns 0 if the PC cannot read via
5194 'regcache_read_pc'.
5195 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5196 instead of 'regcache_read_pc'.
5197 (keep_going_pass_signal): Ditto.
5198
a89febbd
TT
51992020-05-13 Tom Tromey <tromey@adacore.com>
5200
5201 * ada-lang.c (align_value): Remove.
5202 (ada_template_to_fixed_record_type_1): Use align_up.
5203
f7e23710
TBA
52042020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5205
5206 * async-event.c: Update the copyright year.
5207 * async-event.h: Update the copyright year.
5208
02ff80c2
SM
52092020-05-12 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * objfiles.h (is_addr_in_objfile,
5212 shared_objfile_contains_address_p): Return bool.
5213 * objfile.c (is_addr_in_objfile,
5214 shared_objfile_contains_address_p): Return bool.
5215
4fd6c7e8
TT
52162020-05-11 Tom Tromey <tromey@adacore.com>
5217
5218 * cli/cli-cmds.c (info_command): Restore.
5219 (_initialize_cli_cmds): Use add_prefix_command for "info".
5220 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5221
5eb68a39
TT
52222020-05-11 Tom Tromey <tromey@adacore.com>
5223
5224 * ada-lang.c (ada_value_primitive_field): Now public.
5225 * ada-lang.h (ada_value_primitive_field): Declare.
5226 * ada-valprint.c (print_field_values): Use
5227 ada_value_primitive_field for wrapper fields.
5228
7666722f
TV
52292020-05-11 Tom de Vries <tdevries@suse.de>
5230
5231 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5232 MODULE_DOMAIN.
5233
3ee6bb11
TV
52342020-05-11 Tom de Vries <tdevries@suse.de>
5235
5236 PR symtab/25941
5237 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5238 with length 0, if not gdb-produced.
5239 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5240
43434996
TV
52412020-05-09 Tom de Vries <tdevries@suse.de>
5242
5243 PR gdb/25955
5244 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5245 calculation.
5246
2f78cffc
TT
52472020-05-09 Tom Tromey <tom@tromey.com>
5248
5249 * top.c (server_command): Now bool.
5250 * top.h (server_command): Now bool.
5251
4f7bc5ed
TT
52522020-05-08 Tom Tromey <tromey@adacore.com>
5253
5254 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5255 already being processed.
5256
8be4b118
TT
52572020-05-08 Tom Tromey <tom@tromey.com>
5258
5259 * printcmd.c (struct display) <next>: Remove.
5260 <display>: New constructor.
5261 <exp_string>: Now a std::string.
5262 <enabled_p>: Now a bool.
5263 (display_number): Move definition earlier.
5264 (displays): Rename from display_chain. Now a std::vector.
5265 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5266 (display_command): Update.
5267 (do_one_display, disable_display)
5268 (enable_disable_display_command, do_enable_disable_display):
5269 Update.
5270 (free_display): Remove.
5271 (clear_displays): Rewrite.
5272 (delete_display): Update.
5273 (map_display_numbers): Use function_view. Remove "data"
5274 parameter. Update.
5275 (do_delete_display): Remove.
5276 (undisplay_command): Update.
5277 (do_one_display, do_displays, disable_display)
5278 (info_display_command): Update.
5279 (do_enable_disable_display): Remove.
5280 (enable_disable_display_command)
5281 (clear_dangling_display_expressions): Update.
5282
94c93c35
TT
52832020-05-08 Tom Tromey <tom@tromey.com>
5284
5285 * symtab.c (set_symbol_cache_size)
5286 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5287 (maintenance_print_symbol_cache_statistics): Update.
5288 * symmisc.c (print_symbol_bcache_statistics)
5289 (print_objfile_statistics, maintenance_print_objfiles)
5290 (maintenance_info_symtabs, maintenance_check_symtabs)
5291 (maintenance_expand_symtabs, maintenance_info_line_tables):
5292 Update.
5293 * symfile-debug.c (set_debug_symfile): Update.
5294 * source.c (forget_cached_source_info): Update.
5295 * python/python.c (gdbpy_progspaces): Update.
5296 * psymtab.c (maintenance_info_psymtabs): Update.
5297 * probe.c (parse_probes): Update.
5298 * linespec.c (iterate_over_all_matching_symtabs)
5299 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5300 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5301 * exec.c (exec_target::close): Update.
5302 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5303 * breakpoint.c (print_one_breakpoint_location)
5304 (create_longjmp_master_breakpoint)
5305 (create_std_terminate_master_breakpoint): Update.
5306 * progspace.c (program_spaces): Now a std::vector.
5307 (maybe_new_address_space): Update.
5308 (add_program_space): Remove.
5309 (program_space::program_space): Update.
5310 (remove_program_space): Update.
5311 (number_of_program_spaces): Remove.
5312 (print_program_space, update_address_spaces): Update.
5313 * progspace.h (program_spaces): Change type.
5314 (ALL_PSPACES): Remove.
5315 (number_of_program_spaces): Don't declare.
5316 (struct program_space) <next>: Remove.
5317
a1fd1ac9
TT
53182020-05-08 Tom Tromey <tom@tromey.com>
5319
5320 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5321 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5322 (enable_break): Update.
5323 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5324 (frv_fdpic_find_canonical_descriptor): Update.
5325 (frv_fetch_objfile_link_map): Update.
5326 * progspace.c (program_space::free_all_objfiles): Update.
5327 (program_space::solibs): New method.
5328 * progspace.h (struct program_space) <solibs>: New method.
5329 * solist.h (master_so_list): Don't declare.
5330 (ALL_SO_LIBS): Remove.
5331 * solib.h (so_list_head): Remove.
5332 (update_solib_list): Update comment.
5333 * solib.c (master_so_list): Remove.
5334 (solib_used, update_solib_list, solib_add)
5335 (info_sharedlibrary_command, clear_solib)
5336 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5337
38eae084
TT
53382020-05-08 Tom Tromey <tom@tromey.com>
5339
5340 * extension.c (extension_languages): Now a std::array.
5341 (ALL_EXTENSION_LANGUAGES): Remove.
5342 (get_ext_lang_defn, get_ext_lang_of_file)
5343 (eval_ext_lang_from_control_command): Update.
5344 (finish_ext_lang_initialization)
5345 (auto_load_ext_lang_scripts_for_objfile)
5346 (ext_lang_type_printers::ext_lang_type_printers)
5347 (apply_ext_lang_type_printers)
5348 (ext_lang_type_printers::~ext_lang_type_printers)
5349 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5350 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5351 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5352 (get_matching_xmethod_workers, ext_lang_colorize)
5353 (ext_lang_before_prompt): Update.
5354 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5355
596dc4ad
TT
53562020-05-08 Tom Tromey <tom@tromey.com>
5357
5358 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5359 overload.
5360 <swap_string, m_string>: Remove.
5361 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5362 Update.
5363 * stabsread.c (define_symbol, read_type): Update.
5364 * linespec.c (find_linespec_symbols): Update.
5365 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5366 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5367 * dbxread.c (read_dbx_symtab): Update.
5368 * cp-support.h (cp_canonicalize_string_full)
5369 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5370 Return unique_xmalloc_ptr.
5371 * cp-support.c (inspect_type): Update.
5372 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5373 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5374 Likewise.
5375 * c-typeprint.c (print_name_maybe_canonical): Update.
5376 * break-catch-throw.c (check_status_exception_catchpoint):
5377 Update.
5378
bf4cb9be
TV
53792020-05-08 Tom de Vries <tdevries@suse.de>
5380
5381 * infrun.c (follow_fork): Copy current_line and current_symtab to
5382 child thread.
5383
a1b68f28
SM
53842020-05-07 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * async-event.c (struct async_signal_handler, struct
5387 async_event_handler): Reformat, remove typedef.
5388
98d48915
SM
53892020-05-07 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5392 access thistype->main_type->dyn_prop_list directly.
5393
7aa91313
SM
53942020-05-07 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5397 (remove_dyn_prop): Remove. Update all users to use
5398 type::remove_dyn_prop.
5399 * gdbtypes.c (remove_dyn_prop): Rename to...
5400 (type::remove_dyn_prop): ... this.
5401
5c54719c
SM
54022020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5403
5404 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5405 (add_dyn_prop): Remove. Update all users to use
5406 type::add_dyn_prop.
5407 * gdbtypes.c (add_dyn_prop): Rename to...
5408 (type::add_dyn_prop): ... this.
5409
24e99c6c
SM
54102020-05-07 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5413 (get_dyn_prop): Remove. Update all users to use
5414 type::dyn_prop.
5415 * gdbtypes.c (get_dyn_prop): Rename to...
5416 (type::dyn_prop): ... this.
5417
0d4bf016
SM
54182020-05-06 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5421
ac4a4f1c
SM
54222020-05-06 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5425 instruction, skip it if it's there.
5426
a3bbacc1
SM
54272020-05-05 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5430
c3236f84
SM
54312020-05-04 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5434 * gdbtypes.c (recursive_dump_type): Remove use of
5435 TYPE_INCOMPLETE.
5436
3b6acaee
TT
54372020-05-03 Tom Tromey <tom@tromey.com>
5438
5439 * breakpoint.c (catch_command, tcatch_command): Remove.
5440 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5441 add_show_prefix_cmd.
5442 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5443 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5444 Remove.
5445 (add_internal_problem_command): Use add_basic_prefix_cmd,
5446 add_show_prefix_cmd.
5447 * mips-tdep.c (set_mipsfpu_command): Remove.
5448 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5449 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5450 (_initialize_index_cache): Use add_basic_prefix_cmd.
5451 * memattr.c (dummy_cmd): Remove.
5452 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5453 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5454 (_initialize_tui_win): Use add_basic_prefix_cmd,
5455 add_show_prefix_cmd.
5456 * cli/cli-logging.c (set_logging_command): Remove.
5457 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5458 add_show_prefix_cmd.
5459 (show_logging_command): Remove.
5460 * target.c (target_command): Remove.
5461 (add_target): Use add_basic_prefix_cmd.
5462
a51119cd
HD
54632020-05-02 Hannes Domani <ssbssa@yahoo.de>
5464
5465 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5466
652fc23a 54672020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5468
652fc23a
PW
5469 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5470 info_command.
5471
117539e6
KR
54722020-04-30 Kamil Rytarowski <n54@gmx.com>
5473
5474 * nbsd-nat.c (nbsd_enable_proc_events)
5475 (nbsd_nat_target::post_startup_inferior): Add.
5476 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5477 (nbsd_nat_target::update_thread_list): Rewrite.
5478 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5479 "PTRACE_LWP_CREATE".
5480 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5481
102e38eb 54822020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5483
102e38eb
PW
5484 * stack.c (_initialize_stack): Remove duplicated creation
5485 of "frame" command and "f" alias.
5486
ee9d1e5f
HD
54872020-04-30 Hannes Domani <ssbssa@yahoo.de>
5488
5489 PR gdb/18706
5490 * gdbtypes.c (check_typedef): Calculate size of array of
5491 stubbed type.
5492
627c7fb8
HD
54932020-04-30 Hannes Domani <ssbssa@yahoo.de>
5494
5495 PR gdb/15559
5496 * i386-tdep.c (i386_push_dummy_call): Call
5497 i386_thiscall_push_dummy_call.
5498 (i386_thiscall_push_dummy_call): New function.
5499 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5500 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5501 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5502
ffc2844e
SM
55032020-04-29 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * gdbarch.sh (do_read): Add shellcheck disable directive for
5506 warning SC2162.
5507
1207375d
SM
55082020-04-29 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5511 "referenced but not assigned" warning.
5512
9fdb2916
SM
55132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * gdbarch.sh: Remove code that sets fallbackdefault.
5516
759cea5e
SM
55172020-04-29 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * gdbarch.sh: Use shell operators && and || instead of
5520 -a and -o.
5521
cb02ab24
SM
55222020-04-29 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbarch.sh: Use $(...) instead of `...`.
5525
a6fc5ffc
SM
55262020-04-29 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * gdbarch.sh: Use double quotes around variables.
5529
8d113d13
SM
55302020-04-29 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * gdbarch.sh: Use %s with printf, instead of variables in the
5533 format string.
5534
ed6acedd
TT
55352020-04-29 Tom Tromey <tromey@adacore.com>
5536
5537 PR ada/25875:
5538 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5539 type fields here.
5540 (read_enumeration_type): Call
5541 update_enumeration_type_from_children later. Update comments.
5542 (process_enumeration_scope): Don't create type fields.
5543
b68b1b58
KR
55442020-04-29 Kamil Rytarowski <n54@gmx.com>
5545
5546 * nbsd-tdep.c: Include "xml-syscall.h".
5547 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5548
f94b2e03
KR
55492020-04-29 Kamil Rytarowski <n54@gmx.com>
5550
5551 * nbsd-nat.c: Include "sys/wait.h".
5552 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5553 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5554 (nbsd_nat_target::remove_exec_catchpoint)
5555 (nbsd_nat_target::set_syscall_catchpoint): Add.
5556 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5557 (nbsd_nat_target::insert_exec_catchpoint)
5558 (nbsd_nat_target::remove_exec_catchpoint)
5559 (nbsd_nat_target::set_syscall_catchpoint): Add.
5560 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5561 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5562 `nbsd_get_syscall_number'.
5563
fc49bc72
TT
55642020-04-29 Tom Tromey <tom@tromey.com>
5565
5566 * stack.c (print_block_frame_labels): Remove.
5567
d642b692
HD
55682020-04-29 Hannes Domani <ssbssa@yahoo.de>
5569
5570 PR gdb/17320
5571 * ada-valprint.c (val_print_packed_array_elements): Move array
5572 end bracket to new line.
5573 (ada_val_print_string): Remove extra spaces before first array
5574 element.
5575 * c-valprint.c (c_value_print_array): Likewise.
5576 * m2-valprint.c (m2_print_array_contents): Likewise.
5577 (m2_value_print_inner): Likewise.
5578 * p-valprint.c (pascal_value_print_inner): Likewise.
5579 * valprint.c (generic_val_print_array): Likewise.
5580 (value_print_array_elements): Move first array element and array
5581 end bracket to new line.
5582
ea90f227
TV
55832020-04-29 Tom de Vries <tdevries@suse.de>
5584
5585 PR symtab/25889
5586 * linespec.c (find_method): Fix ix calculation.
5587
4498ef4f
KR
55882020-04-28 Kamil Rytarowski <n54@gmx.com>
5589
5590 * syscalls/update-netbsd.sh: New file.
5591 * syscalls/netbsd.xml: Regenerate.
5592 * data-directory/Makefile.in: Register `netbsd.xml' in
5593 `SYSCALLS_FILES'.
5594
a55e30b5
SM
55952020-04-28 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * syscalls/update-freebsd.sh: Add double quotes.
5598
2b2fbab8
TT
55992020-04-28 Tom Tromey <tom@tromey.com>
5600
5601 * NEWS: Update.
5602 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5603 (cmdpy_init): Allow class_tui.
5604
a65189c9
TV
56052020-04-28 Mark Williams <mark@myosotissp.com>
5606
5607 PR gdb/24480
5608 * dwarf2read.c: Add missing assingments to list_in_scope when
5609 start_symtab was already called.
5610
1b95cdb7
SM
56112020-04-28 Simon Marchi <simon.marchi@efficios.com>
5612
5613 PR gdb/25881
5614 * dwarf2/read.c (offset_map_type): Use
5615 gdb:hash_enum<sect_offset> as hash function.
5616
15cd93d0
TV
56172020-04-28 Tom de Vries <tdevries@suse.de>
5618
5619 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5620 with DW_AT_signature.
5621
1eb39914
SM
56222020-04-27 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * configure.ac: Remove check for fs_base/gs_base in
5625 user_regs_struct.
5626 * configure: Re-generate.
5627 * config.in: Re-generate.
5628 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5629 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5630 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5631
991a3e2e
LM
56322020-04-27 Luis Machado <luis.machado@linaro.org>
5633
5634 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5635 problematic inline frame unwinding situation.
5636 * frame.c (frame_id_computed_p): New function.
5637 * frame.h (frame_id_computed_p): New prototype.
5638
361ba0e8
TT
56392020-04-26 Tom Tromey <tom@tromey.com>
5640
5641 * command.h (enum command_class) <class_pseudo>: Remove.
5642
bc3609fd
PW
56432020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5644
5645 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5646 and whitespace.
5647
b9771db7
KR
56482020-04-25 Kamil Rytarowski <n54@gmx.com>
5649
ec16513e
SM
5650 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5651 `PT_GET_PROCESS_STATE' block.
b9771db7 5652
7151c1af
TT
56532020-04-24 Tom Tromey <tom@tromey.com>
5654
5655 * symtab.h (symbol_get_demangled_name): Don't declare.
5656 * symtab.c (symbol_get_demangled_name): Remove.
5657 (general_symbol_info::natural_name)
5658 (general_symbol_info::demangled_name): Update.
5659
906bb4c5
TT
56602020-04-24 Tom Tromey <tom@tromey.com>
5661
5662 PR rust/25025:
5663 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5664
bcfe6157
TT
56652020-04-24 Tom Tromey <tom@tromey.com>
5666
5667 PR symtab/12707:
5668 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5669 exists.
5670 (new_symbol): Likewise.
5671 * compile/compile-object-load.c (get_out_value_type): Use
5672 symbol_matches_search_name.
5673
f049a313
TT
56742020-04-24 Tom Tromey <tom@tromey.com>
5675
5676 * dwarf2/read.c (add_partial_symbol): Do not call
5677 compute_and_set_names.
5678
76e288d1
TT
56792020-04-24 Tom Tromey <tom@tromey.com>
5680
5681 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5682 overload.
5683
2467f4f6
TT
56842020-04-24 Tom Tromey <tom@tromey.com>
5685
5686 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5687 (add_psymbol_to_list): New overload. Make old overload call new
5688 one.
5689 * psympriv.h (add_psymbol_to_list): New overload.
5690
e61108c9
TT
56912020-04-24 Tom Tromey <tom@tromey.com>
5692
5693 * dwarf2/read.c (partial_die_info::read) <case
5694 DW_AT_linkage_name>: Use value_as_string.
5695 (dwarf2_string_attr): Use value_as_string.
5696 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5697 method.
5698 * dwarf2/attribute.c (attribute::value_as_string): New method.
5699
8c87a452
TT
57002020-04-24 Tom Tromey <tom@tromey.com>
5701
5702 * symtab.c (general_symbol_info::natural_name)
5703 (general_symbol_info::demangled_name): Check for language_rust.
5704
787de330
TT
57052020-04-24 Tom Tromey <tom@tromey.com>
5706
5707 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5708 (dwarf2_physname): ... from here.
5709 (partial_die_info::read): Add Rust "{" hack.
5710
ff985671
TT
57112020-04-24 Tom Tromey <tom@tromey.com>
5712
5713 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5714 method.
5715 (symbol_set_demangled_name): Don't declare.
5716 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5717 symbol_set_demangled_name.
5718 (general_symbol_info::set_language)
5719 (general_symbol_info::compute_and_set_names): Update.
5720 * minsyms.c (minimal_symbol_reader::install): Update.
5721 * dwarf2/read.c (new_symbol): Update.
5722
1acda803
TT
57232020-04-24 Tom Tromey <tromey@adacore.com>
5724
5725 PR python/23662:
5726 * python/py-type.c (convert_field): Handle
5727 FIELD_LOC_KIND_DWARF_BLOCK.
5728 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5729 (typy_get_dynamic): Nw function.
5730 (type_object_getset): Add "dynamic".
5731 * NEWS: Add entry.
5732
d656f129
TT
57332020-04-24 Tom Tromey <tromey@adacore.com>
5734
5735 * ada-typeprint.c (print_choices, print_variant_part)
5736 (print_record_field_types_dynamic): New functions.
5737 (print_record_field_types): Use print_record_field_types_dynamic.
5738
7d79de9a
TT
57392020-04-24 Tom Tromey <tromey@adacore.com>
5740
5741 * dwarf2/read.c (handle_data_member_location): New overload.
5742 (dwarf2_add_field): Use it.
5743 (decode_locdesc): Add "computed" parameter. Update comment.
5744 * gdbtypes.c (is_dynamic_type_internal): Also look for
5745 FIELD_LOC_KIND_DWARF_BLOCK.
5746 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5747 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5748 virtual base classes.
5749 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5750 FIELD_LOC_KIND_DWARF_BLOCK.
5751
f8e89861
TT
57522020-04-24 Tom Tromey <tromey@adacore.com>
5753
5754 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5755 * gdbtypes.c (is_dynamic_type_internal): Check
5756 TYPE_HAS_DYNAMIC_LENGTH.
5757 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5758 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5759 New macros.
5760 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5761 constant.
5762
9c6a1327
TT
57632020-04-24 Tom Tromey <tromey@adacore.com>
5764
5765 * dwarf2/read.c (struct variant_field): Rewrite.
5766 (struct variant_part_builder): New.
5767 (struct nextfield): Remove "variant" field. Add "offset".
5768 (struct field_info): Add "current_variant_part" and
5769 "variant_parts".
5770 (alloc_discriminant_info): Remove.
5771 (alloc_rust_variant): New function.
5772 (quirk_rust_enum): Update.
5773 (dwarf2_add_field): Set "offset" member. Don't handle
5774 DW_TAG_variant_part.
5775 (offset_map_type): New typedef.
5776 (convert_variant_range, create_one_variant)
5777 (create_one_variant_part, create_variant_parts)
5778 (add_variant_property): New functions.
5779 (dwarf2_attach_fields_to_type): Call add_variant_property.
5780 (read_structure_type): Don't handle DW_TAG_variant_part.
5781 (handle_variant_part, handle_variant): New functions.
5782 (handle_struct_member_die): Use them.
5783 (process_structure_scope): Don't handle variant parts.
5784 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5785 (struct discriminant_info): Remove.
5786 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5787 (struct main_type) <flag_discriminated_union>: Remove.
5788 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5789 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5790 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5791 Update.
5792 * valops.c (value_union_variant): Remove.
5793 * value.h (value_union_variant): Don't declare.
5794
b249d2c2
TT
57952020-04-24 Tom Tromey <tromey@adacore.com>
5796
5797 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5798 (ada_value_primitive_packed_val): Update.
5799 * ada-valprint.c (ada_value_print_1): Update.
5800 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5801 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5802 just an address. Use evaluate_for_locexpr_baton.
5803 (dwarf2_evaluate_property): Update.
5804 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5805 array_view.
5806 * findvar.c (default_read_var_value): Update.
5807 * gdbtypes.c (compute_variant_fields_inner)
5808 (resolve_dynamic_type_internal): Update.
5809 (resolve_dynamic_type): Change type of valaddr parameter.
5810 * gdbtypes.h (resolve_dynamic_type): Update.
5811 * valarith.c (value_subscripted_rvalue): Update.
5812 * value.c (value_from_contents_and_address): Update.
5813
61122aa9
TT
58142020-04-24 Tom Tromey <tromey@adacore.com>
5815
5816 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5817 "push_initial_value" parameter.
5818 (dwarf2_evaluate_property): Likewise.
5819 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5820
ef83a141
TT
58212020-04-24 Tom Tromey <tromey@adacore.com>
5822
5823 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5824 (variant::matches, compute_variant_fields_recurse)
5825 (compute_variant_fields_inner, compute_variant_fields): New
5826 functions.
5827 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5828 Use resolved_type after type is made.
5829 (operator==): Add new cases.
5830 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5831 (struct discriminant_range, struct variant, struct variant_part):
5832 New.
5833 (union dynamic_prop_data) <variant_parts, original_type>: New
5834 members.
5835 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5836 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5837 constants.
5838 * value.c (unpack_bits_as_long): Now public.
5839 * value.h (unpack_bits_as_long): Declare.
5840
675127ec
TT
58412020-04-24 Tom Tromey <tromey@adacore.com>
5842
5843 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5844 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5845
9852ceef
HD
58462020-04-24 Hannes Domani <ssbssa@yahoo.de>
5847
5848 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5849
7632c6ce
KR
58502020-04-24 Kamil Rytarowski <n54@gmx.com>
5851
5852 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5853 (remove_fork_catchpoint, post_startup_inferior)
5854 (post_attach): Move...
5855 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5856 (remove_fork_catchpoint, post_startup_inferior)
5857 (post_attach): ...here.
5858 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5859 (remove_fork_catchpoint, post_startup_inferior)
5860 (post_attach): Move...
5861 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5862 (remove_fork_catchpoint, post_startup_inferior)
5863 (post_attach): ...here.
5864
7be2bb4f
TT
58652020-04-24 Tom Tromey <tromey@adacore.com>
5866
5867 * nat/windows-nat.h (struct windows_thread_info)
5868 <pc_adjusted>: New member.
5869 * windows-nat.c (windows_fetch_one_register): Check
5870 pc_adjusted.
5871 (windows_nat_target::get_windows_debug_event)
5872 (windows_nat_target::wait): Set pc_adjusted.
5873
f80cb3b4
TV
58742020-04-24 Tom de Vries <tdevries@suse.de>
5875
5876 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5877 Run gdb-add-index inside temp dir.
5878
29514b87
TT
58792020-04-23 Tom Tromey <tromey@adacore.com>
5880
5881 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5882 in loop.
5883
5939967b
LM
58842020-04-23 Luis Machado <luis.machado@linaro.org>
5885
5886 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5887 get_frame_register instead of gdbarch_unwind_pc.
5888
70bc38f5
TV
58892020-04-23 Tom de Vries <tdevries@suse.de>
5890
5891 * symtab.c (lookup_global_symbol): Prefer def over decl.
5892
de82891c
TV
58932020-04-23 Tom de Vries <tdevries@suse.de>
5894
5895 PR symtab/25807
5896 * block.c (best_symbol, better_symbol): Promote to external.
5897 * block.h (best_symbol, better_symbol): Declare.
5898 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5899 decl.
5900
ecc6c606
TT
59012020-04-23 Tom Tromey <tromey@adacore.com>
5902
5903 PR ada/25837:
5904 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5905 "const char *", not a "const std::string &".
5906 <name_and_matcher::operator==>: Update.
5907 * unittests/lookup_name_info-selftests.c: Change type of
5908 "result".
5909
740480b8
TT
59102020-04-23 Tom Tromey <tom@tromey.com>
5911
5912 * inferior.h (iterate_over_inferiors): Don't declare.
5913 * inferior.c (iterate_over_inferiors): Remove.
5914 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5915 Remove.
5916 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5917 use iterate_over_inferiors.
5918 (darwin_resume_inferior_it)
5919 (struct resume_inferior_threads_param)
5920 (darwin_resume_inferior_threads_it): Remove.
5921 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5922
ae3ab1f0
TV
59232020-04-23 Tom de Vries <tdevries@suse.de>
5924
5925 * blockframe.c (find_pc_partial_function): Use
5926 find_pc_sect_compunit_symtab rather than
5927 objfile->sf->qf->find_pc_sect_compunit_symtab.
5928
317d2668
TV
59292020-04-22 Tom de Vries <tdevries@suse.de>
5930
5931 PR symtab/25764
5932 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5933 in psymtabs.
5934
eea9e357
TV
59352020-04-22 Tom de Vries <tdevries@suse.de>
5936
5937 PR symtab/25801
5938 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5939 symtabs.
5940
3d5afab3
TV
59412020-04-22 Tom de Vries <tdevries@suse.de>
5942
5943 PR symtab/25700
5944 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5945 CU if already created.
5946
d43b7a2d
TBA
59472020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5948
5949 * infrun.c (displaced_step_fixup): Switch to the event_thread
5950 before calling displaced_step_restore, not after.
5951
d89edf9b
MM
59522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5953
5954 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5955 its inferior is not recorded by us.
5956 (record_btrace_target_open): Replace call to
5957 all_non_exited_threads () with call to current_inferior
5958 ()->non_exited_threads ().
5959 (record_btrace_target::stop_recording): Likewise.
5960 (record_btrace_target::close): Likewise.
5961 (record_btrace_target::wait): Likewise.
5962 (record_btrace_target::record_stop_replaying): Likewise.
5963
5897fd49
MM
59642020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5965
5966 * btrace.c (btrace_enable): Throw an error on double enables and
5967 when enabling recording fails.
5968 (btrace_disable): Throw an error if the thread is not recorded.
5969
1a476b6d
MM
59702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5971
5972 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5973 request if we do not have a thread_info.
5974
4778a5f8
TV
59752020-04-21 Tom de Vries <tdevries@suse.de>
5976
5977 PR gdb/25471
5978 * thread.c
5979 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5980 exception in get_frame_id.
5981
0fa7617d
TT
59822020-04-20 Tom Tromey <tromey@adacore.com>
5983
5984 * python/python.c (struct gdbpy_event): Mark move constructor as
5985 noexcept.
5986 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5987 constructor as noexcept.
5988 * completer.h (struct completion_result): Mark move constructor as
5989 noexcept.
5990 * completer.c (completion_result::completion_result): Use
5991 initialization style. Don't call reset_match_list.
5992
ad23bda0
MS
59932020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5994
5995 * MAINTAINERS (Write After Approval): Add myself.
5996
45e1f031
TT
59972020-04-18 Tom Tromey <tom@tromey.com>
5998
5999 * windows-tdep.c (init_w32_command_list)
6000 (w32_prefix_command_valid): Restore.
6001 (_initialize_windows_tdep): Call init_w32_command_list.
6002
08feed99
TT
60032020-04-18 Tom Tromey <tom@tromey.com>
6004
6005 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6006 * value.c (value_fn_field): Update.
6007 * valops.c (find_function_in_inferior)
6008 (value_allocate_space_in_inferior): Update.
6009 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6010 Update.
6011 * tui/tui-source.c (tui_source_window::set_contents): Update.
6012 * symtab.c (lookup_global_or_static_symbol)
6013 (find_function_start_sal_1, skip_prologue_sal)
6014 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6015 * symmisc.c (dump_msymbols, dump_symtab_1)
6016 (maintenance_print_one_line_table): Update.
6017 * symfile.c (init_entry_point_info, section_is_mapped)
6018 (list_overlays_command, simple_read_overlay_table)
6019 (simple_overlay_update_1): Update.
6020 * stap-probe.c (handle_stap_probe): Update.
6021 * stabsread.c (dbx_init_float_type, define_symbol)
6022 (read_one_struct_field, read_enum_type, read_range_type): Update.
6023 * source.c (info_line_command): Update.
6024 * python/python.c (gdbpy_source_objfile_script)
6025 (gdbpy_execute_objfile_script): Update.
6026 * python/py-type.c (save_objfile_types): Update.
6027 * python/py-objfile.c (py_free_objfile): Update.
6028 * python/py-inferior.c (python_new_objfile): Update.
6029 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6030 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6031 (maintenance_check_psymtabs): Update.
6032 * printcmd.c (info_address_command): Update.
6033 * objfiles.h (struct objfile) <arch>: New method, from
6034 get_objfile_arch.
6035 (get_objfile_arch): Don't declare.
6036 * objfiles.c (get_objfile_arch): Remove.
6037 (filter_overlapping_sections): Update.
6038 * minsyms.c (msymbol_is_function): Update.
6039 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6040 (output_nondebug_symbol): Update.
6041 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6042 (mdebug_expand_psymtab): Update.
6043 * machoread.c (macho_add_oso_symfile): Update.
6044 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6045 Update.
6046 * linux-fork.c (checkpoint_command): Update.
6047 * linespec.c (convert_linespec_to_sals): Update.
6048 * jit.c (finalize_symtab): Update.
6049 * infrun.c (insert_exception_resume_from_probe): Update.
6050 * ia64-tdep.c (ia64_find_unwind_table): Update.
6051 * hppa-tdep.c (internalize_unwinds): Update.
6052 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6053 Update.
6054 * gcore.c (call_target_sbrk): Update.
6055 * elfread.c (record_minimal_symbol, elf_symtab_read)
6056 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6057 (elf_gnu_ifunc_resolve_by_got): Update.
6058 * dwarf2/read.c (create_addrmap_from_index)
6059 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6060 (read_debug_names_from_section)
6061 (process_psymtab_comp_unit_reader, add_partial_symbol)
6062 (add_partial_subprogram, process_full_comp_unit)
6063 (read_file_scope, read_func_scope, read_lexical_block_scope)
6064 (read_call_site_scope, dwarf2_ranges_read)
6065 (dwarf2_record_block_ranges, dwarf2_add_field)
6066 (mark_common_block_symbol_computed, read_tag_pointer_type)
6067 (read_tag_string_type, dwarf2_init_float_type)
6068 (dwarf2_init_complex_target_type, read_base_type)
6069 (partial_die_info::read, partial_die_info::read)
6070 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6071 (dwarf2_fetch_die_loc_sect_off): Update.
6072 * dwarf2/loc.c (dwarf2_find_location_expression)
6073 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6074 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6075 (dwarf2_loc_desc_get_symbol_read_needs)
6076 (locexpr_describe_location_piece, locexpr_describe_location_1)
6077 (loclist_describe_location): Update.
6078 * dwarf2/index-write.c (write_debug_names): Update.
6079 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6080 * dtrace-probe.c (dtrace_process_dof): Update.
6081 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6082 (process_one_symbol): Update.
6083 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6084 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6085 (coff_read_enum_type): Update.
6086 * cli/cli-cmds.c (edit_command, list_command): Update.
6087 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6088 * breakpoint.c (create_overlay_event_breakpoint)
6089 (create_longjmp_master_breakpoint)
6090 (create_std_terminate_master_breakpoint)
6091 (create_exception_master_breakpoint, get_sal_arch): Update.
6092 * block.c (block_gdbarch): Update.
6093 * annotate.c (annotate_source_line): Update.
6094
0743fc83
TT
60952020-04-17 Tom Tromey <tromey@adacore.com>
6096
6097 * auto-load.c (show_auto_load_cmd): Remove.
6098 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6099 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6100 (maintenance_print_arc_command): Remove.
6101 * tui/tui-win.c (tui_command): Remove.
6102 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6103 * tui/tui-layout.c (tui_layout_command): Remove.
6104 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6105 * python/python.c (user_set_python, user_show_python): Remove.
6106 (_initialize_python): Use add_basic_prefix_cmd,
6107 add_show_prefix_cmd.
6108 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6109 (install_gdb_commands): Use add_basic_prefix_cmd,
6110 add_show_prefix_cmd.
6111 (info_guile_command): Remove.
6112 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6113 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6114 add_show_prefix_cmd.
6115 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6116 Remove do_set and do_show parameters.
6117 * cli/cli-style.c (set_style, show_style): Remove.
6118 (_initialize_cli_style): Use add_basic_prefix_cmd,
6119 add_show_prefix_cmd.
6120 (cli_style_option::add_setshow_commands): Remove do_set and
6121 do_show parameters.
6122 (cli_style_option::add_setshow_commands): Use
6123 add_basic_prefix_cmd, add_show_prefix_cmd.
6124 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6125 (set_style_name): Remove.
6126 * cli/cli-dump.c (dump_command, append_command): Remove.
6127 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6128 (tekhex_dump_command, binary_dump_command)
6129 (binary_append_command): Remove.
6130 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6131 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6132 (init_w32_command_list): Remove; move into ...
6133 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6134 * valprint.c (set_print, show_print, set_print_raw)
6135 (show_print_raw): Remove.
6136 (_initialize_valprint): Use add_basic_prefix_cmd,
6137 add_show_prefix_cmd.
6138 * typeprint.c (set_print_type, show_print_type): Remove.
6139 (_initialize_typeprint): Use add_basic_prefix_cmd,
6140 add_show_prefix_cmd.
6141 * record.c (set_record_command, show_record_command): Remove.
6142 (_initialize_record): Use add_basic_prefix_cmd,
6143 add_show_prefix_cmd.
6144 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6145 add_show_prefix_cmd.
6146 (info_command, show_command, set_debug, show_debug): Remove.
6147 * top.h (set_history, show_history): Don't declare.
6148 * top.c (set_history, show_history): Remove.
6149 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6150 (unset_tdesc_cmd): Remove.
6151 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6152 add_show_prefix_cmd.
6153 * symtab.c (info_module_command): Remove.
6154 (_initialize_symtab): Use add_basic_prefix_cmd.
6155 * symfile.c (overlay_command): Remove.
6156 (_initialize_symfile): Use add_basic_prefix_cmd.
6157 * sparc64-tdep.c (info_adi_command): Remove.
6158 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6159 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6160 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6161 add_show_prefix_cmd.
6162 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6163 (_initialize_serial): Use add_basic_prefix_cmd,
6164 add_show_prefix_cmd.
6165 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6166 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6167 add_show_prefix_cmd.
6168 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6169 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6170 add_show_prefix_cmd.
6171 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6172 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6173 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6174 add_show_prefix_cmd.
6175 * remote.c (remote_command, set_remote_cmd): Remove.
6176 (_initialize_remote): Use add_basic_prefix_cmd.
6177 * record-full.c (set_record_full_command)
6178 (show_record_full_command): Remove.
6179 (_initialize_record_full): Use add_basic_prefix_cmd,
6180 add_show_prefix_cmd.
6181 * record-btrace.c (cmd_set_record_btrace)
6182 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6183 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6184 (cmd_show_record_btrace_pt): Remove.
6185 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6186 add_show_prefix_cmd.
6187 * ravenscar-thread.c (set_ravenscar_command)
6188 (show_ravenscar_command): Remove.
6189 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6190 add_show_prefix_cmd.
6191 * mips-tdep.c (show_mips_command, set_mips_command)
6192 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6193 add_show_prefix_cmd.
6194 * maint.c (maintenance_command, maintenance_info_command)
6195 (maintenance_check_command, maintenance_print_command)
6196 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6197 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6198 add_show_prefix_cmd.
6199 (show_per_command_cmd): Remove.
6200 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6201 Remove.
6202 (maintenance_show_test_settings_cmd): Remove.
6203 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6204 add_show_prefix_cmd.
6205 * maint-test-options.c (maintenance_test_options_command):
6206 Remove.
6207 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6208 * macrocmd.c (macro_command): Remove
6209 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6210 * language.c (set_check, show_check): Remove.
6211 (_initialize_language): Use add_basic_prefix_cmd,
6212 add_show_prefix_cmd.
6213 * infcmd.c (unset_command): Remove.
6214 (_initialize_infcmd): Use add_basic_prefix_cmd.
6215 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6216 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6217 add_show_prefix_cmd.
6218 * go32-nat.c (go32_info_dos_command): Remove.
6219 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6220 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6221 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6222 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6223 (_initialize_frame): Use add_basic_prefix_cmd,
6224 add_show_prefix_cmd.
6225 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6226 (_initialize_dcache): Use add_basic_prefix_cmd,
6227 add_show_prefix_cmd.
6228 * cp-support.c (maint_cplus_command): Remove.
6229 (_initialize_cp_support): Use add_basic_prefix_cmd.
6230 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6231 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6232 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6233 add_basic_prefix_cmd, add_show_prefix_cmd.
6234 * breakpoint.c (save_command): Remove.
6235 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6236 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6237 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6238 add_show_prefix_cmd.
6239 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6240 (set_ada_command, show_ada_command): Remove.
6241 (_initialize_ada_language): Use add_basic_prefix_cmd,
6242 add_show_prefix_cmd.
6243 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6244
3557f442
KR
62452020-04-16 Kamil Rytarowski <n54@gmx.com>
6246
6247 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6248 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6249
16197208
SM
62502020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6253 warning messages.
6254
00ac85d3
SM
62552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6256
6257 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6258 import table is not at beginning of .idata section.
6259
381ce63f
PA
62602020-04-16 Pedro Alves <palves@redhat.com>
6261
6262 * inferior.c (delete_inferior): Use delete operator directly
6263 instead of delete_program_space.
6264 * progspace.c (add_program_space): New, factored out from
6265 program_space::program_space.
6266 (remove_program_space): New, factored out from
6267 delete_program_space.
6268 (program_space::program_space): Remove intro comment. Rewrite.
6269 (program_space::~program_space): Remove intro comment. Call
6270 remove_program_space.
6271 (delete_program_space): Delete.
6272 * progspace.h (program_space::program_space): Make explicit. Move
6273 intro comment here, adjusted.
6274 (program_space::~program_space): Move intro comment here,
6275 adjusted.
6276 (delete_program_space): Remove.
6277
a010605f
TT
62782020-04-16 Tom Tromey <tromey@adacore.com>
6279
6280 * windows-nat.c (windows_nat::handle_access_violation): New
6281 function.
6282 * nat/windows-nat.h (handle_access_violation): Declare.
6283 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6284 windows-nat.c. Call handle_access_violation.
6285
efba5c23
TV
62862020-04-16 Tom de Vries <tdevries@suse.de>
6287
6288 PR symtab/25791
6289 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6290 CUs without psymtab.
6291
97ed802d
KB
62922020-04-16 Kevin Buettner <kevinb@redhat.com>
6293
6294 * python/python.c (do_start_initialization): Don't call
6295 PyEval_InitThreads for Python 3.9 and beyond.
6296
c7d64809
KR
62972020-04-15 Kamil Rytarowski <n54@gmx.com>
6298
6299 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6300 thread functions.
6301 (obsd_nat_target::wait): Likewise.
6302
ce127a96
TT
63032020-04-15 Tom Tromey <tromey@adacore.com>
6304
6305 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6306 (DEBUG_EXCEPT): Use debug_printf.
6307
99f1bc6a
AB
63082020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * completer.c (class completion_tracker::completion_hash_entry)
6311 <hash_name>: New member function.
6312 (completion_tracker::discard_completions): New callback to hash a
6313 completion_hash_entry, pass this to htab_create_alloc.
6314
a0e9b532
JT
63152016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6316
6317 * windows-nat.c (windows_make_so): Warn rather than stopping with
6318 an error if realpath() fails.
6319
06ca5dd4
KR
63202020-04-14 Kamil Rytarowski <n54@gmx.com>
6321
6322 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6323 (nbsd_nat_target::info_proc): Add do_status.
6324
194d088f
TV
63252020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6326 Tom de Vries <tdevries@suse.de>
6327
6328 PR symtab/25718
6329 * psympriv.h (struct partial_symtab::read_symtab)
6330 (struct partial_symtab::expand_psymtab)
6331 (struct partial_symtab::read_dependencies): Update comments.
6332 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6333 read_symtab for includer.
6334 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6335 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6336 (struct dwarf2_include_psymtab::m_readin): Remove.
6337 (struct dwarf2_include_psymtab::includer): New member function.
6338 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6339
c1a66c06
TV
63402020-04-14 Tom de Vries <tdevries@suse.de>
6341
6342 PR symtab/25720
6343 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6344 with NULL symbol_matcher and lookup_name.
6345 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6346 and lookup_name.
6347 * dwarf2/read.c (dw2_expand_symtabs_matching)
6348 (dw2_debug_names_expand_symtabs_matching): Same.
6349 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6350 Make lookup_name a pointer. Update comment.
6351 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6352 lookup_name being a pointer.
6353 * symfile.c (expand_symtabs_matching): Same.
6354 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6355 * linespec.c (iterate_over_all_matching_symtabs): Same.
6356
400b5eca
TT
63572020-04-13 Tom Tromey <tom@tromey.com>
6358
6359 * run-on-main-thread.c: Update include.
6360 * unittests/main-thread-selftests.c: Update include.
6361 * tui/tui-win.c: Update include.
6362 * tui/tui-io.c: Update include.
6363 * tui/tui-interp.c: Update include.
6364 * tui/tui-hooks.c: Update include.
6365 * top.h: Update include.
6366 * top.c: Update include.
6367 * ser-base.c: Update include.
6368 * remote.c: Update include.
6369 * remote-notif.c: Update include.
6370 * remote-fileio.c: Update include.
6371 * record-full.c: Update include.
6372 * record-btrace.c: Update include.
6373 * python/python.c: Update include.
6374 * posix-hdep.c: Update include.
6375 * mingw-hdep.c: Update include.
6376 * mi/mi-main.c: Update include.
6377 * mi/mi-interp.c: Update include.
6378 * main.c: Update include.
6379 * linux-nat.c: Update include.
6380 * interps.c: Update include.
6381 * infrun.c: Update include.
6382 * inf-loop.c: Update include.
6383 * event-top.c: Update include.
6384 * event-loop.c: Move to ../gdbsupport/.
6385 * event-loop.h: Move to ../gdbsupport/.
6386 * async-event.h: Update include.
6387 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6388
93b54c8e
TT
63892020-04-13 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-win.c: Include async-event.h.
6392 * remote.c: Include async-event.h.
6393 * remote-notif.c: Include async-event.h.
6394 * record-full.c: Include async-event.h.
6395 * record-btrace.c: Include async-event.h.
6396 * infrun.c: Include async-event.h.
6397 * event-top.c: Include async-event.h.
6398 * event-loop.h: Move some declarations to async-event.h.
6399 * event-loop.c: Don't include ser-event.h or top.h. Move some
6400 code to async-event.c.
6401 * async-event.h: New file.
6402 * async-event.c: New file.
6403 * Makefile.in (COMMON_SFILES): Add async-event.c.
6404 (HFILES_NO_SRCDIR): Add async-event.h.
6405
c1cd3163
TT
64062020-04-13 Tom Tromey <tom@tromey.com>
6407
6408 * utils.c (flush_streams): New function.
6409 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6410
29f2bf4f
TT
64112020-04-13 Tom Tromey <tom@tromey.com>
6412
6413 * event-loop.c (handle_file_event): Use warning, not
6414 printf_unfiltered.
6415
98029d02
TT
64162020-04-13 Tom Tromey <tom@tromey.com>
6417
6418 * event-loop.c: Include <chrono>.
6419
06cc9596
TT
64202020-04-13 Tom Tromey <tom@tromey.com>
6421
6422 * gdb_select.h: Move to ../gdbsupport/.
6423 * event-loop.c: Update include path.
6424 * top.c: Update include path.
6425 * ser-base.c: Update include path.
6426 * ui-file.c: Update include path.
6427 * ser-tcp.c: Update include path.
6428 * guile/scm-ports.c: Update include path.
6429 * posix-hdep.c: Update include path.
6430 * ser-unix.c: Update include path.
6431 * gdb_usleep.c: Update include path.
6432 * mingw-hdep.c: Update include path.
6433 * inflow.c: Update include path.
6434 * infrun.c: Update include path.
6435 * event-top.c: Update include path.
6436
8ae8e197
TT
64372020-04-13 Tom Tromey <tom@tromey.com>
6438
6439 * configure: Rebuild.
6440 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6441
58cf28e8
TT
64422020-04-13 Tom Tromey <tom@tromey.com>
6443
6444 * event-loop.h (start_event_loop): Don't declare.
6445 * event-loop.c (start_event_loop): Move...
6446 * main.c (start_event_loop): ...here. Now static.
6447
b7f999ae
SDJ
64482020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6449
6450 * MAINTAINERS: Update my email address.
6451
1085dfd4
KR
64522020-04-12 Kamil Rytarowski <n54@gmx.com>
6453
6454 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6455 IP_ALL.
6456
49d1d1f5
KR
64572020-04-12 Kamil Rytarowski <n54@gmx.com>
6458
6459 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6460 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6461
b4848d2a
KR
64622020-04-12 Kamil Rytarowski <n54@gmx.com>
6463
6464 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6465 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6466
51c133d5
KR
64672020-04-12 Kamil Rytarowski <n54@gmx.com>
6468
6469 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6470
54b8cbd0
KR
64712020-04-11 Kamil Rytarowski <n54@gmx.com>
6472
6473 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6474 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6475 (nbsd_nat_target::info_proc): New functions.
6476 * nbsd-nat.c (kinfo_get_vmmap): New function.
6477 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6478 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6479 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6480 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6481 functions.
6482 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6483 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6484 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6485 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6486 (KINFO_VME_FLAG_GROWS_DOWN): New.
6487
cf83625d
AS
64882020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6489
6490 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6491 bit shift.
6492
0c4311ab
TT
64932020-04-10 Tom Tromey <tromey@adacore.com>
6494
6495 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6496
3e65b3e9
TT
64972020-04-10 Tom Tromey <tromey@adacore.com>
6498
6499 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6500 separate debug files.
6501
13302e95
HD
65022020-04-10 Hannes Domani <ssbssa@yahoo.de>
6503
6504 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6505 Move to...
6506 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6507 ... here.
6508 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6509 Check for STATUS_WX86_BREAKPOINT.
6510 (windows_nat_target::wait): Same.
6511
bdfc1e8a
TV
65122020-04-10 Tom de Vries <tdevries@suse.de>
6513
6514 PR cli/25808
6515 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6516
f4460aec
SM
65172020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6520 (Write After Approval): Remove Tom de Vries.
6521
a25198bb
BE
65222020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6523
6524 revert partially:
6525 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6526
aac66a4c
SM
6527 * buildsym.c (record_line): Fix undefined behavior and preserve
6528 lines at eof.
a25198bb 6529
206c98a6
KR
65302020-04-09 Kamil Rytarowski <n54@gmx.com>
6531
6532 * auxv.h (svr4_auxv_parse): New.
6533 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6534 and generic_auxv_parse.
6535 (svr4_auxv_parse): Add.
6536 * obsd-tdep.c: Include "auxv.h".
6537 (obsd_auxv_parse): Remove.
6538 (obsd_init_abi): Remove comment.
6539 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6540 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6541 * nbsd-tdep.c: Include "auxv.h".
6542 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6543
71fbdbaf
TT
65442020-04-08 Tom Tromey <tromey@adacore.com>
6545
6546 * nat/windows-nat.h (last_wait_event): Don't declare.
6547 (wait_for_debug_event): Update comment.
6548 * nat/windows-nat.c (last_wait_event): Now static.
6549
2c1d95e8
TT
65502020-04-08 Tom Tromey <tromey@adacore.com>
6551
6552 * windows-nat.c (wait_for_debug_event): Move to
6553 nat/windows-nat.c.
6554 * nat/windows-nat.h (wait_for_debug_event): Declare.
6555 * nat/windows-nat.c (wait_for_debug_event): Move from
6556 windows-nat.c. No longer static.
6557
d2977bc4
TT
65582020-04-08 Tom Tromey <tromey@adacore.com>
6559
6560 * windows-nat.c (get_windows_debug_event): Use
6561 fetch_pending_stop.
6562 * nat/windows-nat.h (fetch_pending_stop): Declare.
6563 * nat/windows-nat.c (fetch_pending_stop): New function.
6564
e758e19c
TT
65652020-04-08 Tom Tromey <tromey@adacore.com>
6566
6567 * windows-nat.c (windows_continue): Use matching_pending_stop and
6568 continue_last_debug_event.
6569 * nat/windows-nat.h (matching_pending_stop)
6570 (continue_last_debug_event): Declare.
6571 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6572 (matching_pending_stop, continue_last_debug_event): New
6573 functions.
6574
8d30e395
TT
65752020-04-08 Tom Tromey <tromey@adacore.com>
6576
6577 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6578 (handle_exception_result): Move to nat/windows-nat.h.
6579 (DEBUG_EXCEPTION_SIMPLE): Remove.
6580 (windows_nat::handle_ms_vc_exception): New function.
6581 (handle_exception): Move to nat/windows-nat.c.
6582 (get_windows_debug_event): Update.
6583 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6584 nat/windows-nat.c.
6585 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6586 (handle_exception_result): Move from windows-nat.c.
6587 (handle_exception): Declare.
6588 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6589 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6590 windows-nat.c.
6591
29de418d
TT
65922020-04-08 Tom Tromey <tromey@adacore.com>
6593
6594 * windows-nat.c (exception_count, event_count): Remove.
6595 (handle_exception, get_windows_debug_event)
6596 (do_initial_windows_stuff): Update.
6597
a816ba18
TT
65982020-04-08 Tom Tromey <tromey@adacore.com>
6599
6600 * windows-nat.c (windows_nat::handle_load_dll)
6601 (windows_nat::handle_unload_dll): Rename. No longer static.
6602 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6603 Declare.
6604
a00caa12
TT
66052020-04-08 Tom Tromey <tromey@adacore.com>
6606
6607 * complaints.h (stop_whining): Declare at top-level.
6608 (complaint): Don't declare stop_whining.
6609
d41b524f
TT
66102020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * windows-nat.c (windows_nat::handle_output_debug_string):
6613 Rename. No longer static.
6614 * nat/windows-nat.h (handle_output_debug_string): Declare.
6615
3c76026d
TT
66162020-04-08 Tom Tromey <tromey@adacore.com>
6617
6618 * windows-nat.c (current_process_handle, current_process_id)
6619 (main_thread_id, last_sig, current_event, last_wait_event)
6620 (current_windows_thread, desired_stop_thread_id, pending_stops)
6621 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6622 (display_selectors, fake_create_process)
6623 (get_windows_debug_event): Update.
6624 * nat/windows-nat.h (current_process_handle, current_process_id)
6625 (main_thread_id, last_sig, current_event, last_wait_event)
6626 (current_windows_thread, desired_stop_thread_id, pending_stops)
6627 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6628 * nat/windows-nat.c (current_process_handle, current_process_id)
6629 (main_thread_id, last_sig, current_event, last_wait_event)
6630 (current_windows_thread, desired_stop_thread_id, pending_stops)
6631 (siginfo_er): New globals. Move from windows-nat.c.
6632
9d8679cc
TT
66332020-04-08 Tom Tromey <tromey@adacore.com>
6634
6635 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6636 (handle_load_dll): Update.
6637 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6638
28688adf
TT
66392020-04-08 Tom Tromey <tromey@adacore.com>
6640
6641 * windows-nat.c (enum thread_disposition_type): Move to
6642 nat/windows-nat.h.
6643 (windows_nat::thread_rec): Rename from thread_rec. No longer
6644 static.
6645 (windows_add_thread, windows_nat_target::fetch_registers)
6646 (windows_nat_target::store_registers, handle_exception)
6647 (windows_nat_target::resume, get_windows_debug_event)
6648 (windows_nat_target::get_tib_address)
6649 (windows_nat_target::thread_name)
6650 (windows_nat_target::thread_alive): Update.
6651 * nat/windows-nat.h (enum thread_disposition_type): Move from
6652 windows-nat.c.
6653 (thread_rec): Declare.
6654
4834dad0
TT
66552020-04-08 Tom Tromey <tromey@adacore.com>
6656
6657 * windows-nat.c: Add "using namespace".
6658 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6659 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6660
65bafd5b
TT
66612020-04-08 Tom Tromey <tromey@adacore.com>
6662
6663 * nat/windows-nat.h (struct windows_thread_info): Declare
6664 destructor.
6665 * nat/windows-nat.c (~windows_thread_info): New.
6666
0a4afda3
TT
66672020-04-08 Tom Tromey <tromey@adacore.com>
6668
6669 PR gdb/22992
6670 * windows-nat.c (current_event): Update comment.
6671 (last_wait_event, desired_stop_thread_id): New globals.
6672 (struct pending_stop): New.
6673 (pending_stops): New global.
6674 (windows_nat_target) <stopped_by_sw_breakpoint>
6675 <supports_stopped_by_sw_breakpoint>: New methods.
6676 (windows_fetch_one_register): Add assertions. Adjust PC.
6677 (windows_continue): Handle pending stops. Suspend other threads
6678 when stepping. Use last_wait_event
6679 (wait_for_debug_event): New function.
6680 (get_windows_debug_event): Use wait_for_debug_event. Handle
6681 pending stops. Queue spurious stops.
6682 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6683 (windows_nat_target::kill): Use wait_for_debug_event.
6684 * nat/windows-nat.h (struct windows_thread_info)
6685 <stopped_at_software_breakpoint>: New field.
6686 * nat/windows-nat.c (windows_thread_info::resume): Clear
6687 stopped_at_software_breakpoint.
6688
8e61ebec
TT
66892020-04-08 Tom Tromey <tromey@adacore.com>
6690
6691 * windows-nat.c (enum thread_disposition_type): New.
6692 (thread_rec): Replace "get_context" parameter with "disposition";
6693 change type.
6694 (windows_add_thread, windows_nat_target::fetch_registers)
6695 (windows_nat_target::store_registers, handle_exception)
6696 (windows_nat_target::resume, get_windows_debug_event)
6697 (windows_nat_target::get_tib_address)
6698 (windows_nat_target::thread_name)
6699 (windows_nat_target::thread_alive): Update.
6700
98a03287
TT
67012020-04-08 Tom Tromey <tromey@adacore.com>
6702
6703 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6704 (windows_continue): Use windows_continue::resume.
6705 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6706 resume>: Declare new methods.
6707 * nat/windows-nat.c: New file.
6708 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6709
7c7411bc
TT
67102020-04-08 Tom Tromey <tromey@adacore.com>
6711
6712 * windows-nat.c (windows_add_thread, windows_delete_thread)
6713 (windows_nat_target::fetch_registers)
6714 (windows_nat_target::store_registers, fake_create_process)
6715 (windows_nat_target::resume, windows_nat_target::resume)
6716 (get_windows_debug_event, windows_nat_target::wait)
6717 (windows_nat_target::pid_to_str)
6718 (windows_nat_target::get_tib_address)
6719 (windows_nat_target::get_ada_task_ptid)
6720 (windows_nat_target::thread_name)
6721 (windows_nat_target::thread_alive): Use lwp, not tid.
6722
2950fdf7
TT
67232020-04-08 Tom Tromey <tromey@adacore.com>
6724
6725 * windows-nat.c (handle_exception)
6726 (windows_nat_target::thread_name): Update.
6727 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6728 <name>: Now unique_xmalloc_ptr.
6729
62fe396b
TT
67302020-04-08 Tom Tromey <tromey@adacore.com>
6731
6732 * windows-nat.c (thread_rec)
6733 (windows_nat_target::fetch_registers): Update.
6734 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6735 Update comment.
6736 <debug_registers_changed, reload_context>: Now bool.
6737
e9534bd2
TT
67382020-04-08 Tom Tromey <tromey@adacore.com>
6739
6740 * windows-nat.c (windows_add_thread): Use new.
6741 (windows_init_thread_list, windows_delete_thread): Use delete.
6742 (get_windows_debug_event): Update.
6743 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6744 destructor, and initializers.
6745
ae1f8880
TT
67462020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c (struct windows_thread_info): Remove.
6749 * nat/windows-nat.h: New file.
6750
55a1e039
TT
67512020-04-08 Tom Tromey <tromey@adacore.com>
6752
6753 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6754 (thread_rec, windows_add_thread, windows_delete_thread)
6755 (windows_continue): Update.
6756
93366324
TT
67572020-04-08 Tom Tromey <tromey@adacore.com>
6758
6759 * windows-nat.c (struct windows_thread_info): Remove typedef.
6760 (thread_head): Remove.
6761 (thread_list): New global.
6762 (thread_rec, windows_add_thread, windows_init_thread_list)
6763 (windows_delete_thread, windows_continue): Update.
6764
0f2265e2
SM
67652020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6766
6767 * windows-tdep.h (windows_init_abi): Add comment.
6768 (cygwin_init_abi): New declaration.
6769 * windows-tdep.c: Split signal enumeration in two, one for
6770 Windows and one for Cygwin.
6771 (windows_gdb_signal_to_target): Only deal with signal of the
6772 Windows OS ABI.
6773 (cygwin_gdb_signal_to_target): New function.
6774 (windows_init_abi): Rename to windows_init_abi_common, don't set
6775 gdb_signal_to_target gdbarch method. Add new new function with
6776 this name.
6777 (cygwin_init_abi): New function.
6778 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6779 comment. Don't call windows_init_abi.
6780 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6781 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6782 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6783 i386_windows_init_abi_common, don't call windows_init_abi. Add
6784 a new function of this name.
6785 (i386_cygwin_init_abi): New function.
6786 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6787 OS ABI Cygwin.
6788
3810f182
SM
67892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6792 parameter.c.
6793 (dwarf2_read_gdb_index): Update.
6794
063f8e80
KR
67952020-04-07 Kamil Rytarowski <n54@gmx.com>
6796
6797 * nbsd-tdep.c: Include "objfiles.h".
6798 (nbsd_skip_solib_resolver): New.
6799 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6800
85a9510c 68012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6802
6803 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6804 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6805 with DW_LLE_base_addressx are being emitted in DWARFv5.
6806 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6807 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6808 unsigned integer.
6809
9fc3eaae 68102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6811
6812 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6813 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6814 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6815 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6816 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6817 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6818 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6819
6820
41144253 68212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6822
6823 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6824 (read_loclist_index): New function definition.
6825 (lookup_loclist_base): New function definition.
6826 (read_loclist_header): New function definition.
6827 (dwarf2_cu): Add loclist_base and loclist_header field.
6828 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6829 (read_full_die_1): Read the value of DW_AT_loclists_base.
6830 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6831 (read_attribute_value): Handle DW_FORM_loclistx.
6832 (skip_one_die): Handle DW_FORM_loclistx.
6833 (loclist_header): New structure declaration.
6834 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6835
9f4e76a4
SM
68362020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6839 constructor. Remove `addr` parameter from other constructor and
6840 add `per_cu` parameter.
6841 * dwarf2/read.c (create_partial_symtab): Update.
6842
25c11aca
TV
68432020-04-07 Tom de Vries <tdevries@suse.de>
6844
6845 PR symtab/25796
6846 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6847 (partial_die_info::fixup): Inherit has_const_value.
6848
5707e24b
TV
68492020-04-07 Tom de Vries <tdevries@suse.de>
6850
6851 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6852 symbols without address.
6853
05f00e22
KR
68542020-04-06 Kamil Rytarowski <n54@gmx.com>
6855
6856 * nbsd-nat.h (struct thread_info): Add forward declaration.
6857 (nbsd_nat_target::thread_alive): Add.
6858 (nbsd_nat_target::thread_name): Likewise.
6859 (nbsd_nat_target::update_thread_list): Likewise.
6860 (update_thread_list::post_attach): Likewise.
6861 (post_attach::pid_to_str): Likewise.
6862 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6863 (nbsd_thread_lister): Add.
6864 (nbsd_nat_target::thread_alive): Likewise.
6865 (nbsd_nat_target::thread_name): Likewise.
6866 (nbsd_add_threads): Likewise.
6867 (update_thread_list::post_attach): Likewise.
6868 (nbsd_nat_target::update_thread_list): Likewise.
6869 (post_attach::pid_to_str): Likewise.
6870
6ee448cc
TT
68712020-04-06 Tom Tromey <tromey@adacore.com>
6872
6873 * ada-valprint.c (print_variant_part): Extract the variant field.
6874 (print_field_values): Use the field as the outer value when
6875 recursing.
6876
dea34e8c
TT
68772020-04-06 Tom Tromey <tromey@adacore.com>
6878
6879 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6880 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6881 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6882 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6883 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6884
93689ce9
TT
68852020-04-06 Tom Tromey <tromey@adacore.com>
6886
6887 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6888 TYPE_CODE_ERROR.
6889
79743962
KR
68902020-04-06 Kamil Rytarowski <n54@gmx.com>
6891
6892 * nbsd-tdep.c: Include "gdbarch.h".
6893 Define enum with NetBSD signal numbers.
6894 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6895 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6896 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6897 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6898 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6899 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6900 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6901 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6902 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6903 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6904 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6905 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6906
9e7c9a03
HD
69072020-04-03 Hannes Domani <ssbssa@yahoo.de>
6908
6909 PR gdb/25325
6910 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6911
d9e49b61
TT
69122020-04-03 Tom Tromey <tromey@adacore.com>
6913
6914 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6915 Read constant block.
6916
e0fc5c3f
SM
69172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6918
6919 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6920 (gdb_bfd_get_full_section_contents): New declaration.
6921 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6922 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6923 gdb_bfd_get_full_section_contents.
6924
e2ff18a0
SM
69252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6926
6927 * exec.c (build_section_table): Replace internal_error with
6928 gdb_assert.
6929 (section_table_xfer_memory_partial): Likewise.
6930 * mdebugread.c (parse_partial_symbols): Likewise.
6931 * psymtab.c (lookup_partial_symbol): Likewise.
6932 * utils.c (wrap_here): Likewise.
6933
0830d301
TT
69342020-04-02 Tom Tromey <tromey@adacore.com>
6935
6936 * f-lang.c (build_fortran_types): Use arch_type to initialize
6937 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6938
e7da7f8f
TT
69392020-04-02 Tom Tromey <tromey@adacore.com>
6940
6941 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6942 of attributes.
6943
c90d28ac
AB
69442020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6945 Bernd Edlinger <bernd.edlinger@hotmail.de>
6946 Tom Tromey <tromey@adacore.com>
6947
6948 * buildsym.c (buildsym_compunit::record_line): Remove
6949 deduplication code.
6950
1aa98955
TV
69512020-04-02 Tom de Vries <tdevries@suse.de>
6952
6953 PR ada/24671
6954 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6955
d3214198
TV
69562020-04-02 Tom de Vries <tdevries@suse.de>
6957
6958 * dwarf2/read.c (dwarf2_gdb_index_functions,
6959 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6960 NULL.
6961 * psymtab.c (psym_lookup_global_symbol_language): New function.
6962 (psym_functions): Init psym_lookup_global_symbol_language with
6963 psym_lookup_global_symbol_language.
6964 * symfile-debug.c (debug_sym_quick_functions): Init
6965 lookup_global_symbol_language with NULL.
6966 * symfile.c (set_initial_language): Remove fixme comment.
6967 * symfile.h (struct quick_symbol_functions): Add
6968 lookup_global_symbol_language.
6969 * symtab.c (find_quick_global_symbol_language): New function.
6970 (find_main_name): Use find_quick_global_symbol_language.
6971
2836752f
SM
69722020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6973
6974 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6975
64dc2d4b
BE
69762020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6977
6978 * buildsym.c (record_line): Fix undefined behavior and preserve
6979 lines at eof.
6980
bbe3dc41
BE
69812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6982
6983 * buildsym.c (record_line): Fix the resizing condition.
6984
6b4a335b
TT
69852020-04-01 Tom Tromey <tom@tromey.com>
6986
6987 * value.h (value_literal_complex): Add comment.
6988 * valops.c (value_literal_complex): Refer to value.h.
6989
3638a098
TT
69902020-04-01 Tom Tromey <tom@tromey.com>
6991
6992 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6993 (scalar_type): New rule, from typebase.
6994 (typebase): Use scalar_type. Recognize complex types.
6995 (field_name): Handle FLOAT_KEYWORD.
6996 (ident_tokens): Add _Complex and __complex__.
6997
c34e8714
TT
69982020-04-01 Tom Tromey <tom@tromey.com>
6999
7000 PR exp/25299:
7001 * valarith.c (promotion_type, complex_binop): New functions.
7002 (scalar_binop): Handle complex numbers. Use promotion_type.
7003 (value_pos, value_neg, value_complement): Handle complex numbers.
7004
fa649bb7
TT
70052020-04-01 Tom Tromey <tom@tromey.com>
7006
7007 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7008 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7009 (parse_number): Handle complex numbers.
7010
981c08ce
TT
70112020-04-01 Tom Tromey <tom@tromey.com>
7012
7013 * c-valprint.c (c_decorations): Change complex suffix to "i".
7014
4c99290d
TT
70152020-04-01 Tom Tromey <tom@tromey.com>
7016
7017 * valprint.c (generic_value_print_complex): Use accessors.
7018 * value.h (value_real_part, value_imaginary_part): Declare.
7019 * valops.c (value_real_part, value_imaginary_part): New
7020 functions.
7021 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7022
5b930b45
TT
70232020-04-01 Tom Tromey <tom@tromey.com>
7024
7025 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7026 (read_range_type): Update.
7027 * mdebugread.c (basic_type): Update.
7028 * go-lang.c (build_go_types): Use init_complex_type.
7029 * gdbtypes.h (struct main_type) <complex_type>: New member.
7030 (init_complex_type): Update.
7031 (arch_complex_type): Don't declare.
7032 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7033 Make name if none given. Use alloc_type_copy. Look for cached
7034 complex type.
7035 (arch_complex_type): Remove.
7036 (gdbtypes_post_init): Use init_complex_type.
7037 * f-lang.c (build_fortran_types): Use init_complex_type.
7038 * dwarf2/read.c (read_base_type): Update.
7039 * d-lang.c (build_d_types): Use init_complex_type.
7040 * ctfread.c (read_base_type): Update.
7041
53cccef1
TBA
70422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7043
7044 * infrun.c (stop_all_threads): Update assertion, plus when
7045 stopping threads, take into account that we might be trying
7046 to stop an all-stop target.
7047 (stop_waiting): Call 'stop_all_threads' if there exists a
7048 non-stop target.
7049
a0714d30
TBA
70502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7051
7052 * target.h (exists_non_stop_target): New function declaration.
7053 * target.c (exists_non_stop_target): New function.
7054
60e22c1e
HD
70552020-04-01 Hannes Domani <ssbssa@yahoo.de>
7056
7057 PR gdb/24789
7058 * eval.c (is_integral_or_integral_reference): New function.
7059 (evaluate_subexp_standard): Allow integer references in
7060 pointer arithmetic.
7061
e139a727
TBA
70622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7063
7064 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7065 check for no ptid in the stop reply when the target is non-stop.
7066
e0802d59
TT
70672020-04-01 Tom Tromey <tromey@adacore.com>
7068
7069 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7070 "name" parameter to rvalue reference. Initialize m_name_holder.
7071 <lookup_name_info>: New overloads.
7072 <name>: Return gdb::string_view.
7073 <c_str>: New method.
7074 <make_ignore_params>: Update.
7075 <search_name_hash>: Update.
7076 <language_lookup_name>: Return const char *.
7077 <m_name>: Change type.
7078 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7079 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7080 (lookup_name_info::match_any): Update.
7081 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7082 Update.
7083 * minsyms.c (linkage_name_str): Update.
7084 * language.c (default_symbol_name_matcher): Update.
7085 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7086 Update.
7087 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7088 (ada_lookup_name_info::ada_lookup_name_info): Update.
7089 (literal_symbol_name_matcher): Update.
7090
8c072cb6
TT
70912020-04-01 Tom Tromey <tromey@adacore.com>
7092
7093 * psymtab.c (psymtab_search_name): Remove function.
7094 (psym_lookup_symbol): Create search name and lookup name here.
7095 (lookup_partial_symbol): Remove "name" parameter; add
7096 lookup_name.
7097 (psym_expand_symtabs_for_function): Update.
7098
6f29a534
TT
70992020-03-31 Joel Jones <joelkevinjones@gmail.com>
7100
7101 PR tui/25597:
7102 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7103
af62665e
TT
71042020-03-31 Tom Tromey <tromey@adacore.com>
7105
7106 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7107 memcpy.
7108
d1a89da5
NC
71092020-03-30 Nelson Chu <nelson.chu@sifive.com>
7110
7111 * features/riscv/32bit-csr.xml: Regenerated.
7112 * features/riscv/64bit-csr.xml: Regenerated.
7113
d8af9068
TT
71142020-03-30 Tom Tromey <tromey@adacore.com>
7115
7116 * ada-valprint.c (print_variant_part): Update.
7117 * ada-lang.h (ada_which_variant_applies): Update.
7118 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7119 outer_valaddr parameters; replace with "outer" value parameter.
7120 (to_fixed_variant_branch_type): Update.
7121
227c0bf4
PFC
71222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7123
7124 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7125 <list>. Remove inclusion of observable.h.
7126 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7127 (struct arch_lwp_info): New struct.
7128 (class ppc_linux_dreg_interface): New class.
7129 (struct ppc_linux_process_info): New struct.
7130 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7131 <low_new_clone, low_forget_process, low_prepare_to_resume>
7132 <copy_thread_dreg_state, mark_thread_stale>
7133 <mark_debug_registers_changed, register_hw_breakpoint>
7134 <clear_hw_breakpoint, register_wp, clear_wp>
7135 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7136 <num_memory_accesses, get_trigger_type>
7137 <create_watchpoint_request, hwdebug_point_cmp>
7138 <init_arch_lwp_info, get_arch_lwp_info>
7139 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7140 methods.
7141 <struct ptid_hash>: New inner struct.
7142 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7143 members.
7144 (saved_dabr_value, hwdebug_info, max_slots_number)
7145 (struct hw_break_tuple, struct thread_points, ppc_threads)
7146 (have_ptrace_hwdebug_interface)
7147 (hwdebug_find_thread_points_by_tid)
7148 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7149 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7150 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7151 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7152 use m_dreg_interface.
7153 (hwdebug_point_cmp): Change to...
7154 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7155 reference arguments instead of pointers.
7156 (ppc_linux_nat_target::ranged_break_num_registers): Use
7157 m_dreg_interface.
7158 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7159 m_dreg_interface. Call register_hw_breakpoint.
7160 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7161 m_dreg_interface. Call clear_hw_breakpoint.
7162 (get_trigger_type): Change to...
7163 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7164 comment.
7165 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7166 use m_dreg_interface. Call register_hw_breakpoint.
7167 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7168 use m_dreg_interface. Call clear_hw_breakpoint.
7169 (can_use_watchpoint_cond_accel): Change to...
7170 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7171 method. Update comment, use m_dreg_interface and
7172 m_process_info.
7173 (calculate_dvc): Change to...
7174 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7175 m_dreg_interface.
7176 (num_memory_accesses): Change to...
7177 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7178 (check_condition): Change to...
7179 (ppc_linux_nat_target::check_condition): ...this method.
7180 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7181 comment, use m_dreg_interface.
7182 (create_watchpoint_request): Change to...
7183 (ppc_linux_nat_target::create_watchpoint_request): ...this
7184 method. Use m_dreg_interface.
7185 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7186 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7187 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7188 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7189 (ppc_linux_nat_target::low_forget_process)
7190 (ppc_linux_nat_target::low_new_fork)
7191 (ppc_linux_nat_target::low_new_clone)
7192 (ppc_linux_nat_target::low_delete_thread)
7193 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7194 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7195 only call mark_thread_stale.
7196 (ppc_linux_thread_exit): Remove.
7197 (ppc_linux_nat_target::stopped_data_address): Change to...
7198 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7199 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7200 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7201 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7202 comment. Call low_stopped_data_address.
7203 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7204 m_dreg_interface.
7205 (ppc_linux_nat_target::masked_watch_num_registers): Use
7206 m_dreg_interface.
7207 (ppc_linux_nat_target::copy_thread_dreg_state)
7208 (ppc_linux_nat_target::mark_thread_stale)
7209 (ppc_linux_nat_target::mark_debug_registers_changed)
7210 (ppc_linux_nat_target::register_hw_breakpoint)
7211 (ppc_linux_nat_target::clear_hw_breakpoint)
7212 (ppc_linux_nat_target::register_wp)
7213 (ppc_linux_nat_target::clear_wp)
7214 (ppc_linux_nat_target::init_arch_lwp_info)
7215 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7216 (_initialize_ppc_linux_nat): Remove observer callback.
7217
4db10d8f
PFC
72182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7219
7220 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7221 (ppc_linux_nat_target::auxv_parse)
7222 (ppc_linux_nat_target::read_description)
7223 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7224 Move up.
7225
1310c1b0
PFC
72262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7227
7228 * linux-nat.h (low_new_clone): New method.
7229 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7230
69b037c3
SM
72312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7234 (dbx_expand_psymtab): ... this.
7235 (start_psymtab): Update.
7236 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7237 (mdebug_expand_psymtab): ... this.
7238 (parse_partial_symbols): Update.
7239 (new_psymtab): Update.
7240 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7241 (xcoff_expand_psymtab): ... this.
7242 (xcoff_start_psymtab): Update.
7243
48993951
SM
72442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7245
7246 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7247 <expand_dependencies>: ... this.
7248 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7249 (partial_symtab::expand_dependencies): ... this.
7250 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7251 Update.
7252 (dwarf2_psymtab::expand_psymtab): Update.
7253 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7254 * mdebugread.c (psymtab_to_symtab_1): Update.
7255 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7256
3ad83046
SM
72572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7258
7259 * psympriv.h (discard_psymtab): Remove.
7260 * dbxread.c (dbx_end_psymtab): Update.
7261 * xcoffread.c (xcoff_end_psymtab): Update.
7262
4d1b9ab6
TT
72632020-03-28 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7266 comment.
7267
f1749218
TT
72682020-03-28 Tom Tromey <tom@tromey.com>
7269
7270 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7271
ebea7626
HD
72722020-03-27 Hannes Domani <ssbssa@yahoo.de>
7273
7274 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7275
a879b4d5
JB
72762020-03-26 John Baldwin <jhb@FreeBSD.org>
7277
7278 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7279
0826b30a
TT
72802020-03-26 Tom Tromey <tom@tromey.com>
7281
7282 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7283 (mark_common_block_symbol_computed, read_tag_string_type)
7284 (attr_to_dynamic_prop, read_subrange_type): Update.
7285 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7286 to be methods on struct attribute.
7287 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7288 (read_call_site_scope, partial_die_info::read)
7289 (partial_die_info::read, lookup_die_type, follow_die_ref):
7290 Update.
7291 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7292 from dwarf2_get_ref_die_offset.
7293 (attribute::constant_value): New method, from
7294 dwarf2_get_attr_constant_value.
7295 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7296 Declare method.
7297 <constant_value>: New method.
7298
2b2558bf
TT
72992020-03-26 Tom Tromey <tom@tromey.com>
7300
7301 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7302 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7303 (dwarf_type_encoding_name): Move to stringify.c.
7304 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7305 * dwarf2/stringify.c: New file.
7306 * dwarf2/stringify.h: New file.
7307
eeb64781
TT
73082020-03-26 Tom Tromey <tom@tromey.com>
7309
7310 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7311 Rewrite.
7312
a39fdb41
TT
73132020-03-26 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7316 methods.
7317 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7318 (lookup_ranges_base): Likewise.
7319 (read_cutu_die_from_dwo, read_full_die_1): Update.
7320
436c571c
TT
73212020-03-26 Tom Tromey <tom@tromey.com>
7322
7323 * dwarf2/read.c (read_import_statement, read_file_scope)
7324 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7325 (read_lexical_block_scope, read_call_site_scope)
7326 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7327 (handle_struct_member_die, process_structure_scope)
7328 (update_enumeration_type_from_children)
7329 (process_enumeration_scope, read_array_type, read_common_block)
7330 (read_namespace, read_module, read_subroutine_type): Update.
7331 (sibling_die): Remove.
7332
052c8bb8
TT
73332020-03-26 Tom Tromey <tom@tromey.com>
7334
7335 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7336 (build_type_psymtabs_reader, read_structure_type)
7337 (read_enumeration_type, read_full_die_1): Update.
7338 (dwarf2_attr_no_follow): Move to die.h.
7339 * dwarf2/die.h (struct die_info) <attr>: New method.
7340
2b24b6e4
TT
73412020-03-26 Tom Tromey <tom@tromey.com>
7342
7343 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7344 <base_address>: Now an optional.
7345 (dwarf2_find_base_address, dwarf2_rnglists_process)
7346 (dwarf2_ranges_process, fill_in_loclist_baton)
7347 (dwarf2_symbol_mark_computed): Update.
7348
c2d50fd0
TT
73492020-03-26 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/read.c (struct die_info): Move to die.h.
7352 * dwarf2/die.h: New file.
7353
0df7ad3a
TT
73542020-03-26 Tom Tromey <tom@tromey.com>
7355
7356 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7357 * dwarf2/read.c
7358 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7359 Move to line-header.c.
7360 (read_checked_initial_length_and_offset, read_formatted_entries):
7361 Likewise.
7362 (dwarf_decode_line_header): Split into two.
7363 * dwarf2/line-header.c
7364 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7365 Move from read.c.
7366 (read_checked_initial_length_and_offset, read_formatted_entries):
7367 Likewise.
7368 (dwarf_decode_line_header): New function, split from read.c.
7369
86c0bb4c
TT
73702020-03-26 Tom Tromey <tom@tromey.com>
7371
7372 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7373 Declare method.
7374 * dwarf2/read.c (read_attribute_value): Update.
7375 (dwarf2_per_objfile::read_line_string): Rename from
7376 read_indirect_line_string.
7377 (read_formatted_entries): Update.
7378
2ef46c2f
TT
73792020-03-26 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7382 variable.
7383
4f9c1eda
TT
73842020-03-26 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7387 const.
7388 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7389 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7390 parameter const.
7391
5a0e026f
TT
73922020-03-26 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7395 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7396 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7397 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7398
8844c11b
TT
73992020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7402 file_names_size, file_full_name, file_file_name>: Use const.
7403 <file_name_at, file_names>: Add const overload.
7404 * dwarf2/line-header.c (line_header::file_file_name)
7405 (line_header::file_full_name): Update.
7406
c90ec28a
TT
74072020-03-26 Tom Tromey <tom@tromey.com>
7408
7409 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7410 (macro_start_file, consume_improper_spaces)
7411 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7412 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7413 (dwarf_decode_macros): Move to macro.c.
7414 * dwarf2/macro.c: New file.
7415 * dwarf2/macro.h: New file.
7416 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7417
4f44ae6c
TT
74182020-03-26 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7421 method.
7422 * dwarf2/section.c: New method. From
7423 read_indirect_string_at_offset_from.
7424 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7425 (read_indirect_string_at_offset_from): Move to section.c.
7426 (read_indirect_string_at_offset): Rewrite.
7427 (read_indirect_line_string_at_offset): Remove.
7428 (read_indirect_string, read_indirect_line_string)
7429 (dwarf_decode_macro_bytes): Update.
7430
a0194fa8
TT
74312020-03-26 Tom Tromey <tom@tromey.com>
7432
7433 * dwarf2/section.h (struct dwarf2_section_info)
7434 <overload_complaint>: Declare.
7435 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7436 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7437 Rename from dwarf2_section_buffer_overflow_complaint.
7438 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7439 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7440
3d27bbdb
TT
74412020-03-26 Tom Tromey <tom@tromey.com>
7442
7443 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7444 Declare.
7445 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7446 Move from read.c.
7447 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7448 to section.c.
7449
9eac9650
TT
74502020-03-26 Tom Tromey <tom@tromey.com>
7451
7452 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7453
bf80d710
TT
74542020-03-26 Tom Tromey <tom@tromey.com>
7455
7456 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7457 "builder".
7458 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7459 parameter.
7460 (dwarf_decode_macros): Update.
7461
0314b390
TT
74622020-03-26 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2/read.c (read_attribute_value): Update.
7465 (read_indirect_string_from_dwz): Move to dwz.c; change into
7466 method.
7467 (dwarf_decode_macro_bytes): Update.
7468 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7469 * dwarf2/dwz.c: New file.
7470 * Makefile.in (COMMON_SFILES): Add dwz.c.
7471
9fda78b6
TT
74722020-03-26 Tom Tromey <tom@tromey.com>
7473
7474 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7475 * dwarf2/read.c: Add include.
7476 * dwarf2/index-write.c: Add include.
7477 * dwarf2/index-cache.c: Add include.
7478 * dwarf2/dwz.h: New file.
7479
33aa3c10
TT
74802020-03-25 Tom Tromey <tom@tromey.com>
7481
7482 * compile/compile-object-load.c (get_out_value_type): Mention
7483 correct symbol name in error message.
7484
d503b685
HD
74852020-03-25 Hannes Domani <ssbssa@yahoo.de>
7486
7487 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7488
7b1eff95
TV
74892020-03-25 Tom de Vries <tdevries@suse.de>
7490
7491 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7492 * symmisc.c (dump_symtab_1): Print user and includes fields.
7493 (maintenance_info_symtabs): Same.
7494
dd895392
AB
74952020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7496
7497 PR gdb/25534
7498 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7499 (riscv_regcache_cooked_write): New function.
7500 (riscv_push_dummy_call): Use new function.
7501 (riscv_return_value): Likewise.
7502
5ab2fbf1
SM
75032020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7504
7505 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7506 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7507 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7508 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7509 * infrun.c (follow_fork): Likewise.
7510 (follow_fork_inferior): Likewise.
7511 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7512 * linux-nat.h (class linux_nat_target): Likewise.
7513 * remote.c (class remote_target) <follow_fork>: Likewise.
7514 (remote_target::follow_fork): Likewise.
7515 * target-delegates.c: Re-generate.
7516 * target.c (default_follow_fork): Likewise.
7517 (target_follow_fork): Likewise.
7518 * target.h (struct target_ops) <follow_fork>: Likewise.
7519 (target_follow_fork): Likewise.
7520
a64fafb5
TV
75212020-03-24 Tom de Vries <tdevries@suse.de>
7522
7523 * psymtab.c (maintenance_info_psymtabs): Print user field.
7524
fe26d3a3
TT
75252020-03-20 Tom Tromey <tromey@adacore.com>
7526
7527 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7528 const.
7529 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7530 const.
7531
c884cc46
SM
75322020-03-20 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * ptrace.m4: Don't check for ptrace declaration.
7535 * config.in: Re-generate.
7536 * configure: Re-generate.
7537 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7538 not defined.
7539
1ff700c2
KR
75402020-03-20 Kamil Rytarowski <n54@gmx.com>
7541
7542 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7543 `PTRACE_TYPE_RET'.
7544 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7545 * sparc-nat.c (gdb_ptrace): Likewise.
7546 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7547
f7d4f0b1
TT
75482020-03-20 Tom Tromey <tromey@adacore.com>
7549
7550 * c-exp.y (lex_one_token): Fix assert.
7551
f67210ff
TT
75522020-03-20 Tom Tromey <tromey@adacore.com>
7553
7554 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7555 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7556 strncpy call.
7557
1773be9e
TT
75582020-03-20 Tom Tromey <tromey@adacore.com>
7559
7560 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7561
70304be9
TT
75622020-03-20 Tom Tromey <tromey@adacore.com>
7563
7564 * ada-valprint.c (print_variant_part): Remove parameters; switch
7565 to value-based API.
7566 (print_field_values): Likewise.
7567 (ada_val_print_struct_union): Likewise.
7568 (ada_value_print_1): Update.
7569
9faa006d
KR
75702020-03-20 Kamil Rytarowski <n54@gmx.com>
7571
7572 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7573 nbsd_nat_target instead of inf_ptrace_target.
7574 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7575 nbsd_nat_target.
7576
4a90f062
KR
75772020-03-20 Kamil Rytarowski <n54@gmx.com>
7578
7579 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7580 it to the ptrace call.
7581 * (store_registers): Likewise.
7582
75832020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7584
7585 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7586 it to the ptrace call.
7587 * (store_registers): Likewise.
7588
2d07da27
LM
75892020-03-19 Luis Machado <luis.machado@linaro.org>
7590
7591 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7592 valid, fetch vg value from ptrace.
7593
f09db380
KR
75942020-03-19 Kamil Rytarowski <n54@gmx.com>
7595 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7596 * inf-ptrace.c: Likewise.
7597 * (gdb_ptrace): Add.
7598 * (inf_ptrace_target::resume): Update.
7599 * (inf_ptrace_target::xfer_partial): Likewise.
7600 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7601 * (inf_ptrace_peek_poke): Update.
7602
fcc7376e
KR
76032020-03-19 Kamil Rytarowski <n54@gmx.com>
7604
7605 * x86-bsd-nat.c (gdb_ptrace): New.
7606 * (x86bsd_dr_set): Add new argument `ptid'.
7607 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7608 x86bsd_dr_set_addr): Update.
7609
cada5fc9
AB
76102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7611
7612 * remote.c (remote_target::process_stop_reply): Handle events for
7613 all threads differently.
7614
19a2740f
AB
76152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * completer.c (completion_tracker::remove_completion): Define new
7618 function.
7619 * completer.h (completion_tracker::remove_completion): Declare new
7620 function.
7621 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7622 when adding a C++ function symbol.
7623
724fd9ba
AB
76242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * completer.c (completion_tracker::completion_hash_entry): Define
7627 new class.
7628 (advance_to_filename_complete_word_point): Call
7629 recompute_lowest_common_denominator.
7630 (completion_tracker::completion_tracker): Call discard_completions
7631 to setup the hash table.
7632 (completion_tracker::discard_completions): Allow for being called
7633 from the constructor, pass new equal function, and element deleter
7634 when constructing the hash table. Initialise new class member
7635 variables.
7636 (completion_tracker::maybe_add_completion): Remove use of
7637 m_entries_vec, and store more information into m_entries_hash.
7638 (completion_tracker::recompute_lcd_visitor): New function, most
7639 content taken from...
7640 (completion_tracker::recompute_lowest_common_denominator):
7641 ...here, this now just visits each item in the hash calling the
7642 above visitor.
7643 (completion_tracker::build_completion_result): Remove use of
7644 m_entries_vec, call recompute_lowest_common_denominator.
7645 * completer.h (completion_tracker::have_completions): Remove use
7646 of m_entries_vec.
7647 (completion_tracker::completion_hash_entry): Declare new class.
7648 (completion_tracker::recompute_lowest_common_denominator): Change
7649 function signature.
7650 (completion_tracker::recompute_lcd_visitor): Declare new function.
7651 (completion_tracker::m_entries_vec): Delete.
7652 (completion_tracker::m_entries_hash): Initialize to NULL.
7653 (completion_tracker::m_lowest_common_denominator_valid): New
7654 member variable.
7655 (completion_tracker::m_lowest_common_denominator_max_length): New
7656 member variable.
7657
5a82b8a1
KR
76582020-03-17 Kamil Rytarowski <n54@gmx.com>
7659
7660 * regformats/regdef.h: Put reg in gdb namespace.
7661
fb516a69
KR
76622020-03-17 Kamil Rytarowski <n54@gmx.com>
7663
7664 * i386-bsd-nat.c (gdb_ptrace): New.
7665 * (i386bsd_fetch_inferior_registers,
7666 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7667 * (i386bsd_fetch_inferior_registers,
7668 i386bsd_store_inferior_registers) Use gdb_ptrace.
7669
1c0aa1fb
KR
76702020-03-17 Kamil Rytarowski <n54@gmx.com>
7671
7672 * amd64-bsd-nat.c (gdb_ptrace): New.
7673 * (amd64bsd_fetch_inferior_registers,
7674 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7675 * (amd64bsd_fetch_inferior_registers,
7676 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7677
5ccd2fb7
KR
76782020-03-17 Kamil Rytarowski <n54@gmx.com>
7679
7680 * user-regs.c (user_reg::read): Rename to...
7681 (user_reg::xread): ...this.
7682 * (append_user_reg): Rename argument `read' to `xread'.
7683 * (user_reg_add_builtin): Likewise.
7684 * (user_reg_add): Likewise.
7685 * (value_of_user_reg): Likewise.
7686
2108a63a
KR
76872020-03-17 Kamil Rytarowski <n54@gmx.com>
7688
7689 * sparc-nat.c (gdb_ptrace): New.
7690 * sparc-nat.c (sparc_fetch_inferior_registers)
7691 (sparc_store_inferior_registers) Remove obsolete comment.
7692 * sparc-nat.c (sparc_fetch_inferior_registers)
7693 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7694 * sparc-nat.c (sparc_fetch_inferior_registers)
7695 (sparc_store_inferior_registers) Use gdb_ptrace.
7696
a225c9a8
KR
76972020-03-17 Kamil Rytarowski <n54@gmx.com>
7698
7699 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7700 it to the ptrace call.
7701 * sh-nbsd-nat.c (store_registers): Likewise.
7702
98097623
KR
77032020-03-17 Kamil Rytarowski <n54@gmx.com>
7704
7705 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7706 nbsd_nat_target instead of inf_ptrace_target.
7707 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7708 nbsd_nat_target.
7709
9e38d619
KR
77102020-03-17 Kamil Rytarowski <n54@gmx.com>
7711
7712 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7713
a2ecbe9f
KR
77142020-03-17 Kamil Rytarowski <n54@gmx.com>
7715
7716 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7717 <sys/sysctl.h>.
7718 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7719
58990295
TV
77202020-03-17 Tom de Vries <tdevries@suse.de>
7721
7722 PR gdb/23710
7723 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7724 fields.
7725 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7726 fields.
7727 (process_imported_unit_die): Skip import of c++ CUs.
7728
771dd3a8
TT
77292020-03-16 Tom Tromey <tom@tromey.com>
7730
7731 * p-valprint.c (pascal_object_print_value): Initialize
7732 base_value.
7733
817a7585
AK
77342020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7735 Shahab Vahedi <shahab@synopsys.com>
7736
7737 * Makefile.in: Add arch/arc.o
7738 * configure.tgt: Likewise.
7739 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7740 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7741 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7742 * arc-tdep.h (arc_read_description): Add proto type.
7743 * arch/arc.c: New file.
7744 * arch/arc.h: Likewise.
7745 * features/Makefile: Replace old target descriptions with new.
7746 * features/arc-arcompact.c: Remove.
7747 * features/arc-arcompact.xml: Likewise.
7748 * features/arc-v2.c: Likewise
7749 * features/arc-v2.xml: Likewise
7750 * features/arc/aux-arcompact.xml: New file.
7751 * features/arc/aux-v2.xml: Likewise.
7752 * features/arc/core-arcompact.xml: Likewise.
7753 * features/arc/core-v2.xml: Likewise.
7754 * features/arc/aux-arcompact.c: Generate.
7755 * features/arc/aux-v2.c: Likewise.
7756 * features/arc/core-arcompact.c: Likewise.
7757 * features/arc/core-v2.c: Likewise.
7758 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7759
67430cd0
TT
77602020-03-16 Tom Tromey <tromey@adacore.com>
7761
7762 PR gdb/25663:
7763 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7764 putting value into bcache.
7765
30efb6c7
SM
77662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7767
7768 PR gdb/21500
7769 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7770 to...
7771 (amd64_windows_init_abi_common): ... this. Don't set size of
7772 long type.
7773 (amd64_windows_init_abi): New function.
7774 (amd64_cygwin_init_abi): New function.
7775 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7776 the Cygwin OS ABI.
7777 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7778 comment.
7779
8db52437
SM
77802020-03-16 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7783 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7784 (pe_import_directory_entry): New struct type.
7785 (is_linked_with_cygwin_dll): New function.
7786 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7787 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7788 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7789
5982a56a
SM
77902020-03-16 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7793 i386_cygwin_core_osabi_sniffer.
7794
7a1998df
SM
77952020-03-16 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * i386-cygwin-tdep.c: Rename to...
7798 * i386-windows-tdep.c: ... this.
7799 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7800 i386-windows-tdep.c.
7801 * configure.tgt: Likewise.
7802
053205cc
SM
78032020-03-16 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7806 * osabi.c (gdb_osabi_names): Add "Windows".
7807 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7808 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7809 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7810 i386_cygwin_osabi_sniffer.
7811 (_initialize_i386_cygwin_tdep): Register OS ABI
7812 GDB_OSABI_WINDOWS for i386.
7813 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7814 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7815 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7816 for x86-64.
7817 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7818 when the target matches '*-*-mingw*'.
7819
fe4b2ee6
SM
78202020-03-16 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * defs.h (enum gdb_osabi): Move to...
7823 * osabi.h (enum gdb_osabi): ... here.
7824 * gdbarch.sh: Include osabi.h in gdbarch.h.
7825 * gdbarch.h: Re-generate.
7826
cb9b645d
SM
78272020-03-16 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7830 function.
7831 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7832
3293bbaf
TT
78332020-03-14 Tom Tromey <tom@tromey.com>
7834
7835 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7836 for C++.
7837 (c_type_print_modifier): Likewise. Add "language" parameter.
7838 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7839 (c_type_print_base_1): Update.
7840 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7841 constants.
7842 * type-stack.c (type_stack::insert): Handle tp_atomic and
7843 tp_restrict.
7844 (type_stack::follow_type_instance_flags): Likewise.
7845 (type_stack::follow_types): Likewise. Merge type-following code.
7846 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7847 (space_identifier, cv_with_space_id)
7848 (const_or_volatile_or_space_identifier_noopt)
7849 (const_or_volatile_or_space_identifier): Remove.
7850 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7851 rules.
7852 (ptr_operator, typebase): Update.
7853 (enum token_flag) <FLAG_C>: New constant.
7854 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7855 "_Atomic".
7856 (lex_one_token): Handle FLAG_C.
7857
154151a6
KR
78582020-03-14 Kamil Rytarowski <n54@gmx.com>
7859
7860 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7861 it to the ptrace call.
7862 * m68k-bsd-nat.c (store_registers): Likewise.
7863
bc107784
KR
78642020-03-14 Kamil Rytarowski <n54@gmx.com>
7865
7866 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7867 gdb_byte *.
7868 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7869 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7870 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7871
01a80117
KR
78722020-03-14 Kamil Rytarowski <n54@gmx.com>
7873
7874 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7875 nbsd_nat_target instead of inf_ptrace_target.
7876 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7877 nbsd_nat_target.
7878
f90280ca
KR
78792020-03-14 Kamil Rytarowski <n54@gmx.com>
7880
7881 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7882 register_t.
7883
6def66f1
KR
78842020-03-14 Kamil Rytarowski <n54@gmx.com>
7885
7886 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7887 it to the ptrace call.
7888 * alpha-bsd-nat.c (store_registers): Likewise.
7889
66eaca97
KR
78902020-03-14 Kamil Rytarowski <n54@gmx.com>
7891
7892 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7893 includes.
7894 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7895 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7896 fill_fpregset): Likewise.
7897
4fed520b
KR
78982020-03-14 Kamil Rytarowski <n54@gmx.com>
7899
7900 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7901 nbsd_nat_target instead of inf_ptrace_target.
7902 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7903 nbsd_nat_target.
7904
2190cf06
KR
79052020-03-14 Kamil Rytarowski <n54@gmx.com>
7906
7907 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7908 register_t.
7909
75c56d3d
KR
79102020-03-14 Kamil Rytarowski <n54@gmx.com>
7911
7912 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7913 it to the ptrace call.
7914 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7915 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7916 * arm-nbsd-nat.c (store_register): Likewise.
7917 * arm-nbsd-nat.c (store_regs): Likewise.
7918 * arm-nbsd-nat.c (store_fp_register): Likewise.
7919 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7920
6018d381
KR
79212020-03-14 Kamil Rytarowski <n54@gmx.com>
7922
7923 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7924 nbsd_nat_target instead of inf_ptrace_target.
7925 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7926 nbsd_nat_target.
7927
013f99f0
KR
79282020-03-14 Kamil Rytarowski <n54@gmx.com>
7929
7930 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7931 it to the ptrace call.
7932 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7933
12753073
KR
79342020-03-14 Kamil Rytarowski <n54@gmx.com>
7935
6227b330
KR
7936 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7937 it to the ptrace call.
7938 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7939
79402020-03-14 Kamil Rytarowski <n54@gmx.com>
7941
7942 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7943 gdb_byte *.
12753073
KR
7944 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7945
d5be5fa4
KR
79462020-03-14 Kamil Rytarowski <n54@gmx.com>
7947
7948 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7949 instead of inf_ptrace_target.
7950 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7951 nbsd_nat_target.
7952
8110f842
KR
79532020-03-14 Kamil Rytarowski <n54@gmx.com>
7954
7955 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7956 register_t.
7957
52feded7
KR
79582020-03-14 Kamil Rytarowski <n54@gmx.com>
7959
7960 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7961 register_t.
7962
25567eee
KR
79632020-03-14 Kamil Rytarowski <n54@gmx.com>
7964
7965 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7966 register_t.
7967
426a9c18
TT
79682020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * value.h (val_print): Don't declare.
7971 * valprint.h (val_print_array_elements)
7972 (val_print_scalar_formatted, generic_val_print): Don't declare.
7973 * valprint.c (generic_val_print_array): Take a struct value.
7974 (generic_val_print_ptr, generic_val_print_memberptr)
7975 (generic_val_print_bool, generic_val_print_int)
7976 (generic_val_print_char, generic_val_print_complex)
7977 (generic_val_print): Remove.
7978 (generic_value_print): Update.
7979 (do_val_print): Remove unused parameters. Don't call
7980 la_val_print.
7981 (val_print): Remove.
7982 (common_val_print): Update. Don't call value_check_printable.
7983 (val_print_scalar_formatted, val_print_array_elements): Remove.
7984 * rust-lang.c (rust_val_print): Remove.
7985 (rust_language_defn): Update.
7986 * p-valprint.c (pascal_val_print): Remove.
7987 (pascal_value_print_inner): Update.
7988 (pascal_object_print_val_fields, pascal_object_print_val):
7989 Remove.
7990 (pascal_object_print_static_field): Update.
7991 * p-lang.h (pascal_val_print): Don't declare.
7992 * p-lang.c (pascal_language_defn): Update.
7993 * opencl-lang.c (opencl_language_defn): Update.
7994 * objc-lang.c (objc_language_defn): Update.
7995 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7996 * m2-lang.h (m2_val_print): Don't declare.
7997 * m2-lang.c (m2_language_defn): Update.
7998 * language.h (struct language_defn) <la_val_print>: Remove.
7999 * language.c (unk_lang_value_print_inner): Rename. Change
8000 argument types.
8001 (unknown_language_defn, auto_language_defn): Update.
8002 * go-valprint.c (go_val_print): Remove.
8003 * go-lang.h (go_val_print): Don't declare.
8004 * go-lang.c (go_language_defn): Update.
8005 * f-valprint.c (f_val_print): Remove.
8006 * f-lang.h (f_value_print): Don't declare.
8007 * f-lang.c (f_language_defn): Update.
8008 * d-valprint.c (d_val_print): Remove.
8009 * d-lang.h (d_value_print): Don't declare.
8010 * d-lang.c (d_language_defn): Update.
8011 * cp-valprint.c (cp_print_value_fields)
8012 (cp_print_value_fields_rtti, cp_print_value): Remove.
8013 (cp_print_static_field): Update.
8014 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8015 (c_val_print_struct, c_val_print_union, c_val_print_int)
8016 (c_val_print_memberptr, c_val_print): Remove.
8017 * c-lang.h (c_val_print_array, cp_print_value_fields)
8018 (cp_print_value_fields_rtti): Don't declare.
8019 * c-lang.c (c_language_defn, cplus_language_defn)
8020 (asm_language_defn, minimal_language_defn): Update.
8021 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8022 (ada_val_print_enum): Take a struct value.
8023 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8024 (ada_val_print): Remove.
8025 (ada_value_print_1): Update.
8026 (printable_val_type): Remove.
8027 * ada-lang.h (ada_val_print): Don't declare.
8028 * ada-lang.c (ada_language_defn): Update.
8029
42331a1e
TT
80302020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * valprint.c (do_val_print): Update.
8033 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8034 a struct value.
8035 (value_to_value_object_no_release): Declare.
8036 * python/py-value.c (value_to_value_object_no_release): New
8037 function.
8038 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8039 struct value.
8040 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8041 function.
8042 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8043 a struct value.
8044 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8045 Declare.
8046 (gdbscm_apply_val_pretty_printer): Take a struct value.
8047 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8048 value.
8049 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8050 value.
8051 * extension-priv.h (struct extension_language_ops)
8052 <apply_val_pretty_printer>: Take a struct value.
8053 * cp-valprint.c (cp_print_value): Create a struct value.
8054 (cp_print_value): Update.
8055
3a916a97
TT
80562020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * ada-valprint.c (print_field_values): Call common_val_print.
8059
b59eac37
TT
80602020-03-13 Tom Tromey <tom@tromey.com>
8061
8062 * ada-valprint.c (val_print_packed_array_elements): Remove
8063 bitoffset and val parameters. Call common_val_print.
8064 (ada_val_print_string): Remove offset, address, and original_value
8065 parameters.
8066 (ada_val_print_array): Update.
8067 (ada_value_print_array): New function.
8068 (ada_value_print_1): Call it.
8069
03371129
TT
80702020-03-13 Tom Tromey <tom@tromey.com>
8071
8072 * ada-valprint.c (ada_value_print): Use common_val_print.
8073
2e088f8b
TT
80742020-03-13 Tom Tromey <tom@tromey.com>
8075
8076 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8077
39ef85a8
TT
80782020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * ada-valprint.c (ada_value_print_num): New function.
8081 (ada_value_print_1): Use it.
8082
b9fa6e07
TT
80832020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8086
416595d6
TT
80872020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * ada-valprint.c (ada_value_print_ptr): New function.
8090 (ada_value_print_1): Use it.
8091
5b5e15ec
TT
80922020-03-13 Tom Tromey <tom@tromey.com>
8093
8094 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8095 call common_val_print.
8096 (ada_val_print_1): Update.
8097 (ada_value_print_1): New function.
8098 (ada_value_print_inner): Rewrite.
8099
fbf54e75
TT
81002020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * cp-valprint.c (cp_print_value_fields): Update.
8103 (cp_print_value): New function.
8104
64b653ca
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * m2-valprint.c (m2_value_print_inner): Use
8108 cp_print_value_fields.
8109 * cp-valprint.c (cp_print_value_fields): New function.
8110 * c-valprint.c (c_value_print_struct): New function.
8111 (c_value_print_inner): Use c_value_print_struct.
8112 * c-lang.h (cp_print_value_fields): Declare.
8113
6999f067
TT
81142020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * c-valprint.c (c_value_print_array): New function.
8117 (c_value_print_inner): Use it.
8118
ce80b8bd
TT
81192020-03-13 Tom Tromey <tom@tromey.com>
8120
8121 * c-valprint.c (c_value_print_memberptr): New function.
8122 (c_value_print_inner): Use it.
8123
2faac269
TT
81242020-03-13 Tom Tromey <tom@tromey.com>
8125
8126 * c-valprint.c (c_value_print_int): New function.
8127 (c_value_print_inner): Use it.
8128
da3e2c29
TT
81292020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * c-valprint.c (c_value_print_ptr): New function.
8132 (c_value_print_inner): Use it.
8133
50836231
TT
81342020-03-13 Tom Tromey <tom@tromey.com>
8135
8136 * c-valprint.c (c_value_print_inner): Rewrite.
8137
4f412b6e
TT
81382020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * valprint.c (generic_value_print_complex): New function.
8141 (generic_value_print): Use it.
8142
f5354008
TT
81432020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * valprint.c (generic_val_print_float): Don't call
8146 val_print_scalar_formatted.
8147 (generic_val_print, generic_value_print): Update.
8148
3eec3b05
TT
81492020-03-13 Tom Tromey <tom@tromey.com>
8150
8151 * valprint.c (generic_value_print_char): New function
8152 (generic_value_print): Use it.
8153
fdddfccb
TT
81542020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * valprint.c (generic_value_print_int): New function.
8157 (generic_value_print): Use it.
8158
6dde7521
TT
81592020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * valprint.c (generic_value_print_bool): New function.
8162 (generic_value_print): Use it.
8163
4112d2e6
TT
81642020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * valprint.c (generic_val_print_func): Simplify.
8167 (generic_val_print, generic_value_print): Update.
8168
65786af6
TT
81692020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * valprint.c (generic_val_print_flags): Remove.
8172 (generic_val_print, generic_value_print): Update.
8173 (val_print_type_code_flags): Add original_value parameter.
8174
40f3ce18
TT
81752020-03-13 Tom Tromey <tom@tromey.com>
8176
8177 * valprint.c (generic_val_print): Update.
8178 (generic_value_print): Update.
8179 * valprint.c (generic_val_print_enum): Don't call
8180 val_print_scalar_formatted.
8181
2a5b130b
TT
81822020-03-13 Tom Tromey <tom@tromey.com>
8183
8184 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8185 * valprint.c (generic_value_print_ptr): New function.
8186
abc66ce9
TT
81872020-03-13 Tom Tromey <tom@tromey.com>
8188
8189 * valprint.c (generic_value_print): Rewrite.
8190
07a32858
TT
81912020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * p-valprint.c (pascal_object_print_value_fields)
8194 (pascal_object_print_value): New functions.
8195
64d64d3a
TT
81962020-03-13 Tom Tromey <tom@tromey.com>
8197
8198 * p-valprint.c (pascal_value_print_inner): Rewrite.
8199
6a95a1f5
TT
82002020-03-13 Tom Tromey <tom@tromey.com>
8201
8202 * f-valprint.c (f_value_print_innner): Rewrite.
8203
59fcdac6
TT
82042020-03-13 Tom Tromey <tom@tromey.com>
8205
8206 * m2-valprint.c (m2_print_unbounded_array): New overload.
8207 (m2_print_unbounded_array): Update.
8208 (m2_print_array_contents): Take a struct value.
8209 (m2_value_print_inner): Rewrite.
8210
d133c3e1
TT
82112020-03-13 Tom Tromey <tom@tromey.com>
8212
8213 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8214 (d_value_print_inner): New function.
8215 * d-lang.h (d_value_print_inner): Declare.
8216 * d-lang.c (d_language_defn): Use d_value_print_inner.
8217
23b0f06b
TT
82182020-03-13 Tom Tromey <tom@tromey.com>
8219
8220 * go-valprint.c (go_value_print_inner): New function.
8221 * go-lang.h (go_value_print_inner): Declare.
8222 * go-lang.c (go_language_defn): Use go_value_print_inner.
8223
5f56f7cb
TT
82242020-03-13 Tom Tromey <tom@tromey.com>
8225
8226 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8227 API.
8228 (rust_val_print): Rewrite.
8229 (rust_value_print_inner): New function, from rust_val_print.
8230 (rust_language_defn): Use rust_value_print_inner.
8231
26792ee0
TT
82322020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * ada-valprint.c (ada_value_print_inner): New function.
8235 * ada-lang.h (ada_value_print_inner): Declare.
8236 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8237
24051bbe
TT
82382020-03-13 Tom Tromey <tom@tromey.com>
8239
8240 * f-valprint.c (f_value_print_innner): New function.
8241 * f-lang.h (f_value_print_innner): Declare.
8242 * f-lang.c (f_language_defn): Use f_value_print_innner.
8243
c0941be6
TT
82442020-03-13 Tom Tromey <tom@tromey.com>
8245
8246 * p-valprint.c (pascal_value_print_inner): New function.
8247 * p-lang.h (pascal_value_print_inner): Declare.
8248 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8249
62c4663d
TT
82502020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * m2-valprint.c (m2_value_print_inner): New function.
8253 * m2-lang.h (m2_value_print_inner): Declare.
8254 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8255
62182190
TT
82562020-03-13 Tom Tromey <tom@tromey.com>
8257
8258 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8259 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8260 * c-valprint.c (c_value_print_inner): New function.
8261 * c-lang.h (c_value_print_inner): Declare.
8262 * c-lang.c (c_language_defn, cplus_language_defn)
8263 (asm_language_defn, minimal_language_defn): Use
8264 c_value_print_inner.
8265
1e592a8a
TT
82662020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * p-valprint.c (pascal_object_print_value_fields): Now static.
8269 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8270
7fe471e9
TT
82712020-03-13 Tom Tromey <tom@tromey.com>
8272
8273 * c-valprint.c (c_val_print_array): Simplify.
8274
d121c6ce
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * valprint.c (value_print_array_elements): New function.
8278 * valprint.h (value_print_array_elements): Declare.
8279
4dba70ee
TT
82802020-03-13 Tom Tromey <tom@tromey.com>
8281
8282 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8283 * mips-tdep.c (mips_print_register): Use
8284 value_print_scalar_formatted.
8285
4f9ae810
TT
82862020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * valprint.h (value_print_scalar_formatted): Declare.
8289 * valprint.c (value_print_scalar_formatted): New function.
8290
156bfec9
TT
82912020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.h (generic_value_print): Declare.
8294 * valprint.c (generic_value_print): New function.
8295
2b4e573d
TT
82962020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * valprint.c (do_val_print): Call la_value_print_inner, if
8299 available.
8300 * rust-lang.c (rust_language_defn): Update.
8301 * p-lang.c (pascal_language_defn): Update.
8302 * opencl-lang.c (opencl_language_defn): Update.
8303 * objc-lang.c (objc_language_defn): Update.
8304 * m2-lang.c (m2_language_defn): Update.
8305 * language.h (struct language_defn) <la_value_print_inner>: New
8306 member.
8307 * language.c (unknown_language_defn, auto_language_defn): Update.
8308 * go-lang.c (go_language_defn): Update.
8309 * f-lang.c (f_language_defn): Update.
8310 * d-lang.c (d_language_defn): Update.
8311 * c-lang.c (c_language_defn, cplus_language_defn)
8312 (asm_language_defn, minimal_language_defn): Update.
8313 * ada-lang.c (ada_language_defn): Update.
8314
a1f6a07c
TT
83152020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * c-valprint.c (c_value_print): Use common_val_print.
8318
410cf315
TT
83192020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8322
72a45c93
TT
83232020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * f-valprint.c (f77_print_array_1, f_val_print): Use
8326 common_val_print.
8327
040f66bd
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * riscv-tdep.c (riscv_print_one_register_info): Use
8331 common_val_print.
8332
a6e05a6c
TT
83332020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * mi/mi-main.c (output_register): Use common_val_print.
8336
3444c526
TT
83372020-03-13 Tom Tromey <tom@tromey.com>
8338
8339 * infcmd.c (default_print_one_register_info): Use
8340 common_val_print.
8341
c2a44efe
TT
83422020-03-13 Tom Tromey <tom@tromey.com>
8343
8344 * valprint.h (common_val_print_checked): Declare.
8345 * valprint.c (common_val_print_checked): New function.
8346 * stack.c (print_frame_arg): Use common_val_print_checked.
8347
b0c26e99
TT
83482020-03-13 Tom Tromey <tom@tromey.com>
8349
8350 * valprint.c (do_val_print): New function, from val_print.
8351 (val_print): Use do_val_print.
8352 (common_val_print): Use do_val_print.
8353
ce3acbe9
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * valprint.c (value_print): Use scoped_value_mark.
8357
96c7f873
TV
83582020-03-13 Tom de Vries <tdevries@suse.de>
8359
8360 PR symtab/25646
8361 * psymtab.c (partial_symtab::partial_symtab): Don't set
8362 globals_offset and statics_offset. Push element onto
8363 current_global_psymbols and current_static_psymbols stacks.
8364 (concat): New function.
8365 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8366 element from current_global_psymbols and current_static_psymbols
8367 stacks. Concat popped elements to global_psymbols and
8368 static_symbols.
8369 (add_psymbol_to_list): Use current_global_psymbols and
8370 current_static_psymbols stacks.
8371 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8372 current_static_psymbols fields.
8373
6ba0a321
CB
83742020-03-12 Christian Biesinger <cbiesinger@google.com>
8375
8376 * corelow.c (sniff_core_bfd): Remove.
8377 (class core_target) <m_core_vec>: Remove.
8378 (core_target::core_target): Update.
8379 (core_file_fns): Remove.
8380 (deprecated_add_core_fns): Remove.
8381 (default_core_sniffer): Remove.
8382 (sniff_core_bfd): Remove.
8383 (default_check_format): Remove.
8384 (gdb_check_format): Remove.
8385 (core_target_open): Update.
8386 (core_target::get_core_register_section): Update.
8387 (get_core_registers_cb): Update.
8388 (core_target::fetch_registers): Update.
8389 * gdbcore.h (struct core_fns): Remove.
8390 (deprecated_add_core_fns): Remove.
8391 (default_core_sniffer): Remove.
8392 (default_check_format): Remove.
8393
227031b2
TT
83942020-03-12 Tom Tromey <tom@tromey.com>
8395
8396 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8397 CORE_ADDR.
8398 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8399
53807e9f
TT
84002020-03-12 Tom Tromey <tom@tromey.com>
8401
8402 * remote.c (remote_target::download_tracepoint)
8403 (remote_target::enable_tracepoint)
8404 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8405 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8406 sprintf_vma.
8407
64f25102
TT
84082020-03-12 Tom Tromey <tom@tromey.com>
8409
8410 * symfile-mem.c: Update CORE_ADDR size assert.
8411
272cd5a3
SM
84122020-03-12 Simon Marchi <simon.marchi@efficios.com>
8413
8414 * selftest.m4: Move to gdbsupport/.
8415 * acinclude.m4: Update path to selftest.m4.
8416
74cd3f9d
SM
84172020-03-12 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8420 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8421 gdbarch-selfselftests.c and selftest-arch.c.
8422 (SUBDIR_UNITTESTS_OBS): Rename to...
8423 (SELFTESTS_OBS): ... this.
8424 (COMMON_SFILES): Remove disasm-selftests.c and
8425 gdbarch-selftests.c.
8426 * configure.ac: Don't add selftest-arch.{c,o} to
8427 CONFIG_{SRCS,OBS}.
8428 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8429 preprocessor conditions.
8430
db6878ac
SM
84312020-03-12 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * configure.ac: Don't source bfd/development.sh.
8434 * selftest.m4: Modify comment.
8435 * configure: Re-generate.
8436
4d696a5c
SM
84372020-03-12 Simon Marchi <simon.marchi@efficios.com>
8438
8439 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8440 not "true" or "false".
8441 * configure: Re-generate.
8442
8dd8e1c7
CB
84432020-03-12 Christian Biesinger <cbiesinger@google.com>
8444
8445 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8446 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8447 renamed to arm_nbsd_supply_gregset.
8448 (fetch_register): Update to call arm_nbsd_supply_gregset.
8449 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8450 (arm_netbsd_nat_target::fetch_registers): Update.
8451 (fetch_elfcore_registers): Removed.
8452 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8453 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8454 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8455 not require NetBSD system headers.
8456 (arm_nbsd_regset): New struct.
8457 (arm_nbsd_iterate_over_regset_sections): New function.
8458 (arm_netbsd_init_abi_common): Updated to call
8459 set_gdbarch_iterate_over_regset_sections.
8460 * arm-nbsd-tdep.h: New file.
8461
dd69bf7a
KB
84622020-03-11 Kevin Buettner <kevinb@redhat.com>
8463
8464 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8465 recursion.
8466
a0761e34
SM
84672020-03-11 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * configure: Re-generate.
8470
e7a82140
TT
84712020-03-11 Tom Tromey <tromey@adacore.com>
8472
8473 * ada-typeprint.c (print_choices): Fix comment.
8474
dcc050c8
AB
84752020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8476
8477 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8478 previous item in the list, when the list has no items.
8479
1c33af77
TV
84802020-03-11 Tom de Vries <tdevries@suse.de>
8481
8482 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8483 PROP_LOCLIST handling code.
8484
8c95582d
AB
84852020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8486
8487 * buildsym-legacy.c (record_line): Pass extra parameter to
8488 record_line.
8489 * buildsym.c (buildsym_compunit::record_line): Take an extra
8490 parameter, reduce duplication in the line table, and record the
8491 is_stmt flag in the line table.
8492 * buildsym.h (buildsym_compunit::record_line): Add extra
8493 parameter.
8494 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8495 non-statement lines.
8496 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8497 this to the symtab builder.
8498 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8499 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8500 through to dwarf_record_line_1.
8501 * infrun.c (process_event_stop_test): When stepping, don't stop at
8502 a non-statement instruction, and only refresh the step info when
8503 we land in the middle of a line's range. Also add an extra
8504 comment.
8505 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8506 field.
8507 * record-btrace.c (btrace_find_line_range): Only record lines
8508 marked as is-statement.
8509 * stack.c (frame_show_address): Show the frame address if we are
8510 in a non-statement sal.
8511 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8512 (maintenance_print_one_line_table): Print a header for the is_stmt
8513 column, and include is_stmt information in the output.
8514 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8515 preference to non-statements.
8516 (find_pcs_for_symtab_line): Prefer is-statement entries.
8517 (find_line_common): Likewise.
8518 * symtab.h (struct linetable_entry): Add is_stmt field.
8519 (struct symtab_and_line): Likewise.
8520 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8521 arranging the line table.
8522
e4003a34
TV
85232020-03-07 Tom de Vries <tdevries@suse.de>
8524
8525 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8526 DIE.
8527
e8932576
TT
85282020-03-07 Tom Tromey <tom@tromey.com>
8529
8530 * valops.c (value_literal_complex): Remove obsolete comment.
8531 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8532 comment.
8533
29734269
SM
85342020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * infrun.h: Forward-declare thread_info.
8537 (set_step_info): Add thread_info parameter, add doc.
8538 * infrun.c (set_step_info): Add thread_info parameter, move doc
8539 to header.
8540 * infrun.c (process_event_stop_test): Pass thread to
8541 set_step_info call.
8542 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8543 set_step_info.
8544 (prepare_one_step): Add thread_info parameter, pass it to
8545 set_step_frame and prepare_one_step (recursive) call.
8546 (step_1): Pass thread to prepare_one_step call.
8547 (step_command_fsm::should_stop): Pass thread to
8548 prepare_one_step.
8549 (until_next_fsm): Pass thread to set_step_frame call.
8550 (finish_command): Pass thread to set_step_info call.
8551
b7d64b29
HD
85522020-03-06 Hannes Domani <ssbssa@yahoo.de>
8553
8554 * windows-tdep.c (windows_solib_create_inferior_hook):
8555 Check if inferior is running.
8556
09f2921c
TV
85572020-03-06 Tom de Vries <tdevries@suse.de>
8558
8559 * NEWS: Fix "the the".
8560 * ctfread.c: Same.
8561
fd760e79
TV
85622020-03-06 Tom de Vries <tdevries@suse.de>
8563
8564 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8565
20ea4a60
AB
85662020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * .dir-locals.el: Add a comment referencing the other copies of
8569 this file.
8570
0afbabf0
JB
85712020-03-05 John Baldwin <jhb@FreeBSD.org>
8572
8573 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8574 psargs.
8575
842806cb
TBA
85762020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8577
8578 * .gitattributes: New file.
8579
be1e3d3e
TT
85802020-03-04 Tom Tromey <tom@tromey.com>
8581
8582 * symmisc.c (print_symbol_bcache_statistics)
8583 (print_objfile_statistics): Update.
8584 * symfile.c (allocate_symtab): Use intern.
8585 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8586 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8587 macro_cache>: Remove.
8588 <string_cache>: New member.
8589 (struct objfile) <intern>: New methods.
8590 * elfread.c (elf_symtab_read): Use intern.
8591 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8592 (dwarf2_compute_name, dwarf2_physname)
8593 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8594 names.
8595 (guess_partial_die_structure_name): Update.
8596 (partial_die_info::fixup): Intern name.
8597 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8598 name.
8599 (dwarf2_name): Intern name. Update.
8600 * buildsym.c (buildsym_compunit::get_macro_table): Use
8601 string_cache.
8602
4e7625fd
TT
86032020-03-04 Tom Tromey <tom@tromey.com>
8604
8605 * jit.c (bfd_open_from_target_memory): Make "target" const.
8606 * corefile.c (gnutarget): Now const.
8607 * gdbcore.h (gnutarget): Now const.
8608
46f9f931
HD
86092020-03-04 Hannes Domani <ssbssa@yahoo.de>
8610
8611 * NEWS: Mention support for WOW64 processes.
8612 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8613 (amd64_windows_segment_register_p): Remove static.
8614 (_initialize_amd64_windows_nat): Update.
8615 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8616 * i386-windows-nat.c (context_offset): Update.
8617 (i386_mappings): Rename and remove static.
8618 (i386_windows_segment_register_p): Remove static.
8619 (_initialize_i386_windows_nat): Update.
8620 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8621 (STATUS_WX86_SINGLE_STEP): New macro.
8622 (EnumProcessModulesEx): New macro.
8623 (Wow64SuspendThread): New macro.
8624 (Wow64GetThreadContext): New macro.
8625 (Wow64SetThreadContext): New macro.
8626 (Wow64GetThreadSelectorEntry): New macro.
8627 (windows_set_context_register_offsets): Add static.
8628 (windows_set_segment_register_p): Likewise.
8629 (windows_add_thread): Adapt for WOW64 processes.
8630 (windows_fetch_one_register): Likewise.
8631 (windows_nat_target::fetch_registers): Likewise.
8632 (windows_store_one_register): Likewise.
8633 (display_selector): Likewise.
8634 (display_selectors): Likewise.
8635 (handle_exception): Likewise.
8636 (windows_continue): Likewise.
8637 (windows_nat_target::resume): Likewise.
8638 (windows_add_all_dlls): Likewise.
8639 (do_initial_windows_stuff): Likewise.
8640 (windows_nat_target::attach): Likewise.
8641 (windows_get_exec_module_filename): Likewise.
8642 (windows_nat_target::create_inferior): Likewise.
8643 (windows_xfer_siginfo): Likewise.
8644 (_initialize_loadable): Initialize Wow64SuspendThread,
8645 Wow64GetThreadContext, Wow64SetThreadContext,
8646 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8647 * windows-nat.h (windows_set_context_register_offsets):
8648 Remove declaration.
8649 (windows_set_segment_register_p): Likewise.
8650 (i386_windows_segment_register_p): Add declaration.
8651 (amd64_windows_segment_register_p): Likewise.
8652
440cf44e
LM
86532020-03-04 Luis Machado <luis.machado@linaro.org>
8654
8655 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8656 in "info registers" for AArch64/ARM.
8657
8658 The change caused "info registers" to not print GPR's.
8659
8660 gdb/ChangeLog:
8661
8662 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8663
8664 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8665 when reg->group is empty and reggroup is not.
8666
1009d92f
TT
86672020-03-03 Tom Tromey <tromey@adacore.com>
8668
8669 * dwarf2/frame.c (struct dwarf2_frame_cache)
8670 <checked_tailcall_bottom, entry_cfa_sp_offset,
8671 entry_cfa_sp_offset_p>: Remove members.
8672 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8673 (dwarf2_frame_prev_register): Don't call
8674 dwarf2_tailcall_sniffer_first.
8675 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8676 * frame-unwind.c (add_unwinder): New fuction.
8677 (frame_unwind_init): Use it. Add tailcall unwinder.
8678
5e5d66b6
AB
86792020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8680 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8681
8682 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8683 value should be printed as true.
8684
584cf46d
HD
86852020-03-03 Hannes Domani <ssbssa@yahoo.de>
8686
8687 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8688 (windows_init_abi): Set and use windows_so_ops.
8689
7b973adc
SDJ
86902020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8691
8692 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8693 when verifying if dealing with a convenience variable.
8694
bb7b70ab
LM
86952020-03-03 Luis Machado <luis.machado@linaro.org>
8696
8697 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8698
9822cb57
SM
86992020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8700
8701 * infrun.c (gdbarch_supports_displaced_stepping): New.
8702 (use_displaced_stepping): Break up conditions in smaller pieces.
8703 Use gdbarch_supports_displaced_stepping.
8704 (displaced_step_prepare_throw): Use
8705 gdbarch_supports_displaced_stepping.
8706
63e163f2
AB
87072020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * NEWS: Mention new behaviour of the history filename.
8710 * top.c (write_history_p): Add comment.
8711 (show_write_history_p): Add header comment, give a different
8712 message when history writing is on, but the history filename is
8713 empty.
8714 (history_filename): Add comment.
8715 (history_filename_empty): New function.
8716 (show_history_filename): Add header comment, give a different
8717 message when the filename is empty.
8718 (init_history): Compare history_filename against nullptr, and only
8719 read history if the filename is not empty.
8720 (set_history_filename): Add header comment, and only make
8721 non-empty filenames absolute.
8722 (init_main): Make the filename argument to 'set history filename'
8723 optional.
8724
81b86b97
CB
87252020-03-02 Christian Biesinger <cbiesinger@google.com>
8726
8727 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8728 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8729 (fetch_fp_register): Update.
8730 (fetch_fp_regs): Update.
8731 (store_fp_register): Update.
8732 (store_fp_regs): Update.
8733 (arm_netbsd_nat_target::read_description): New function.
8734 (fetch_elfcore_registers): Update.
8735
24ed6739
AB
87362020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8739 general_thread if the stop reply is missing a thread-id.
8740 (remote_target::process_stop_reply): Use the first non-exited
8741 thread if the target didn't pass a thread-id.
8742 * infrun.c (do_target_wait): Move call to
8743 switch_to_inferior_no_thread to ....
8744 (do_target_wait_1): ... here.
8745
a84bb2a0
JT
87462020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8747
8748 * debuginfod-support.c: Include defs.h first.
8749
658dadf0
TV
87502020-02-28 Tom de Vries <tdevries@suse.de>
8751
8752 * symfile.c (set_initial_language): Use default language for lookup.
8753
4ebe4877
SM
87542020-02-28 Simon Marchi <simon.marchi@efficios.com>
8755
8756 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8757 reader variable, pass `this` to read_cutu_die_from_dwo.
8758
e5da1139
AM
87592020-02-27 Aaron Merey <amerey@redhat.com>
8760
8761 * source.c (open_source_file): Check for nullptr when computing
8762 srcpath.
8763
317f7127
TT
87642020-02-27 Tom Tromey <tromey@adacore.com>
8765
8766 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8767 member.
8768 (dwarf2_add_field): Don't update nfields.
8769 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8770
3104d9ee
AB
87712020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8774 abs.
8775
b83470bf
TT
87762020-02-26 Tom Tromey <tom@tromey.com>
8777
8778 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8779 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8780 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8781 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8782 per_cu_data.
8783
edfe0a0c
TT
87842020-02-26 Tom Tromey <tom@tromey.com>
8785
8786 * dwarf2/index-write.c (psym_index_map): Change type.
8787 (add_address_entry_worker, write_one_signatured_type)
8788 (recursively_count_psymbols, recursively_write_psymbols)
8789 (class debug_names, psyms_seen_size, write_gdbindex)
8790 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8791
0d79cdc4
AM
87922020-02-26 Aaron Merey <amerey@redhat.com>
8793
8794 * Makefile.in: Handle optional debuginfod support.
8795 * NEWS: Update.
8796 * README: Add --with-debuginfod summary.
8797 * config.in: Regenerate.
8798 * configure: Regenerate.
8799 * configure.ac: Handle optional debuginfod support.
8800 * debuginfod-support.c: debuginfod helper functions.
8801 * debuginfod-support.h: Ditto.
8802 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8803 summary.
8804 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8805 when a dwz file cannot be found.
8806 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8807 debuginfo file cannot be found.
8808 * source.c (open_source_file): Query debuginfod servers when a
8809 source file cannot be found.
8810 * top.c (print_gdb_configuration): Include
8811 --{with,without}-debuginfod in the output.
8812
b65ce565
JG
88132020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8814
8815 * thread.c (thr_try_catch_cmd): Print thread name.
8816
d4c9a4f8
SM
88172020-02-26 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8820 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8821 dwarf2_fetch_die_type_sect_off): Move to...
8822 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8824 dwarf2_fetch_die_type_sect_off): ... here.
8825 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8826 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8827 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8828
0dce4280
TV
88292020-02-26 Tom de Vries <tdevries@suse.de>
8830
8831 PR gdb/25603
8832 * symfile.c (set_initial_language): Exit-early if
8833 language_mode == language_mode_manual.
8834
450a1bfc
SM
88352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8836
8837 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8838 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8839 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8840
9e80cfa1
AB
88412020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * gdbtypes.c (create_array_type_with_stride): Handle negative
8844 array strides.
8845 * valarith.c (value_subscripted_rvalue): Likewise.
8846
09624f1f
LM
88472020-02-25 Luis Machado <luis.machado@linaro.org>
8848
8849 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8850
8cb5117c
SM
88512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8852
8853 * loc.h (dwarf2_get_die_type): Move to...
8854 * read.h (dwarf2_get_die_type): ... here.
8855 * read.c (dwarf2_get_die_type): Move doc to header.
8856
c325c44e
JB
88572020-02-25 Joel Brobecker <brobecker@adacore.com>
8858
8859 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8860 'gnulib/Makefile.in' to the list.
8861
4ac93832
TT
88622020-02-24 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8865 Remove.
8866 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8867 XOBNEWVEC.
8868
197400e8
TT
88692020-02-24 Tom Tromey <tom@tromey.com>
8870
8871 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8872 New method.
8873 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8874 (dw2_do_instantiate_symtab, dw2_get_file_names)
8875 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8876
76935768
TT
88772020-02-24 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8880 make_scoped_restore.
8881 (dwarf2_psymtab::read_symtab): Don't clear
8882 reading_partial_symbols.
8883
a88ef40d
TV
88842020-02-24 Tom de Vries <tdevries@suse.de>
8885
8886 PR gdb/25592
8887 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8888
c9af6521
TV
88892020-02-24 Tom de Vries <tdevries@suse.de>
8890
8891 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8892 commands layout next/prev/regs.
8893
5707a07a
TT
88942020-02-22 Tom Tromey <tom@tromey.com>
8895
8896 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8897 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8898
3b0fb49e
TT
88992020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8902
283be8bf
TT
89032020-02-22 Tom Tromey <tom@tromey.com>
8904
8905 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8906 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8907 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8908 * tui/tui.c (_initialize_tui): Add usage text.
8909
ca793b96
TT
89102020-02-22 Tom Tromey <tom@tromey.com>
8911
8912 * tui/tui-win.c (tui_set_focus_command)
8913 (tui_set_win_height_command): Use error_no_arg.
8914 (_initialize_tui_win): Update help text.
8915 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8916
432b5c40
TT
89172020-02-22 Tom Tromey <tom@tromey.com>
8918
8919 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8920 * tui/tui-disasm.h (struct tui_disasm_window)
8921 <display_start_addr>: Declare.
8922 * tui/tui-source.h (struct tui_source_window)
8923 <display_start_addr>: Declare.
8924 * tui/tui-winsource.h (struct tui_source_window_base)
8925 <show_source_line, display_start_addr>: New methods.
8926 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8927 Rename and move to protected section.
8928 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8929 (tui_source_window_base::do_erase_source_content): Update.
8930 (tui_source_window_base::show_source_line): Now a method.
8931 (tui_source_window_base::show_source_content)
8932 (tui_source_window_base::tui_source_window_base)
8933 (tui_source_window_base::rerender)
8934 (tui_source_window_base::refill)
8935 (tui_source_window_base::do_scroll_horizontal)
8936 (tui_source_window_base::set_is_exec_point_at)
8937 (tui_source_window_base::update_breakpoint_info)
8938 (tui_source_window_base::update_exec_info): Update.
8939 * tui/tui-source.c (tui_source_window::set_contents)
8940 (tui_source_window::showing_source_p)
8941 (tui_source_window::do_scroll_vertical)
8942 (tui_source_window::location_matches_p)
8943 (tui_source_window::line_is_displayed): Update.
8944 (tui_source_window::display_start_addr): New method.
8945 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8946 (tui_disasm_window::do_scroll_vertical)
8947 (tui_disasm_window::location_matches_p): Update.
8948 (tui_disasm_window::display_start_addr): New method.
8949
01b1af32
TT
89502020-02-22 Tom Tromey <tom@tromey.com>
8951
8952 * NEWS: Add entry for gdb.register_window_type.
8953 * tui/tui-layout.h (window_factory): New typedef.
8954 (tui_register_window): Declare.
8955 * tui/tui-layout.c (saved_tui_windows): New global.
8956 (tui_apply_current_layout): Use it.
8957 (tui_register_window): New function.
8958 * python/python.c (do_start_initialization): Call
8959 gdbpy_initialize_tui.
8960 (python_GdbMethods): Add "register_window_type" function.
8961 * python/python-internal.h (gdbpy_register_tui_window)
8962 (gdbpy_initialize_tui): Declare.
8963 * python/py-tui.c: New file.
8964 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8965
fc96d20b
TT
89662020-02-22 Tom Tromey <tom@tromey.com>
8967
8968 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8969
935c78c0
TT
89702020-02-22 Tom Tromey <tom@tromey.com>
8971
8972 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8973 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8974 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8975 (tui_set_win_focus_to): Move from tui-win.c.
8976
0240c8f1
TT
89772020-02-22 Tom Tromey <tom@tromey.com>
8978
8979 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8980 functions.
8981 (known_window_types): New global.
8982 (tui_get_window_by_name): Reimplement.
8983 (initialize_known_windows): New function.
8984 (validate_window_name): Rewrite.
8985 (_initialize_tui_layout): Call initialize_known_windows.
8986
fdb01f0c
TT
89872020-02-22 Tom Tromey <tom@tromey.com>
8988
8989 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8990 Remove constants.
8991 * tui/tui-winsource.h (struct tui_source_window_base)
8992 <tui_source_window_base>: Remove parameter.
8993 * tui/tui-winsource.c
8994 (tui_source_window_base::tui_source_window_base): Remove
8995 parameter.
8996 (tui_source_window_base::refill): Update.
8997 * tui/tui-stack.h (struct tui_locator_window)
8998 <tui_locator_window>: Update.
8999 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9000 Default the constructor.
9001 * tui/tui-regs.h (struct tui_data_item_window)
9002 <tui_data_item_window>: Default the constructor.
9003 (struct tui_data_window) <tui_data_window>: Likewise.
9004 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9005 Default the constructor.
9006 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9007 Default the constructor.
9008 <type>: Remove.
9009 (struct tui_win_info) <tui_win_info>: Default the constructor.
9010 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9011 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9012 Default the constructor.
9013
865a5aec
TT
90142020-02-22 Tom Tromey <tom@tromey.com>
9015
9016 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9017 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9018 * tui/tui-win.c (tui_resize_all): Don't call
9019 tui_delete_invisible_windows.
9020 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9021 done.
9022 (tui_set_layout): Update.
9023 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9024 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9025 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9026
e098d18c
TT
90272020-02-22 Tom Tromey <tom@tromey.com>
9028
9029 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9030 correctly.
9031
eb9c8874
TT
90322020-02-22 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9035
7eed1a8e
TT
90362020-02-22 Tom Tromey <tom@tromey.com>
9037
9038 * tui/tui-winsource.h (struct tui_source_window_iterator)
9039 <inner_iterator>: New etytypedef.
9040 <tui_source_window_iterator>: Take "end" parameter.
9041 <tui_source_window_iterator>: Take iterator.
9042 <operator*, advance>: Update.
9043 <m_iter>: Change type.
9044 <m_end>: New field.
9045 (struct tui_source_windows) <begin, end>: Update.
9046 * tui/tui-layout.c (tui_windows): New global.
9047 (tui_apply_current_layout): Clear tui_windows.
9048 (tui_layout_window::apply): Update tui_windows.
9049 * tui/tui-data.h (tui_windows): Declare.
9050 (all_tui_windows): Now inline function.
9051 (class tui_window_iterator, struct all_tui_windows): Remove.
9052
7c043ba6
TT
90532020-02-22 Tom Tromey <tom@tromey.com>
9054
9055 PR tui/17850:
9056 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9057 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9058 "height" argument.
9059 (class tui_layout_window) <get_sizes>: Likewise.
9060 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9061 argument.
9062 <get_sizes>: Add "height" argument.
9063 <m_vertical>: New field.
9064 * tui/tui-layout.c (tui_layout_split::clone): Update.
9065 (tui_layout_split::get_sizes): Add "height" argument.
9066 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9067 (tui_new_layout_command): Parse "-horizontal".
9068 (_initialize_tui_layout): Update help string.
9069 (tui_layout_split::specification): Add "-horizontal" when needed.
9070 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9071 argument.
9072 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9073 New methods.
9074
6bc56648
TT
90752020-02-22 Tom Tromey <tom@tromey.com>
9076
9077 * tui/tui-layout.h (enum tui_adjust_result): New.
9078 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9079 (class tui_layout_window) <adjust_size>: Return
9080 tui_adjust_result. Rewrite.
9081 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9082 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9083
c22fef7e
TT
90842020-02-22 Tom Tromey <tom@tromey.com>
9085
9086 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9087 parameter and return types.
9088 (class tui_layout_base) <specification>: Add "depth".
9089 (class tui_layout_window) <specification>: Add "depth".
9090 (class tui_layout_split) <specification>: Add "depth".
9091 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9092 and return types.
9093 (tui_new_layout_command): Parse sub-layouts.
9094 (_initialize_tui_layout): Update help string.
9095 (tui_layout_window::specification): Add "depth".
9096 (add_layout_command): Update.
9097
ee325b61
TT
90982020-02-22 Tom Tromey <tom@tromey.com>
9099
9100 * NEWS: Add "tui new-layout" item.
9101 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9102 Add new-layout command to help text.
9103 (validate_window_name): New function.
9104 (tui_new_layout_command): New function.
9105 (_initialize_tui_layout): Register "new-layout".
9106 (tui_layout_window::specification): New method.
9107 (tui_layout_window::specification): New method.
9108 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9109 method.
9110 (class tui_layout_window) <specification>: New method.
9111 (class tui_layout_split) <specification>: New method.
9112
416eb92d
TT
91132020-02-22 Tom Tromey <tom@tromey.com>
9114
9115 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9116 * tui/tui-win.c (window_name_completer): Update comment.
9117 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9118 Declare method.
9119 (class tui_layout_window) <replace_window>: Likewise.
9120 (class tui_layout_split) <replace_window>: Likewise.
9121 (tui_set_layout): Don't declare.
9122 (tui_set_initial_layout): Declare function.
9123 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9124 (asm_regs_layout): New globals.
9125 (tui_current_layout, show_layout): Remove.
9126 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9127 (find_layout, tui_apply_layout): New function.
9128 (layout_completer): Remove.
9129 (tui_next_layout): Reimplement.
9130 (tui_next_layout_command): New function.
9131 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9132 (tui_regs_layout): Reimplement.
9133 (tui_regs_layout_command): New function.
9134 (extract_display_start_addr): Rewrite.
9135 (next_layout, prev_layout): Remove.
9136 (tui_layout_window::replace_window): New method.
9137 (tui_layout_split::replace_window): New method.
9138 (destroy_layout): New function.
9139 (layout_list): New global.
9140 (add_layout_command): New function.
9141 (initialize_layouts): Update.
9142 (tui_layout_command): New function.
9143 (_initialize_tui_layout): Install "layout" commands.
9144 * tui/tui-data.h (enum tui_layout_type): Remove.
9145 (tui_current_layout): Don't declare.
9146
0dbc2fc7
TT
91472020-02-22 Tom Tromey <tom@tromey.com>
9148
9149 * tui/tui-regs.c (tui_reg_layout): Remove.
9150 (tui_reg_command): Use tui_regs_layout.
9151 * tui/tui-layout.h (tui_reg_command): Declare.
9152 * tui/tui-layout.c (tui_reg_command): New function.
9153
5afe342e
TT
91542020-02-22 Tom Tromey <tom@tromey.com>
9155
9156 * tui/tui.c (tui_rl_delete_other_windows): Call
9157 tui_remove_some_windows.
9158 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9159 Declare method.
9160 (class tui_layout_window) <remove_windows>: New method.
9161 (class tui_layout_split) <remove_windows>: Declare.
9162 (tui_remove_some_windows): Declare.
9163 * tui/tui-layout.c (tui_remove_some_windows): New function.
9164 (tui_layout_split::remove_windows): New method.
9165
427326a8
TT
91662020-02-22 Tom Tromey <tom@tromey.com>
9167
9168 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9169 * tui/tui-layout.h (tui_next_layout): Declare.
9170 * tui/tui-layout.c (tui_next_layout): New function.
9171
3fe12b6d
TT
91722020-02-22 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9175 correct coordinates.
9176
59b8b5d2
TT
91772020-02-22 Tom Tromey <tom@tromey.com>
9178
9179 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9180 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9181 DATA_WIN case.
9182
2a3d458b
TT
91832020-02-22 Tom Tromey <tom@tromey.com>
9184
9185 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9186 TUI_DISASM_WIN, not tui_win_list.
9187
3f0cbb04
TT
91882020-02-22 Tom Tromey <tom@tromey.com>
9189
9190 * valprint.c (generic_val_print_enum_1)
9191 (val_print_type_code_flags): Style member names.
9192 * rust-lang.c (val_print_struct, rust_print_enum)
9193 (rust_print_struct_def, rust_internal_print_type): Style member
9194 names.
9195 * p-valprint.c (pascal_object_print_value_fields): Style member
9196 names. Only call fprintf_symbol_filtered for static members.
9197 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9198 * f-valprint.c (f_val_print): Style member names.
9199 * f-typeprint.c (f_type_print_base): Style member names.
9200 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9201 call fprintf_symbol_filtered for static members.
9202 (cp_print_class_member): Style member names.
9203 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9204 member names.
9205 * ada-valprint.c (ada_print_scalar): Style enum names.
9206 (ada_val_print_enum): Likewise.
9207 * ada-typeprint.c (print_enum_type): Style enum names.
9208
d4d947ae
TT
92092020-02-21 Tom Tromey <tom@tromey.com>
9210
9211 * psympriv.h (struct partial_symtab): Update comment.
9212
e94e944b
TT
92132020-02-21 Tom Tromey <tromey@adacore.com>
9214
9215 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9216 type is CORE_ADDR.
9217
1eb73179
TV
92182020-02-21 Tom de Vries <tdevries@suse.de>
9219
9220 PR gdb/25534
9221 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9222 if dependencies[i]->user != NULL.
9223
4f180d53
AT
92242020-02-21 Ali Tamur <tamur@google.com>
9225
9226 * dwarf2/read.c (dwarf2_name): Add null check.
9227
22b6cd70
TT
92282020-02-20 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9231 ">=", in binary search.
9232 (dwarf2_find_containing_comp_unit): New overload.
9233 (run_test): New self-test.
9234 (_initialize_dwarf2_read): Register new test.
9235
bd0cf5a6
NC
92362020-02-20 Nelson Chu <nelson.chu@sifive.com>
9237
9238 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9239 * riscv-tdep.h: Likewise.
9240 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9241 rv32-only CSR.
9242 * features/riscv/64bit-csr.xml: Regenerated.
9243
3f702acd
SDJ
92442020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9245 Tom Tromey <tom@tromey.com>
9246
9247 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9248 of 'fputc_unfiltered'.
9249 (putchar_unfiltered): Call 'fputc_unfiltered'.
9250 (fputc_unfiltered): Call 'fputs_unfiltered'.
9251
d13c7322
AB
92522020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9253
9254 * config.in: Regenerate.
9255 * configure: Regenerate.
9256 * configure.ac: Add --with-python-libdir option.
9257 * main.c: Use WITH_PYTHON_LIBDIR.
9258
869d8950
TT
92592020-02-19 Tom Tromey <tom@tromey.com>
9260
9261 * symtab.c (general_symbol_info::compute_and_set_names): Use
9262 obstack_strndup. Simplify call to symbol_set_demangled_name.
9263
298e9637
SM
92642020-02-19 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.c (allocate_signatured_type_table,
9267 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9268 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9269 Remove objfile parameter, update all callers.
9270
08410482
DE
92712020-02-19 Doug Evans <dje@google.com>
9272
9273 PR rust/25535
9274 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9275 rust_enum_variant calculation.
9276
dfdeeca1
TT
92772020-02-19 Tom Tromey <tromey@adacore.com>
9278
9279 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9280
2ef5453b
TT
92812020-02-19 Tom Tromey <tromey@adacore.com>
9282
9283 * ada-lang.c (cache_symbol): Use obstack_strdup.
9284
9f1528a1
AB
92852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 * configure: Regenerate.
9288
d3c22fa8
TT
92892020-02-19 Tom Tromey <tromey@adacore.com>
9290
9291 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9292 NULL check.
9293
bf84f706
MR
92942020-02-19 Maciej W. Rozycki <macro@wdc.com>
9295
9296 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9297
d1c9b20f
AB
92982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9301 if GDBSERVER is not defined.
9302 (riscv_tdesc_cache): Likewise, also store const target_desc.
9303 (STATIC_IN_GDB): Define.
9304 (riscv_create_target_description): Update declaration with
9305 STATIC_IN_GDB.
9306 (riscv_lookup_target_description): New function, only define if
9307 GDBSERVER is not defined.
9308 * arch/riscv.h (riscv_create_target_description): Declare only
9309 when GDBSERVER is defined.
9310 (riscv_lookup_target_description): New declaration when GDBSERVER
9311 is not defined.
9312 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9313 (riscv_linux_read_features): ...this, and return
9314 riscv_gdbarch_features instead of target_desc.
9315 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9316 (riscv_linux_read_description): Rename to...
9317 (riscv_linux_read_features): ...this.
9318 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9319 Update to use riscv_gdbarch_features and
9320 riscv_lookup_target_description.
9321 * riscv-tdep.c (riscv_find_default_target_description): Use
9322 riscv_lookup_target_description instead of
9323 riscv_create_target_description.
9324
373d7ac0
SM
93252020-02-18 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * valprint.c (generic_val_print_enum_1): When printing a flag
9328 enum with value 0 and there is no enumerator with value 0, print
9329 just "0" instead of "(unknown: 0x0)".
9330
b29a2df0
SM
93312020-02-18 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * valprint.c (generic_val_print_enum_1): Print unknown part of
9334 flag enum in hex.
9335
6740f0cc
SM
93362020-02-18 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9339 flag enums to contain duplicate enumerators.
9340 * valprint.c (generic_val_print_enum_1): Update comment.
9341
edd45eb0
SM
93422020-02-18 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * dwarf2/read.c: Include "count-one-bits.h".
9345 (update_enumeration_type_from_children): If an enumerator has
9346 multiple bits set, don't treat the enumeration as a "flag enum".
9347 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9348 of flag enums have 0 or 1 bit set.
9349
6d0cf446
BE
93502020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9351
9352 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9353 conversion.
9354 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9355 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9356 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9357 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9358 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9359
7001c1b7
SM
93602020-02-18 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9363
fdb61c6c
SM
93642020-02-14 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9367 displaced_step_closure_up.
9368 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9369 (struct displaced_step_closure_up):
9370 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9371 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9372 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9373 Likewise.
9374 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9375 * gdbarch.c, gdbarch.h: Re-generate.
9376 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9377 displaced_step_closure_up.
9378 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9379 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9380 * infrun.h (displaced_step_closure_up): New type alias.
9381 (struct displaced_step_inferior_state) <step_closure>: Change
9382 type to displaced_step_closure_up.
9383 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9384 displaced_step_closure_up.
9385 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9386
a4a38eb4
TT
93872020-02-14 Tom Tromey <tom@tromey.com>
9388
9389 * minidebug.c (gnu_debug_key): New global.
9390 (find_separate_debug_file_in_section): Use it.
9391
e8217e61
SM
93922020-02-14 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9395 std::unique_ptr.
9396 * gdbarch.c: Re-generate.
9397 * gdbarch.h: Re-generate.
9398 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9399 change.
9400 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9401 type to std::unique_ptr.
9402 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9403 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9404 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9405 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9406 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9407 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9408 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9409 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9410 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9411
d8d83535
SM
94122020-02-14 Simon Marchi <simon.marchi@efficios.com>
9413
9414 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9415 std::unique_ptr.
9416 (displaced_step_clear): Rename to...
9417 (displaced_step_reset): ... this. Just call displaced->reset ().
9418 (displaced_step_clear_cleanup): Rename to...
9419 (displaced_step_reset_cleanup): ... this.
9420 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9421 (displaced_step_fixup): Likewise.
9422 (resume_1): Likewise.
9423 (handle_inferior_event): Restore child's memory before calling
9424 displaced_step_fixup on the parent.
9425 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9426 to std::unique_ptr.
9427 <step_closure>: Change type to std::unique_ptr.
9428
5f661e03
SM
94292020-02-14 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * arm-tdep.c: Include count-one-bits.h.
9432 (cleanup_block_store_pc): Use count_one_bits.
9433 (cleanup_block_load_pc): Use count_one_bits.
9434 (arm_copy_block_xfer): Use count_one_bits.
9435 (thumb2_copy_block_xfer): Use count_one_bits.
9436 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9437 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9438 (thumb_get_next_pcs_raw): Use count_one_bits.
9439 (arm_get_next_pcs_raw): Use count_one_bits_l.
9440 * arch/arm.c (bitcount): Remove.
9441 * arch/arm.h (bitcount): Remove.
9442
8084e579
TT
94432020-02-14 Tom Tromey <tromey@adacore.com>
9444
9445 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9446 Update.
9447 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9448 * dwarf2/loc.c (call_site_find_chain_1): Return
9449 unique_xmalloc_ptr.
9450 (call_site_find_chain): Likewise.
9451
258bf0ee
RB
94522020-02-14 Richard Biener <rguenther@suse.de>
9453
9454 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9455 on expression with division operators.
9456
f98a8458
AKS
94572020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9458
9459 * MAINTAINERS (Write After Approval): Adding myself.
9460
d1437c0e
TT
94612020-02-12 Tom Tromey <tom@tromey.com>
9462
9463 * event-loop.c (event_data, gdb_event, event_handler_func):
9464 Remove.
9465
3d4560f7
TT
94662020-02-12 Tom Tromey <tom@tromey.com>
9467
9468 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9469 (dwarf2_frame_objfile_data): Add comment.
9470 (find_comp_unit, set_comp_unit): New functions.
9471 (dwarf2_frame_find_fde): Use find_comp_unit.
9472 (dwarf2_build_frame_info): Use set_comp_unit.
9473
21982304
TT
94742020-02-12 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9477 (comp_unit): Don't initialize objfile.
9478 (execute_cfa_program): Add text_offset parameter.
9479 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9480 (dwarf2_frame_cache): Update.
9481 (dwarf2_build_frame_info): Don't set "objfile" member.
9482
4debb237
TT
94832020-02-12 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9486 (decode_frame_entry): Likewise.
9487 (dwarf2_build_frame_info): Update.
9488
0d404d44
TT
94892020-02-12 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9492 (decode_frame_entry_1): Use the comp_unit obstack.
9493
a7a3ae5c
TT
94942020-02-12 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/frame.c (struct comp_unit): Add initializers and
9497 constructor.
9498 (dwarf2_frame_objfile_data): Store a comp_unit.
9499 (dwarf2_frame_find_fde): Update.
9500 (dwarf2_build_frame_info): Use "new".
9501
a9d65418
TT
95022020-02-12 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9505 (dwarf2_fde_table): Typedef for std::vector.
9506 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9507 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9508 (decode_frame_entry): Update.
9509 (dwarf2_build_frame_info): Use "new".
9510
7559c217
CB
95112020-02-12 Christian Biesinger <cbiesinger@google.com>
9512
9513 * arm-tdep.c (arm_gdbarch_init): Update.
9514 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9515 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9516 have_neon, is_m>: Change to bool.
9517
aeefc73c
CB
95182020-02-12 Christian Biesinger <cbiesinger@google.com>
9519
9520 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9521
d27b8e5f
TT
95222020-02-12 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9525
cd5900f3
HD
95262020-02-12 Hannes Domani <ssbssa@yahoo.de>
9527
9528 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9529 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9530
f056b22b
TT
95312020-02-11 Tom Tromey <tom@tromey.com>
9532
9533 * psymtab.h: Update comment.
9534
f92ff6b5
TT
95352020-02-11 Tom Tromey <tom@tromey.com>
9536
9537 * gdb_obstack.h (struct auto_obstack): Use
9538 DISABLE_COPY_AND_ASSIGN.
9539
3fd6912b
TT
95402020-02-11 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/frame.h (struct objfile): Don't forward declare.
9543
69ed9b74
CB
95442020-02-11 Christian Biesinger <cbiesinger@google.com>
9545
9546 * cris-tdep.c (cris_supply_gregset): Change signature to match
9547 what struct regset expects.
9548 (cris_regset): New struct.
9549 (fetch_core_registers): Remove.
9550 (cris_iterate_over_regset_sections): New function.
9551 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9552 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9553
bda874f6
CB
95542020-02-11 Christian Biesinger <cbiesinger@google.com>
9555
9556 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9557 registers.
9558
754e1564
CB
95592020-02-11 Christian Biesinger <cbiesinger@google.com>
9560
9561 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9562
8ddd8e0e
SM
95632020-02-11 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * configure: Re-generate.
9566
898e7f60
SM
95672020-02-11 Simon Marchi <simon.marchi@efficios.com>
9568
9569 * configure: Re-generate.
9570
58df732b
SM
95712020-02-11 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * acinclude: Update warning.m4 path.
9574 * warning.m4: Move to gdbsupport.
9575
da5bd37e
TT
95762020-02-11 Tom Tromey <tromey@adacore.com>
9577
9578 * remote.c (remote_console_output): Update.
9579 * printcmd.c (printf_command): Update.
9580 * event-loop.c (gdb_wait_for_event): Update.
9581 * linux-nat.c (sigchld_handler): Update.
9582 * remote-sim.c (gdb_os_write_stdout): Update.
9583 (gdb_os_flush_stdout): Update.
9584 (gdb_os_flush_stderr): Update.
9585 (gdb_os_write_stderr): Update.
9586 * exceptions.c (print_exception): Update.
9587 * remote-fileio.c (remote_fileio_func_read): Update.
9588 (remote_fileio_func_write): Update.
9589 * tui/tui.c (tui_enable): Update.
9590 * tui/tui-interp.c (tui_interp::init): Update.
9591 * utils.c (init_page_info): Update.
9592 (putchar_unfiltered, fputc_unfiltered): Update.
9593 (gdb_flush): Update.
9594 (emit_style_escape): Update.
9595 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9596 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9597 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9598 (stderr_file::write): Update.
9599 (stderr_file::puts): Update.
9600 * ui-file.h (ui_file_isatty, ui_file_write)
9601 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9602 (ui_file_puts): Don't declare.
9603
85f0dd3c
TV
96042020-02-10 Tom de Vries <tdevries@suse.de>
9605
9606 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9607 sentinel to char *.
9608
2e927613
TV
96092020-02-09 Tom de Vries <tdevries@suse.de>
9610
9611 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9612 filename if it matches "<artificial>".
9613
6bafc845
HD
96142020-02-09 Hannes Domani <ssbssa@yahoo.de>
9615
9616 * windows-tdep.c (struct enum_value_name): New struct.
9617 (create_enum): New function.
9618 (windows_get_siginfo_type): Create and use enum types.
9619
7928d571
HD
96202020-02-09 Hannes Domani <ssbssa@yahoo.de>
9621
9622 * NEWS: Mention $_siginfo support for Windows.
9623 * windows-nat.c (handle_exception): Set siginfo_er.
9624 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9625 (windows_xfer_siginfo): New function.
9626 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9627 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9628 (init_windows_gdbarch_data): New function.
9629 (get_windows_gdbarch_data): New function.
9630 (windows_get_siginfo_type): New function.
9631 (windows_init_abi): Register windows_get_siginfo_type.
9632 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9633
6751ebae
TT
96342020-02-08 Tom Tromey <tom@tromey.com>
9635
9636 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9637 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9638 <keep>: Declare method.
9639 <m_keep>: Remove member.
9640 <~cutu_reader>: Remove.
9641 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9642 (cutu_reader::cutu_reader): Update.
9643 (cutu_reader::keep): Rename from ~cutu_reader.
9644 (process_psymtab_comp_unit, build_type_psymtabs_1)
9645 (process_skeletonless_type_unit, load_partial_comp_unit)
9646 (load_full_comp_unit, dwarf2_read_addr_index)
9647 (read_signatured_type): Update.
9648
135f5437
TT
96492020-02-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9652 "want_partial_unit" parameter.
9653 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9654 Inline check for DW_TAG_partial_unit.
9655 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9656
9f66ff1c
TT
96572020-02-08 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9660 read.c.
9661 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9662 read.c.
9663
c8a7a66f
TT
96642020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/read.c (read_address): Move to comp-unit.c.
9667 (dwarf2_rnglists_process, dwarf2_ranges_process)
9668 (read_attribute_value, dwarf_decode_lines_1)
9669 (var_decode_location, decode_locdesc): Update.
9670 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9671 read.c. Remove "cu" parameter.
9672 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9673 method.
9674
8266302d
TT
96752020-02-08 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9678 (read_indirect_line_string): Update.
9679 * dwarf2/comp-unit.c (read_offset): Remove.
9680 (read_comp_unit_head): Update.
9681 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9682 method.
9683 (read_offset): Don't declare.
9684
4057dfde
TT
96852020-02-08 Tom Tromey <tom@tromey.com>
9686
9687 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9688 * dwarf2/read.c (struct comp_unit_head): Move to
9689 dwarf2/comp-unit.h.
9690 (enum class rcuh_kind): Move to comp-unit.h.
9691 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9692 (read_comp_unit_head, error_check_comp_unit_head)
9693 (read_and_check_comp_unit_head): Move to comp-unit.c.
9694 (read_offset, dwarf_unit_type_name): Likewise.
9695 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9696 (cutu_reader::cutu_reader, read_call_site_scope)
9697 (find_partial_die, follow_die_offset): Update.
9698 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9699
24aa364d
TT
97002020-02-08 Tom Tromey <tom@tromey.com>
9701
9702 * dwarf2/read.c (read_offset_1): Move to leb.c.
9703 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9704 (dwarf_decode_macro_bytes): Update.
9705 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9706 * dwarf2/leb.h (read_offset): Declare.
9707
2c7d5afc
TT
97082020-02-08 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/read.c (dwarf2_section_size): Remove.
9711 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9712 Update.
9713 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9714
4075cb26
TT
97152020-02-08 Tom Tromey <tom@tromey.com>
9716
9717 * dwarf2/read.c (read_initial_length): Move to leb.c.
9718 * dwarf2/leb.h (read_initial_length): Declare.
9719 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9720 handle_nonstd parameter.
9721 * dwarf2/frame.c (read_initial_length): Remove.
9722 (decode_frame_entry_1): Update.
9723
09ba997f
TT
97242020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/loc.c (dwarf2_find_location_expression)
9727 (dwarf_evaluate_loc_desc::get_tls_address)
9728 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9729 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9730 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9731 (dwarf2_compile_property_to_c)
9732 (dwarf2_loc_desc_get_symbol_read_needs)
9733 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9734 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9735 (loclist_describe_location, loclist_tracepoint_var_ref)
9736 (loclist_generate_c_location): Update.
9737 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9738 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9739 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9740 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9741 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9742 (dwarf2_per_cu_data::addr_size)
9743 (dwarf2_per_cu_data::ref_addr_size)
9744 (dwarf2_per_cu_data::text_offset)
9745 (dwarf2_per_cu_data::addr_type): Now methods.
9746 (per_cu_header_read_in): Make per_cu "const".
9747 (dwarf2_version): Remove.
9748 (dwarf2_per_cu_data::int_type): Now a method.
9749 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9750 (set_die_type, read_array_type, read_subrange_index_type)
9751 (read_tag_string_type, read_subrange_type): Update.
9752 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9753 offset_size, ref_addr_size, text_offset, addr_type, version,
9754 objfile, int_type, addr_sized_int_type>: Declare methods.
9755
96c738c0
TT
97562020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9759 Move earlier.
9760
8fdd972c
TT
97612020-02-08 Tom Tromey <tom@tromey.com>
9762
9763 * dwarf2/read.h (dwarf_line_debug): Declare.
9764 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9765 * dwarf2/read.c: Move line_header code to new files.
9766 (dwarf_line_debug): No longer static.
9767 * dwarf2/line-header.c: New file.
9768 * dwarf2/line-header.h: New file.
9769
03075812
TT
97702020-02-08 Tom Tromey <tom@tromey.com>
9771
9772 * dwarf2/read.c (struct line_header) <file_full_name,
9773 file_file_name>: Return unique_xmalloc_ptr.
9774 (line_header::file_file_name): Update.
9775 (line_header::file_full_name): Update.
9776 (dw2_get_file_names_reader): Update.
9777 (macro_start_file): Update.
9778
bb822404
TT
97792020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2/read.c (struct line_header) <file_full_name,
9782 file_file_name>: Declare methods.
9783 (dw2_get_file_names_reader): Update.
9784 (file_file_name): Now a method.
9785 (file_full_name): Likewise.
9786 (macro_start_file): Update.
9787
009b64fc
TT
97882020-02-08 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2/read.c (dwarf_always_disassemble)
9791 (show_dwarf_always_disassemble): Move to loc.c.
9792 (_initialize_dwarf2_read): Move "always-disassemble" registration
9793 to loc.c.
9794 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9795 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9796 static.
9797 (show_dwarf_always_disassemble): Move from read.c.
9798 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9799
5895093f
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9803 (create_quick_file_names_table): Return htab_up.
9804 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9805 Update.
9806 * dwarf2/read.h (struct dwarf2_per_objfile)
9807 <quick_file_names_table>: Now htab_up.
9808
b3b32279
TT
98092020-02-08 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9812
1d33d811
TT
98132020-02-08 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9816 Rewrite.
9817 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9818 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9819 (abbrev_table::abbrev_table): No longer inline.
9820 (ABBREV_HASH_SIZE): Remove.
9821 (abbrev_table::m_abbrevs): Now an htab_up.
9822
86de1d91
TT
98232020-02-08 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9826 (cutu_reader): Update.
9827 (build_type_psymtabs_1): Update.
9828 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9829 (abbrev_table::alloc_abbrev): Update.
9830 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9831 (abbrev_table::read): New static method, renamed from
9832 abbrev_table_read_table.
9833 (abbrev_table::alloc_abbrev)
9834 (abbrev_table::add_abbrev): Now private.
9835 (abbrev_table::abbrev_table): Now private.
9836 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9837
0335378b
TT
98382020-02-08 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9841 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9842 htab_up.
9843
48b490f2
TT
98442020-02-08 Tom Tromey <tom@tromey.com>
9845
9846 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9847 htab_up.
9848 (lookup_dwo_unit_in_dwp): Update.
9849 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9850 on obstack.
9851
bc68fb19
TT
98522020-02-08 Tom Tromey <tom@tromey.com>
9853
9854 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9855 obstack.
9856
d15acc42
TT
98572020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9860 line_header_hash.
9861 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9862 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9863 Change type to htab_up.
9864
eaa5fa8b
TT
98652020-02-08 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9868 htab_up. Don't allocate on obstack.
9869 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9870 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9871 Change type to htab_up.
9872
b0b6a987
TT
98732020-02-08 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9876 Change type to htab_up.
9877 * dwarf2/read.c (create_signatured_type_table_from_index)
9878 (create_signatured_type_table_from_debug_names)
9879 (create_all_type_units, add_type_unit)
9880 (lookup_dwo_signatured_type, lookup_signatured_type)
9881 (process_skeletonless_type_unit): Update.
9882 (create_debug_type_hash_table, create_debug_types_hash_table):
9883 Change type of types_htab.
9884 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9885 htab_up. Don't allocate on obstack.
9886 (create_cus_hash_table): Change type of cus_htab parameter.
9887 (struct dwo_file) <cus, tus>: Now htab_up.
9888 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9889 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9890 (queue_and_load_all_dwo_tus): Update.
9891 * dwarf2/index-write.c (write_gdbindex): Update.
9892 (write_debug_names): Update.
9893
39856def
TT
98942020-02-08 Tom Tromey <tom@tromey.com>
9895
9896 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9897 dwarf2/read.c. Remove "next" member. Add constructor ntad
9898 destructor.
9899 (struct dwarf2_per_objfile) <queue>: New member.
9900 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9901 dwarf2/read.h.
9902 (dwarf2_queue, dwarf2_queue_tail): Remove.
9903 (class dwarf2_queue_guard): Add parameter to constructor. Use
9904 DISABLE_COPY_AND_ASSIGN.
9905 <m_per_objfile>: New member.
9906 <~dwarf2_queue_guard>: Rewrite.
9907 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9908 Update.
9909 (~dwarf2_queue_item): New.
9910
3e225074
TT
99112020-02-08 Tom Tromey <tom@tromey.com>
9912
9913 * dwarf2/read.c (struct die_info) <has_children>: New member.
9914 (dw2_get_file_names_reader): Remove has_children.
9915 (dw2_get_file_names): Update.
9916 (read_cutu_die_from_dwo): Remove has_children.
9917 (cutu_reader::init_tu_and_read_dwo_dies)
9918 (cutu_reader::cutu_reader): Update.
9919 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9920 Remove has_children.
9921 (build_type_psymtabs_1, process_skeletonless_type_unit)
9922 (load_partial_comp_unit, load_full_comp_unit): Update.
9923 (create_dwo_cu_reader): Remove has_children.
9924 (create_cus_hash_table, read_die_and_children): Update.
9925 (read_full_die_1,read_full_die): Remove has_children.
9926 (read_signatured_type): Update.
9927 (class cutu_reader) <has_children>: Remove.
9928
82ca8957
TT
99292020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/expr.c: Rename from dwarf2expr.c.
9932 * dwarf2/expr.h: Rename from dwarf2expr.h.
9933 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9934 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9935 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9936 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9937 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9938 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9939 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9940 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9941 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9942 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9943 * dwarf2/loc.c: Rename from dwarf2loc.c.
9944 * dwarf2/loc.h: Rename from dwarf2loc.h.
9945 * dwarf2/read.c: Rename from dwarf2read.c.
9946 * dwarf2/read.h: Rename from dwarf2read.h.
9947 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9948 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9949 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9950 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9951 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9952 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9953 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9954 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9955 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9956 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9957 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9958 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9959 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9960 Update.
9961 * Makefile.in (COMMON_SFILES): Update.
9962 (HFILES_NO_SRCDIR): Update.
9963
9e35d499
TT
99642020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9967 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9968
1eba2311
TT
99692020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2read.h (struct die_info): Don't declare.
9972
e41c2da2
TT
99732020-02-08 Tom Tromey <tom@tromey.com>
9974
9975 * dwarf2read.h (die_info_ptr): Remove typedef.
9976
4fc6c0d5
TT
99772020-02-08 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2read.c (read_call_site_scope)
9980 (handle_data_member_location, dwarf2_add_member_fn)
9981 (mark_common_block_symbol_computed, read_common_block)
9982 (attr_to_dynamic_prop, partial_die_info::read)
9983 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9984 (dwarf2_symbol_mark_computed, set_die_type): Update.
9985 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9986 method.
9987 (attr_form_is_block): Don't declare.
9988 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9989
cd6c91b4
TT
99902020-02-08 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2read.c (dwarf2_find_base_address, )
9993 (read_call_site_scope, rust_containing_type)
9994 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9995 (handle_data_member_location, dwarf2_add_member_fn)
9996 (get_alignment, read_structure_type, process_structure_scope)
9997 (mark_common_block_symbol_computed, read_common_block)
9998 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9999 (partial_die_info::read, read_attribute_value, new_symbol)
10000 (lookup_die_type, dwarf2_get_ref_die_offset)
10001 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10002 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10003 (dwarf2_symbol_mark_computed): Update.
10004 * dwarf2/attribute.h (struct attribute) <value_as_address,
10005 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10006 methods.
10007 (value_as_address, attr_form_is_section_offset)
10008 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10009 * dwarf2/attribute.c (attribute::value_as_address)
10010 (attribute::form_is_section_offset, attribute::form_is_constant)
10011 (attribute::form_is_ref): Now methods.
10012
162dce55
TT
100132020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2read.c (struct attribute, DW_STRING)
10016 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10017 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10018 (attr_form_is_block, attr_form_is_section_offset)
10019 (attr_form_is_constant, attr_form_is_ref): Move.
10020 * dwarf2/attribute.h: New file.
10021 * dwarf2/attribute.c: New file, from dwarf2read.c.
10022 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10023
3054dd54
TT
100242020-02-08 Tom Tromey <tom@tromey.com>
10025
10026 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10027 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10028 Move.
10029 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10030 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10031 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10032 abbrev.c.
10033 * dwarf2/abbrev.h: New file.
10034 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10035 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10036
96b79293
TT
100372020-02-08 Tom Tromey <tom@tromey.com>
10038
10039 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10040 (dwarf2_section_size, dwarf2_get_section_info)
10041 (create_signatured_type_table_from_debug_names)
10042 (create_addrmap_from_aranges, read_debug_names_from_section)
10043 (get_gdb_index_contents_from_section, read_comp_unit_head)
10044 (error_check_comp_unit_head, read_abbrev_offset)
10045 (create_debug_type_hash_table, init_cu_die_reader)
10046 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10047 (read_comp_units_from_section, create_cus_hash_table)
10048 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10049 (create_dwp_v2_section, dwarf2_rnglists_process)
10050 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10051 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10052 (read_indirect_string_from_dwz, read_addr_index_1)
10053 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10054 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10055 (fill_in_loclist_baton): Update.
10056 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10057 get_containing_section, get_bfd_owner, get_bfd_section,
10058 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10059 (dwarf2_read_section, get_section_name, get_section_file_name)
10060 (get_containing_section, get_section_bfd_owner)
10061 (get_section_bfd_section, get_section_name, get_section_file_name)
10062 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10063 declare.
10064 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10065 (dwarf2_section_info::get_bfd_owner)
10066 (dwarf2_section_info::get_bfd_section)
10067 (dwarf2_section_info::get_name)
10068 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10069 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10070 (dwarf2_section_info::read): Now methods.
10071 * dwarf-index-write.c (class debug_names): Update.
10072
2c86cff9
TT
100732020-02-08 Tom Tromey <tom@tromey.com>
10074
10075 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10076 Move to dwarf2/section.h.
10077 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10078 (get_section_bfd_section, get_section_name)
10079 (get_section_file_name, get_section_id, get_section_flags)
10080 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10081 dwarf2/section.c.
10082 * dwarf2/section.h: New file.
10083 * dwarf2/section.c: New file, from dwarf2read.c.
10084 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10085
f4382c45
TT
100862020-02-08 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10089 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10090 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10091 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10092 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10093 * dwarf2/leb.h: New file, from dwarf2read.c.
10094 * dwarf2/leb.c: New file, from dwarf2read.c.
10095 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10096 Remove.
10097 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10098 (COMMON_SFILES): Add dwarf2/leb.c.
10099
01840b7a
JB
101002020-02-08 Joel Brobecker <brobecker@adacore.com>
10101
10102 GDB 9.1 released.
10103
dfcb27e4
IB
101042020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10105
10106 PR gdb/25190:
aac66a4c
SM
10107 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10108 * gdb/remote.c (remote_console_output): Update.
10109 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10110 (ui_file_puts): ...this.
10111 * gdb/ui-file.h (ui_file_puts): Add declaration.
10112 * gdb/utils.c (emit_style_escape): Update.
10113 (flush_wrap_buffer): Update.
10114 (fputs_maybe_filtered): Update.
10115 (fputs_unfiltered): Add function.
dfcb27e4 10116
faa17681
IB
101172020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10118
aac66a4c
SM
10119 * gdb/event-loop.c (gdb_wait_for_event): Update.
10120 * gdb/printcmd.c (printf_command): Update.
10121 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10122 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10123 (gdb_os_flush_stderr): Update.
10124 * gdb/remote.c (remote_console_output): Update.
10125 * gdb/ui-file.c (gdb_flush): Rename to...
10126 (ui_file_flush): ...this.
10127 (stderr_file::write): Update.
10128 (stderr_file::puts): Update.
10129 * gdb/ui-file.h (gdb_flush): Rename to...
10130 (ui_file_flush): ...this.
10131 * gdb/utils.c (gdb_flush): Add function.
10132 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10133
5abbbe1d
TT
101342020-02-07 Tom Tromey <tromey@adacore.com>
10135
10136 PR breakpoints/24915:
10137 * source.c (find_and_open_source): Do not check basenames_may_differ.
10138
919adfe8
TT
101392020-02-07 Tom Tromey <tom@tromey.com>
10140
10141 * README: Update gdbserver documentation.
10142 * gdbserver: Move to top level.
10143 * configure.tgt (build_gdbserver): Remove.
10144 * configure.ac: Remove --enable-gdbserver.
10145 * configure: Rebuild.
10146 * Makefile.in (distclean): Don't mention gdbserver.
10147
1d5d29e7
SV
101482020-02-06 Shahab Vahedi <shahab@synopsys.com>
10149
10150 * source-cache.c (source_cache::ensure): Surround
10151 get_plain_source_lines with a try/catch.
10152 (source_cache::get_line_charpos): Get rid of try/catch
10153 and only check for the return value of "ensure".
10154 * tui/tui-source.c (tui_source_window::set_contents):
10155 Simplify "nlines" calculation.
10156
6eb1129c
SV
101572020-02-06 Shahab Vahedi <shahab@synopsys.com>
10158
10159 * MAINTAINERS (Write After Approval): Add myself.
10160
c6a42d11
CB
101612020-02-05 Christian Biesinger <cbiesinger@google.com>
10162
10163 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10164 function call.
10165
c8ecdda6
CB
101662020-02-05 Christian Biesinger <cbiesinger@google.com>
10167
10168 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10169
f6480e70
MR
101702020-02-05 Maciej W. Rozycki <macro@wdc.com>
10171
10172 * nat/riscv-linux-tdesc.h: New file.
10173 * nat/riscv-linux-tdesc.c: New file, taking code from...
10174 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10175 ... here.
10176 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10177 NATDEPFILES.
10178
dcc9fbc6
AB
101792020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10180
10181 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10182 we don't set the fake simulator ptid to the null_ptid.
10183
719546c4
SM
101842020-02-03 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10187 * gdbthread.h (class thread_info) <resumed>: Likewise.
10188 * infrun.c (resume_1): Likewise.
10189 (proceed): Likewise.
10190 (infrun_thread_stop_requested): Likewise.
10191 (stop_all_threads): Likewise.
10192 (handle_inferior_event): Likewise.
10193 (restart_threads): Likewise.
10194 (finish_step_over): Likewise.
10195 (keep_going_stepped_thread): Likewise.
10196 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10197 (linux_handle_extended_wait): Likewise.
10198 * record-btrace.c (get_thread_current_frame_id): Likewise.
10199 * record-full.c (record_full_wait_1): Likewise.
10200 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10201 * target.c (target_resume): Likewise.
10202 * thread.c (set_running_thread): Likewise.
10203
e409c542
AKS
102042020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10205
10206 * f-valprint.c (f77_print_array_1): Changed datatype of index
10207 variable to LONGEST from int to enable it to contain bound
10208 values correctly.
10209
ee98c0da
MR
102102020-02-03 Maciej W. Rozycki <macro@wdc.com>
10211
10212 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10213 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10214 offsets according to FLEN determined.
10215 (riscv_linux_nat_target::read_description): Determine FLEN
10216 dynamically.
10217 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10218 according to FLEN determined.
10219 (riscv_linux_nat_target::store_registers): Likewise.
10220
aa66aac4
SV
102212020-02-01 Shahab Vahedi <shahab@synopsys.com>
10222
10223 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10224 when reg->group is empty and reggroup is not.
10225
fd9faca8
TT
102262020-01-31 Tom Tromey <tromey@adacore.com>
10227
10228 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10229 Call beneath target's mourn_inferior after unpushing.
10230
42330a68
AB
102312020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10232
10233 PR tui/9765
10234 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10235 have enough lines to fill the screen, still return the lowest
10236 address we found.
10237
7a27a45b
AB
102382020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10241 '-', '<', and '>' commands.
10242
c47f70e2
PA
102432020-01-29 Pedro Alves <palves@redhat.com>
10244 Sergio Durigan Junior <sergiodj@redhat.com>
10245
10246 * infcmd.c (construct_inferior_arguments): Assert that
10247 'argc' is greater than 0.
10248
5133a315
LM
102492020-01-29 Luis Machado <luis.machado@linaro.org>
10250
10251 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10252 (BRK_INSN_MASK): Define to 0xd4200000.
10253 (aarch64_program_breakpoint_here_p): New function.
10254 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10255 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10256 breakpoint.c.
10257 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10258 breakpoint.h
10259 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10260 call gdbarch_program_breakpoint_here_p.
10261 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10262 default_program_breakpoint_here_p, changed return type to bool and
10263 simplified.
10264 * breakpoint.h (program_breakpoint_here): Moved prototype to
10265 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10266 return type to bool.
10267 * gdbarch.c: Regenerate.
10268 * gdbarch.h: Regenerate.
10269 * gdbarch.sh (program_breakpoint_here_p): New method.
10270 * infrun.c (handle_signal_stop): Call
10271 gdbarch_program_breakpoint_here_p.
10272
168f8c6b
TT
102732020-01-26 Tom Tromey <tom@tromey.com>
10274
10275 * ctfread.c (struct ctf_fp_info): Reindent.
10276 (_initialize_ctfread): Remove.
10277
128a391f
TT
102782020-01-26 Tom Tromey <tom@tromey.com>
10279
10280 * psymtab.c (partial_map_expand_apply)
10281 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10282 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10283 (psym_print_stats, psym_expand_symtabs_for_function)
10284 (psym_map_symbol_filenames, psym_map_matching_symbols)
10285 (psym_expand_symtabs_matching)
10286 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10287 (maintenance_check_psymtabs): Use new methods.
10288 * psympriv.h (struct partial_symtab) <readin_p,
10289 get_compunit_symtab>: New methods.
10290 <readin, compunit_symtab>: Remove members.
10291 (struct standard_psymtab): New.
10292 (struct legacy_psymtab): Derive from standard_psymtab.
10293 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10294 standard_psymtab.
10295 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10296
0494dbec
TT
102972020-01-26 Tom Tromey <tom@tromey.com>
10298
10299 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10300 read_dependencies. Add assert.
10301 * psymtab.c (partial_symtab::read_dependencies): New method.
10302 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10303 method.
10304 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10305 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10306 read_dependencies.
10307 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10308 Add assert.
10309
8566b89b
TT
103102020-01-26 Tom Tromey <tom@tromey.com>
10311
10312 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10313 Call expand_psymtab.
10314 (xcoff_read_symtab): Call expand_psymtab.
10315 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10316 legacy_expand_psymtab.
10317 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10318 method.
10319 (struct legacy_psymtab) <expand_psymtab>: Implement.
10320 <legacy_expand_psymtab>: New member.
10321 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10322 (parse_partial_symbols): Set legacy_expand_psymtab.
10323 (psymtab_to_symtab_1): Change argument order. Call
10324 expand_psymtab.
10325 (new_psymtab): Set legacy_expand_psymtab.
10326 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10327 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10328 expand_psymtab.
10329 (dwarf2_psymtab::expand_psymtab): Rename from
10330 psymtab_to_symtab_1. Call expand_psymtab.
10331 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10332 (dbx_end_psymtab): Likewise.
10333 (dbx_psymtab_to_symtab_1): Change argument order. Call
10334 expand_psymtab.
10335 (dbx_read_symtab): Call expand_psymtab.
10336 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10337 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10338 (ctf_psymtab::read_symtab): Call expand_psymtab.
10339
077cbab2
TT
103402020-01-26 Tom Tromey <tom@tromey.com>
10341
10342 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10343 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10344 messages.
10345 * mdebugread.c (mdebug_read_symtab): Remove prints.
10346 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10347 assert.
10348 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10349
891813be
TT
103502020-01-26 Tom Tromey <tom@tromey.com>
10351
10352 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10353 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10354 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10355 legacy_symtab.
10356 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10357 * psymtab.c (psymtab_to_symtab): Call method.
10358 (dump_psymtab): Update.
10359 * psympriv.h (struct partial_symtab): Add virtual destructor.
10360 <read_symtab>: New method.
10361 (struct legacy_symtab): New.
10362 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10363 (struct pst_map) <pst>: Now a legacy_psymtab.
10364 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10365 (new_psymtab): Use legacy_psymtab.
10366 * dwarf2read.h (struct dwarf2_psymtab): New.
10367 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10368 * dwarf2read.c (dwarf2_create_include_psymtab)
10369 (dwarf2_build_include_psymtabs, create_type_unit_group)
10370 (create_partial_symtab, process_psymtab_comp_unit_reader)
10371 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10372 (set_partial_user): Use dwarf2_psymtab.
10373 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10374 (psymtab_to_symtab_1, process_full_comp_unit)
10375 (process_full_type_unit, dwarf2_ranges_read)
10376 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10377 (dwarf_decode_lines): Use dwarf2_psymtab.
10378 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10379 (add_address_entry_worker, write_one_signatured_type)
10380 (recursively_count_psymbols, recursively_write_psymbols)
10381 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10382 (write_debug_names): Likewise.
10383 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10384 <pst>: Now a legacy_psymtab.
10385 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10386 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10387 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10388 * ctfread.c (struct ctf_psymtab): New.
10389 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10390 ctf_psymtab.
10391 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10392 (create_partial_symtab): Return a ctf_psymtab.
10393 (scan_partial_symbols): Update.
10394
c3693a1d
TT
103952020-01-26 Tom Tromey <tom@tromey.com>
10396
10397 * xcoffread.c (xcoff_start_psymtab): Use new.
10398 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10399 renamed from start_psymtab_common.
10400 * psympriv.h (struct partial_symtab): Add new constructor.
10401 (start_psymtab_common): Don't declare.
10402 * mdebugread.c (parse_partial_symbols): Use new.
10403 * dwarf2read.c (create_partial_symtab): Use new.
10404 * dbxread.c (start_psymtab): Use new.
10405 * ctfread.c (create_partial_symtab): Use new.
10406
32caafd0
TT
104072020-01-26 Tom Tromey <tom@tromey.com>
10408
10409 * xcoffread.c (xcoff_end_psymtab): Use new.
10410 * psymtab.c (start_psymtab_common): Use new.
10411 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10412 Update.
10413 * psympriv.h (struct partial_symtab): Add parameters to
10414 constructor. Don't inline.
10415 (allocate_psymtab): Don't declare.
10416 * mdebugread.c (new_psymtab): Use new.
10417 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10418 * dbxread.c (dbx_end_psymtab): Use new.
10419
abaa2f23
TT
104202020-01-26 Tom Tromey <tom@tromey.com>
10421
10422 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10423 allocate_psymtab. Update documentation.
10424 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10425 allocate_psymtab. Do not use new.
10426 (allocate_psymtab): Use new. Update.
10427
6d94535f
TT
104282020-01-26 Tom Tromey <tom@tromey.com>
10429
10430 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10431 * psymtab.c (psym_print_stats): Update.
10432 * psympriv.h (struct partial_symtab) <readin,
10433 psymtabs_addrmap_supported, anonymous>: Now bool.
10434 * mdebugread.c (psymtab_to_symtab_1): Update.
10435 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10436 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10437 (process_full_comp_unit, process_full_type_unit): Update.
10438 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10439 * ctfread.c (psymtab_to_symtab): Update.
10440
6f17252b
TT
104412020-01-26 Tom Tromey <tom@tromey.com>
10442
10443 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10444 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10445 * psymtab.c (psymtab_storage): Delete psymtabs.
10446 (psymtab_storage::allocate_psymtab): Use new.
10447 (psymtab_storage::discard_psymtab): Use delete.
10448 * psympriv.h (struct partial_symtab): Add constructor and
10449 initializers.
10450
f6f1cebc
TT
104512020-01-26 Tom Tromey <tom@tromey.com>
10452
10453 * machoread.c: Do not include psympriv.h.
10454
e47e48f6
PW
104552020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10456
10457 * NEWS: Mention the new option and the set/show commands.
10458
a2fedca9
PW
104592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10460
10461 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10462 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10463 (validate_exec_file): New variables, enums, functions.
10464 (exec_file_locate_attach, print_section_info): Style the filenames.
10465 (_initialize_exec): Install show_exec_file_mismatch_command and
10466 set_exec_file_mismatch_command.
10467 * gdbcore.h (validate_exec_file): Declare.
10468 * infcmd.c (attach_command): Call validate_exec_file.
10469 * remote.c ( remote_target::remote_add_inferior): Likewise.
10470
7ffa82e1
AB
104712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 * frame.c (find_frame_sal): Move call to get_next_frame into more
10474 inner scope.
10475 * inline-frame.c (inilne_state) <inline_state>: Update argument
10476 types.
10477 (inilne_state) <skipped_symbol>: Rename to...
10478 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10479 (skip_inline_frames): Build vector of skipped symbols and use this
10480 to reate the inline_state.
10481 (inline_skipped_symbol): Add a comment and some assertions, fetch
10482 skipped symbol from the list.
10483
3d92a3e3
AB
104842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * buildsym.c (lte_is_less_than): Delete.
10487 (buildsym_compunit::end_symtab_with_blockvector): Create local
10488 lambda function to sort line table entries, and use
10489 std::stable_sort instead of std::sort.
10490 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10491 markers when looking for a previous line.
10492
94a72be7
AB
104932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10494
10495 * dwarf2read.c (lnp_state_machine::record_line): Include
10496 end_sequence parameter in debug print out. Record the line if we
10497 are at an end_sequence marker even if it's not the start of a
10498 statement.
10499 * symmisc.c (maintenance_print_one_line_table): Print end of
10500 sequence markers with 'END' not '0'.
10501
53af73bf
PA
105022020-01-24 Pedro Alves <palves@redhat.com>
10503
10504 PR gdb/25410
10505 * thread.c (scoped_restore_current_thread::restore): Use
10506 switch_to_inferior_no_thread.
10507 * exec.c: Include "progspace-and-thread.h".
10508 (add_target_sections, remove_target_sections):
10509 scoped_restore_current_pspace_and_thread instead of
10510 scoped_restore_current_thread.
10511 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10512 and aspace to the inferior before calling clone_program_space.
10513 Remove stale comment.
10514
3050c6f4
CB
105152020-01-24 Christian Biesinger <cbiesinger@google.com>
10516
10517 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10518 (arm_netbsd_nat_target::fetch_registers): ...this.
10519 (arm_nbsd_nat_target::store_registers): Rename to...
10520 (arm_netbsd_nat_target::store_registers): ...this.
10521
73685c7e
CB
105222020-01-24 Christian Biesinger <cbiesinger@google.com>
10523
10524 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10525 register_t.
10526
89203d40
CB
105272020-01-24 Christian Biesinger <cbiesinger@google.com>
10528
10529 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10530 Update comment.
10531 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10532 Likewise.
10533 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10534 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10535 the correct replacement (iterate_over_regset_sections).
10536 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10537 Update comment.
10538
1ba1ac88
AB
105392020-01-24 Graham Markall <graham.markall@embecosm.com>
10540
10541 PR gdb/23718
10542 * gdb/python/python.c (execute_gdb_command): Call
10543 async_enable_stdin in catch block.
10544
f3364a6d
AB
105452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10548 SWITCH_THRU_ALL_UIS.
10549
733d0a67
AB
105502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 PR tui/9765
10553 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10554 comment, add extra parameter, and update to store previous symbol
10555 when appropriate.
10556 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10557 add extra parameter.
10558 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10559 remove unneeded parameter, add try/catch around gdb_print_insn,
10560 rewrite to add items to asm_lines vector.
10561 (tui_find_backward_disassembly_start_address): New function.
10562 (tui_find_disassembly_address): Updated throughout.
10563 (tui_disasm_window::set_contents): Update for changes to
10564 tui_disassemble.
10565 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10566 number of lines to scroll.
10567
b3b3bada
SM
105682020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10571 (SECT_OFF_DATA): Likewise.
10572 (SECT_OFF_RODATA): Likewise.
10573 (SECT_OFF_TEXT): Likewise.
10574 (SECT_OFF_BSS): Likewise.
10575 (struct objfile) <text_section_offset, data_section_offset>: New
10576 methods.
10577 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10578 objfile::text_section_offset.
10579 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10580 * coffread.c (coff_symtab_read): Likewise.
10581 (enter_linenos): Likewise.
10582 (process_coff_symbol): Likewise.
10583 * ctfread.c (get_objfile_text_range): Likewise.
10584 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10585 Use objfile::data_section_offset.
10586 * dwarf2-frame.c (execute_cfa_program): Use
10587 objfile::text_section_offset.
10588 (dwarf2_frame_find_fde): Likewise.
10589 * dwarf2read.c (create_addrmap_from_index): Likewise.
10590 (create_addrmap_from_aranges): Likewise.
10591 (dw2_find_pc_sect_compunit_symtab): Likewise.
10592 (process_psymtab_comp_unit_reader): Likewise.
10593 (add_partial_symbol): Likewise.
10594 (add_partial_subprogram): Likewise.
10595 (process_full_comp_unit): Likewise.
10596 (read_file_scope): Likewise.
10597 (read_func_scope): Likewise.
10598 (read_lexical_block_scope): Likewise.
10599 (read_call_site_scope): Likewise.
10600 (dwarf2_rnglists_process): Likewise.
10601 (dwarf2_ranges_process): Likewise.
10602 (dwarf2_ranges_read): Likewise.
10603 (dwarf_decode_lines_1): Likewise.
10604 (new_symbol): Likewise.
10605 (dwarf2_fetch_die_loc_sect_off): Likewise.
10606 (dwarf2_per_cu_text_offset): Likewise.
10607 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10608 * hppa-tdep.c (read_unwind_info): Likewise.
10609 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10610 * psympriv.h (struct partial_symtab): Likewise.
10611 * psymtab.c (find_pc_sect_psymtab): Likewise.
10612 * solib-svr4.c (enable_break): Likewise.
10613 * stap-probe.c (relocate_address): Use
10614 objfile::data_section_offset.
10615 * xcoffread.c (enter_line_range): Use
10616 objfile::text_section_offset.
10617 (read_xcoff_symtab): Likewise.
10618
ab53f382
SM
106192020-01-23 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10622 declaration to narrower scopes.
10623
e7eee665
SM
106242020-01-23 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * darwin-nat.h (struct darwin_exception_msg, enum
10627 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10628 Move up.
10629 (class darwin_nat_target) <wait_1, check_new_threads,
10630 decode_exception_message, decode_message, stop_inferior,
10631 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10632 * darwin-nat.c (darwin_check_new_threads): Rename to...
10633 (darwin_nat_target::check_new_threads): ... this.
10634 (darwin_suspend_inferior_it): Remove.
10635 (darwin_decode_exception_message): Rename to...
10636 (darwin_nat_target::decode_exception_message): ... this.
10637 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10638 (darwin_decode_message): Rename to...
10639 (darwin_nat_target::decode_message): ... this.
10640 (cancel_breakpoint): Rename to...
10641 (darwin_nat_target::cancel_breakpoint): ... this.
10642 (darwin_wait): Rename to...
10643 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10644 instead of iterate_over_inferiors.
10645 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10646 (darwin_stop_inferior): Rename to...
10647 (darwin_nat_target::stop_inferior): ... this.
10648 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10649 (darwin_init_thread_list): Rename to...
10650 (darwin_nat_target::init_thread_list): ... this.
10651 (darwin_ptrace_him): Rename to...
10652 (darwin_nat_target::ptrace_him): ... this.
10653 (darwin_nat_target::create_inferior): Pass lambda function to
10654 fork_inferior.
10655 (darwin_nat_target::detach): Call stop_inferior instead of
10656 darwin_stop_inferior.
10657 * fork-inferior.h (fork_inferior): Change init_trace_fun
10658 parameter to gdb::function_view.
10659 * fork-inferior.c (fork_inferior): Likewise.
10660
c162ed3e
HD
106612020-01-23 Hannes Domani <ssbssa@yahoo.de>
10662
10663 * i386-cygwin-tdep.c (core_process_module_section): Update.
10664 * windows-nat.c (struct lm_info_windows): Add text_offset.
10665 (windows_xfer_shared_libraries): Update.
10666 * windows-tdep.c (windows_xfer_shared_library):
10667 Add text_offset_cached argument.
10668 * windows-tdep.h (windows_xfer_shared_library): Update.
10669
a1237872
SM
106702020-01-21 Simon Marchi <simon.marchi@efficios.com>
10671
10672 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10673
b3ee6dd9
SM
106742020-01-21 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10677 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10678 replace with range-based for.
10679 (gdbsim_interrupt_inferior): Remove.
10680 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10681 with a range-based for. Inline code from
10682 gdbsim_interrupt_inferior.
10683
f9fac3c8
SM
106842020-01-21 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * infrun.c (proceed): Fix indentation.
10687
f6474de9
TT
106882020-01-21 Tom Tromey <tromey@adacore.com>
10689
10690 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10691 * python/python.c (python_extension_ops): Update.
10692 (gdbpy_colorize): New function.
10693 * python/lib/gdb/__init__.py (colorize): New function.
10694 * extension.h (ext_lang_colorize): Declare.
10695 * extension.c (ext_lang_colorize): New function.
10696 * extension-priv.h (struct extension_language_ops) <colorize>: New
10697 member.
10698 * cli/cli-style.c (_initialize_cli_style): Update help text.
10699
f0c702d4
LM
107002020-01-21 Luis Machado <luis.machado@linaro.org>
10701
10702 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10703 <cond>: Change type to bool.
10704 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10705 (aarch64_displaced_step_cb): Likewise.
10706 (aarch64_displaced_step_tb): Likewise.
10707
1ab139e5
LM
107082020-01-21 Luis Machado <luis.machado@linaro.org>
10709
10710 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10711 output.
10712
0c271889
LM
107132020-01-21 Luis Machado <luis.machado@linaro.org>
10714
10715 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10716 <pc_adjust>: Adjust the documentation.
10717 (aarch64_displaced_step_fixup): Check if PC really moved before
10718 adjusting it.
10719
4d89c1c7
TT
107202020-01-19 Tom Tromey <tom@tromey.com>
10721
10722 * disasm.c (~gdb_disassembler): New destructor.
10723 (gdb_buffered_insn_length): Call disassemble_free_target.
10724 * disasm.h (class gdb_disassembler): Declare destructor. Use
10725 DISABLE_COPY_AND_ASSIGN.
10726
c0ab21c2
TT
107272020-01-19 Tom Tromey <tom@tromey.com>
10728
10729 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10730 (die_reader_func_ftype): Remove.
10731 (cutu_reader): New class.
10732 (dw2_get_file_names_reader): Remove "data" parameter.
10733 (dw2_get_file_names): Use cutu_reader.
10734 (create_debug_type_hash_table): Update.
10735 (read_cutu_die_from_dwo): Update comment.
10736 (lookup_dwo_unit): Add dwo_name parameter.
10737 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10738 die_reader_func_ftype and data parameters.
10739 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10740 Remove die_reader_func_ftype and data parameters.
10741 (~cutu_reader): New; from init_cutu_and_read_dies.
10742 (cutu_reader::cutu_reader): Rename from
10743 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10744 and data parameters.
10745 (init_cutu_and_read_dies_simple): Remove.
10746 (struct process_psymtab_comp_unit_data): Remove.
10747 (process_psymtab_comp_unit_reader): Remove data parameter; add
10748 want_partial_unit and pretend_language parameters.
10749 (process_psymtab_comp_unit): Use cutu_reader.
10750 (build_type_psymtabs_reader): Remove data parameter.
10751 (build_type_psymtabs_1): Use cutu_reader.
10752 (process_skeletonless_type_unit): Likewise.
10753 (load_partial_comp_unit_reader): Remove.
10754 (load_partial_comp_unit): Use cutu_reader.
10755 (load_full_comp_unit_reader): Remove.
10756 (load_full_comp_unit): Use cutu_reader.
10757 (struct create_dwo_cu_data): Remove.
10758 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10759 dwo_unit parameters.
10760 (create_cus_hash_table): Use cutu_reader.
10761 (struct dwarf2_read_addr_index_data): Remove.
10762 (dwarf2_read_addr_index_reader): Remove.
10763 (dwarf2_read_addr_index): Use cutu_reader.
10764 (read_signatured_type_reader): Remove.
10765 (read_signatured_type): Use cutu_reader.
10766
45bbae5c
TT
107672020-01-19 Tom Tromey <tom@tromey.com>
10768
10769 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10770 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10771 (tui_wrefresh): Declare.
10772 * tui/tui-wingeneral.c (suppress_output): New global.
10773 (tui_suppress_output, ~tui_suppress_output): New constructor and
10774 destructor.
10775 (tui_wrefresh): New function.
10776 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10777 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10778 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10779 method.
10780 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10781 tui_wrefresh.
10782 (tui_data_window::no_refresh): New method.
10783 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10784 (tui_reg_command): Use tui_suppress_output
10785 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10786 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10787 method.
10788 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10789
4f13c1c0
TT
107902020-01-19 Tom Tromey <tom@tromey.com>
10791
10792 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10793 Handle case where symtab is null.
10794
fa47e446
SM
107952020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10796
10797 * linux-fork.c (one_fork_p): Simplify.
10798
26f42329
SM
107992020-01-17 Simon Marchi <simon.marchi@efficios.com>
10800
10801 * top.c (struct qt_args): Remove.
10802 (kill_or_detach): Change return type to void, replace `void *`
10803 parameter with a proper one.
10804 (print_inferior_quit_action): Likewise.
10805 (quit_confirm): Use range-based for loop to iterate over inferiors.
10806 (quit_force): Likewise.
10807
a9ac81b1
SM
108082020-01-17 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10811 `void *` parameter with proper parameters.
10812 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10813 (print_one_inferior): Change return type to void, replace `void *`
10814 parameter with proper parameters.
10815 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10816 inferiors.
10817 (get_other_inferior): Remove.
10818 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10819 inferiors.
10820
788eca49
SM
108212020-01-17 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * mi/mi-interp.c (report_initial_inferior): Remove.
10824 (mi_interp::init): Use range-based for to iterate over inferiors.
10825
d9bc85b6
SM
108262020-01-17 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * python/py-inferior.c (build_inferior_list): Remove.
10829 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10830
40c94099
CB
108312020-01-16 Christian Biesinger <cbiesinger@google.com>
10832
10833 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10834 (btrace_stitch_trace): Likewise.
10835 * charset.c (intermediate_encoding): Likewise (vaild).
10836 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10837 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10838 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10839
e0cdfe3c
HD
108402020-01-16 Hannes Domani <ssbssa@yahoo.de>
10841
10842 * windows-tdep.c (windows_get_tlb_type):
10843 Add rtl_user_process_parameters type.
10844
790f1718 108452020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10846 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10847
10848 PR build/24805
10849 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10850 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10851 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10852 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10853 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10854 (ps_plog): Redeclare exported functions with default visibility.
10855
3112ed97
NA
108562020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10857
10858 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10859 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10860
8dc3273e
SM
108612020-01-15 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * infcmd.c (post_create_inferior): Use get_thread_regcache
10864 instead of get_current_regcache.
10865
ff47f4f0
TT
108662020-01-14 Tom Tromey <tom@tromey.com>
10867
10868 PR symtab/12535:
10869 * python/python.c (gdbpy_decode_line): Treat empty string the same
10870 as no argument.
10871
975f45b7
TT
108722020-01-14 Tom Tromey <tom@tromey.com>
10873
10874 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10875
25e57356
TT
108762020-01-14 Tom Tromey <tom@tromey.com>
10877
10878 * nat/linux-btrace.c: Don't include <config.h>.
10879 * nat/linux-ptrace.c: Don't include <config.h>.
10880 * nat/x86-linux-dregs.c: Don't include <config.h>.
10881
05ea2a05
TT
108822020-01-14 Tom Tromey <tom@tromey.com>
10883
10884 * configure: Rebuild.
10885 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10886
01027315
TT
108872020-01-14 Tom Tromey <tom@tromey.com>
10888
10889 * nat/x86-linux-dregs.c: Include configh.h.
10890 * nat/linux-ptrace.c: Include configh.h.
10891 * nat/linux-btrace.c: Include configh.h.
10892 * defs.h: Include config.h, bfd.h.
10893 * configure.ac: Don't source common.host.
10894 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10895 * configure: Rebuild.
10896 * acinclude.m4: Update path.
10897 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10898 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10899 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10900 (CLIBS): Add LIBSUPPORT.
10901 (CDEPS): Likewise.
10902 (COMMON_SFILES): Remove gdbsupport files.
10903 (HFILES_NO_SRCDIR): Likewise.
10904 (stamp-version): Update path to create-version.sh.
10905 (ALLDEPFILES): Remove gdbsupport files.
10906
b2ceabe8
TT
109072020-01-14 Tom Tromey <tom@tromey.com>
10908
10909 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10910 USE_WIN32API when needed.
10911 * configure.ac (USE_WIN32API): Don't define.
10912 (WIN32LIBS): Use WIN32APILIBS.
10913 * configure: Rebuild.
10914
25c51f71
TT
109152020-01-14 Tom Tromey <tom@tromey.com>
10916
10917 * configure: Rebuild.
10918 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10919
717c684d
BE
109202020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10921
10922 * skip.c (skip_function_command): Make skip w/o arguments use the
10923 name of the inlined function if pc is inside any inlined function.
10924
7da6a5b9
LM
109252020-01-14 Luis Machado <luis.machado@linaro.org>
10926
10927 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10928 * infrun.c (resume_1): Likewise.
10929 (handle_inferior_event): Remove stale comment.
10930 * linux-nat.c (linux_nat_target::resume): Update comments.
10931 (save_stop_reason): Likewise.
10932 (linux_nat_filter_event): Likewise.
10933 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10934
44e4c775
AB
109352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10936
10937 * elfread.c (record_minimal_symbol): Set section index to 0 for
10938 non-allocatable sections.
10939
18a8505e
AT
10940
109412020-01-13 Ali Tamur <tamur@google.com>
10942
10943 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10944 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10945 to gdb::optional. Update comments.
10946 (dwo_file): Update comments.
10947 (read_attribute): Update API to take an additional out parameter,
10948 need_reprocess. This is used to mark attributes that need other
10949 attributes (e.g. str_offsets_base) for correct computation which may not
10950 have been read yet.
10951 (read_attribute_reprocess): New function declaration.
10952 (read_addr_index): Likewise.
10953 (read_dwo_str_index): Likewise.
10954 (read_stub_str_index): Likewise.
10955 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10956 (lookup_addr_base): New function definition.
10957 (lookup_ranges_base): Likewise.
10958 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10959 lookup_ranges_base.
10960 (init_cutu_and_read_dies): Update comments.
10961 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10962 unit. This is used to inherit parent's str_offsets_base and addr_base.
10963 Update comments.
10964 (init_cutu_and_read_dies_simple): Reflect API changes.
10965 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10966 (create_cus_hash_table): Change API to take parent compile unit.
10967 Reflect API changes.
10968 (open_and_init_dwo_file): Reflect API changes.
10969 (dwarf2_get_pc_bounds): Update comments.
10970 (dwarf2_record_block_ranges): Likewise.
10971 (read_full_die_1): Change implementation to reprocess attributes that
10972 need str_offsets_base and addr_base.
10973 (partial_die_info::read): Likewise.
10974 (read_attribute_reprocess): New function definition.
10975 (read_attribute_value): Change API to take an additional out parameter,
10976 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10977 when a non-dwo compile unit has index based attributes.
10978 (read_attribute): Reflect API changes.
10979 (read_addr_index_1): Reflect API changes. Update comments.
10980 (dwarf2_read_addr_index_data): Reflect API changes.
10981 (dwarf2_read_addr_index): Likewise.
10982 (read_str_index): Change API and implementation. This becomes a helper
10983 to be used by the new string index related methods. Update error
10984 message and comments.
10985 (read_dwo_str_index): New function definition.
10986 (read_stub_str_index): Likewise.
10987 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10988 * symfile.h (dwarf2_debug_sections): Likewise.
10989 * xcoffread.c (dwarf2_debug_sections): Likewise.
10990
0cac9354
SM
109912020-01-13 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10994 core_reg_sect type to gdb_byte *.
10995 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10996 * cris-tdep.c (fetch_core_registers): Likewise.
10997 * corelow.c (core_target::get_core_register_section): Change
10998 type of `contents` to gdb::byte_vector.
10999
9a6d629c
AB
110002020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * tui/tui-wingeneral.c (box_win): Position the title in the center
11003 of the border.
11004
d8b2f9e3
SM
110052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11006
11007 * corelow.c (core_target::get_core_register_section): Use
11008 std::vector instead of alloca.
11009
bb564c58
SM
110102020-01-13 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * warning.m4: Add -Wmissing-declarations to build_warnings.
11013 * configure: Re-generate.
11014
6b366111
SM
110152020-01-13 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * python/python.c (init__gdb_module): Add declaration.
11018
6c265988
SM
110192020-01-13 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11022 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11023 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11024 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11025 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11026 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11027 * ada-exp.y (_initialize_ada_exp): Add declaration.
11028 * ada-lang.c (_initialize_ada_language): Add declaration.
11029 * ada-tasks.c (_initialize_tasks): Add declaration.
11030 * agent.c (_initialize_agent): Add declaration.
11031 * aix-thread.c (_initialize_aix_thread): Add declaration.
11032 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11033 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11034 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11035 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11036 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11037 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11038 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11039 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11040 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11041 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11042 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11043 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11044 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11045 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11046 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11047 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11048 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11049 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11050 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11051 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11052 * annotate.c (_initialize_annotate): Add declaration.
11053 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11054 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11055 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11056 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11057 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11058 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11059 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11060 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11061 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11062 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11063 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11064 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11065 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11066 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11067 * auto-load.c (_initialize_auto_load): Add declaration.
11068 * auxv.c (_initialize_auxv): Add declaration.
11069 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11070 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11071 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11072 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11073 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11074 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11075 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11076 * breakpoint.c (_initialize_breakpoint): Add declaration.
11077 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11078 * btrace.c (_initialize_btrace): Add declaration.
11079 * charset.c (_initialize_charset): Add declaration.
11080 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11081 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11082 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11083 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11084 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11085 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11086 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11087 * coffread.c (_initialize_coffread): Add declaration.
11088 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11089 * compile/compile.c (_initialize_compile): Add declaration.
11090 * complaints.c (_initialize_complaints): Add declaration.
11091 * completer.c (_initialize_completer): Add declaration.
11092 * copying.c (_initialize_copying): Add declaration.
11093 * corefile.c (_initialize_core): Add declaration.
11094 * corelow.c (_initialize_corelow): Add declaration.
11095 * cp-abi.c (_initialize_cp_abi): Add declaration.
11096 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11097 * cp-support.c (_initialize_cp_support): Add declaration.
11098 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11099 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11100 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11101 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11102 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11103 * ctfread.c (_initialize_ctfread): Add declaration.
11104 * d-lang.c (_initialize_d_language): Add declaration.
11105 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11106 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11107 * dbxread.c (_initialize_dbxread): Add declaration.
11108 * dcache.c (_initialize_dcache): Add declaration.
11109 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11110 * disasm.c (_initialize_disasm): Add declaration.
11111 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11112 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11113 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11114 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11115 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11116 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11117 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11118 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11119 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11120 * elfread.c (_initialize_elfread): Add declaration.
11121 * exec.c (_initialize_exec): Add declaration.
11122 * extension.c (_initialize_extension): Add declaration.
11123 * f-lang.c (_initialize_f_language): Add declaration.
11124 * f-valprint.c (_initialize_f_valprint): Add declaration.
11125 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11126 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11127 * filesystem.c (_initialize_filesystem): Add declaration.
11128 * findcmd.c (_initialize_mem_search): Add declaration.
11129 * findvar.c (_initialize_findvar): Add declaration.
11130 * fork-child.c (_initialize_fork_child): Add declaration.
11131 * frame-base.c (_initialize_frame_base): Add declaration.
11132 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11133 * frame.c (_initialize_frame): Add declaration.
11134 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11135 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11136 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11137 * gcore.c (_initialize_gcore): Add declaration.
11138 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11139 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11140 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11141 * gdbarch.c (_initialize_gdbarch): Add declaration.
11142 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11143 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11144 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11145 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11146 * go-lang.c (_initialize_go_language): Add declaration.
11147 * go32-nat.c (_initialize_go32_nat): Add declaration.
11148 * guile/guile.c (_initialize_guile): Add declaration.
11149 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11150 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11151 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11152 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11153 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11154 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11155 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11156 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11157 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11158 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11159 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11160 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11161 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11162 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11163 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11164 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11165 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11166 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11167 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11168 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11169 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11170 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11171 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11172 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11173 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11174 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11175 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11176 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11177 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11178 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11179 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11180 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11181 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11182 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11183 * infcall.c (_initialize_infcall): Add declaration.
11184 * infcmd.c (_initialize_infcmd): Add declaration.
11185 * inflow.c (_initialize_inflow): Add declaration.
11186 * infrun.c (_initialize_infrun): Add declaration.
11187 * interps.c (_initialize_interpreter): Add declaration.
11188 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11189 * jit.c (_initialize_jit): Add declaration.
11190 * language.c (_initialize_language): Add declaration.
11191 * linux-fork.c (_initialize_linux_fork): Add declaration.
11192 * linux-nat.c (_initialize_linux_nat): Add declaration.
11193 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11194 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11195 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11196 * m2-lang.c (_initialize_m2_language): Add declaration.
11197 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11198 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11199 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11200 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11201 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11202 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11203 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11204 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11205 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11206 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11207 * machoread.c (_initialize_machoread): Add declaration.
11208 * macrocmd.c (_initialize_macrocmd): Add declaration.
11209 * macroscope.c (_initialize_macroscope): Add declaration.
11210 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11211 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11212 * maint.c (_initialize_maint_cmds): Add declaration.
11213 * mdebugread.c (_initialize_mdebugread): Add declaration.
11214 * memattr.c (_initialize_mem): Add declaration.
11215 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11216 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11217 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11218 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11219 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11220 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11221 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11222 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11223 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11224 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11225 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11226 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11227 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11228 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11229 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11230 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11231 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11232 * mipsread.c (_initialize_mipsread): Add declaration.
11233 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11234 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11235 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11236 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11237 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11238 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11239 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11240 * nto-procfs.c (_initialize_procfs): Add declaration.
11241 * objc-lang.c (_initialize_objc_language): Add declaration.
11242 * observable.c (_initialize_observer): Add declaration.
11243 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11244 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11245 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11246 * osabi.c (_initialize_gdb_osabi): Add declaration.
11247 * osdata.c (_initialize_osdata): Add declaration.
11248 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11249 * parse.c (_initialize_parse): Add declaration.
11250 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11251 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11252 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11253 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11254 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11255 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11256 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11257 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11258 * printcmd.c (_initialize_printcmd): Add declaration.
11259 * probe.c (_initialize_probe): Add declaration.
11260 * proc-api.c (_initialize_proc_api): Add declaration.
11261 * proc-events.c (_initialize_proc_events): Add declaration.
11262 * proc-service.c (_initialize_proc_service): Add declaration.
11263 * procfs.c (_initialize_procfs): Add declaration.
11264 * producer.c (_initialize_producer): Add declaration.
11265 * psymtab.c (_initialize_psymtab): Add declaration.
11266 * python/python.c (_initialize_python): Add declaration.
11267 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11268 * record-btrace.c (_initialize_record_btrace): Add declaration.
11269 * record-full.c (_initialize_record_full): Add declaration.
11270 * record.c (_initialize_record): Add declaration.
11271 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11272 * regcache.c (_initialize_regcache): Add declaration.
11273 * reggroups.c (_initialize_reggroup): Add declaration.
11274 * remote-notif.c (_initialize_notif): Add declaration.
11275 * remote-sim.c (_initialize_remote_sim): Add declaration.
11276 * remote.c (_initialize_remote): Add declaration.
11277 * reverse.c (_initialize_reverse): Add declaration.
11278 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11279 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11280 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11281 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11282 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11283 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11284 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11285 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11286 Add declaration.
11287 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11288 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11289 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11290 * rust-exp.y (_initialize_rust_exp): Add declaration.
11291 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11292 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11293 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11294 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11295 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11296 * score-tdep.c (_initialize_score_tdep): Add declaration.
11297 * ser-go32.c (_initialize_ser_dos): Add declaration.
11298 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11299 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11300 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11301 * ser-uds.c (_initialize_ser_socket): Add declaration.
11302 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11303 * serial.c (_initialize_serial): Add declaration.
11304 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11305 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11306 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11307 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11308 * skip.c (_initialize_step_skip): Add declaration.
11309 * sol-thread.c (_initialize_sol_thread): Add declaration.
11310 * solib-aix.c (_initialize_solib_aix): Add declaration.
11311 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11312 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11313 * solib-frv.c (_initialize_frv_solib): Add declaration.
11314 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11315 * solib-target.c (_initialize_solib_target): Add declaration.
11316 * solib.c (_initialize_solib): Add declaration.
11317 * source-cache.c (_initialize_source_cache): Add declaration.
11318 * source.c (_initialize_source): Add declaration.
11319 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11320 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11321 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11322 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11323 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11324 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11325 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11326 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11327 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11328 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11329 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11330 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11331 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11332 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11333 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11334 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11335 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11336 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11337 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11338 * stabsread.c (_initialize_stabsread): Add declaration.
11339 * stack.c (_initialize_stack): Add declaration.
11340 * stap-probe.c (_initialize_stap_probe): Add declaration.
11341 * std-regs.c (_initialize_frame_reg): Add declaration.
11342 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11343 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11344 * symfile.c (_initialize_symfile): Add declaration.
11345 * symmisc.c (_initialize_symmisc): Add declaration.
11346 * symtab.c (_initialize_symtab): Add declaration.
11347 * target.c (_initialize_target): Add declaration.
11348 * target-connection.c (_initialize_target_connection): Add
11349 declaration.
11350 * target-dcache.c (_initialize_target_dcache): Add declaration.
11351 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11352 * thread.c (_initialize_thread): Add declaration.
11353 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11354 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11355 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11356 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11357 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11358 * tracectf.c (_initialize_ctf): Add declaration.
11359 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11360 * tracefile.c (_initialize_tracefile): Add declaration.
11361 * tracepoint.c (_initialize_tracepoint): Add declaration.
11362 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11363 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11364 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11365 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11366 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11367 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11368 * tui/tui.c (_initialize_tui): Add declaration.
11369 * typeprint.c (_initialize_typeprint): Add declaration.
11370 * ui-style.c (_initialize_ui_style): Add declaration.
11371 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11372 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11373 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11374 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11375 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11376 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11377 * unittests/filtered_iterator-selftests.c
11378 (_initialize_filtered_iterator_selftests): Add declaration.
11379 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11380 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11381 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11382 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11383 * unittests/main-thread-selftests.c
11384 (_initialize_main_thread_selftests): Add declaration.
11385 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11386 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11387 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11388 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11389 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11390 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11391 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11392 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11393 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11394 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11395 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11396 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11397 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11398 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11399 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11400 declaration.
11401 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11402 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11403 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11404 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11405 * user-regs.c (_initialize_user_regs): Add declaration.
11406 * utils.c (_initialize_utils): Add declaration.
11407 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11408 * valops.c (_initialize_valops): Add declaration.
11409 * valprint.c (_initialize_valprint): Add declaration.
11410 * value.c (_initialize_values): Add declaration.
11411 * varobj.c (_initialize_varobj): Add declaration.
11412 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11413 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11414 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11415 * windows-nat.c (_initialize_windows_nat): Add declaration.
11416 (_initialize_check_for_gdb_ini): Add declaration.
11417 (_initialize_loadable): Add declaration.
11418 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11419 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11420 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11421 * xcoffread.c (_initialize_xcoffread): Add declaration.
11422 * xml-support.c (_initialize_xml_support): Add declaration.
11423 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11424 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11425 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11426 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11427
e2de1eec
SM
114282020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11429
11430 * regformats/regdat.sh: Generate declaration for init function.
11431
e0037b4c
SM
114322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11433
11434 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11435 up.
11436 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11437 close_one_inferior>: New methods.
11438 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11439 pass down target to find_inferior_pid.
11440 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11441 Pass down target to find_inferior_ptid.
11442 (gdbsim_target::create_inferior): Pass down target to
11443 add_thread_silent.
11444 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11445 target down to find_inferior_ptid and switch_to_thread.
11446 (gdbsim_target::close): Update to call close_one_inferior.
11447 (struct resume_data): Remove.
11448 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11449 directly, rather than through a void pointer.
11450 (gdbsim_target::resume): Update to call resume_one_inferior.
11451
58920b5b
SM
114522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11453
11454 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11455
4ec89149
PA
114562020-01-12 Pedro Alves <palves@redhat.com>
11457
11458 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11459 directly for the current inferior instead of
11460 discard_all_inferiors.
11461 (discard_all_inferiors): Delete.
11462
7c392d1d
TT
114632020-01-11 Tom Tromey <tom@tromey.com>
11464
11465 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11466 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11467 deprecated_safe_get_selected_frame.
11468
d9ebdab7
TBA
114692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11470
11471 * inferior.c (print_inferior): Switch inferior before printing it.
11472
f3c469b9
PA
114732020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11474 Pedro Alves <palves@redhat.com>
11475
11476 * progspace-and-thread.c (switch_to_program_space_and_thread):
11477 Assert there's an inferior for PSPACE. Use
11478 switch_to_inferior_no_thread to switch the inferior too.
11479 * progspace.c (program_space::~program_space): Call
11480 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11481 (program_space::free_all_objfiles): Don't call clear_symtab_users
11482 here.
11483 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11484
65c574f6
PA
114852020-01-10 Pedro Alves <palves@redhat.com>
11486
11487 * NEWS: Mention multi-target debugging, "info connections", and
11488 "add-inferior -no-connection".
11489
2f4fcf00
PA
114902020-01-10 Pedro Alves <palves@redhat.com>
11491
11492 * infrun.c: Include "target-connection.h".
11493 (check_multi_target_resumption): New.
11494 (proceed): Call it.
11495 * target-connection.c (make_target_connection_string): Make
11496 extern.
11497 * target-connection.h (make_target_connection_string): Declare.
11498
121b3efd
PA
114992020-01-10 Pedro Alves <palves@redhat.com>
11500
11501 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11502 * inferior.c (uiout_field_connection): New function.
11503 (print_inferior): Add new "connection-id" column.
11504 (add_inferior_command): Show connection number/string of added
11505 inferior.
11506 * process-stratum-target.h
11507 (process_stratum_target::connection_string): New virtual method.
11508 (process_stratum_target::connection_number): New field.
11509 * remote.c (remote_target::connection_string): New override.
11510 * target-connection.c: New file.
11511 * target-connection.h: New file.
11512 * target.c (decref_target): Remove process_stratum targets from
11513 the connection list.
11514 (target_stack::push): Add process_stratum targets to the
11515 connection list.
11516
4f837581
PA
115172020-01-10 Pedro Alves <palves@redhat.com>
11518
11519 Revert:
11520 2016-04-12 Pedro Alves <palves@redhat.com>
11521 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11522 Remove references to name.
11523 * serial.h (struct serial) <name>: Delete.
11524
f4ec508e
PA
115252020-01-10 Pedro Alves <palves@redhat.com>
11526
11527 * gdbarch-selftests.c (register_to_value_test): Remove "target
11528 already pushed" check.
11529
5b6d1e4f
PA
115302020-01-10 Pedro Alves <palves@redhat.com>
11531 John Baldwin <jhb@FreeBSD.org>
11532
11533 * aarch64-linux-nat.c
11534 (aarch64_linux_nat_target::thread_architecture): Adjust.
11535 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11536 (task_command_1): Likewise.
11537 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11538 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11539 (aix_thread_target::store_registers)
11540 (aix_thread_target::thread_alive): Adjust.
11541 * amd64-fbsd-tdep.c: Include "inferior.h".
11542 (amd64fbsd_get_thread_local_address): Pass down target.
11543 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11544 thread's gdbarch instead of target_gdbarch.
11545 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11546 get_last_target_status.
11547 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11548 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11549 inferiors.
11550 (update_inserted_breakpoint_locations): Skip if inferiors with no
11551 execution.
11552 (update_global_location_list): When handling moribund locations,
11553 find representative inferior for location's pspace, and use thread
11554 count of its process_stratum target.
11555 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11556 * bsd-uthread.c (bsd_uthread_target::wait): Use
11557 as_process_stratum_target and adjust thread_change_ptid and
11558 add_thread calls.
11559 (bsd_uthread_target::update_thread_list): Use
11560 as_process_stratum_target and adjust find_thread_ptid,
11561 thread_change_ptid and add_thread calls.
11562 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11563 find_thread_ptid call.
11564 * corelow.c (add_to_thread_list): Adjust add_thread call.
11565 (core_target_open): Adjust add_thread_silent and thread_count
11566 calls.
11567 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11568 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11569 * event-top.c (async_disconnect): Pop targets from all inferiors.
11570 * exec.c (add_target_sections): Push exec target on all inferiors
11571 sharing the program space.
11572 (remove_target_sections): Remove the exec target from all
11573 inferiors sharing the program space.
11574 (exec_on_vfork): New.
11575 * exec.h (exec_on_vfork): Declare.
11576 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11577 Pass it down.
11578 (fbsd_nat_target::update_thread_list): Adjust.
11579 (fbsd_nat_target::resume): Adjust.
11580 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11581 down.
11582 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11583 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11584 get_thread_arch_regcache call.
11585 * fork-child.c (gdb_startup_inferior): Pass target down to
11586 startup_inferior and set_executing.
11587 * gdbthread.h (struct process_stratum_target): Forward declare.
11588 (add_thread, add_thread_silent, add_thread_with_info)
11589 (in_thread_list): Add process_stratum_target parameter.
11590 (find_thread_ptid(inferior*, ptid_t)): New overload.
11591 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11592 parameter.
11593 (all_threads()): Delete overload.
11594 (all_threads, all_non_exited_threads): Add process_stratum_target
11595 parameter.
11596 (all_threads_safe): Use brace initialization.
11597 (thread_count): Add process_stratum_target parameter.
11598 (set_resumed, set_running, set_stop_requested, set_executing)
11599 (threads_are_executing, finish_thread_state): Add
11600 process_stratum_target parameter.
11601 (switch_to_thread): Use is_current_thread.
11602 * i386-fbsd-tdep.c: Include "inferior.h".
11603 (i386fbsd_get_thread_local_address): Pass down target.
11604 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11605 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11606 have_inferiors check.
11607 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11608 (inf_ptrace_target::attach): Adjust.
11609 * infcall.c (run_inferior_call): Adjust.
11610 * infcmd.c (run_command_1): Pass target to
11611 scoped_finish_thread_state.
11612 (proceed_thread_callback): Skip inferiors with no execution.
11613 (continue_command): Rename 'all_threads' local to avoid hiding
11614 'all_threads' function. Adjust get_last_target_status call.
11615 (prepare_one_step): Adjust set_running call.
11616 (signal_command): Use user_visible_resume_target. Compare thread
11617 pointers instead of inferior_ptid.
11618 (info_program_command): Adjust to pass down target.
11619 (attach_command): Mark target's 'thread_executing' flag.
11620 (stop_current_target_threads_ns): New, factored out from ...
11621 (interrupt_target_1): ... this. Switch inferior before making
11622 target calls.
11623 * inferior-iter.h
11624 (struct all_inferiors_iterator, struct all_inferiors_range)
11625 (struct all_inferiors_safe_range)
11626 (struct all_non_exited_inferiors_range): Filter on
11627 process_stratum_target too. Remove explicit.
11628 * inferior.c (inferior::inferior): Push dummy target on target
11629 stack.
11630 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11631 Add process_stratum_target parameter, and pass it down.
11632 (have_live_inferiors): Adjust.
11633 (switch_to_inferior_and_push_target): New.
11634 (add_inferior_command, clone_inferior_command): Handle
11635 "-no-connection" parameter. Use
11636 switch_to_inferior_and_push_target.
11637 (_initialize_inferior): Mention "-no-connection" option in
11638 the help of "add-inferior" and "clone-inferior" commands.
11639 * inferior.h: Include "process-stratum-target.h".
11640 (interrupt_target_1): Use bool.
11641 (struct inferior) <push_target, unpush_target, target_is_pushed,
11642 find_target_beneath, top_target, process_target, target_at,
11643 m_stack>: New.
11644 (discard_all_inferiors): Delete.
11645 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11646 (all_inferiors, all_non_exited_inferiors): Add
11647 process_stratum_target parameter.
11648 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11649 (target_last_proc_target): New global.
11650 (follow_fork_inferior): Push target on new inferior. Pass target
11651 to add_thread_silent. Call exec_on_vfork. Handle target's
11652 reference count.
11653 (follow_fork): Adjust get_last_target_status call. Also consider
11654 target.
11655 (follow_exec): Push target on new inferior.
11656 (struct execution_control_state) <target>: New field.
11657 (user_visible_resume_target): New.
11658 (do_target_resume): Call target_async.
11659 (resume_1): Set target's threads_executing flag. Consider resume
11660 target.
11661 (commit_resume_all_targets): New.
11662 (proceed): Also consider resume target. Skip threads of inferiors
11663 with no execution. Commit resumtion in all targets.
11664 (start_remote): Pass current inferior to wait_for_inferior.
11665 (infrun_thread_stop_requested): Consider target as well. Pass
11666 thread_info pointer to clear_inline_frame_state instead of ptid.
11667 (infrun_thread_thread_exit): Consider target as well.
11668 (random_pending_event_thread): New inferior parameter. Use it.
11669 (do_target_wait): Rename to ...
11670 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11671 down.
11672 (threads_are_resumed_pending_p, do_target_wait): New.
11673 (prepare_for_detach): Adjust calls.
11674 (wait_for_inferior): New inferior parameter. Handle it. Use
11675 do_target_wait_1 instead of do_target_wait.
11676 (fetch_inferior_event): Adjust. Switch to representative
11677 inferior. Pass target down.
11678 (set_last_target_status): Add process_stratum_target parameter.
11679 Save target in global.
11680 (get_last_target_status): Add process_stratum_target parameter and
11681 handle it.
11682 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11683 (context_switch): Check inferior_ptid == null_ptid before calling
11684 inferior_thread().
11685 (get_inferior_stop_soon): Pass down target.
11686 (wait_one): Rename to ...
11687 (poll_one_curr_target): ... this.
11688 (struct wait_one_event): New.
11689 (wait_one): New.
11690 (stop_all_threads): Adjust.
11691 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11692 event's target.
11693 (switch_back_to_stepped_thread): Also consider target.
11694 (print_stop_event): Update.
11695 (normal_stop): Update. Also consider the resume target.
11696 * infrun.h (wait_for_inferior): Remove declaration.
11697 (user_visible_resume_target): New declaration.
11698 (get_last_target_status, set_last_target_status): New
11699 process_stratum_target parameter.
11700 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11701 process_stratum_target parameter, and use it.
11702 (clear_inline_frame_state (thread_info*)): New.
11703 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11704 process_stratum_target parameter.
11705 (clear_inline_frame_state (thread_info*)): Declare.
11706 * linux-fork.c (delete_checkpoint_command): Pass target down to
11707 find_thread_ptid.
11708 (checkpoint_command): Adjust.
11709 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11710 instead of just tweaking inferior_ptid.
11711 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11712 (exit_lwp): Pass target down to find_thread_ptid.
11713 (attach_proc_task_lwp_callback): Pass target down to
11714 add_thread/set_running/set_executing.
11715 (linux_nat_target::attach): Pass target down to
11716 thread_change_ptid.
11717 (get_detach_signal): Pass target down to find_thread_ptid.
11718 Consider last target status's target.
11719 (linux_resume_one_lwp_throw, resume_lwp)
11720 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11721 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11722 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11723 (linux_nat_target::async_wait_fd): New.
11724 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11725 target down.
11726 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11727 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11728 * linux-thread-db.c (struct thread_db_info::process_target): New
11729 field.
11730 (add_thread_db_info): Save target.
11731 (get_thread_db_info): New process_stratum_target parameter. Also
11732 match target.
11733 (delete_thread_db_info): New process_stratum_target parameter.
11734 Also match target.
11735 (thread_from_lwp): Adjust to pass down target.
11736 (thread_db_notice_clone): Pass down target.
11737 (check_thread_db_callback): Pass down target.
11738 (try_thread_db_load_1): Always push the thread_db target.
11739 (try_thread_db_load, record_thread): Pass target down.
11740 (thread_db_target::detach): Pass target down. Always unpush the
11741 thread_db target.
11742 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11743 target down. Always unpush the thread_db target.
11744 (find_new_threads_callback, thread_db_find_new_threads_2)
11745 (thread_db_target::update_thread_list): Pass target down.
11746 (thread_db_target::pid_to_str): Pass current inferior down.
11747 (thread_db_target::get_thread_local_address): Pass target down.
11748 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11749 target down.
11750 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11751 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11752 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11753 (procfs_init_inferior): Rename to ...
11754 (procfs_target::procfs_init_inferior): ... this and adjust.
11755 (procfs_target::create_inferior, procfs_notice_thread)
11756 (procfs_do_thread_registers): Adjust.
11757 * ppc-fbsd-tdep.c: Include "inferior.h".
11758 (ppcfbsd_get_thread_local_address): Pass down target.
11759 * proc-service.c (ps_xfer_memory): Switch current inferior and
11760 program space as well.
11761 (get_ps_regcache): Pass target down.
11762 * process-stratum-target.c
11763 (process_stratum_target::thread_address_space)
11764 (process_stratum_target::thread_architecture): Pass target down.
11765 * process-stratum-target.h
11766 (process_stratum_target::threads_executing): New field.
11767 (as_process_stratum_target): New.
11768 * ravenscar-thread.c
11769 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11770 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11771 down.
11772 * record-btrace.c (record_btrace_target::info_record): Adjust.
11773 (record_btrace_target::record_method)
11774 (record_btrace_target::record_is_replaying)
11775 (record_btrace_target::fetch_registers)
11776 (get_thread_current_frame_id, record_btrace_target::resume)
11777 (record_btrace_target::wait, record_btrace_target::stop): Pass
11778 target down.
11779 * record-full.c (record_full_wait_1): Switch to event thread.
11780 Pass target down.
11781 * regcache.c (regcache::regcache)
11782 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11783 process_stratum_target parameter and handle it.
11784 (current_thread_target): New global.
11785 (get_thread_regcache): Add process_stratum_target parameter and
11786 handle it. Switch inferior before calling target method.
11787 (get_thread_regcache): Pass target down.
11788 (get_thread_regcache_for_ptid): Pass target down.
11789 (registers_changed_ptid): Add process_stratum_target parameter and
11790 handle it.
11791 (registers_changed_thread, registers_changed): Pass target down.
11792 (test_get_thread_arch_aspace_regcache): New.
11793 (current_regcache_test): Define a couple local test_target_ops
11794 instances and use them for testing.
11795 (readwrite_regcache): Pass process_stratum_target parameter.
11796 (cooked_read_test, cooked_write_test): Pass mock_target down.
11797 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11798 (get_thread_arch_aspace_regcache): Add process_stratum_target
11799 parameter.
11800 (regcache::target): New method.
11801 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11802 (regcache::registers_changed_ptid): Add process_stratum_target
11803 parameter.
11804 (regcache::m_target): New field.
11805 (registers_changed_ptid): Add process_stratum_target parameter.
11806 * remote.c (remote_state::supports_vCont_probed): New field.
11807 (remote_target::async_wait_fd): New method.
11808 (remote_unpush_and_throw): Add remote_target parameter.
11809 (get_current_remote_target): Adjust.
11810 (remote_target::remote_add_inferior): Push target.
11811 (remote_target::remote_add_thread)
11812 (remote_target::remote_notice_new_inferior)
11813 (get_remote_thread_info): Pass target down.
11814 (remote_target::update_thread_list): Skip threads of inferiors
11815 bound to other targets. (remote_target::close): Don't discard
11816 inferiors. (remote_target::add_current_inferior_and_thread)
11817 (remote_target::process_initial_stop_replies)
11818 (remote_target::start_remote)
11819 (remote_target::remote_serial_quit_handler): Pass down target.
11820 (remote_target::remote_unpush_target): New remote_target
11821 parameter. Unpush the target from all inferiors.
11822 (remote_target::remote_unpush_and_throw): New remote_target
11823 parameter. Pass it down.
11824 (remote_target::open_1): Check whether the current inferior has
11825 execution instead of checking whether any inferior is live. Pass
11826 target down.
11827 (remote_target::remote_detach_1): Pass down target. Use
11828 remote_unpush_target.
11829 (extended_remote_target::attach): Pass down target.
11830 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11831 (remote_target::append_resumption): Pass down target.
11832 (remote_target::append_pending_thread_resumptions)
11833 (remote_target::remote_resume_with_hc, remote_target::resume)
11834 (remote_target::commit_resume): Pass down target.
11835 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11836 (remote_target::interrupt_query)
11837 (remote_target::remove_new_fork_children)
11838 (remote_target::check_pending_events_prevent_wildcard_vcont)
11839 (remote_target::remote_parse_stop_reply)
11840 (remote_target::process_stop_reply): Pass down target.
11841 (first_remote_resumed_thread): New remote_target parameter. Pass
11842 it down.
11843 (remote_target::wait_as): Pass down target.
11844 (unpush_and_perror): New remote_target parameter. Pass it down.
11845 (remote_target::readchar, remote_target::remote_serial_write)
11846 (remote_target::getpkt_or_notif_sane_1)
11847 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11848 down target.
11849 (remote_target::mourn_inferior): Pass down target. Use
11850 remote_unpush_target.
11851 (remote_target::core_of_thread)
11852 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11853 (remote_target::pid_to_exec_file)
11854 (remote_target::thread_handle_to_thread_info): Pass down target.
11855 (remote_target::async_wait_fd): New.
11856 * riscv-fbsd-tdep.c: Include "inferior.h".
11857 (riscv_fbsd_get_thread_local_address): Pass down target.
11858 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11859 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11860 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11861 Adjust.
11862 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11863 * solib-svr4.c (enable_break): Pass down target.
11864 * spu-multiarch.c (parse_spufs_run): Pass down target.
11865 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11866 * target-delegates.c: Regenerate.
11867 * target.c (g_target_stack): Delete.
11868 (current_top_target): Return the current inferior's top target.
11869 (target_has_execution_1): Refer to the passed-in inferior's top
11870 target.
11871 (target_supports_terminal_ours): Check whether the initial
11872 inferior was already created.
11873 (decref_target): New.
11874 (target_stack::push): Incref/decref the target.
11875 (push_target, push_target, unpush_target): Adjust.
11876 (target_stack::unpush): Defref target.
11877 (target_is_pushed): Return bool. Adjust to refer to the current
11878 inferior's target stack.
11879 (dispose_inferior): Delete, and inline parts ...
11880 (target_preopen): ... here. Only dispose of the current inferior.
11881 (target_detach): Hold strong target reference while detaching.
11882 Pass target down.
11883 (target_thread_name): Add assertion.
11884 (target_resume): Pass down target.
11885 (target_ops::beneath, find_target_at): Adjust to refer to the
11886 current inferior's target stack.
11887 (get_dummy_target): New.
11888 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11889 has a thread running.
11890 (initialize_targets): Rename to ...
11891 (_initialize_target): ... this.
11892 * target.h: Include "gdbsupport/refcounted-object.h".
11893 (struct target_ops): Inherit refcounted_object.
11894 (target_ops::shortname, target_ops::longname): Make const.
11895 (target_ops::async_wait_fd): New method.
11896 (decref_target): Declare.
11897 (struct target_ops_ref_policy): New.
11898 (target_ops_ref): New typedef.
11899 (get_dummy_target): Declare function.
11900 (target_is_pushed): Return bool.
11901 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11902 (all_matching_threads_iterator::all_matching_threads_iterator):
11903 Handle filter target.
11904 * thread-iter.h (struct all_matching_threads_iterator, struct
11905 all_matching_threads_range, class all_non_exited_threads_range):
11906 Filter by target too. Remove explicit.
11907 * thread.c (threads_executing): Delete.
11908 (inferior_thread): Pass down current inferior.
11909 (clear_thread_inferior_resources): Pass down thread pointer
11910 instead of ptid_t.
11911 (add_thread_silent, add_thread_with_info, add_thread): Add
11912 process_stratum_target parameter. Use it for thread and inferior
11913 searches.
11914 (is_current_thread): New.
11915 (thread_info::deletable): Use it.
11916 (find_thread_ptid, thread_count, in_thread_list)
11917 (thread_change_ptid, set_resumed, set_running): New
11918 process_stratum_target parameter. Pass it down.
11919 (set_executing): New process_stratum_target parameter. Pass it
11920 down. Adjust reference to 'threads_executing'.
11921 (threads_are_executing): New process_stratum_target parameter.
11922 Adjust reference to 'threads_executing'.
11923 (set_stop_requested, finish_thread_state): New
11924 process_stratum_target parameter. Pass it down.
11925 (switch_to_thread): Also match inferior.
11926 (switch_to_thread): New process_stratum_target parameter. Pass it
11927 down.
11928 (update_threads_executing): Reimplement.
11929 * top.c (quit_force): Pop targets from all inferior.
11930 (gdb_init): Don't call initialize_targets.
11931 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11932 Declare.
11933 (windows_add_thread, windows_delete_thread): Adjust.
11934 (get_windows_debug_event): Rename to ...
11935 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11936 * tracefile-tfile.c (tfile_target_open): Pass down target.
11937 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11938 Forward declare.
11939 (switch_to_thread): Add process_stratum_target parameter.
11940 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11941 parameter. Use it.
11942 (mi_on_resume): Pass target down.
11943 * nat/fork-inferior.c (startup_inferior): Add
11944 process_stratum_target parameter. Pass it down.
11945 * nat/fork-inferior.h (startup_inferior): Add
11946 process_stratum_target parameter.
11947 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11948
75c6c844
PA
119492020-01-10 Pedro Alves <palves@redhat.com>
11950
11951 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11952 directly. Instead find the first thread in the thread list and
11953 use switch_to_thread.
11954
78f2c40a
PA
119552020-01-10 Pedro Alves <palves@redhat.com>
11956
11957 * remote.c (remote_target::remote_add_inferior): Don't bind a
11958 process to the current inferior if the current inferior is already
11959 bound to a process.
11960
e7af6c70
TBA
119612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11962 Pedro Alves <palves@redhat.com>
11963
11964 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11965 If no process is specified, return null_ptid instead of
11966 inferior_ptid.
11967 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11968 TARGET_WAITKIND_SIGNALLED with no pid.
11969
31ba933e
PA
119702020-01-10 Pedro Alves <palves@redhat.com>
11971
11972 * remote.c (first_remote_resumed_thread): New.
11973 (remote_target::wait_as): Use it as default event_ptid instead of
11974 inferior_ptid.
11975
735fc2ca
PA
119762020-01-10 Pedro Alves <palves@redhat.com>
11977
11978 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11979
c17e02e1
PA
119802020-01-10 Pedro Alves <palves@redhat.com>
11981
11982 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11983 not -1.
11984
ab1ddbcf
PA
119852020-01-10 Pedro Alves <palves@redhat.com>
11986
11987 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11988 ptid to get_last_target_status.
11989 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11990 ptid to get_last_target_status.
11991 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11992 get_last_target_status.
11993 (info_program_command): Don't pass a target_waitstatus to
11994 get_last_target_status.
11995 * infrun.c (init_wait_for_inferior): Use
11996 nullify_last_target_wait_ptid.
11997 (get_last_target_status): Handle nullptr arguments.
11998 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11999 (print_stop_event): Don't pass a ptid to get_last_target_status.
12000 (normal_stop): Don't pass a ptid to get_last_target_status.
12001 * infrun.h (get_last_target_status, set_last_target_status): Move
12002 comments here and update.
12003 (nullify_last_target_wait_ptid): Declare.
12004 * linux-fork.c (fork_load_infrun_state): Remove local extern
12005 declaration of nullify_last_target_wait_ptid.
12006 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12007 to get_last_target_status.
12008
f3f8ece4
PA
120092020-01-10 Pedro Alves <palves@redhat.com>
12010
12011 * gdbthread.h (scoped_restore_current_thread)
12012 <dont_restore, restore, m_dont_restore>: Declare.
12013 * thread.c (thread_alive): Add assertion. Return bool.
12014 (switch_to_thread_if_alive): New.
12015 (prune_threads): Switch inferior/thread.
12016 (print_thread_info_1): Switch thread before calling target methods.
12017 (scoped_restore_current_thread::restore): New, factored out from
12018 ...
12019 (scoped_restore_current_thread::~scoped_restore_current_thread):
12020 ... this.
12021 (scoped_restore_current_thread::scoped_restore_current_thread):
12022 Add assertion.
12023 (thread_apply_all_command, thread_select): Use
12024 switch_to_thread_if_alive.
12025 * infrun.c (proceed, restart_threads, handle_signal_stop)
12026 (switch_back_to_stepped_thread): Switch current thread before
12027 calling target methods.
12028
db2d40f7
PA
120292020-01-10 Pedro Alves <palves@redhat.com>
12030
12031 * inferior.c (switch_to_inferior_no_thread): New function,
12032 factored out from ...
12033 (inferior_command): ... here.
12034 * inferior.h (switch_to_inferior_no_thread): Declare.
12035 * mi/mi-main.c (run_one_inferior): Use
12036 switch_to_inferior_no_thread.
12037
bd420a2d
PA
120382020-01-10 Pedro Alves <palves@redhat.com>
12039
12040 * infcmd.c (kill_command): Remove dead code.
12041
ddf5db90
PA
120422020-01-10 Pedro Alves <palves@redhat.com>
12043
12044 * remote.c (remote_target::mourn_inferior): No longer check
12045 whether the target is running.
12046
5018ce90
PA
120472020-01-10 Pedro Alves <palves@redhat.com>
12048
12049 * corelow.c (core_target::has_execution): Change parameter type to
12050 inferior pointer.
12051 * inferior.c (number_of_live_inferiors): Use
12052 inferior::has_execution instead of target_has_execution_1.
12053 * inferior.h (inferior::has_execution): New.
12054 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12055 inferior::has_execution instead of target_has_execution_1.
12056 * process-stratum-target.c
12057 (process_stratum_target::has_execution): Change parameter type to
12058 inferior pointer. Check the inferior's PID instead of
12059 inferior_ptid.
12060 * process-stratum-target.h
12061 (process_stratum_target::has_execution): Change parameter type to
12062 inferior pointer.
12063 * record-full.c (record_full_core_target::has_execution): Change
12064 parameter type to inferior pointer.
12065 * target.c (target_has_execution_1): Change parameter type to
12066 inferior pointer.
12067 (target_has_execution_current): Adjust.
12068 * target.h (target_ops::has_execution): Change parameter type to
12069 inferior pointer.
12070 (target_has_execution_1): Change parameter type to inferior
12071 pointer. Change return type to bool.
12072 * tracefile.h (tracefile_target::has_execution): Change parameter
12073 type to inferior pointer.
12074
74375d18
PA
120752020-01-10 Pedro Alves <palves@redhat.com>
12076
12077 * exceptions.c (print_flush): Remove current_top_target() check.
12078
acdf84a6
PA
120792020-01-10 Pedro Alves <palves@redhat.com>
12080
12081 * remote.c (show_remote_exec_file): Show the current inferior's
12082 exec-file instead of the command variable's value.
12083
ec506636
PA
120842020-01-10 Pedro Alves <palves@redhat.com>
12085
12086 * record-full.c (record_full_resume_ptid): New global.
12087 (record_full_target::resume): Set it.
12088 (record_full_wait_1): Use record_full_resume_ptid instead of
12089 inferior_ptid.
12090
873657b9
PA
120912020-01-10 Pedro Alves <palves@redhat.com>
12092
12093 * gdbthread.h (scoped_restore_current_thread)
12094 <dont_restore, restore, m_dont_restore>: Declare.
12095 * thread.c (thread_alive): Add assertion. Return bool.
12096 (switch_to_thread_if_alive): New.
12097 (prune_threads): Switch inferior/thread.
12098 (print_thread_info_1): Switch thread before calling target methods.
12099 (scoped_restore_current_thread::restore): New, factored out from
12100 ...
12101 (scoped_restore_current_thread::~scoped_restore_current_thread):
12102 ... this.
12103 (scoped_restore_current_thread::scoped_restore_current_thread):
12104 Add assertion.
12105 (thread_apply_all_command, thread_select): Use
12106 switch_to_thread_if_alive.
12107
7f0ae84c
GB
121082020-01-10 George Barrett <bob@bob131.so>
12109
12110 * stap-probe.c (stap_modify_semaphore): Don't check for null
12111 semaphores.
12112 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12113 for null semaphores.
12114
f5a7c406
AB
121152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12116
12117 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12118 all source windows, and maintain horizontal scroll status while
12119 doing so.
12120
9ae6bf64
TT
121212020-01-09 Tom Tromey <tom@tromey.com>
12122
12123 PR tui/18932:
12124 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12125 update_source_window, not print_source_lines.
12126
b2efe70c
AB
121272020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12128
12129 * tui/tui.c (tui_enable): Register tui hooks after calling
12130 tui_display_main.
12131
5f23a082
CB
121322020-01-09 Christian Biesinger <cbiesinger@google.com>
12133
12134 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12135
3061113b
SM
121362020-01-08 Simon Marchi <simon.marchi@efficios.com>
12137
12138 * thread.c (print_thread_info_1): Fix indentation.
12139
57d75002
CB
121402020-01-09 Christian Biesinger <cbiesinger@google.com>
12141
12142 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12143 unique_xmalloc_ptr outside the if to always free the demangled name.
12144
6a053cb1
TT
121452020-01-08 Tom Tromey <tromey@adacore.com>
12146
12147 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12148 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12149 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12150 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12151 Remove.
12152 (section_offsets): New typedef.
12153 * symtab.c (fixup_section, get_msymbol_address): Update.
12154 * symmisc.c (dump_msymbols): Update.
12155 * symfile.h (relative_addr_info_to_section_offsets)
12156 (symfile_map_offsets_to_segments): Update.
12157 * symfile.c (build_section_addr_info_from_objfile)
12158 (init_objfile_sect_indices): Update.
12159 (struct place_section_arg): Change type of "offsets".
12160 (place_section): Update.
12161 (relative_addr_info_to_section_offsets): Change type of
12162 "section_offsets". Remove "num_sections" parameter.
12163 (default_symfile_offsets, syms_from_objfile_1)
12164 (set_objfile_default_section_offset): Update.
12165 (reread_symbols): No need to preserve section offsets by hand.
12166 (symfile_map_offsets_to_segments): Change type of "offsets".
12167 * stap-probe.c (relocate_address): Update.
12168 * stabsread.h (process_one_symbol): Update.
12169 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12170 (solib_target_relocate_section_addresses): Update.
12171 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12172 Update.
12173 * solib-frv.c (frv_relocate_main_executable): Update.
12174 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12175 * solib-aix.c (solib_aix_get_section_offsets): Change return
12176 type.
12177 (solib_aix_solib_create_inferior_hook): Update.
12178 * remote.c (remote_target::get_offsets): Update.
12179 * psymtab.c (find_pc_sect_psymtab): Update.
12180 * psympriv.h (struct partial_symbol) <address, text_low,
12181 text_high>: Update.
12182 * objfiles.h (obj_section_offset): Update.
12183 (struct objfile) <section_offsets>: Change type.
12184 <num_sections>: Remove.
12185 (objfile_relocate): Update.
12186 * objfiles.c (entry_point_address_query): Update
12187 (relocate_one_symbol): Change type of "section_offsets".
12188 (objfile_relocate1, objfile_relocate1): Change type of
12189 "new_offsets".
12190 (objfile_rebase1): Update.
12191 * mipsread.c (mipscoff_symfile_read): Update.
12192 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12193 parameter.
12194 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12195 (parse_external, psymtab_to_symtab_1): Update.
12196 * machoread.c (macho_symfile_offsets): Update.
12197 * ia64-tdep.c (ia64_find_unwind_table): Update.
12198 * hppa-tdep.c (read_unwind_info): Update.
12199 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12200 * dwarf2read.c (create_addrmap_from_index)
12201 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12202 (process_psymtab_comp_unit_reader, add_partial_symbol)
12203 (add_partial_subprogram, process_full_comp_unit)
12204 (read_file_scope, read_func_scope, read_lexical_block_scope)
12205 (read_call_site_scope, dwarf2_rnglists_process)
12206 (dwarf2_ranges_process, dwarf2_ranges_read)
12207 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12208 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12209 Update.
12210 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12211 Update.
12212 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12213 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12214 (process_one_symbol): Change type of "section_offsets".
12215 * ctfread.c (get_objfile_text_range): Update.
12216 * coffread.c (coff_symtab_read, enter_linenos)
12217 (process_coff_symbol): Update.
12218 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12219 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12220
456e800a
TT
122212020-01-08 Tom Tromey <tromey@adacore.com>
12222
12223 * dwarf2read.c (parse_macro_definition): Use std::string.
12224 (parse_macro_definition): Likewise.
12225
6dfa2fc2
TT
122262020-01-08 Tom Tromey <tromey@adacore.com>
12227
12228 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12229 (ATTR_ALLOC_CHUNK): Remove.
12230
421d1616
TT
122312020-01-08 Tom Tromey <tromey@adacore.com>
12232
12233 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12234
43816ebc
TT
122352020-01-08 Tom Tromey <tromey@adacore.com>
12236
12237 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12238 (dwarf2_compute_name, open_dwo_file): Likewise.
12239 (process_enumeration_scope): Use std::vector.
12240 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12241 (partial_die_info::fixup, dwarf2_start_subfile)
12242 (guess_full_die_structure_name, dwarf2_name): Likewise.
12243 (determine_prefix): Update.
12244 (guess_full_die_structure_name): Make return type const.
12245 (partial_die_full_name): Return unique_xmalloc_ptr.
12246 (DW_FIELD_ALLOC_CHUNK): Remove.
12247
4212d509
TT
122482020-01-07 Tom Tromey <tromey@adacore.com>
12249
12250 PR build/24937:
12251 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12252
06a6207a
JT
122532020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12254
12255 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12256
153d79c4
AB
122572020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 * stack.c (print_frame_info): Move disassemble_next_line code
12260 inside source_print block.
12261
66182876
EZ
122622020-01-06 Eli Zaretskii <eliz@gnu.org>
12263
12264 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12265 gdb/signals.h, as we are now using native signal symbols.
12266
cbfa8581
SV
122672020-01-06 Shahab Vahedi <shahab@synopsys.com>
12268
12269 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12270 overflow by an early check of content vs threshold.
aac66a4c 12271 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12272 Likewise.
12273
3f602821
EZ
122742020-01-06 Eli Zaretskii <eliz@gnu.org>
12275
12276 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12277
a08c904d
JT
122782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12279
12280 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12281 export table if no section contains it's RVA.
12282
89a65580
EZ
122832020-01-06 Eli Zaretskii <eliz@gnu.org>
12284
12285 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12286
8b7fcda2
HD
122872020-01-06 Hannes Domani <ssbssa@yahoo.de>
12288
12289 * source.c (print_source_lines_base): Set last_line_listed.
12290
a61b4f69
SV
122912020-01-06 Shahab Vahedi <shahab@synopsys.com>
12292
12293 * tui/tui-disasm.c: Remove trailing spaces.
12294
559e7e50
EZ
122952020-01-06 Eli Zaretskii <eliz@gnu.org>
12296 Pedro Alves <palves@redhat.com>
12297
12298 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12299 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12300 (windows_gdb_signal_to_target): New function, uses the above
12301 enumeration to convert GDB internal signal codes to equivalent
12302 Windows codes.
12303 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12304 * windows-nat.c: Include "gdb_wait.h".
12305 (get_windows_debug_event): Extract the fatal exception from the
12306 exit status and convert to the equivalent Posix signal number.
12307 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12308 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12309 * gdbsupport/gdb_wait.c: New file, implements
12310 windows_status_to_termsig.
12311 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12312 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12313
f2302a34
AB
123142020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12315
12316 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12317 show_layout.
12318
6a5206eb
LM
123192020-01-05 Luis Machado <luis.machado@linaro.org>
12320
12321 * aarch64-linux-nat.c
12322 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12323 and bfd_mach_aarch64.
12324
6ec1d75e
PW
123252020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12326
12327 * ui-file.c (stdio_file::can_emit_style_escape)
12328 (tee_file::can_emit_style_escape): Ensure style is used also on
12329 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12330 to gdb_stdout.
12331 * main.c (set_gdb_data_directory): Use file style to output the
12332 warning that the given pathname is not a directory.
12333 * top.c (show_history_filename, gdb_safe_append_history)
12334 (show_gdb_datadir): Use file style.
12335
44f81a76
HD
123362020-01-03 Hannes Domani <ssbssa@yahoo.de>
12337
12338 * solib-target.c (struct lm_info_target):
12339 Change offsets to be a unique_xmalloc_ptr.
12340 (solib_target_relocate_section_addresses): Update.
12341
25057eb0
HD
123422020-01-03 Hannes Domani <ssbssa@yahoo.de>
12343
12344 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12345
6e2118f5
BE
123462020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12347
12348 * MAINTAINERS (Write After Approval): Add myself.
12349
8133c7dc
LM
123502020-01-02 Luis Machado <luis.machado@linaro.org>
12351
12352 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12353 Cell BE architecture.
12354 * target.h (struct target_ops) <thread_architecture>: Likewise.
12355
48189bec
HD
123562020-01-01 Hannes Domani <ssbssa@yahoo.de>
12357
12358 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12359
ead1063b
HD
123602020-01-01 Hannes Domani <ssbssa@yahoo.de>
12361
12362 * MAINTAINERS (Write After Approval): Add myself.
12363
e5d78223
JB
123642020-01-01 Joel Brobecker <brobecker@adacore.com>
12365
12366 * gdbarch.sh: Update copyright year range of generated files.
12367
b811d2c2
JB
123682020-01-01 Joel Brobecker <brobecker@adacore.com>
12369
12370 Update copyright year range in all GDB files.
12371
5f4def5c
JB
123722020-01-01 Joel Brobecker <brobecker@adacore.com>
12373
12374 * copyright.py: Convert to Python 3.
12375
51fd4002
JB
123762020-01-01 Joel Brobecker <brobecker@adacore.com>
12377
12378 * copyright.py: Adapt after move of gnulib directory from gdb
12379 directory to toplevel directory.
12380
5fb651f2
JB
123812020-01-01 Joel Brobecker <brobecker@adacore.com>
12382
12383 * copyright.py (main): Exit if run from the wrong directory.
12384
5dd8bf88
JB
123852020-01-01 Joel Brobecker <brobecker@adacore.com>
12386
12387 * top.c (print_gdb_version): Change copyright year to 2020.
12388
9f71dacb 123892020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12390
9f71dacb 12391 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12392
9f71dacb 12393For older changes see ChangeLog-2019.
c906108c
SS
12394\f
12395Local Variables:
12396mode: change-log
12397left-margin: 8
12398fill-column: 74
12399version-control: never
57da7796 12400coding: utf-8
c906108c 12401End: