]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add gdb/nat common functions for listing threads
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c489f8c6
KR
12020-09-10 Kamil Rytarowski <n54@gmx.com>
2
3 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5 (netbsd_nat::for_each_thread): Add.
6 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
7 "gdbsupport/common-debug.h".
8 * (netbsd_nat::netbsd_thread_lister)
9 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
10 (netbsd_nat::for_each_thread): Add.
11
330662f6
KR
122020-09-10 Kamil Rytarowski <n54@gmx.com>
13
14 * netbsd-nat.h: Include <unistd.h>.
15 * (netbsd_nat::pid_to_exec_file): Add.
16 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
17 * (netbsd_nat::pid_to_exec_file) Add.
18
70b67307
KR
192020-09-10 Kamil Rytarowski <n54@gmx.com>
20
21 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
22
99cf6da6
KR
232020-09-10 Kamil Rytarowski <n54@gmx.com>
24
25 * netbsd-nat.h: New file.
26 * netbsd-nat.c: Likewise.
27
1b788fb6
TT
282020-09-09 Tom Tromey <tromey@adacore.com>
29
30 * ada-lang.c (remove_extra_symbols): Do not increment when
31 removing an element
32
03b0a45f
TT
332020-09-08 Tom Tromey <tromey@adacore.com>
34
35 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
36
3cae4447
TT
372020-09-08 Tom Tromey <tromey@adacore.com>
38
39 PR win32/25302:
40 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
41 (gdb_bfd_init_data): New function.
42 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
43
7f08fd51
TBA
442020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
45
46 * infrun.c (fetch_inferior_event): Use
47 `switch_to_target_no_thread` to switch the target.
48
3e6ff933
TT
492020-09-06 Tom Tromey <tom@tromey.com>
50
51 * symfile.h (dwarf2_free_objfile): Don't declare.
52
e56798df
AKS
532020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
54
55 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
56 to match 16 byte real/complex type generated by Flang compiler.
57
8f5c6526
TV
582020-09-03 Tom de Vries <tdevries@suse.de>
59
60 PR breakpoint/26546
61 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
62 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
63
c5065df0
SM
642020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * maint.c (index_digits): New function.
67 (struct maint_print_section_data): Remove.
68 (print_bfd_section_info): Remove print_data parameter, add arg
69 and index_digits.
70 (print_objfile_section_info): Likewise.
71 (print_bfd_section_info_maybe_relocated): Likewise (plus
72 objfile).
73 (maintenance_info_sections): Adjust calls.
74
02c6f3f1
TT
752020-09-02 Tom Tromey <tromey@adacore.com>
76
77 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
78 for null pointers.
79 (ada_varobj_adjust_for_child_access): Special-case null pointers.
80
ef5e5b0b
SM
812020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * bcache.h (struct bcache) <insert>: Change type of `added` to
84 pointer to bool.
85 * bcache.c (bcache::insert): Likewise.
86 * gdbtypes.c (check_types_worklist): Adjust.
87 * psymtab.c (add_psymbol_to_bcache): Adjust.
88
973695d6
KB
892020-08-31 Kevin Buettner <kevinb@redhat.com>
90
91 * corelow.c (unordered_set): Include.
92 (class core_target): Add field 'm_core_unavailable_mappings'.
93 (core_target::build_file_mappings): Print only one warning
94 per inaccessible file. Add unavailable/broken mappings
95 to m_core_unavailable_mappings.
96 (core_target::xfer_partial): Call...
97 (core_target::xfer_memory_via_mappings): New method.
98
264fc0e2
SM
992020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
102 type to bool.
103
2de01bdb
SM
1042020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * dwarf2/read.c (struct field_info): Fix indentation.
107
f3bd50f1
SM
1082020-08-31 Simon Marchi <simon.marchi@efficios.com>
109
110 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
111 ordering in comment.
112 * frame.c (frame_id_eq): Fix indentation.
113
22b9b4b0
SL
1142020-08-31 Scott Linder <scott@scottlinder.com>
115 Simon Marchi <simon.marchi@efficios.com>
116
117 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
118 inline frame ids in outer frame.
119
84154d16
SM
1202020-08-31 Simon Marchi <simon.marchi@efficios.com>
121
122 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
123 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
124 (outer_frame_id): Use FID_STACK_OUTER instead of
125 FID_STACK_INVALID.
126 (frame_id_p): Don't check for outer_frame_id.
127
8efaf6b3
SM
1282020-08-31 Simon Marchi <simon.marchi@efficios.com>
129
130 * frame-unwind.c (frame_unwind_got_optimized): Don't set
131 regnum/frame in value. Call allocate_value_lazy.
132 * frame.c (frame_unwind_register_value): Use
133 val_print_not_saved.
134
fe1fe7ea
SM
1352020-08-31 Simon Marchi <simon.marchi@efficios.com>
136
137 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
138
f7c7700d
PA
1392020-08-29 Pedro Alves <pedro@palves.net>
140
141 * progspace.c (print_program_space): Use all_inferiors. Switch to
142 the inferior before calling target_pid_to_str.
143
e0814aae
TT
1442020-08-28 Tom Tromey <tom@tromey.com>
145
146 * xcoffread.c (xcoff_end_psymtab): Update comment.
147 * dbxread.c (dbx_end_psymtab): Update comment.
148
626d2320
TV
1492020-08-28 Tom de Vries <tdevries@suse.de>
150
151 PR breakpoint/26544
152 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
153 event_location.
154 (create_breakpoint): Same.
155 (base_breakpoint_decode_location): Same.
156 (bkpt_create_sals_from_location): Same.
157 (bkpt_decode_location): Same.
158 (bkpt_probe_create_sals_from_location): Same.
159 (bkpt_probe_decode_location): Same.
160 (tracepoint_create_sals_from_location): Same.
161 (tracepoint_decode_location): Same.
162 (tracepoint_probe_decode_location): Same.
163 (strace_marker_create_sals_from_location): Same.
164 (strace_marker_decode_location): Same.
165 (create_sals_from_location_default): Same.
166 (decode_location_default): Same.
167 * breakpoint.h (struct breakpoint_ops): Same.
168 (create_breakpoint): Same.
169 * linespec.h (decode_line_full): Same.
170 * linespec.c (decode_line_full): Same. Throw error if
171 result.size () == 0.
172
df631783
PA
1732020-08-27 Pedro Alves <pedro@palves.net>
174
175 PR gdb/26524
176 * breakpoint.c (until_break_fsm) <location_breakpoint,
177 caller_breakpoint>: Delete fields.
178 <breakpoints>: New field.
179 <until_break_fsm>: Adjust to save a breakpoint vector instead of
180 two individual breakpoints.
181 (until_break_fsm::should_stop): Loop over breakpoints in the
182 breakpoint vector.
183 (until_break_fsm::clean_up): Adjust to clear the breakpoints
184 vector.
185 (until_break_command): Handle location expanding into multiple
186 sals.
187
b2b38aa4
PA
1882020-08-27 Pedro Alves <pedro@palves.net>
189
190 PR gdb/26523
191 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
192 bp_until breakpoints user-specified locations. Update intro
193 comment.
194
b886559f
SM
1952020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
196
197 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
198 gdb_bfd_sections): New.
199 * maint.c (print_bfd_section_info): Change param type to
200 maint_print_section_data.
201 (print_objfile_section_info): Likewise.
202 (print_bfd_section_info_maybe_relocated): Likewise.
203 (maintenance_info_sections): Use gdb_bfd_sections.
204
4c6e63bf
SV
2052020-08-25 Shahab Vahedi <shahab@synopsys.com>
206
207 * MAINTAINERS: Add ARC target and maintainer.
208
8d7f0635
AK
2092020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
210
211 * configure.tgt: ARC support for GNU/Linux.
212 * Makefile.in (ALL_TARGET_OBJS): Likewise.
213 * arc-linux-tdep.c: New file.
214 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
215 * arc-tdep.c (arc_write_pc): Use it.
216
fdd8731b
SV
2172020-08-25 Shahab Vahedi <shahab@synopsys.com>
218
219 * arc-tdep.c (arc_check_for_hardware_loop): New.
220 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
221
22459524
SV
2222020-08-25 Shahab Vahedi <shahab@synopsys.com>
223
224 * arc-tdep.h: Include "gdbarch.h".
225
995d3a19
SV
2262020-08-25 Shahab Vahedi <shahab@synopsys.com>
227
228 * arch/arc.h
229 (arc_gdbarch_features): New class to stir the selection of target XML.
230 (arc_create_target_description): Use FEATURES to choose XML target.
231 (arc_lookup_target_description): Use arc_create_target_description
232 to create _new_ target descriptions or return the already created
233 ones if the FEATURES is the same.
234 * arch/arc.c: Implementation of prototypes described above.
235 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
236 (arc_gdbarch_features_init): Initialize the FEATURES struct.
237 * arc-tdep.c (*_feature_name): Make feature names consistent.
238 (arc_register_feature): A new struct to hold information about
239 registers of a particular target/feature.
240 (arc_check_tdesc_feature): Check if XML provides registers in
241 compliance with ARC_REGISTER_FEATURE structs.
242 (arc_update_acc_reg_names): Add aliases for r58 and r59.
243 (determine_*_reg_feature_set): Which feature name to look for.
244 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
245 (mach_type_to_arc_isa): Convert from a set of binutils machine types
246 to expected ISA enums to be used in arc_gdbarch_features structs.
247 * features/Makefile (FEATURE_XMLFILES): Add new files.
248 * gdb/features/arc/v1-aux.c: New file.
249 * gdb/features/arc/v1-aux.xml: Likewise.
250 * gdb/features/arc/v1-core.c: Likewise.
251 * gdb/features/arc/v1-core.xml: Likewise.
252 * gdb/features/arc/v2-aux.c: Likewise.
253 * gdb/features/arc/v2-aux.xml: Likewise.
254 * gdb/features/arc/v2-core.c: Likewise.
255 * gdb/features/arc/v2-core.xml: Likewise.
256 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
257
3945d2d7
GM
2582020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
259 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 PR m2/26372
fc5d6901 262 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
263 an assert. Remove single element array indexing pattern as the
264 MULTI_SUBSCRIPT support will handle this case too.
265
2677f2d3
SM
2662020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
267
268 * value.h (valprint_check_validity): Move declaration from
269 here...
270 * valprint.h (valprint_check_validity): ... to here.
271
c426fddb
SM
2722020-08-24 Simon Marchi <simon.marchi@efficios.com>
273
274 * debug.h: New file.
275 * debug.c (debug_prefixed_vprintf): New function.
276 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
277 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
278
1eb8556f
SM
2792020-08-24 Simon Marchi <simon.marchi@efficios.com>
280
281 * infrun.h (infrun_debug_printf_1): New function declaration.
282 (infrun_debug_printf): New macro.
283 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
284 throughout.
285 (infrun_debug_printf): New function.
286 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
287 (handle_jit_event): Likewise.
288
b8fff44e
MW
2892020-08-21 Mark Wielaard <mark@klomp.org>
290
291 * ada-lex.l: Extend register warnings diagnostics comment for g++.
292
d19c3068
SM
2932020-08-22 Simon Marchi <simon.marchi@efficios.com>
294
295 * frame.c (enum class frame_id_status): New.
296 (struct frame_info) <this_id::p>: Change type to frame_id_status.
297 (fprintf_frame): Update.
298 (compute_frame_id): Set frame id status to "computing" on entry.
299 Set it back to "not_computed" on failure and to "computed" on
300 success.
301 (get_frame_id): Assert the frame id is not being computed.
302 (create_sentinel_frame): Use frame_id_status::COMPUTED.
303 (create_new_frame): Likewise.
304 (frame_cleanup_after_sniffer): Update assert.
305
b70e516e
SM
3062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * regcache.c (pid_ptid_regcache_map): New type.
309 (target_ptid_regcache_map): Remove.
310 (target_pid_ptid_regcache_map): New type.
311 (regcaches): Change type to target_pid_ptid_regcache_map.
312 (get_thread_arch_aspace_regcache): Update.
313 (regcache_thread_ptid_changed): Update, handle pid-like ptid
314 case.
315 (regcaches_size): Update.
316 (regcache_count): Update.
317 (registers_changed_ptid_target_pid_test): New.
318 (_initialize_regcache): Register new test.
319
cdd9148a
SM
3202020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * regcache.c (regcache_count): New.
323 (struct regcache_test_data): New.
324 (regcache_test_data_up): New.
325 (populate_regcaches_for_test): New.
326 (regcaches_test): Remove.
327 (get_thread_arch_aspace_regcache_test): New.
328 (registers_changed_ptid_all_test): New.
329 (registers_changed_ptid_target_test): New.
330 (registers_changed_ptid_target_ptid_test): New.
331 (regcache_thread_ptid_changed): Remove regcache_count lambda.
332 (_initialize_regcache): Register new tests.
333
dd125343
SM
3342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
337 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
338 gdbarch and aspace parameter. Use current inferior's aspace.
339 Validate regcache's arch value.
340 (regcaches_test): Update.
341
3ee93972
SM
3422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * regcache.c (regcaches_test): Call registers_changed.
345
33bf4c5c
TBA
3462020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347
348 * infrun.c (process_event_stop_test): Fix typo "breapoint".
349
c2fd7fae
AKS
3502020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
351
352 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
353 to find the end of prologue for flang compiled binaries.
354 * arm-tdep.c (arm_skip_prologue): Likewise.
355 * i386-tdep.c (i386_skip_prologue): Likewise.
356 * producer.c (producer_is_llvm): New function.
357 (producer_parsing_tests): Added new tests for clang/flang.
358 * producer.h (producer_is_llvm): New declaration.
359
9327494e
SM
3602020-08-18 Simon Marchi <simon.marchi@efficios.com>
361
362 * linux-nat.c (linux_nat_debug_printf): New function.
363 (linux_nat_debug_printf_1): New macro. Use throughout the file.
364
d138725a
AM
3652020-08-18 Aaron Merey <amerey@redhat.com>
366
367 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
368 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
369 (CLIBS): Add DEBUGINFOD_LIBS.
370
f9b11e6b
ST
3712020-08-17 Sergei Trofimovich <siarheit@google.com>
372
373 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
374 'gdbarch_num_regs'.
375
3ae7ab99
TT
3762020-08-17 Tom Tromey <tromey@adacore.com>
377
378 * ada-varobj.c (ada_varobj_decode_var): Handle case where
379 ada_get_decoded_value returns NULL.
380
b017825f
TT
3812020-08-17 Tom Tromey <tromey@adacore.com>
382
383 * python/py-inferior.c (infpy_search_memory): Use
384 gdb_py_object_from_ulongest.
385 * python/py-infevents.c (create_inferior_call_event_object)
386 (create_memory_changed_event_object): Use
387 gdb_py_object_from_ulongest.
388 * python/py-linetable.c (ltpy_entry_get_pc): Use
389 gdb_py_object_from_ulongest.
390
7635cf79
SM
3912020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * loc.c (class symbol_needs_eval_context): Fix indentation.
394
f54be24b
SM
3952020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
398 bool.
399
53d5a2a5
TV
4002020-08-17 Tom de Vries <tdevries@suse.de>
401
402 PR gdb/26393
403 * gdbtypes.c (dump_dynamic_prop): New function.
404 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
405
547ce8f0
TV
4062020-08-15 Tom de Vries <tdevries@suse.de>
407
408 PR backtrace/26390
409 * stack.c (print_frame_args): Temporarily set the selected
410 frame to FRAME while printing the frame's arguments.
411
6ea815e7
PFC
4122020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
413
414 PR breakpoints/26385
415 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
416 Always clear watchpoint with PTRACE_SET_DEBUGREG.
417
6e562fa3
PFC
4182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
419
420 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
421 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
422 and >= to check return value instead of == -1 and != -1.
423
d369b608
SM
4242020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * utils.h (class gdb_argv) <as_array_view>: New method.
427 * utils.c (gdb_argv_as_array_view_test): New.
428 (_initialize_utils): Register selftest.
429 * maint.c (maintenance_selftest): Use the new method.
430
b31488a3
KR
4312020-08-13 Kamil Rytarowski <n54@gmx.com>
432
433 * target.h (supports_dumpcore, dumpcore): New
434 function declarations.
435 * target.c (supports_dumpcore, dumpcore): New
436 functions.
437 * target-delegates.c: Rebuild.
438 * gcore.c (gcore_command): Use target_supports_dumpcore ()
439 and target_dumpcore ().
440
002a3166
AM
4412020-08-13 Aaron Merey <amerey@redhat.com>
442
443 * debuginfod-support.c: Replace global variables with user_data.
444
ece5bc8a
SM
4452020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * maint.c (maintenance_selftest): Split args and pass array_view
448 to run_tests.
449
6d8a0a5e
LM
4502020-08-12 Luis Machado <luis.machado@linaro.org>
451
452 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
453 type's length.
454 Use %s and pulongest to print the length.
455
7cf663a9
PA
4562020-08-12 Pedro Alves <palves@redhat.com>
457
458 * NEWS: Move "Multi-target debugging support" item to the
459 "Changes since GDB 9" section.
460
27c7b875
PA
4612020-08-12 Pedro Alves <palves@redhat.com>
462
463 PR gdb/26336
464 * progspace.c (program_space::remove_objfile): Invalidate the
465 frame cache.
466
1796a2a1
TV
4672020-08-11 Tom de Vries <tdevries@suse.de>
468
469 * MAINTAINERS: Mark ms1 as deleted.
470
f8e3fe0d
LM
4712020-08-10 Luis Machado <luis.machado@linaro.org>
472
473 PR gdb/26310
474
475 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
476 act accordingly.
477 (aarch64_analyze_prologue_test): Add more unit tests to exercise
478 movz/str/stur/stp skipping behavior.
479
cc308722
LM
4802020-08-10 Luis Machado <luis.machado@linaro.org>
481
482 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
483 struct user_sve_header instead of struct sve_context.
484
041d9819
SM
4852020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * read.h (dwarf2_fetch_die_loc_sect_off,
488 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
489 `void *` parameter with function_view.
490 * read.c (dwarf2_fetch_die_loc_sect_off,
491 dwarf2_fetch_die_loc_cu_off): Likewise.
492 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
493 (per_cu_dwarf_call): Adjust.
494 (get_frame_address_in_block_wrapper): Remove.
495 (indirect_synthetic_pointer): Adjust.
496 (get_ax_pc): Remove.
497 (dwarf2_compile_expr_to_ax): Adjust.
498
38f8aa06
TV
4992020-08-08 Tom de Vries <tdevries@suse.de>
500
501 PR build/26344
502 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
503 constructor.
504 * regcache.c (get_thread_arch_aspace_regcache): Same.
505
a52b3ae2
TT
5062020-08-07 Tom Tromey <tromey@adacore.com>
507
508 * ravenscar-thread.c
509 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
510 New method.
511 (ravenscar_thread_target::wait): Check
512 runtime_initialized.
513 (ravenscar_thread_target::prepare_to_store)
514 (ravenscar_thread_target::stopped_by_sw_breakpoint)
515 (ravenscar_thread_target::stopped_by_hw_breakpoint)
516 (ravenscar_thread_target::stopped_by_watchpoint)
517 (ravenscar_thread_target::stopped_data_address)
518 (ravenscar_thread_target::core_of_thread): Use
519 scoped_restore_current_thread and
520 set_base_thread_from_ravenscar_task.
521
0e29517d
TT
5222020-08-07 Tom Tromey <tromey@adacore.com>
523
524 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
525
592f9bd7
TT
5262020-08-07 Tom Tromey <tromey@adacore.com>
527
528 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
529 update_inferior_ptid before update_thread_list.
530 (temporarily_change_regcache_ptid): New class.
531 (ravenscar_thread_target::fetch_registers)
532 (ravenscar_thread_target::store_registers)
533 (ravenscar_thread_target::prepare_to_store): Use base thread when
534 forwarding operation.
535
39e2018a
TT
5362020-08-07 Tom Tromey <tromey@adacore.com>
537
538 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
539 "is_pid" case.
540
2080266b
TT
5412020-08-07 Tom Tromey <tromey@adacore.com>
542
543 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
544 New methods.
545 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
546 first.
547 (ravenscar_thread_target::add_thread): Rename from
548 ravenscar_add_thread.
549 (ravenscar_thread_target::update_thread_list): Use a lambda.
550 (ravenscar_thread_target::xfer_partial): New method.
551
78c02f21
TT
5522020-08-07 Tom Tromey <tromey@adacore.com>
553
554 * ada-lang.h (ada_task_list_iterator_ftype): Now a
555 gdb::function_view.
556 (iterate_over_live_ada_tasks): Change type of argument.
557 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
558 of argument.
559
d5d833af
TT
5602020-08-07 Tom Tromey <tromey@adacore.com>
561
562 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
563 Remove.
564 (ravenscar_thread_target::extra_thread_info): Remove.
565 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
566 defer to target beneath for non-Ravenscar threads.
567
a8ac85bb
TT
5682020-08-07 Tom Tromey <tromey@adacore.com>
569
570 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
571 get_base_thread_from_ravenscar_task>: Now methods.
572 <m_cpu_map>: New member.
573 (ravenscar_thread_target::get_thread_base_cpu): Rename from
574 ravenscar_get_thread_base_cpu. Check m_cpu_map.
575 (ravenscar_thread_target::task_is_currently_active): Update.
576 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
577 Now a method.
578 (ravenscar_thread_target::add_active_thread): Put initial thread
579 into the m_cpu_map.
580
550ab58d
TT
5812020-08-07 Tom Tromey <tromey@adacore.com>
582
583 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
584 event_ptid.
585
e9546579
TT
5862020-08-07 Tom Tromey <tromey@adacore.com>
587
588 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
589 runtime_initialized.
590
3d4470e5
TT
5912020-08-07 Tom Tromey <tromey@adacore.com>
592
593 * ravenscar-thread.c (ravenscar_thread_target): Don't call
594 add_active_thread.
595 (ravenscar_thread_target::add_active_thread): Now public.
596 (ravenscar_inferior_created): Call add_active_thread after pushing
597 the target.
598
888bdb2b
SM
5992020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * regcache.c (ptid_regcache_map): New type.
602 (target_ptid_regcache_map): New type.
603 (regcaches): Change type to target_ptid_regcache_map.
604 (get_thread_arch_aspace_regcache): Update to regcaches' new
605 type.
606 (regcache_thread_ptid_changed): Likewise.
607 (registers_changed_ptid): Likewise.
608 (regcaches_size): Likewise.
609 (regcaches_test): Update.
610 (regcache_thread_ptid_changed): Update.
611 * regcache.h (regcache_up): New type.
612 * gdbsupport/ptid.h (hash_ptid): New struct.
613
b161a60d
SM
6142020-08-07 Simon Marchi <simon.marchi@efficios.com>
615
616 * observable.h (thread_ptid_changed): Add parameter
617 `process_stratum_target *`.
618 * infrun.c (infrun_thread_ptid_changed): Add parameter
619 `process_stratum_target *` and use it.
620 (selftests): New namespace.
621 (infrun_thread_ptid_changed): New function.
622 (_initialize_infrun): Register selftest.
623 * regcache.c (regcache_thread_ptid_changed): Add parameter
624 `process_stratum_target *` and use it.
625 (regcache_thread_ptid_changed): New function.
626 (_initialize_regcache): Register selftest.
627 * thread.c (thread_change_ptid): Pass target to
628 thread_ptid_changed observable.
629
d2854d8d
CT
6302020-08-06 Caroline Tice <cmtice@google.com>
631
fe4c3d43
SM
632 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
633 (struct dwp_sections): Update field comments. Add loclists and
634 rnglists fields.
635 (struct virtual_v2_dwo_sections): Rename struct to
636 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
637 size & offset fields for loclists and rnglists.
638 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
639 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
640 skipping dummy type units.
641 (create_dwp_hash_table): Update the large comment above the function to
642 discuss Version 5 DWP files as well, with references. Update all the
643 version checks in the function to check for version 5 as well. Add new
644 section at the end to create dwp hash table for version 5.
645 (create_dwp_v2_section): Rename function to
646 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
647 Add V5 to error message text.
648 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
649 into calls to create_dwp_v2_or_v5_section.
650 (create_dwo_unit_in_dwp_v5): New function.
651 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
652 check for version2; add else clause to handle version 5.
653 (open_and_init_dwo_file): Add code to check dwarf version & only call
654 create_debug_types_hash_table (with sections.types) if version is not 5;
655 else call create_debug_type_hash_table, with sections.info.
656 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
657 version 5.
658 (dwarf2_locate_v5_dwp_sections): New function.
659 (open_and_init_dwp_file): Add else-if clause for version 5 to call
660 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 661
159ed7d9
SM
6622020-08-06 Simon Marchi <simon.marchi@efficios.com>
663
664 * regcache.h (class regcache): Remove friend
665 registers_changed_ptid.
666 <regcache_thread_ptid_changed>: Remove.
667 <regcaches>: Remove.
668 * regcache.c (regcache::regcaches): Rename to...
669 (regcaches): ... this. Make static.
670 (get_thread_arch_aspace_regcache): Update.
671 (regcache::regcache_thread_ptid_changed): Rename to...
672 (regcache_thread_ptid_changed): ... this. Update.
673 (class regcache_access): Remove.
674 (regcaches_test): Update.
675 (_initialize_regcache): Update.
676 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
677 <forward_list>.
678
174981ae
SM
6792020-08-06 Simon Marchi <simon.marchi@efficios.com>
680
681 * regcache.h (class regcache) <current_regcache>: Rename to...
682 <regcaches>: ... this. Move doc here.
683 * regcache.c (regcache::current_regcache) Rename to...
684 (regcache::regcaches): ... this. Move doc to header.
685 (get_thread_arch_aspace_regcache): Update.
686 (regcache::regcache_thread_ptid_changed): Update.
687 (registers_changed_ptid): Update.
688 (class regcache_access) <current_regcache_size>: Rename to...
689 <regcaches_size>: ... this.
690 (current_regcache_test): Rename to...
691 (regcaches_test): ... this.
692 (_initialize_regcache): Update.
693
ed908db6
VC
6942020-08-06 Victor Collod <vcollod@nvidia.com>
695
696 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
697
b5582ab7
KB
6982020-08-05 Kevin Buettner <kevinb@redhat.com>
699
700 * corelow.c (core_target::build_file_mappings): Don't output
701 null pathname in warning.
702
ea946b86
SM
7032020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
706 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
707 gdb.dwarf2/dw2-single-line-discriminators.exp,
708 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
709
57d02173
TT
7102020-08-05 Tom Tromey <tromey@adacore.com>
711
712 PR rust/26197:
713 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
714 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
715 Fix off-by-one and type size errors in ordinary case.
716
5555c86d
TV
7172020-08-05 Tom de Vries <tdevries@suse.de>
718
719 * gdbtypes.c (type_not_allocated, type_not_associated): Use
720 "prop->const_val () == 0" instead of "prop->const_val () != 0".
721
97916bfe
SM
7222020-08-04 Simon Marchi <simon.marchi@efficios.com>
723
724 * frame.h (frame_id_p): Return bool.
725 (frame_id_artificial_p): Return bool.
726 (frame_id_eq): Return bool.
727 (has_stack_frames): Return bool.
728 (get_selected_frame): Fix typo in comment.
729 (get_frame_pc_if_available): Return bool.
730 (get_frame_address_in_block_if_available): Return bool.
731 (get_frame_func_if_available): Return bool.
732 (read_frame_register_unsigned): Return bool.
733 (get_frame_register_bytes): Return bool.
734 (safe_frame_unwind_memory): Return bool.
735 (deprecated_frame_register_read): Return bool.
736 (frame_unwinder_is): Return bool.
737 * frame.c (struct frame_info) <prev_arch::p>: Change type to
738 bool.
739 <this_id::p>: Likewise.
740 <prev_p>: Likewise.
741 (frame_stash_add): Return bool.
742 (get_frame_id): Use bool.
743 (frame_id_build_special) Use bool.
744 (frame_id_build_unavailable_stack): Use bool.
745 (frame_id_build): Use bool.
746 (frame_id_p): Return bool, use true/false instead of 1/0.
747 (frame_id_artificial_p): Likewise.
748 (frame_id_eq): Likewise.
749 (frame_id_inner): Likewise.
750 (get_frame_func_if_available): Likewise.
751 (read_frame_register_unsigned): Likewise.
752 (deprecated_frame_register_read): Likewise.
753 (get_frame_register_bytes): Likewise.
754 (has_stack_frames): Likewise.
755 (inside_main_func): Likewise.
756 (inside_entry_func): Likewise.
757 (get_frame_pc_if_available): Likewise.
758 (get_frame_address_in_block_if_available): Likewise.
759 (frame_unwinder_is): Likewise.
760 (safe_frame_unwind_memory): Likewise.
761 (frame_unwind_arch): Likewise.
762
fedfee88
SM
7632020-08-04 Simon Marchi <simon.marchi@efficios.com>
764
765 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
766 type to cached_copy_status.
767 (fprintf_frame): Adjust.
768 (get_frame_func_if_available): Adjust.
769 (frame_cleanup_after_sniffer): Adjust.
770
6cfa9b59
MW
7712020-08-04 Mark Wielaard <mark@klomp.org>
772
773 * MAINTAINERS (Write After Approval): Update email address.
774
66d6346b
SM
7752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
778 dynamic_prop::const_val.
779
8a6d5e35
SM
7802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
781
782 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
783 dynamic_prop::kind.
784
51d6067d
SM
7852020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
788
b26e2ae7
JM
7892020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
790
791 * configure.tgt: Set gdb_sim for bpf-*-* targets.
792
39791af2
JM
7932020-08-04 Weimin Pan <weimin.pan@oracle.com>
794 Jose E. Marchesi <jose.marchesi@oracle.com>
795
796 * configure.tgt: Add entry for bpf-*-*.
797 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
798 (ALLDEPFILES): Add bpf-tdep.c.
799 * bpf-tdep.c: New file.
800 * MAINTAINERS: Add bpf target and maintainer.
801 * NEWS: Mention the support for the new target.
802
521894aa
TV
8032020-08-04 Tom de Vries <tdevries@suse.de>
804
805 PR symtab/23270
806 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
807 Error.
808
5d6356e9
JB
8092020-08-03 John Baldwin <jhb@FreeBSD.org>
810
811 * syscalls/freebsd.xml: Regenerate.
812
0cf82b81
JB
8132020-08-03 John Baldwin <jhb@FreeBSD.org>
814
815 * syscalls/update-freebsd.sh: Fix usage and year range.
816
8f34b746
TV
8172020-08-03 Tom de Vries <tdevries@suse.de>
818
819 PR symtab/26333
820 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
821 DW_LNE_lo_user/DW_LNE_hi_user range.
822
5e500d33
SM
8232020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
824
825 PR ada/26318
826 * ada-lang.c (ada_modulus): Return 0 if property is not of const
827 kind.
828
78319c15
TBA
8292020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
830
831 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
832
4c55e970
TBA
8332020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 * breakpoint.c (set_breakpoint_condition): Update the condition
836 expressions after checking that the input condition string parses
837 successfully and does not contain junk at the end.
838
1e620590
TBA
8392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840
841 * breakpoint.c (set_breakpoint_condition): Update the
842 condition string after parsing the new condition successfully.
843
c8693053
RO
8442020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
845
846 * proc-api.c (_STRUCTURED_PROC): Don't define.
847 * proc-events.c: Likewise.
848 * proc-flags.c: Likewise.
849 * proc-why.c: Likewise.
850 * procfs.c: Likewise.
851
852 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
853 * configure, config.in: Regenerate.
854
5a99adb8
TV
8552020-07-30 Tom de Vries <tdevries@suse.de>
856
857 PR build/26320
858 * ui-style.h (struct ui_file_style::color): Wrap m_value and
859 m_red/m_green/m_blue in a union.
860
8ba83e91
TV
8612020-07-29 Tom de Vries <tdevries@suse.de>
862
863 PR tdep/26280
864 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
865
f75a0693
AB
8662020-07-28 Tom Tromey <tromey@adacore.com>
867
868 PR symtab/26270:
869 * symtab.h (find_pc_partial_function_sym): Declare.
870 * cli/cli-cmds.c (disassemble_command): Use
871 find_pc_partial_function_sym. Check asm_demangle.
872 * blockframe.c (cache_pc_function_sym): New global.
873 (cache_pc_function_name): Remove.
874 (clear_pc_function_cache): Update.
875 (find_pc_partial_function_sym): New function, from
876 find_pc_partial_function.
877 (find_pc_partial_function): Rewrite using
878 find_pc_partial_function_sym.
879
16f3242c
TT
8802020-07-28 Tom Tromey <tromey@adacore.com>
881
882 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
883 help. Add usage.
884
4888741a
TT
8852020-07-28 Tom Tromey <tromey@adacore.com>
886
887 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
888 <DW_OP_GNU_variable_value>: Cast to address type.
889
4d46f402
KR
8902020-07-28 Kamil Rytarowski <n54@gmx.com>
891
892 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
893 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
894 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
895 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
896 (nbsd_get_siginfo_type): New.
897 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
898 (_initialize_nbsd_tdep): New.
899
d70f978b
L
9002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
901
902 PR binutils/26301
903 * configure: Regenerated.
904
377170fa
L
9052020-07-28 H.J. Lu <hongjiu.lu@intel.com>
906
907 PR binutils/26301
908 * configure: Regenerated.
909
43d5901d
AB
9102020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * python/py-frame.c: Remove 'user-regs.h' include.
913 (frapy_read_register): Rewrite to make use of
914 gdbpy_parse_register_id.
915 * python/py-registers.c (gdbpy_parse_register_id): New function,
916 moved here from python/py-unwind.c. Updated the return type, and
917 also accepts register descriptor objects.
918 * python/py-unwind.c: Remove 'user-regs.h' include.
919 (pyuw_parse_register_id): Moved to python/py-registers.c.
920 (unwind_infopy_add_saved_register): Update to use
921 gdbpy_parse_register_id.
922 (pending_framepy_read_register): Likewise.
923 * python/python-internal.h (gdbpy_parse_register_id): Declare.
924
14fa8fb3
AB
9252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * python/py-registers.c: Add 'user-regs.h' include.
928 (register_descriptor_iter_find): New function.
929 (register_descriptor_iterator_object_methods): New static global
930 methods array.
931 (register_descriptor_iterator_object_type): Add pointer to methods
932 array.
933
ddce1758
JB
9342020-07-27 John Baldwin <jhb@FreeBSD.org>
935
936 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
937 for all architectures on FreeBSD 11.3 and later.
938
a4089f52
TT
9392020-07-27 Tom Tromey <tromey@adacore.com>
940
941 * gcore.h (load_corefile): Don't declare.
942
95420d30
TV
9432020-07-27 Tom de Vries <tdevries@suse.de>
944
945 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
946 * config.in: Regenerate.
947 * configure: Regenerate.
948
05a6b8c2
EZ
9492020-07-26 Eli Zaretskii <eliz@gnu.org>
950
951 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
952 ws2tcpip.h. When checking whether socklen_t type is defined, use
953 ws2tcpip.h if it is available and sys/socket.h isn't.
954 * configure: Regenerate.
955 * config.in: Regenerate.
956
e79eb02f
AB
9572020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 PR fortran/23051
960 PR fortran/26139
961 * valops.c (value_ind): Pass address to
962 readjust_indirect_value_type.
963 * value.c (readjust_indirect_value_type): Make parameter
964 non-const, and add extra address parameter. Resolve original type
965 before using it.
966 * value.h (readjust_indirect_value_type): Update function
967 signature and comment.
968
876518dd
TV
9692020-07-25 Tom de Vries <tdevries@suse.de>
970
971 PR symtab/26243
972 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
973 entries.
974
f6720b1c
AM
9752020-07-24 Aaron Merey <amerey@redhat.com>
976
977 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
978 * configure: Rebuild.
979
513487e1
KB
9802020-07-23 Kevin Buettner <kevinb@redhat.com>
981
982 PR corefiles/26294
983 * corelow.c (_initialize_corelow): Add period to help text
984 for "maintenance print core-file-backed-mappings".
985
e7bc9db8
PA
9862020-07-23 Pedro Alves <pedro@palves.net>
987
988 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
989 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
990 meanwhile.
991 * frame.c (frame_cache_generation, get_frame_cache_generation):
992 New.
993 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
994 (get_prev_frame_if_no_cycle): On exception, don't touch
995 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
996 * frame.h (get_frame_cache_generation): Declare.
997
90fcc466
TV
9982020-07-23 Tom de Vries <tdevries@suse.de>
999
1000 PR tui/26282
1001 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1002 New default constructor.
1003
78344df7
AB
10042020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1007 exclude non-statement entries.
1008
b089853a
KB
10092020-07-22 Kevin Buettner <kevinb@redhat.com>
1010
1011 * NEWS (New commands): Mention new command
1012 "maintenance print core-file-backed-mappings".
1013
09c2f5d4
KB
10142020-07-22 Kevin Buettner <kevinb@redhat.com>
1015
1016 * corelow.c (gdbcmd.h): Include.
1017 (core_target::info_proc_mappings): New method.
1018 (get_current_core_target): New function.
1019 (maintenance_print_core_file_backed_mappings): New function.
1020 (_initialize_corelow): Add core-file-backed-mappings to
1021 "maint print" commands.
1022
9c5ec5c2 10232020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1024
9c5ec5c2
KB
1025 * linux-tdep.c (dump_note_entry_p): New function.
1026 (linux_dump_mapping_p_ftype): New typedef.
1027 (linux_find_memory_regions_full): Add new parameter,
1028 should_dump_mapping_p.
1029 (linux_find_memory_regions): Adjust call to
1030 linux_find_memory_regions_full.
1031 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1032 call to linux_find_memory_regions_full.
1033
db082f59
KB
10342020-07-22 Kevin Buettner <kevinb@redhat.com>
1035
1036 * corelow.c (solist.h, unordered_map): Include.
1037 (class core_target): Add field m_core_file_mappings and
1038 method build_file_mappings.
1039 (core_target::core_target): Call build_file_mappings.
1040 (core_target::~core_target): Free memory associated with
1041 m_core_file_mappings.
1042 (core_target::build_file_mappings): New method.
1043 (core_target::xfer_partial): Use m_core_file_mappings
1044 for memory transfers.
1045 * linux-tdep.c (linux_read_core_file_mappings): New
1046 function.
1047 (linux_core_info_proc_mappings): Rewrite to use
1048 linux_read_core_file_mappings.
1049 (linux_init_abi): Register linux_read_core_file_mappings.
1050
7e183d27
KB
10512020-07-22 Kevin Buettner <kevinb@redhat.com>
1052
1053 * arch-utils.c (default_read_core_file_mappings): New function.
1054 * arch-utils.c (default_read_core_file_mappings): Declare.
1055 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1056 * gdbarch.h, gdbarch.c: Regenerate.
1057
2735d421
KB
10582020-07-22 Kevin Buettner <kevinb@redhat.com>
1059
1060 PR corefiles/25631
1061 * corelow.c (core_target:xfer_partial): Revise
1062 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1063 case after first checking the stratum beneath the core
1064 target.
1065 (has_all_memory): Return true.
1066 * target.c (raw_memory_xfer_partial): Revise comment
1067 regarding use of has_all_memory.
1068
e56cb451
KB
10692020-07-22 Kevin Buettner <kevinb@redhat.com>
1070
1071 * exec.h (section_table_xfer_memory): Revise declaration,
1072 replacing section name parameter with an optional callback
1073 predicate.
1074 * exec.c (section_table_xfer_memory): Likewise.
1075 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1076 of section_table_xfer_memory.
1077
32fa152e
TT
10782020-07-22 Tom Tromey <tromey@adacore.com>
1079
1080 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1081 lookup_symbol_search_name.
1082
a67a1c41
AB
10832020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1086 redundant local variable.
1087 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1088 reference, not pointer, update code accordingly.
1089
a7b4ff4f
SM
10902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1091 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1092
1093 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1094 * jit.c (jit_breakpoint_re_set_internal): Use the
1095 `skip_jit_symbol_lookup` field.
1096
2340e834
SM
10972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1098 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099
1100 * jit.c (jit_read_descriptor): Define the descriptor address once,
1101 use twice.
1102 (jit_breakpoint_deleted): Move the declaration of the loop variable
1103 `iter` into the loop header.
1104 (jit_breakpoint_re_set_internal): Move the declaration of the local
1105 variable `objf_data` to the first point of definition.
1106 (jit_event_handler): Move the declaration of local variables
1107 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1108 Rename `objf` to `jited`.
1109
c1072906
SM
11102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1113 Remove.
1114 * jit.c (get_jiter_objfile_data): Update.
1115
c8474dc3
TBA
11162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1117 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * jit.c (struct jit_program_space_data): Remove.
1120 (jit_program_space_key): Remove.
1121 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1122 stuff.
1123 (get_jit_program_space_data): Remove.
1124 (jit_breakpoint_deleted): Iterate on all of the program space's
1125 objfiles.
1126 (jit_inferior_init): Likewise.
1127 (jit_breakpoint_re_set_internal): Likewise. Also change return
1128 type to void.
1129 (jit_breakpoint_re_set): Pass current_program_space to
1130 jit_breakpoint_re_set_internal.
1131
77208eb7
SM
11322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1133
1134 * jit.h (struct jiter_objfile_data) <cached_code_address,
1135 jit_breakpoint>: Move to here from ...
1136 * jit.c (jit_program_space_data): ... here.
1137 (jiter_objfile_data::~jiter_objfile_data): Update.
1138 (jit_breakpoint_deleted): Update.
1139 (jit_breakpoint_re_set_internal): Update.
1140
8c1c720f
SM
11412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1144 checks.
1145 (jit_read_descriptor): Remove NULL check.
1146 (jit_event_handler): Add an assertion.
1147
0e74a041
SM
11482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * jit.h (struct jit_objfile_data): Split into...
1151 (struct jiter_objfile_data): ... this ...
1152 (struct jited_objfile_data): ... and this.
1153 * objfiles.h (struct objfile) <jit_data>: Remove.
1154 <jiter_data, jited_data>: New fields.
1155 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1156 (jiter_objfile_data::~jiter_objfile_data): ... this.
1157 (get_jit_objfile_data): Rename to ...
1158 (get_jiter_objfile_data): ... this.
1159 (add_objfile_entry): Update.
1160 (jit_read_descriptor): Use get_jiter_objfile_data.
1161 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1162 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1163 (jit_inferior_exit_hook): Use objfile's jited_data field.
1164
238b5c9f
SM
11652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * jit.h: Forward-declare `struct minimal_symbol`.
1168 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1169 constructor, destructor, and an objfile* field.
1170 * jit.c (jit_objfile_data): Remove.
1171 (struct jit_objfile_data): Migrate from here to jit.h.
1172 (jit_objfile_data::~jit_objfile_data): New destructor
1173 implementation with code moved from free_objfile_data.
1174 (free_objfile_data): Delete.
1175 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1176 (jit_find_objf_with_entry_addr): Ditto.
1177 (jit_inferior_exit_hook): Ditto.
1178 (_initialize_jit): Remove the call to
1179 register_objfile_data_with_cleanup.
1180 * objfiles.h (struct objfile) <jit_data>: New field.
1181
fe053b9e
TBA
11822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * jit.h: Forward-declare `struct objfile`.
1185 (jit_event_handler): Add a second parameter, the JITer objfile.
1186 * jit.c (jit_read_descriptor): Change the signature to take the
1187 JITer objfile as an argument instead of the jit_program_space_data.
1188 (jit_inferior_init): Update the call to jit_read_descriptor.
1189 (jit_event_handler): Use the new JITer objfile argument when calling
1190 jit_read_descriptor.
1191 * breakpoint.c (handle_jit_event): Update the call to
1192 jit_event_handler to pass the JITer objfile.
1193
4cec0c66
JB
11942020-07-21 John Baldwin <jhb@FreeBSD.org>
1195
1196 * gdbarch.c: Regenerate.
1197 * gdbarch.h: Regenerate.
1198 * gdbarch.sh (handle_segmentation_fault): Remove method.
1199 * infrun.c (handle_segmentation_fault): Remove.
1200 (print_signal_received_reason): Remove call to
1201 handle_segmentation_fault.
1202
0e42f66a
JB
12032020-07-21 John Baldwin <jhb@FreeBSD.org>
1204
1205 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1206 Rename to sparc64_linux_report_signal_info and add siggnal
1207 argument.
1208 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1209 instead of sparc64_linux_handle_segmentation_fault.
1210
77bdfeb2
JB
12112020-07-21 John Baldwin <jhb@FreeBSD.org>
1212
1213 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1214 i386_linux_report_signal_info instead of
1215 i386_linux_handle_segmentation_fault.
1216 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1217 to i386_linux_report_signal_info and add siggnal argument.
1218 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1219 of i386_linux_handle_segmentation_fault.
1220 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1221 to i386_linux_report_signal_info and add siggnal argument.
1222
ad97bfc5
JB
12232020-07-21 John Baldwin <jhb@FreeBSD.org>
1224
1225 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1226 hook if present.
1227
272bb05c
JB
12282020-07-21 John Baldwin <jhb@FreeBSD.org>
1229
1230 * gdbarch.c: Regenerate.
1231 * gdbarch.h: Regenerate.
1232 * gdbarch.sh (report_signal_info): New method.
1233 * infrun.c (print_signal_received_reason): Invoke gdbarch
1234 report_signal_info hook if present.
1235
baf8791e
AB
12362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * python/py-registers.c : Add 'unordered_map' include.
1239 (gdbpy_new_reggroup): Renamed to...
1240 (gdbpy_get_reggroup): ...this. Update to only create register
1241 group descriptors when needed.
1242 (gdbpy_reggroup_iter_next): Update.
1243
f7306dac
AB
12442020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * python/py-registers.c (gdbpy_register_object_data): New static
1247 global.
1248 (gdbpy_register_object_data_init): New function.
1249 (gdbpy_new_register_descriptor): Renamed to...
1250 (gdbpy_get_register_descriptor): ...this, and update to reuse
1251 existing register descriptors where possible.
1252 (gdbpy_register_descriptor_iter_next): Update.
1253 (gdbpy_initialize_registers): Register new gdbarch data.
1254
05c309a8
SM
12552020-07-21 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * linux-nat.c (stopped_pids): Make static.
1258
d1fd641e
SM
12592020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1260
1261 PR ada/26235
1262 * gdbtypes.c (ada_discrete_type_low_bound,
1263 ada_discrete_type_high_bound): Handle undefined bounds.
1264
1de14d77
KR
12652020-07-21 Kamil Rytarowski <n54@gmx.com>
1266
1267 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1268 declaration.
1269 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1270 function.
1271
ed810cc7
JB
12722020-07-20 John Baldwin <jhb@FreeBSD.org>
1273
1274 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1275 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1276 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1277 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1278 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1279 method.
1280
ae5369e7
LC
12812020-07-20 Ludovic Courtès <ludo@gnu.org>
1282
1283 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1284 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1285 which are deprecated in Guile 3.0.
1286 * configure.ac (try_guile_versions): Add "guile-3.0".
1287 * configure (try_guile_versions): Regenerate.
1288 * NEWS: Update entry.
1289
68cf161c
LC
12902020-07-20 Ludovic Courtès <ludo@gnu.org>
1291 Doug Evans <dje@google.com>
1292
1293 PR gdb/21104
1294 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1295 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1296 USING_GUILE_BEFORE_2_2.
1297 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1298 Change type to 'scm_t_port_type *'.
1299 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1300 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1301 parameter and honor it. Update callers.
1302 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1303 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1304 functions.
1305 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1306 USING_GUILE_BEFORE_2_2.
1307 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1308 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1309 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1310 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1311 and 'SCM_PORT_TYPE'.
1312 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1313 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1314 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1315 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1316 [!USING_GUILE_BEFORE_2_2]: New functions.
1317 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1318 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1319 'gdbscm_memory_port_read'.
1320 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1321 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1322 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1323 function.
1324 (ioscm_init_memory_port): Remove.
1325 (ioscm_init_memory_port_stream): New function
1326 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1327 function.
1328 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1329 Return scm_from_uint (0).
1330 (gdbscm_set_memory_port_read_buffer_size_x)
1331 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1332 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1333 Return scm_from_uint (0).
1334 (gdbscm_set_memory_port_write_buffer_size_x)
1335 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1336 * configure.ac (try_guile_versions): Add "guile-2.2".
1337 * configure: Regenerate.
1338 * NEWS: Add entry.
1339
aee91db3
TT
13402020-07-18 Tom Tromey <tom@tromey.com>
1341
1342 * linux-nat.c (linux_multi_process): Remove.
1343 (linux_nat_target::supports_multi_process): Return true.
1344
0e267416
AB
13452020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1348 (riscv_lookup_target_description): Return pointer out of
1349 unique_ptr.
1350 * target-descriptions.c (allocate_target_description): Add
1351 comment.
1352 (target_desc_deleter::operator()): Likewise.
1353 * target-descriptions.h (struct target_desc_deleter): Moved to
1354 gdbsupport/tdesc.h.
1355 (target_desc_up): Likewise.
1356
f80c8ec4
TT
13572020-07-17 Tom Tromey <tromey@adacore.com>
1358
1359 * linux-nat.c (linux_nat_target::supports_non_stop)
1360 (linux_nat_target::always_non_stop_p): Use "true".
1361 (linux_nat_target::supports_disable_randomization): Use "true" and
1362 "false".
1363
d0ce17d8
CT
13642020-07-16 Caroline Tice <cmtice@google.com>
1365
1366 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1367 (RNGLIST_HEADER_SIZE64): New constant definition.
1368 (struct dwop_section_names): Add rnglists_dwo.
1369 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1370 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1371 (struct dwo_sections): Add rnglists field.
1372 (read_attribut_reprocess): Add tag parameter.
1373 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1374 (cu_debug_rnglists_section): New function (decl & definition).
1375 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1376 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1377 die whose range is being checked; get rnglist section from
1378 cu_debug_rnglists_section, to get from either objfile or dwo file as
1379 appropriate. Add cases for DW_RLE_base_addressx,
1380 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1381 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1382 test inside if-condition and updating complaint message.
1383 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1384 dwarf2_rnglists_process.
1385 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1386 dwarf2_ranges_process.
1387 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1388 need_ranges_base and update comment appropriately. Also pass die tag
1389 to dwarf2_ranges_read.
1390 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1391 need_ranges_base and update comment appropriately. Also pass die tag
1392 to dwarf2_ranges_process.
1393 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1394 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1395 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1396 need_ranges_base and update comment appropriately. Also pass die tag
1397 to read_attribute_reprocess and dwarf2_ranges_read.
1398 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1399 and update function comment appropriately.
1400 (read_loclist_index): Call read_loclists_rnglists_header instead of
1401 read_loclist_header.
1402 (read_rnglist_index): New function.
1403 (read_attribute_reprocess): Add tag parameter. Add code for
1404 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1405 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1406
3dcc261c
AB
14072020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1410 being resolved.
1411
ccb9eba6
AB
14122020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * arch-utils.c (show_architecture): Update formatting of messages.
1415
cf88be68
SM
14162020-07-12 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (struct type) <bounds>: Handle array and string
1419 types.
1420 * ada-lang.c (assign_aggregate): Use type::bounds on
1421 array/string type.
1422 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1423 * c-varobj.c (c_number_of_children): Likewise.
1424 (c_describe_child): Likewise.
1425 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1426 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1427 (f_type_print_base): Likewise.
1428 * f-valprint.c (f77_array_offset_tbl): Likewise.
1429 (f77_get_upperbound): Likewise.
1430 (f77_print_array_1): Likewise.
1431 * guile/scm-type.c (gdbscm_type_range): Likewise.
1432 * m2-typeprint.c (m2_array): Likewise.
1433 (m2_is_long_set_of_type): Likewise.
1434 * m2-valprint.c (get_long_set_bounds): Likewise.
1435 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1436 * python/py-type.c (typy_range): Likewise.
1437 * rust-lang.c (rust_internal_print_type): Likewise.
1438 * type-stack.c (type_stack::follow_types): Likewise.
1439 * valarith.c (value_subscripted_rvalue): Likewise.
1440 * valops.c (value_cast): Likewise.
1441
509971ae
SM
14422020-07-12 Simon Marchi <simon.marchi@efficios.com>
1443
1444 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1445 callers to use the equivalent accessor methods.
1446
107406b7
SM
14472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1450 (struct type) <bit_stride>: New method.
1451 (TYPE_BIT_STRIDE): Remove.
1452 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1453
bb789949
SM
14542020-07-12 Simon Marchi <simon.marchi@efficios.com>
1455
1456 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1457 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1458 callers to use the equivalent accessor methods instead.
1459
39498edb
SM
14602020-07-12 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1463 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1464 callers to use the equivalent accessor methods instead.
1465
3b606f38
SM
14662020-07-12 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1469 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1470 to use dynamic_prop::kind.
1471
064d9cb9
SM
14722020-07-12 Simon Marchi <simon.marchi@efficios.com>
1473
1474 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1475 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1476 to get the bound property's kind and check against
1477 PROP_UNDEFINED.
1478
5537ddd0
SM
14792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1482 all callers to use type::range_bounds followed by
1483 dynamic_prop::{low,high}.
1484
8c2e4e06
SM
14852020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1486
1487 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1488 const_val, set_const_val, baton, set_locexpr, set_loclist,
1489 set_addr_offset, variant_parts, set_variant_parts,
1490 original_type, set_original_type>: New methods.
1491 <kind>: Rename to...
1492 <m_kind>: ... this. Update all users to use the new methods
1493 instead.
1494 <data>: Rename to...
1495 <m_data>: ... this. Update all users to use the new methods
1496 instead.
1497
7c6f2712
SM
14982020-07-12 Simon Marchi <simon.marchi@efficios.com>
1499
1500 * gdbtypes.c (get_discrete_bounds): Return failure if
1501 the range type's bounds are not both defined and constant
1502 values.
1503 (get_array_bounds): Update comment. Remove undefined bound check.
1504
599088e3
SM
15052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1508 the type::bounds method directly.
1509
c4dfcb36
SM
15102020-07-12 Simon Marchi <simon.marchi@efficios.com>
1511
1512 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1513 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1514 are used to set the range type's bounds to use set_bounds.
1515
0a278aa7
PW
15162020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1517
1518 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1519
cce20f10
PA
15202020-07-10 Pedro Alves <pedro@palves.net>
1521
1522 * gdbthread.h (inferior_ref): Define.
1523 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1524 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1525 * thread.c
1526 (scoped_restore_current_thread::restore):
1527 Adjust to gdb::ref_ptr.
1528 (scoped_restore_current_thread::~scoped_restore_current_thread):
1529 Remove manual decref handling.
1530 (scoped_restore_current_thread::scoped_restore_current_thread):
1531 Adjust to use
1532 inferior_ref::new_reference/thread_info_ref::new_reference.
1533 Incref the thread before calling get_frame_id instead of after.
1534 Let TARGET_CLOSE_ERROR propagate.
1535
6d7aa592
PA
15362020-07-10 Pedro Alves <pedro@palves.net>
1537
1538 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1539 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1540 NOT_AVAILABLE_ERROR.
1541 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1542 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1543
b3e3a4c1
SM
15442020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1545 Pedro Alves <pedro@palves.net>
1546
1547 PR gdb/26199
1548 * infrun.c (threads_are_resumed_pending_p): Delete.
1549 (do_target_wait): Remove threads_are_executing and
1550 threads_are_resumed_pending_p checks from the inferior_matches
1551 lambda. Update comments.
1552
d6cc5d98
PA
15532020-07-10 Pedro Alves <pedro@palves.net>
1554
1555 PR gdb/26199
1556 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1557 executing threads.
1558
7d3badc6
PA
15592020-07-10 Pedro Alves <pedro@palves.net>
1560
1561 PR gdb/26199
1562 * infrun.c (handle_no_resumed): Handle multiple targets.
1563
42bd97a6
PA
15642020-07-10 Pedro Alves <pedro@palves.net>
1565
1566 PR gdb/26199
1567 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1568 target_is_async_p.
1569
43667cc6
PA
15702020-07-10 Pedro Alves <pedro@palves.net>
1571
1572 PR gdb/26199
1573 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1574 threads, not all threads.
1575
96118d11
PA
15762020-07-10 Pedro Alves <pedro@palves.net>
1577
1578 PR gdb/26199
1579 * remote.c (remote_target::open_1): Pass remote target pointer as
1580 data to create_async_event_handler.
1581 (remote_async_inferior_event_handler): Mark async event handler
1582 before returning if the remote target still has either pending
1583 events or unacknowledged notifications.
1584
54904d81
JB
15852020-07-10 John Baldwin <jhb@FreeBSD.org>
1586
1587 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1588 declaration.
1589 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1590 function.
1591
f37e5866
JB
15922020-07-09 John Baldwin <jhb@FreeBSD.org>
1593
1594 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1595 inferior_ptid.
1596
fc238d4a
JB
15972020-07-09 John Baldwin <jhb@FreeBSD.org>
1598
1599 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1600 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1601 AT_FREEBSD_PS_STRINGS.
1602
6e2469ff
HD
16032020-07-08 Hannes Domani <ssbssa@yahoo.de>
1604
1605 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1606 of debugfile path on Windows.
1607
d1076c41
JB
16082020-07-08 John Baldwin <jhb@FreeBSD.org>
1609
1610 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1611 argument to 'data'.
1612
15f3b077
TT
16132020-07-08 Tom Tromey <tromey@adacore.com>
1614
1615 * ada-lang.c (ada_exception_message_1): Use read_memory.
1616
9fc501fd
AB
16172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 PR python/22748
1620 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1621 special handling for inline frames.
1622 * findvar.c (value_of_register_lazy): Skip inline frames when
1623 creating lazy register values.
1624 * frame.c (frame_id_computed_p): Delete definition.
1625 * frame.h (frame_id_computed_p): Delete declaration.
1626
64cb3757
AB
16272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * NEWS: Mention additions to Python API.
1630 * python/py-arch.c (archpy_register_groups): New function.
1631 (arch_object_methods): Add 'register_groups' method.
1632 * python/py-registers.c (reggroup_iterator_object): New struct.
1633 (reggroup_object): New struct.
1634 (gdbpy_new_reggroup): New function.
1635 (gdbpy_reggroup_to_string): New function.
1636 (gdbpy_reggroup_name): New function.
1637 (gdbpy_reggroup_iter): New function.
1638 (gdbpy_reggroup_iter_next): New function.
1639 (gdbpy_new_reggroup_iterator): New function
1640 (gdbpy_initialize_registers): Register new types.
1641 (reggroup_iterator_object_type): Define new Python type.
1642 (gdbpy_reggroup_getset): New static global.
1643 (reggroup_object_type): Define new Python type.
1644 * python/python-internal.h
1645
0f767f94
AB
16462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1649 * python/py-arch.c (archpy_registers): New function.
1650 (arch_object_methods): Add 'registers' method.
1651 * python/py-registers.c: New file.
1652 * python/python-internal.h
1653 (gdbpy_new_register_descriptor_iterator): Declare.
1654 (gdbpy_initialize_registers): Declare.
1655 * python/python.c (do_start_initialization): Call
1656 gdbpy_initialize_registers.
1657 * NEWS: Mention additions to the Python API.
1658
87dbc774
AB
16592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * NEWS: Mention new Python API method.
1662 * python/py-unwind.c (pending_framepy_architecture): New function.
1663 (pending_frame_object_methods): Add architecture method.
1664
3bc98c0c
AB
16652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * gdbarch.c: Regenerate.
1668 * gdbarch.h: Regenerate.
1669 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1670 (gdbarch_data): Use internal_error for the case where
1671 deprecated_set_gdbarch_data was originally needed.
1672 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1673 and use passed in obstack.
1674 (libunwind_frame_set_descr): Should no longer get back NULL from
1675 gdbarch_data.
1676 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1677 type.
1678 * user-regs.c (user_regs_init): Update parameters, and use passed
1679 in obstack.
1680 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1681 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1682
d8cc8af6
TV
16832020-07-06 Tom de Vries <tdevries@suse.de>
1684
1685 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1686 End-Of-Sequence in lte_is_less_than.
1687 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1688 "gdb: Don't reorder line table entries too much when sorting".
1689
947f7597
TV
16902020-07-06 Tom de Vries <tdevries@suse.de>
1691
1692 PR tui/26205
1693 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1694
1e7c1b22
TV
16952020-07-05 Tom de Vries <tdevries@suse.de>
1696
1697 PR build/26187
1698 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1699 std::uncaught_exceptions instead of deprecated
1700 std::uncaught_exception.
1701
a36158ec
SM
17022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1703
1704 * macroexp.h (macro_stringify): Return
1705 gdb::unique_xmalloc_ptr<char>.
1706 * macroexp.c (macro_stringify): Likewise.
1707 * macrotab.c (fixup_definition): Update.
1708
14d960c8
SM
17092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1712 (lex_one_token): Update.
1713 * macroexp.c (struct macro_buffer) <release>: Return
1714 gdb::unique_xmalloc_ptr<char>.
1715 (macro_stringify): Update.
1716 (macro_expand): Update.
1717 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1718 * macroexp.h (macro_expand_next): Likewise.
1719
211d5b1c
SM
17202020-07-02 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * macroexp.h (macro_lookup_ftype): Remove.
1723 (macro_expand, macro_expand_once, macro_expand_next): Remove
1724 lookup function parameters, add scope parameter.
1725 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1726 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1727 * macroscope.h (standard_macro_lookup): Change parameter type
1728 to macro_scope.
1729 * macroscope.c (standard_macro_lookup): Likewise.
1730 * c-exp.y (lex_one_token): Update.
1731 * macrocmd.c (macro_expand_command): Likewise.
1732 (macro_expand_once_command): Likewise.
1733
b1a35af2
SM
17342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1735
1736 * inf-loop.c (inferior_event_handler): Remove client_data param.
1737 * inf-loop.h (inferior_event_handler): Likewise.
1738 * infcmd.c (step_1): Adjust.
1739 * infrun.c (proceed): Adjust.
1740 (fetch_inferior_event): Remove client_data param.
1741 (infrun_async_inferior_event_handler): Adjust.
1742 * infrun.h (fetch_inferior_event): Remove `void *` param.
1743 * linux-nat.c (handle_target_event): Adjust.
1744 * record-btrace.c (record_btrace_handle_async_inferior_event):
1745 Adjust.
1746 * record-full.c (record_full_async_inferior_event_handler):
1747 Adjust.
1748 * remote.c (remote_async_inferior_event_handler): Adjust.
1749
1cdf9e33
TT
17502020-07-01 Tom Tromey <tom@tromey.com>
1751
1752 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1753 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1754
32c1e210
TT
17552020-07-01 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1758 tui_gen_win_info.
1759 (tui_win_info::make_window): Merge with
1760 tui_gen_win_info::make_window.
1761 (tui_win_info::make_visible): Move from tui_gen_win_info.
1762 * tui/tui-win.c (tui_win_info::max_width): Move from
1763 tui_gen_win_info.
1764 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1765 type.
1766 <window_factory>: Likewise.
1767 * tui/tui-layout.c (tui_win_info::resize): Move from
1768 tui_gen_win_info.
1769 (make_standard_window): Change return type.
1770 (get_locator_window, tui_get_window_by_name): Likewise.
1771 (tui_layout_window::apply): Remove a cast.
1772 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1773 (struct tui_win_info): Merge with tui_gen_win_info.
1774 (struct tui_gen_win_info): Remove.
1775
a30cb6da
TT
17762020-07-01 Tom Tromey <tom@tromey.com>
1777
1778 * tui/tui-stack.h (struct tui_locator_window): Derive from
1779 tui_win_info.
1780 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1781 <can_box>: New method.
1782
1eb2161f
TT
17832020-07-01 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1786
7134f2eb
TT
17872020-07-01 Tom Tromey <tom@tromey.com>
1788
1789 * tui/tui-regs.c (tui_data_window::display_registers_from)
1790 (tui_data_window::display_registers_from)
1791 (tui_data_window::first_data_item_displayed)
1792 (tui_data_window::delete_data_content_windows): Update.
1793 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1794 Remove.
1795 (tui_data_window::check_register_values): Update.
1796 (tui_data_item_window::rerender): Add parameters. Update.
1797 (tui_data_item_window::refresh_window): Remove.
1798 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1799 virtual.
1800 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1801 tui_gen_win_info.
1802 <refresh_window, max_height, min_height>: Remove.
1803 <rerender>: Add parameters.
1804 <x, y, visible>: New members.
1805 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1806 <m_item_width>: New member.
1807
22b7b041
TT
18082020-07-01 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-regs.c (tui_data_window::show_register_group)
1811 (tui_data_window::check_register_values): Update.
1812 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1813 from item_no.
1814
c9753adb
TT
18152020-07-01 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1818 useless "if".
1819
9ab26b4a
TT
18202020-07-01 Tom Tromey <tom@tromey.com>
1821
1822 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1823 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1824
e555083f
TT
18252020-07-01 Tom Tromey <tom@tromey.com>
1826
1827 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1828 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1829 (struct tui_line_or_address): Move from tui-data.h.
1830 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1831 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1832 (tui_cmd_window, tui_source_window_base, tui_source_window)
1833 (tui_disasm_window): Don't declare.
1834 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1835 to tui-winsource.h.
1836 (SINGLE_KEY): Move to tui-stack.c.
1837
7a02bab7
TT
18382020-07-01 Tom Tromey <tom@tromey.com>
1839
1840 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1841 std::string.
1842 * tui/tui-regs.c (class tab_expansion_file): New.
1843 (tab_expansion_file::write): New method.
1844 (tui_register_format): Change return type. Use
1845 tab_expansion_file.
1846 (tui_get_register, tui_data_window::display_registers_from)
1847 (tui_data_item_window::rerender): Update.
1848 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1849 * tui/tui-io.c (tui_expand_tabs): Remove.
1850
ea68593b
TT
18512020-07-01 Tom Tromey <tom@tromey.com>
1852
1853 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1854
a8caed5d
FS
18552020-07-01 Fangrui Song <maskray@google.com>
1856
1857 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1858
9cdf9820
AKS
18592020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1860
1861 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1862 forms for DW_AT_associated and DW_AT_allocated attributes,
1863 which is already checked in function attr_to_dynamic_prop.
1864
a1520ad8
TT
18652020-06-30 Tom Tromey <tromey@adacore.com>
1866
1867 * dwarf2/read.c (quirk_rust_enum): Correctly call
1868 alloc_rust_variant for default-less enum.
1869
5ac58899
TT
18702020-06-30 Tom Tromey <tromey@adacore.com>
1871
1872 PR build/26183:
1873 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1874 gdb::to_string.
1875
19b187a9
SM
18762020-06-29 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1879 * gdbarch.h: Re-generate.
1880
cd4c4c07
TT
18812020-06-28 Tom Tromey <tom@tromey.com>
1882
1883 * command.h (cmd_types): Remove.
1884 (cmd_type): Don't declare.
1885 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1886 typedef.
1887 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1888 * cli/cli-decode.c (cmd_type): Remove.
1889
05779d57
PA
18902020-06-27 Pedro Alves <palves@redhat.com>
1891
1892 * fork-child.c (prefork_hook): Adjust.
1893 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1894 Delete.
1895 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1896 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1897 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1898 Remove declarations.
1899 (struct inferior) <set_tty, tty>: New methods.
1900 (struct inferior) <terminal>: Rename to ...
1901 (struct inferior) <m_terminal>: ... this and make private.
1902 * main.c (captured_main_1): Adjust.
1903 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1904 (mi_cmd_inferior_tty_show): Adjust.
1905 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1906 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1907
1776e3e5
NA
19082020-06-26 Nick Alcock <nick.alcock@oracle.com>
1909
1910 * configure.ac: Add --enable-libctf: handle --disable-static
1911 properly.
1912 * acinclude.m4: sinclude ../config/enable.m4.
1913 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1914 (LIBCTF): Substitute in.
1915 (CTF_DEPS): New, likewise.
1916 (CLIBS): libctf needs symbols from libbfd: move earlier.
1917 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1918 flags.
1919 * ctfread.c: Surround in ENABLE_LIBCTF.
1920 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1921 * configure: Regenerate.
1922 * config.in: Likewise.
1923
58373b80
SM
19242020-06-25 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1927
277474ee
SM
19282020-06-25 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * inferior.h (struct inferior) <terminal>: Change type to
1931 gdb::unique_xmalloc_ptr<char>.
1932 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1933 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1934 field, adjust to unique pointer.
1935 (get_inferior_io_terminal): Adjust to unique pointer.
1936
6d74da72
AB
19372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1940 registers, not just the known core set of registers.
1941
2e52d038
AB
19422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1945 fflags, frm, and fcsr registers.
1946 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1947 restore groups.
1948 (riscv_tdesc_unknown_reg): New function.
1949 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1950 tdesc_use_registers.
1951 * riscv-tdep.h (struct gdbarch_tdep): Add
1952 unknown_csrs_first_regnum, unknown_csrs_count,
1953 duplicate_fflags_regnum, duplicate_frm_regnum, and
1954 duplicate_fcsr_regnum fields.
1955
be64fd07
AB
19562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1959 callback, use the callback (when not null) to help number unknown
1960 registers.
1961 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1962 (tdesc_use_registers): Add extra parameter to declaration.
1963
3b9fce96
AB
19642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1967 in the file.
1968 (class riscv_pending_register_alias): Likewise.
1969 (riscv_register_feature::register_info): Change 'required_p' field
1970 to 'required', and change its type. Add 'check' member function.
1971 (riscv_register_feature::register_info::check): Define new member
1972 function.
1973 (riscv_xreg_feature): Change initialisation of 'required' field.
1974 (riscv_freg_feature): Likewise.
1975 (riscv_virtual_feature): Likewise.
1976 (riscv_csr_feature): Likewise.
1977 (riscv_check_tdesc_feature): Take extra parameter, the csr
1978 tdesc_feature, rewrite the function to use the new
1979 riscv_register_feature::register_info::check function.
1980 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1981
865bad26
AB
19822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * features/Makefile: Remove all references to the deleted files
1985 below.
1986 * features/riscv/32bit-csr.c: Deleted.
1987 * features/riscv/32bit-csr.xml: Deleted.
1988 * features/riscv/64bit-csr.c: Deleted.
1989 * features/riscv/64bit-csr.xml: Deleted.
1990 * features/riscv/rebuild-csr-xml.sh: Deleted.
1991
ed69cbc8
AB
19922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1995 whitespace error for declaration of names member variable.
1996 (struct riscv_register_feature): Add new prefer_first_name member
1997 variable, and fix whitespace error in declaration of registers.
1998 (riscv_xreg_feature): Initialize prefer_first_name field.
1999 (riscv_freg_feature): Likewise.
2000 (riscv_virtual_feature): Likewise.
2001 (riscv_csr_feature): Likewise.
2002 (riscv_register_name): Expand on comments. Remove register name
2003 modifications for CSR and virtual registers.
2004
4445e8f5
AB
20052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2006
2007 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2008 errors.
2009
767a879e
AB
20102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2013 riscv-opc.h.
2014 (class riscv_pending_register_alias): New class.
2015 (riscv_check_tdesc_feature): Take vector of pending aliases and
2016 populate it as appropriate.
2017 (riscv_setup_register_aliases): Delete.
2018 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2019 to riscv_check_tdesc_feature in all cases. Use the vector to
2020 create the register aliases.
2021
bb6e55f3
RO
20222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2023
2024 * sol2-tdep.c (sol2_static_transform_name): Remove.
2025 (sol2_init_abi): Don't register it.
2026 * gdbarch.sh (static_transform_name): Remove.
2027 * gdbarch.c, gdbarch.h: Regenerate.
2028
2029 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2030 gdbarch_static_transform_name.
2031 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2032 * stabsread.c (define_symbol) <'X'>: Remove.
2033 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2034 handling.
2035 <'V'>: Likewise.
2036 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2037 <'S'>: Remove call to gdbarch_static_transform_name.
2038
c6d36836
RO
20392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2040
2041 * procfs.c (procfs_pre_trace): New function.
2042 (procfs_target::create_inferior): Pass it to fork_inferior.
2043
a7e6196b
RO
20442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2045
2046 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2047 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2048 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2049 sol2-tdep.o, sparc-sol2-tdep.o.
2050 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2051 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2052 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2053 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2054
d412e696
RO
20552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2056
2057 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2058 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2059 Call sol2_init_abi.
2060 Remove calls to set_gdbarch_skip_solib_resolver,
2061 set_gdbarch_core_pid_to_str.
2062 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2063 (i386_sol2_static_transform_name): Remove.
2064 (i386_sol2_init_abi): Call sol2_init_abi.
2065 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2066 set_gdbarch_static_transform_name,
2067 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2068 Use sol2_sigtramp_p.
2069 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2070 (sol2_sigtramp_p): New function.
2071 (sol2_static_transform_name): New function.
2072 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2073 (sol2_init_abi): New function.
2074 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2075 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2076 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2077 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2078 (sparc_sol2_static_transform_name): Remove.
2079 (sparc32_sol2_init_abi): Call sol2_init_abi.
2080 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2081 set_gdbarch_static_transform_name,
2082 set_gdbarch_skip_solib_resolver,
2083 set_gdbarch_core_pid_to_str.
2084 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2085 (sparc_sol2_static_transform_name): Remove
2086 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2087 call sol2_sigtramp_p.
2088 (sparc64_sol2_init_abi): Call sol2_init_abi.
2089 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2090 set_gdbarch_static_transform_name,
2091 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2092
a8654e7d
PW
20932020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2094
2095 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2096 * exec.c (validate_exec_file): If from_tty, set both
2097 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2098 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2099 and from_tty, unconditionally ask a confirmation.
2100
caa7fd04
AB
21012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * target-descriptions.c (tdesc_architecture_name): Protect against
2104 NULL pointer dereference.
2105 (maint_print_xml_tdesc_cmd): New function.
2106 (_initialize_target_descriptions): Register new 'maint print
2107 xml-tdesc' command and give it the filename completer.
2108 * NEWS: Mention new 'maint print xml-tdesc' command.
2109
fbf42f4e
AB
21102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * target-descriptions.c (class tdesc_compatible_info): New class.
2113 (struct target_desc): Change type of compatible vector.
2114 (tdesc_compatible_p): Update for change in type of
2115 target_desc::compatible.
2116 (tdesc_compatible_info_list): New function.
2117 (tdesc_compatible_info_arch_name): New function.
2118 (tdesc_add_compatible): Update for change in type of
2119 target_desc::compatible.
2120 (print_c_tdesc::visit_pre): Likewise.
2121
20821f4e
AB
21222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2125 whitespace to underscore.
2126 (maint_print_c_tdesc_cmd): Use fake filename for target
2127 descriptions that came from the target.
2128 (_initialize_target_descriptions): Add filename command completion
2129 for 'maint print c-tdesc'.
2130
1fb5ee62
SM
21312020-06-23 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2134 lines.
2135
fc3ecb3e
SM
21362020-06-23 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2139 lines.
2140 (dwarf2_find_location_expression): Likewise.
2141 (call_site_parameter_matches): Likewise.
2142 (dwarf2_compile_expr_to_ax): Likewise.
2143 (disassemble_dwarf_expression): Likewise.
2144 (loclist_describe_location): Likewise.
2145
236ef034
PA
21462020-06-23 Pedro Alves <palves@redhat.com>
2147
2148 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2149 progspace-and-thread.h. Include scoped-mock-context.h instead.
2150 (register_to_value_test): Use scoped_mock_context.
2151 * regcache.c: Include "scoped-mock-context.h".
2152 (cooked_read_test): Don't error out if a target is already pushed.
2153 Use scoped_mock_context. Adjust.
2154 * scoped-mock-context.h: New file.
2155
39e7ecca
AB
21562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2159 initializer.
2160 (ada_language::is_string_type_p): New member function.
2161 * c-lang.c (c_language_data): Delete la_is_string_type_p
2162 initializer.
2163 (cplus_language_data): Likewise.
2164 (asm_language_data): Likewise.
2165 (minimal_language_data): Likewise.
2166 * d-lang.c (d_language_data): Likewise.
2167 * f-lang.c (f_is_string_type_p): Delete function, implementation
2168 moved to f_language::is_string_type_p.
2169 (f_language_data): Delete la_is_string_type_p initializer.
2170 (f_language::is_string_type_p): New member function,
2171 implementation from f_is_string_type_p.
2172 * go-lang.c (go_is_string_type_p): Delete function, implementation
2173 moved to go_language::is_string_type_p.
2174 (go_language_data): Delete la_is_string_type_p initializer.
2175 (go_language::is_string_type_p): New member function,
2176 implementation from go_is_string_type_p.
2177 * language.c (language_defn::is_string_type_p): Define new member
2178 function.
2179 (default_is_string_type_p): Make static, add comment copied from
2180 header file.
2181 (unknown_language_data): Delete la_is_string_type_p initializer.
2182 (unknown_language::is_string_type_p): New member function.
2183 (auto_language_data): Delete la_is_string_type_p initializer.
2184 (auto_language::is_string_type_p): New member function.
2185 * language.h (language_data): Delete la_is_string_type_p field.
2186 (language_defn::is_string_type_p): Declare new function.
2187 (default_is_string_type_p): Delete desclaration, move comment to
2188 definition.
2189 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2190 moved to m2_language::is_string_type_p.
2191 (m2_language_data): Delete la_is_string_type_p initializer.
2192 (m2_language::is_string_type_p): New member function,
2193 implementation from m2_is_string_type_p.
2194 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2195 initializer.
2196 * opencl-lang.c (opencl_language_data): Likewise.
2197 * p-lang.c (pascal_is_string_type_p): Delete function,
2198 implementation moved to pascal_language::is_string_type_p.
2199 (pascal_language_data): Delete la_is_string_type_p initializer.
2200 (pascal_language::is_string_type_p): New member function,
2201 implementation from pascal_is_string_type_p.
2202 * rust-lang.c (rust_is_string_type_p): Delete function,
2203 implementation moved to rust_language::is_string_type_p.
2204 (rust_language_data): Delete la_is_string_type_p initializer.
2205 (rust_language::is_string_type_p): New member function,
2206 implementation from rust_is_string_type_p.
2207 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2208 is_string_type_p.
2209
4ffc13fb
AB
22102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * ada-lang.c (ada_language_data): Delete la_print_typedef
2213 initializer.
2214 (ada_language::print_typedef): New member function.
2215 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2216 (cplus_language_data): Likewise.
2217 (asm_language_data): Likewise.
2218 (minimal_language_data): Likewise.
2219 * d-lang.c (d_language_data): Likewise.
2220 * f-lang.c (f_language_data): Likewise.
2221 (f_language::print_typedef): New member function.
2222 * go-lang.c (go_language_data): Delete la_print_typedef
2223 initializer.
2224 * language.c (language_defn::print_typedef): Define member
2225 function.
2226 (unknown_language_data): Delete la_print_typedef initializer.
2227 (unknown_language::print_typedef): New member function.
2228 (auto_language_data): Delete la_print_typedef initializer.
2229 (auto_language::print_typedef): New member function.
2230 * language.h (language_data): Delete la_print_typedef field.
2231 (language_defn::print_typedef): Declare new member function.
2232 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2233 (default_print_typedef): Delete declaration.
2234 * m2-lang.c (m2_language_data): Delete la_print_typedef
2235 initializer.
2236 (m2_language::print_typedef): New member function.
2237 * objc-lang.c (objc_language_data): Delete la_print_typedef
2238 initializer.
2239 * opencl-lang.c (opencl_language_data): Likewise.
2240 * p-lang.c (pascal_language_data): Likewise.
2241 (pascal_language::print_typedef): New member function.
2242 * rust-lang.c (rust_print_typedef): Delete function,
2243 implementation moved to rust_language::print_typedef.
2244 (rust_language): Delete la_print_typedef initializer.
2245 (rust_language::print_typedef): New member function,
2246 implementation from rust_print_typedef.
2247 * typeprint.c (default_print_typedef): Delete.
2248
d711ee67
AB
22492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2252 (ada_language::printstr): New member function.
2253 * c-lang.c (c_language_data): Delete la_printstr initializer.
2254 (cplus_language_data): Likewise.
2255 (asm_language_data): Likewise.
2256 (minimal_language_data): Likewise.
2257 * d-lang.c (d_language_data): Likewise.
2258 * f-lang.c (f_printstr): Rename to f_language::printstr.
2259 (f_language_data): Delete la_printstr initializer.
2260 (f_language::printstr): New member function, implementation from
2261 f_printstr.
2262 * go-lang.c (go_language_data): Delete la_printstr initializer.
2263 * language.c (language_defn::printstr): Define new member
2264 function.
2265 (unk_lang_printstr): Delete.
2266 (unknown_language_data): Delete la_printstr initializer.
2267 (unknown_language::printstr): New member function.
2268 (auto_language_data): Delete la_printstr initializer.
2269 (auto_language::printstr): New member function.
2270 * language.h (language_data): Delete la_printstr field.
2271 (language_defn::printstr): Declare new member function.
2272 (LA_PRINT_STRING): Update call to printstr.
2273 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2274 (m2_language_data): Delete la_printstr initializer.
2275 (m2_language::printstr): New member function, implementation from
2276 m2_printstr.
2277 * objc-lang.c (objc_language_data): Delete la_printstr
2278 initializer.
2279 * opencl-lang.c (opencl_language_data): Likewise.
2280 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2281 (pascal_language_data): Delete la_printstr initializer.
2282 (pascal_language::printstr): New member function, implementation
2283 from pascal_printstr.
2284 * p-lang.h (pascal_printstr): Delete declaration.
2285 * rust-lang.c (rust_printstr): Update header comment.
2286 (rust_language_data): Delete la_printstr initializer.
2287 (rust_language::printstr): New member function.
2288
52b50f2c
AB
22892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2292 (ada_language::printchar): New member function.
2293 * c-lang.c (c_language_data): Delete la_printchar initializer.
2294 (cplus_language_data): Likewise.
2295 (asm_language_data): Likewise.
2296 (minimal_language_data): Likewise.
2297 * d-lang.c (d_language_data): Likewise.
2298 * f-lang.c (f_printchar): Rename to f_language::printchar.
2299 (f_language_data): Delete la_printchar initializer.
2300 (f_language::printchar): New member function, implementation from
2301 f_printchar.
2302 * go-lang.c (go_language_data): Delete la_printchar initializer.
2303 * language.c (unk_lang_printchar): Delete.
2304 (language_defn::printchar): Define new member function.
2305 (unknown_language_data): Delete la_printchar initializer.
2306 (unknown_language::printchar): New member function.
2307 (auto_language_data): Delete la_printchar initializer.
2308 (auto_language::printchar): New member function.
2309 * language.h (language_data): Delete la_printchar field.
2310 (language_defn::printchar): Declare new member function.
2311 (LA_PRINT_CHAR): Update call to printchar.
2312 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2313 (m2_language::printchar): New member function.
2314 * objc-lang.c (objc_language_data): Delete la_printchar
2315 initializer.
2316 * opencl-lang.c (opencl_language_data): Likewise.
2317 * p-lang.c (pascal_language_data): Delete la_printchar
2318 initializer.
2319 (pascal_language::printchar): New member function.
2320 * rust-lang.c (rust_printchar): Rename to
2321 rust_language::printchar.
2322 (rust_language_data): Delete la_printchar initializer.
2323 (rust_language::printchar): New member function, implementation
2324 from rust_printchar.
2325
ec8cec5b
AB
23262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2329 (ada_language_data): Delete la_emitchar initializer.
2330 (ada_language::emitchar): New member function, implementation from
2331 emit_char.
2332 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2333 (cplus_language_data): Likewise.
2334 (asm_language_data): Likewise.
2335 (minimal_language_data): Likewise.
2336 * d-lang.c (d_language_data): Likewise.
2337 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2338 (f_language_data): Delete la_emitchar initializer.
2339 (f_language::emitchar): New member function, implementation from
2340 f_emit_char.
2341 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2342 * language.c (unk_lang_emit_char): Delete.
2343 (language_defn::emitchar): New member function definition.
2344 (unknown_language_data): Delete la_emitchar initializer.
2345 (unknown_language::emitchar): New member function.
2346 (auto_language_data): Delete la_emitchar initializer.
2347 (auto_language::emitchar): New member function.
2348 * language.h (language_data): Delete la_emitchar field.
2349 (language_defn::emitchar): New member field declaration.
2350 (LA_EMIT_CHAR): Update call to emitchar.
2351 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2352 (m2_language_data): Delete la_emitchar initializer.
2353 (m2_language::emitchar): New member function, implementation from
2354 m2_emit_char.
2355 * objc-lang.c (objc_language_data): Delete la_emitchar
2356 initializer.
2357 * opencl-lang.c (opencl_language_data): Likewise.
2358 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2359 (pascal_language_data): Delete la_emitchar initializer.
2360 (pascal_language::emitchar): New member function, implementation
2361 from pascal_emit_char.
2362 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2363 (rust_language_data): Delete la_emitchar initializer.
2364 (rust_language::emitchar): New member function, implementation
2365 from rust_emitchar.
2366
1bf9c363
AB
23672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2370 (ada_language_data): Delete la_post_parser initializer.
2371 (ada_language::post_parser): New member function.
2372 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2373 (cplus_language_data): Likewise.
2374 (asm_language_data): Likewise.
2375 (minimal_language_data): Likewise.
2376 * d-lang.c (d_language_data): Likewise.
2377 * f-lang.c (f_language_data): Likewise.
2378 * go-lang.c (go_language_data): Likewise.
2379 * language.c (unknown_language_data): Likewise.
2380 (auto_language_data): Likewise.
2381 * language.h (language_data): Delete la_post_parser field.
2382 (language_defn::post_parser): New member function.
2383 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2384 * objc-lang.c (objc_language_data): Likewise.
2385 * opencl-lang.c (opencl_language_data): Likewise.
2386 * p-lang.c (pascal_language_data): Likewise.
2387 * parse.c (parse_exp_in_context): Update call to post_parser.
2388 (null_post_parser): Delete definition.
2389 * parser-defs.h (null_post_parser): Delete declaration.
2390 * rust-lang.c (rust_language_data): Delete la_post_parser
2391 initializer.
2392
87afa652
AB
23932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (parse): Rename to ada_language::parser.
2396 (ada_language_data): Delete la_parser initializer.
2397 (ada_language::parser): New member function, implementation from
2398 parse.
2399 * c-lang.c (c_language_data): Delete la_parser initializer.
2400 (cplus_language_data): Likewise.
2401 (asm_language_data): Likewise.
2402 (minimal_language_data): Likewise.
2403 * d-lang.c (d_language_data): Likewise.
2404 (d_language::parser): New member function.
2405 * f-lang.c (f_language_data): Delete la_parser initializer.
2406 (f_language::parser): New member function.
2407 * go-lang.c (go_language_data): Delete la_parser initializer.
2408 (go_language::parser): New member function.
2409 * language.c (unk_lang_parser): Delete.
2410 (language_defn::parser): Define new member function.
2411 (unknown_language_data): Delete la_parser initializer.
2412 (unknown_language::parser): New member function.
2413 (auto_language_data): Delete la_parser initializer.
2414 (auto_language::parser): New member function.
2415 * language.h (language_data): Delete la_parser field.
2416 (language_defn::parser): Declare new member function.
2417 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2418 (m2_language::parser): New member function.
2419 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2420 * opencl-lang.c (opencl_language_data): Likewise.
2421 * p-lang.c (pascal_language_data): Likewise.
2422 (pascal_language::parser): New member function.
2423 * parse.c (parse_exp_in_context): Update call to parser.
2424 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2425 (rust_language::parser): New member function.
2426
37825800
AB
24272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * top.c (print_gdb_configuration): Print --with-python-libdir
2430 configuration value.
2431
5b860c93
PW
24322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2433
2434 * NEWS: Mention change to the alias command.
2435
cf00cd6f
PW
24362020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2437
2438 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2439 (alias_command_completer)
2440 (make_alias_options_def_group): New functions.
2441 (alias_opts, alias_option_defs): New struct and array.
2442 (alias_usage_error): Update usage.
2443 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2444 Use option framework.
2445 (_initialize_cli_cmds): Update alias command help.
2446 Update aliases command help.
2447 (show_user):
2448 Add NULL for new default_args lookup_cmd argument.
2449 (valid_command_p): Rename to validate_aliased_command.
2450 Add NULL for new default_args lookup_cmd argument. Verify that the
2451 aliased_command has no default args.
2452 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2453 (lookup_cmd_1, lookup_cmd): New argument default_args.
2454 (add_alias_cmd):
2455 Add NULL for new default_args lookup_cmd argument.
2456 (print_help_for_command): Show default args under the layout
2457 alias some_alias = some_aliased_cmd some_alias_default_arg.
2458 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2459 xfree default_args in destructor.
2460 * cli/cli-script.c (process_next_line, do_define_command):
2461 Add NULL for new default_args lookup_cmd argument.
2462 * command.h: Declare new default_args argument in lookup_cmd
2463 and lookup_cmd_1.
2464 * completer.c (complete_line_internal_1):
2465 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2466 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2467 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2468 Likewise.
2469 * infcmd.c (_initialize_infcmd): Likewise.
2470 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2471 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2472 * python/py-param.c (add_setshow_generic): Likewise.
2473 * remote.c (_initialize_remote): Likewise.
2474 * top.c (execute_command): Prepend default_args if command has some.
2475 (set_verbose):
2476 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2477 * tracepoint.c (validate_actionline, encode_actions_1):
2478 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2479
bd920864
TBA
24802020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481
2482 * jit.c (jit_read_descriptor): Use bool as the return type.
2483 (jit_breakpoint_re_set_internal): Use bool as the return type.
2484 Invert the return value logic; return true if the jit breakpoint
2485 has been successfully initialized.
2486 (jit_inferior_init): Update the call to
2487 jit_breakpoint_re_set_internal.
2488
f8098322
PA
24892020-06-22 Pedro Alves <palves@redhat.com>
2490
2491 PR gdb/25939
2492 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2493 Use the current inferior instead. Don't return
2494 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2495 wait again.
2496 * sol-thread.c (sol_thread_target::wait): Don't reference
2497 inferior_ptid.
2498 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2499 (sol_update_thread_list_callback): Use the current inferior's pid
2500 instead of inferior_ptid.
2501
196535a6
RO
25022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2503
2504 * procfs.c: Cleanup many comments.
2505
2506 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2507 (AFTER_WATCHFLAG): Replace by value.
2508
2509 (MAIN_PROC_NAME_FORMAT): Inline ...
2510 (create_procinfo): ... here.
2511
2512 (procfs_debug_inferior): Remove SYS_exec handling.
2513 (syscall_is_exec): Likewise.
2514 (procfs_set_exec_trap): Likewise.
2515
2516 (syscall_is_lwp_exit): Inline in callers.
2517 (syscall_is_exit): Likewise.
2518 (syscall_is_exec): Likewise.
2519 (syscall_is_lwp_create): Likewise.
2520
2521 (invalidate_cache): Remove #if 0 code.
2522
2523 (make_signal_thread_runnable): Remove.
2524 (procfs_target::resume): Remove #if 0 code.
2525
cf6f3e86
RO
25262020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2527
2528 PR gdb/25939
2529 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2530 call ...
2531 (procfs_target::create_inferior): ... here.
2532
48e9cc84
PW
25332020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2534
2535 * exec.c (validate_exec_file): Ensure the build-id is up to
2536 date by calling reopen_exec_file (that checks file timestamp
2537 to decide to re-read the file).
2538
3922b302
PA
25392020-06-18 Pedro Alves <palves@redhat.com>
2540
2541 PR gdb/25412
2542 * gdbthread.h (delete_thread, delete_thread_silent)
2543 (find_thread_ptid): Update comments.
2544 * thread.c (current_thread_): New global.
2545 (is_current_thread): Move higher, and reimplement.
2546 (inferior_thread): Reimplement.
2547 (set_thread_exited): Use bool. Add assertions.
2548 (add_thread_silent): Simplify thread-reuse handling by always
2549 calling delete_thread.
2550 (delete_thread): Remove intro comment.
2551 (find_thread_ptid): Skip exited threads.
2552 (switch_to_thread_no_regs): Write to current_thread_.
2553 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2554 INFERIOR_PTID. Clear current_thread_.
2555
6dbdab44
PA
25562020-06-18 Pedro Alves <palves@redhat.com>
2557
2558 * aix-thread.c (pd_update): Use switch_to_thread.
2559
2da4b788
PA
25602020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * ravenscar-thread.c (ravenscar_thread_target): Update.
2563 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2564 (ravenscar_thread_target::add_active_thread): ... this. Don't
2565 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2566 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2567
50838d1b
PA
25682020-06-18 Pedro Alves <palves@redhat.com>
2569
2570 * nat/windows-nat.c (current_windows_thread): Remove.
2571 * nat/windows-nat.h (current_windows_thread): Remove.
2572 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2573 Adjust.
2574 (display_selectors): Adjust to fetch the current
2575 windows_thread_info based on inferior_ptid.
2576 (fake_create_process): No longer write to current_windows_thread.
2577 (windows_nat_target::get_windows_debug_event):
2578 Don't set inferior_ptid or current_windows_thread.
2579 (windows_nat_target::wait): Adjust to not rely on
2580 current_windows_thread.
2581 (do_initial_windows_stuff): Now a method of windows_nat_target.
2582 Switch to the last_ptid thread.
2583 (windows_nat_target::attach): Adjust.
2584 (windows_nat_target::detach): Use switch_to_no_thread instead of
2585 writing to inferior_ptid directly.
2586 (windows_nat_target::create_inferior): Adjust.
2587
31ce04e9
PA
25882020-06-18 Pedro Alves <palves@redhat.com>
2589
2590 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2591
1ee1a363
PA
25922020-06-18 Pedro Alves <palves@redhat.com>
2593
2594 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2595 after creating it, instead of writing to inferior_ptid. Don't
2596 write to inferior_ptid.
2597
6d350754
PA
25982020-06-18 Pedro Alves <palves@redhat.com>
2599
2600 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2601
5d971d48
PA
26022020-06-18 Pedro Alves <palves@redhat.com>
2603
2604 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2605 it, instead of writing to inferior_ptid.
2606
86e57d1b
PA
26072020-06-18 Pedro Alves <palves@redhat.com>
2608
2609 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2610 to inferior_ptid.
2611
f2e1c129
PA
26122020-06-18 Pedro Alves <palves@redhat.com>
2613
2614 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2615 instead of writing to inferior_ptid directly.
2616
60db1b85
PA
26172020-06-18 Pedro Alves <palves@redhat.com>
2618
2619 * corelow.c (core_target::close): Use switch_to_no_thread instead
2620 of writing to inferior_ptid directly.
2621 (add_to_thread_list, core_target_open): Use switch_to_thread
2622 instead of writing to inferior_ptid directly.
2623
fe7d6a8d
PA
26242020-06-18 Pedro Alves <palves@redhat.com>
2625
2626 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2627 inferior_ptid.
2628 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2629 inferior_ptid.
2630 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2631 inferior_ptid directly.
2632 (darwin_nat_target::init_thread_list): Switch to thread, instead
2633 of writing to inferior_ptid.
2634 (darwin_nat_target::attach): Don't write to inferior_ptid.
2635 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2636
975f8708
PA
26372020-06-18 Pedro Alves <palves@redhat.com>
2638
2639 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2640 thread.
2641 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2642 Instead use switch_to_thread.
2643 (gnu_nat_target::detach): Use switch_to_no_thread
2644 instead of writing to inferior_ptid directly. Used passed-in
2645 inferior instead of looking up the inferior by pid.
2646
1a204730
PA
26472020-06-18 Pedro Alves <palves@redhat.com>
2648
2649 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2650 inferior_ptid.
2651
ebe84f23
PA
26522020-06-18 Pedro Alves <palves@redhat.com>
2653
2654 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2655 inferior_ptid.
2656 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2657 thread.
2658 (nto_procfs_target::detach): Avoid referencing
2659 inferior_ptid. Use switch_to_no_thread instead of writing to
2660 inferior_ptid directly.
2661 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2662 instead of writing to inferior_ptid directly.
2663 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2664 to thread.
2665
191f02e5
PA
26662020-06-18 Pedro Alves <palves@redhat.com>
2667
2668 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2669 after creating it, instead of writing to inferior_ptid.
2670 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2671 to inferior_ptid directly.
2672 (gdbsim_target::wait): Don't write to inferior_ptid.
2673
0ac55310
PA
26742020-06-18 Pedro Alves <palves@redhat.com>
2675
2676 * remote.c (remote_target::remote_notice_new_inferior): Use
2677 switch_to_thread instead of writing to inferior_ptid directly.
2678 (remote_target::add_current_inferior_and_thread): Use
2679 switch_to_no_thread instead of writing to inferior_ptid directly.
2680 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2681 and switch_to_thread instead of using set_current_inferior or
2682 writing to inferior_ptid directly.
2683
5233f39b
PA
26842020-06-18 Pedro Alves <palves@redhat.com>
2685
2686 * tracectf.c (ctf_target_open): Switch to added thread instead of
2687 writing to inferior_ptid directly.
2688 (ctf_target::close): Use switch_to_no_thread instead of writing to
2689 inferior_ptid directly.
2690
087e161b
PA
26912020-06-18 Pedro Alves <palves@redhat.com>
2692
2693 * tracefile-tfile.c (tfile_target_open): Don't write to
2694 inferior_ptid directly, instead switch to added thread.
2695 (tfile_target::close): Use switch_to_no_thread instead of writing
2696 to inferior_ptid directly.
2697
7fb43e53
PA
26982020-06-18 Pedro Alves <palves@redhat.com>
2699
2700 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2701 (procfs_target::detach): Use switch_to_no_thread
2702 instead of writing to inferior_ptid directly.
2703 (do_attach): Change return type to void. Switch to the added
2704 thread.
2705 (procfs_target::create_inferior): Switch to the added thread.
2706 (procfs_do_thread_registers): Don't write to inferior_ptid.
2707
18493a00
PA
27082020-06-18 Pedro Alves <palves@redhat.com>
2709
2710 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2711 of writing to inferior_ptid.
2712 (scoped_restore_exited_inferior): Delete.
2713 (handle_vfork_child_exec_or_exit): Simplify using
2714 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2715 instead of writing to inferior_ptid.
2716 (THREAD_STOPPED_BY): Delete.
2717 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2718 (thread_stopped_by_hw_breakpoint): Delete.
2719 (save_waitstatus): Use
2720 scoped_restore_current_thread+switch_to_thread, and call
2721 target_stopped_by_watchpoint instead of
2722 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2723 instead of thread_stopped_by_sw_breakpoint, and
2724 target_stopped_by_hw_breakpoint instead of
2725 thread_stopped_by_hw_breakpoint.
2726 (handle_inferior_event)
2727 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2728 inferior_ptid directly, nor
2729 set_current_inferior/set_current_program_space. Use
2730 switch_to_thread / switch_to_inferior_no_thread instead.
2731
a0776b13
PA
27322020-06-18 Pedro Alves <palves@redhat.com>
2733
2734 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2735 instead of writing to inferior_ptid.
2736
6155c136
PA
27372020-06-18 Pedro Alves <palves@redhat.com>
2738
2739 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2740 added thread.
2741 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2742 to the added thread.
2743 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2744 instead of writing to inferior_ptid.
2745
c5316fc6
PA
27462020-06-18 Pedro Alves <palves@redhat.com>
2747
2748 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2749 (register_to_value_test): Mock a program_space too. Heap-allocate
2750 the address space. Don't write to inferior_ptid. Use
2751 switch_to_thread instead.
2752
8df01799
PA
27532020-06-18 Pedro Alves <palves@redhat.com>
2754
2755 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2756 Delete.
2757 (find_signalled_thread()): New, factored out from
2758 linux_make_corefile_notes and adjusted to handle exited threads.
2759 (linux_make_corefile_notes): Adjust to use the new
2760 find_signalled_thread.
2761
41792d68
PA
27622020-06-18 Pedro Alves <palves@redhat.com>
2763
2764 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2765 of saving/restoring inferior_ptid.
2766
612f258a
TT
27672020-06-17 Tom Tromey <tom@tromey.com>
2768
2769 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2770 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2771 declare.
2772 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2773
efb763a5
SM
27742020-06-15 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2777 of partial symtabs.
2778
2951f6c0
SM
27792020-06-17 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * regformats/reg-arm.dat: Remove.
2782 * regformats/reg-bfin.dat: Remove.
2783 * regformats/reg-cris.dat: Remove.
2784 * regformats/reg-crisv32.dat: Remove.
2785 * regformats/reg-m32r.dat: Remove.
2786 * regformats/reg-tilegx.dat: Remove.
2787 * regformats/reg-tilegx32.dat: Remove.
2788
7d458ea5
SM
27892020-06-17 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * features/Makefile (WHICH): Remove arm files.
2792 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2793 * regformats/arm/arm-with-neon.dat: Remove.
2794 * regformats/arm/arm-with-vfpv2.dat: Remove.
2795 * regformats/arm/arm-with-vfpv3.dat: Remove.
2796
3af96c0d
SM
27972020-06-17 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * features/Makefile (XMLTOC): Remove rx.xml.
2800
b25e22fd
PA
28012020-06-17 Pedro Alves <palves@redhat.com>
2802
2803 * gdbthread.h (thread_control_state) <trap_expected> Update
2804 comments.
2805
a78a19b1
AB
28062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2809 ada_language::lookup_symbol_nonlocal.
2810 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2811 (ada_language::lookup_symbol_nonlocal): New member function,
2812 implementation from ada_lookup_symbol_nonlocal.
2813 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2814 initializer.
2815 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2816 initializer.
2817 (cplus_language::lookup_symbol_nonlocal): New member function.
2818 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2819 (minimal_language_data) Likewise.
2820 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2821 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2822 initializer.
2823 (d_language::lookup_symbol_nonlocal): New member function.
2824 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2825 initializer.
2826 (f_language::lookup_symbol_nonlocal): New member function.
2827 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2828 initializer.
2829 * language.c (unknown_language_data): Likewise.
2830 (auto_language_data): Likewise.
2831 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2832 field.
2833 (language_defn::lookup_symbol_nonlocal): New member function.
2834 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2835 initializer.
2836 * objc-lang.c (objc_language_data): Likewise.
2837 * opencl-lang.c (opencl_language_data): Likewise.
2838 * p-lang.c (pascal_language_data): Likewise.
2839 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2840 rust_language::lookup_symbol_nonlocal.
2841 (rust_language_data): Delete la_lookup_symbol_nonlocal
2842 initializer.
2843 (rust_language::lookup_symbol_nonlocal): New member function,
2844 implementation from rust_lookup_symbol_nonlocal.
2845 * symtab.c (lookup_symbol_aux): Update call to
2846 lookup_symbol_nonlocal.
2847 (basic_lookup_symbol_nonlocal): Rename to...
2848 (language_defn::lookup_symbol_nonlocal): ...this, and update
2849 header comment. Remove language_defn parameter, and replace with
2850 uses of `this'.
2851 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2852
ebe2334e
AB
28532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2856 initializer.
2857 (ada_language::value_print_inner): New member function.
2858 * c-lang.c (c_language_data): Delete la_value_print_inner
2859 initializer.
2860 (cplus_language_data): Likewise.
2861 (asm_language_data): Likewise.
2862 (minimal_language_data): Likewise.
2863 * d-lang.c (d_language_data): Likewise.
2864 (d_language::value_print_inner): New member function.
2865 * f-lang.c (f_language_data): Delete la_value_print_inner
2866 initializer.
2867 (f_language::value_print_inner): New member function.
2868 * f-lang.h (f_value_print_innner): Rename to...
2869 (f_value_print_inner): ...this (note spelling of 'inner').
2870 * f-valprint.c (f_value_print_innner): Rename to...
2871 (f_value_print_inner): ...this (note spelling of 'inner').
2872 * go-lang.c (go_language_data): Delete la_value_print_inner
2873 initializer.
2874 (go_language::value_print_inner): New member function.
2875 * language.c (language_defn::value_print_inner): Define new member
2876 function.
2877 (unk_lang_value_print_inner): Delete.
2878 (unknown_language_data): Delete la_value_print_inner initializer.
2879 (unknown_language::value_print_inner): New member function.
2880 (auto_language_data): Delete la_value_print_inner initializer.
2881 (auto_language::value_print_inner): New member function.
2882 * language.h (language_data): Delete la_value_print_inner field.
2883 (language_defn::value_print_inner): Delcare new member function.
2884 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2885 initializer.
2886 (m2_language::value_print_inner): New member function.
2887 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2888 initializer.
2889 * opencl-lang.c (opencl_language_data): Likewise.
2890 * p-lang.c (pascal_language_data): Likewise.
2891 (pascal_language::value_print_inner): New member function.
2892 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2893 initializer.
2894 (rust_language::value_print_inner): New member function.
2895 * valprint.c (do_val_print): Update call to value_print_inner.
2896
a1d1fa3e
AB
28972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2898
2899 * ada-lang.c (ada_language_data): Delete la_value_print
2900 initializer.
2901 (ada_language::value_print): New member function.
2902 * c-lang.c (c_language_data): Delete la_value_print initializer.
2903 (cplus_language_data): Likewise.
2904 (asm_language_data): Likewise.
2905 (minimal_language_data): Likewise.
2906 * d-lang.c (d_language_data): Likewise.
2907 * f-lang.c (f_language_data): Likewise.
2908 * go-lang.c (go_language_data): Likewise.
2909 * language.c (unk_lang_value_print): Delete.
2910 (language_defn::value_print): Define new member function.
2911 (unknown_language_data): Delete la_value_print initializer.
2912 (unknown_language::value_print): New member function.
2913 (auto_language_data): Delete la_value_print initializer.
2914 (auto_language::value_print): New member function.
2915 * language.h (language_data): Delete la_value_print field.
2916 (language_defn::value_print): Declare new member function.
2917 (LA_VALUE_PRINT): Update call to value_print.
2918 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2919 * objc-lang.c (objc_language_data): Likewise.
2920 * opencl-lang.c (opencl_language_data): Likewise.
2921 * p-lang.c (pascal_language_data): Likewise.
2922 (pascal_language::value_print): New member function.
2923 * rust-lang.c (rust_language_data): Delete la_value_print
2924 initializer.
2925
f16a9f57
AB
29262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 * ada-lang.c (ada_watch_location_expression): Rename to
2929 ada_language::watch_location_expression.
2930 (ada_language_data): Delete la_watch_location_expression
2931 initializer.
2932 (ada_language::watch_location_expression): New member function,
2933 implementation from ada_watch_location_expression.
2934 * breakpoint.c (watch_command_1): Update call to
2935 watch_location_expression.
2936 * c-lang.c (c_watch_location_expression): Rename to
2937 language_defn::watch_location_expression.
2938 (c_language_data): Delete la_watch_location_expression
2939 initializer.
2940 (cplus_language_data): Likewise.
2941 (asm_language_data): Likewise.
2942 (minimal_language_data): Likewise.
2943 * c-lang.h (c_watch_location_expression): Delete declaration.
2944 * d-lang.c (d_language_data): Delete la_watch_location_expression
2945 initializer.
2946 * f-lang.c (f_language_data): Likewise.
2947 * go-lang.c (go_language_data): Likewise.
2948 * language.c (language_defn::watch_location_expression): Member
2949 function implementation from c_watch_location_expression.
2950 (unknown_language_data): Delete la_watch_location_expression
2951 initializer.
2952 (auto_language_data): Likewise.
2953 * language.h (language_data): Delete la_watch_location_expression
2954 field.
2955 (language_defn::watch_location_expression): Declare new member
2956 function.
2957 * m2-lang.c (m2_language_data): Delete
2958 la_watch_location_expression initializer.
2959 * objc-lang.c (objc_language_data): Likewise.
2960 * opencl-lang.c (opencl_language_data): Likewise.
2961 * p-lang.c (pascal_language_data): Likewise.
2962 * rust-lang.c (rust_watch_location_expression): Rename to
2963 rust_language::watch_location_expression.
2964 (rust_language_data): Delete la_watch_location_expression
2965 initializer.
2966 (rust_language::watch_location_expression): New member function,
2967 implementation from rust_watch_location_expression.
2968
7e56227d
AB
29692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2972 ada_language::collect_symbol_completion_matches.
2973 (ada_language_data): Delete la_collect_symbol_completion_matches
2974 initializer.
2975 (ada_language::collect_symbol_completion_matches): New member
2976 function, implementation from
2977 ada_collect_symbol_completion_matches.
2978 * c-lang.c (c_language_data): Delete
2979 la_collect_symbol_completion_matches initializer.
2980 (cplus_language_data): Likewise.
2981 (asm_language_data): Likewise.
2982 (minimal_language_data): Likewise.
2983 * d-lang.c (d_language_data): Likewise.
2984 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2985 f_language::collect_symbol_completion_matches.
2986 (f_language_data): Delete la_collect_symbol_completion_matches
2987 initializer.
2988 (f_language::collect_symbol_completion_matches) New member
2989 function, implementation from f_collect_symbol_completion_matches.
2990 * go-lang.c (go_language_data): Delete
2991 la_collect_symbol_completion_matches initializer.
2992 * language.c (unknown_language_data): Likewise.
2993 (auto_language_data): Likewise.
2994 * language.h (language_data): Delete
2995 la_collect_symbol_completion_matches field.
2996 (language_defn::collect_symbol_completion_matches): New member
2997 function.
2998 * m2-lang.c (m2_language_data): Delete
2999 la_collect_symbol_completion_matches initializer.
3000 * objc-lang.c (objc_language_data): Likewise.
3001 * opencl-lang.c (opencl_language_data): Likewise.
3002 * p-lang.c (pascal_language_data): Likewise.
3003 * rust-lang.c (rust_language_data): Likewise.
3004 * symtab.c (default_collect_symbol_completion_matches): Delete.
3005 (collect_symbol_completion_matches): Update call to
3006 collect_symbol_completion_matches.
3007 (collect_symbol_completion_matches_type): Likewise.
3008 * symtab.h (default_collect_symbol_completion_matches): Delete
3009 declaration.
3010
53fc67f8
AB
30112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3014 (ada_language_data): Delete la_word_break_characters initializer.
3015 (ada_language::word_break_characters): New member function.
3016 * c-lang.c (c_language_data): Delete la_word_break_characters
3017 initializer.
3018 (cplus_language_data): Likewise.
3019 (asm_language_data): Likewise.
3020 (minimal_language_data): Likewise.
3021 * completer.c: Update global comment.
3022 (advance_to_expression_complete_word_point): Update call to
3023 word_break_characters.
3024 (complete_files_symbols): Likewise.
3025 (complete_line_internal_1): Likewise.
3026 (default_completer_handle_brkchars): Likewise.
3027 (skip_quoted_chars): Likewise.
3028 * d-lang.c (d_language_data): Delete la_word_break_characters
3029 initializer.
3030 * f-lang.c (f_word_break_characters): Delete.
3031 (f_language_data): Delete la_word_break_characters initializer.
3032 (f_language::word_break_characters): New member function.
3033 * go-lang.c (go_language_data): Delete la_word_break_characters
3034 initializer.
3035 * language.c (unknown_language_data): Likewise.
3036 (auto_language_data): Likewise.
3037 * language.h (default_word_break_characters): Move declaration to
3038 earlier in the file.
3039 (language_data): Delete la_word_break_characters field.
3040 (language_defn::word_break_characters): New member function.
3041 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3042 initializer.
3043 * objc-lang.c (objc_language_data): Likewise.
3044 * opencl-lang.c (opencl_language_data): Likewise.
3045 * p-lang.c (pascal_language_data): Likewise.
3046 * rust-lang.c (rust_language_data): Likewise.
3047
c9debfb9
AB
30482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3049
3050 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3051 (ada_language_data): Delete la_get_symbol_name_matcher
3052 initializer.
3053 (language_defn::get_symbol_name_matcher_inner): New member
3054 function.
3055 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3056 initializer.
3057 (cplus_language_data): Likewise.
3058 (cplus_language::get_symbol_name_matcher_inner): New member
3059 function.
3060 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3061 (minimal_language_data): Likewise.
3062 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3063 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3064 initializer.
3065 * dictionary.c (iter_match_first_hashed): Update call to
3066 get_symbol_name_matcher.
3067 (iter_match_next_hashed): Likewise.
3068 (iter_match_next_linear): Likewise.
3069 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3070 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3071 initializer.
3072 (f_language::get_symbol_name_matcher_inner): New member function.
3073 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3074 initializer.
3075 * language.c (default_symbol_name_matcher): Update header comment,
3076 make static.
3077 (language_defn::get_symbol_name_matcher): New definition.
3078 (language_defn::get_symbol_name_matcher_inner): Likewise.
3079 (get_symbol_name_matcher): Delete.
3080 (unknown_language_data): Delete la_get_symbol_name_matcher
3081 initializer.
3082 (auto_language_data): Likewise.
3083 * language.h (language_data): Delete la_get_symbol_name_matcher
3084 field.
3085 (language_defn::get_symbol_name_matcher): New member function.
3086 (language_defn::get_symbol_name_matcher_inner): Likewise.
3087 (default_symbol_name_matcher): Delete declaration.
3088 * linespec.c (find_methods): Update call to
3089 get_symbol_name_matcher.
3090 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3091 initializer.
3092 * minsyms.c (lookup_minimal_symbol): Update call to
3093 get_symbol_name_matcher.
3094 (iterate_over_minimal_symbols): Likewise.
3095 * objc-lang.c (objc_language_data): Delete
3096 la_get_symbol_name_matcher initializer.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 * psymtab.c (psymbol_name_matches): Update call to
3100 get_symbol_name_matcher.
3101 * rust-lang.c (rust_language_data): Delete
3102 la_get_symbol_name_matcher initializer.
3103 * symtab.c (symbol_matches_search_name): Update call to
3104 get_symbol_name_matcher.
3105 (compare_symbol_name): Likewise.
3106
9a49ad8c
AB
31072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * ada-lang.c (ada_language_data): Delete la_compute_program
3110 initializer.
3111 * c-lang.c (c_language_data): Likewise.
3112 (c_language::compute_program): New member function.
3113 (cplus_language_data): Delete la_compute_program initializer.
3114 (cplus_language::compute_program): New member function.
3115 (asm_language_data): Delete la_compute_program initializer.
3116 (minimal_language_data): Likewise.
3117 * c-lang.h (c_compute_program): Update comment.
3118 (cplus_compute_program): Likewise.
3119 * compile/compile-c-support.c (c_compute_program): Likewise.
3120 (cplus_compute_program): Likewise.
3121 * compile/compile.c (compile_to_object): Update call to
3122 la_compute_program.
3123 * d-lang.c (d_language_data): Delete la_compute_program
3124 initializer.
3125 * f-lang.c (f_language_data): Likewise.
3126 * go-lang.c (go_language_data): Likewise.
3127 * language.c (unknown_language_data): Likewise.
3128 (auto_language_data): Likewise.
3129 * language.h (language_data): Delete la_compute_program field.
3130 (language_defn::compute_program): New member function.
3131 * m2-lang.c (m2_language_data): Delete la_compute_program
3132 initializer.
3133 * objc-lang.c (objc_language_data): Likewise.
3134 * opencl-lang.c (opencl_language_data): Likewise.
3135 * p-lang.c (pascal_language_data): Likewise.
3136 * rust-lang.c (rust_language_data): Likewise.
3137
eff93b4d
AB
31382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * ada-lang.c (ada_language_data) Delete
3141 la_class_name_from_physname initializer.
3142 * c-lang.c (c_language_data): Likewise.
3143 (cplus_language_data): Likewise.
3144 (cplus_language::class_name_from_physname): New member function.
3145 (asm_language_data): Delete la_class_name_from_physname
3146 initializer.
3147 (minimal_language_data): Likewise.
3148 * d-lang.c (d_language_data): Likewise.
3149 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3150 method on language_defn class.
3151 (guess_full_die_structure_name): Likewise.
3152 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3153 initializer.
3154 * go-lang.c (go_language_data): Likewise.
3155 * language.c (language_class_name_from_physname): Delete.
3156 (unk_lang_class_name): Delete.
3157 (unknown_language_data): Delete la_class_name_from_physname
3158 initializer.
3159 (auto_language_data): Likewise.
3160 * language.h (language_data): Delete la_class_name_from_physname
3161 field.
3162 (language_defn::class_name_from_physname): New function.
3163 (language_class_name_from_physname): Delete declaration.
3164 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3165 initializer.
3166 * objc-lang.c (objc_language_data): Likewise.
3167 * opencl-lang.c (opencl_language_data): Likewise.
3168 * p-lang.c (pascal_language_data): Likewise.
3169 * rust-lang.c (rust_language_data): Likewise.
3170
de543742
TT
31712020-06-16 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-data.h (STATUS_NAME): New macro.
3174 * tui/tui-layout.c (tui_remove_some_windows)
3175 (initialize_known_windows, tui_register_window)
3176 (tui_layout_split::remove_windows, initialize_layouts)
3177 (tui_new_layout_command): Don't use hard-coded window names.
3178
a350efd4
TT
31792020-06-16 Tom Tromey <tom@tromey.com>
3180
3181 PR tui/25348:
3182 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3183 tui_initialize_readline. Only run once. Call rl_initialize.
3184 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3185 tui_initialize_readline.
3186 * tui/tui-io.c (tui_setup_io): Call
3187 tui_ensure_readline_initialized.
3188 * tui/tui-interp.c (tui_interp::init): Update.
3189
39ec0490
TT
31902020-06-16 Tom Tromey <tom@tromey.com>
3191
3192 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3193 Also preserve the status window.
3194
d2d1ea20
TT
31952020-06-16 Tom Tromey <tom@tromey.com>
3196
3197 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3198 where m_window==nullptr.
3199
66920317
TT
32002020-06-15 Tom Tromey <tromey@adacore.com>
3201
3202 * windows-nat.c (windows_nat::handle_output_debug_string):
3203 Update.
3204 (windows_nat::handle_ms_vc_exception): Update.
3205 * target.h (target_read_string): Change API.
3206 * target.c (target_read_string): Change API.
3207 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3208 Update.
3209 * solib-frv.c (frv_current_sos): Update.
3210 * solib-dsbt.c (dsbt_current_sos): Update.
3211 * solib-darwin.c (darwin_current_sos): Update.
3212 * linux-thread-db.c (inferior_has_bug): Update.
3213 * expprint.c (print_subexp_standard): Update.
3214 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3215 (ada_exception_message_1): Update.
3216
a5d871dd
TT
32172020-06-15 Tom Tromey <tromey@adacore.com>
3218
3219 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3220
670e35fa
TT
32212020-06-15 Tom Tromey <tromey@adacore.com>
3222
3223 * valprint.c (read_string): Update comment.
3224 * target.c (MIN): Remove.
3225 (target_read_string): Rewrite.
3226
f5272a3b
TT
32272020-06-15 Tom Tromey <tromey@adacore.com>
3228
3229 * corefile.c (read_memory_string): Remove.
3230 * ada-valprint.c (ada_value_print_ptr): Update.
3231 * ada-lang.h (ada_tag_name): Change return type.
3232 * ada-lang.c (type_from_tag): Update.
3233 (ada_tag_name_from_tsd): Change return type. Use
3234 target_read_string.
3235 (ada_tag_name): Likewise.
3236 * gdbcore.h (read_memory_string): Don't declare.
3237
2c074f49
HD
32382020-06-14 Hannes Domani <ssbssa@yahoo.de>
3239
3240 * symtab.c (rbreak_command): Ignore Windows drive colon.
3241
6a17d503
SM
32422020-06-12 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * NEWS: Mention removed GDBserver host support.
3245
453c733f
NC
32462020-06-12 Nelson Chu <nelson.chu@sifive.com>
3247
3248 * features/riscv/rebuild-csr-xml.sh: Updated.
3249
2b4e6a3f
TT
32502020-06-11 Tom Tromey <tom@tromey.com>
3251
3252 PR gdb/18318:
3253 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3254
4412332f
JG
32552020-06-09 Jonny Grant <jg@jguk.org>
32562020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * main.c (captured_main_1): Don't print new line after help.
3259 (print_gdb_help): add mailing list and IRC channel information
3260 to --help. Add new lines between items in the footer. Remove
3261 quotes around bug url.
3262
2f33032a
KS
32632020-06-11 Keith Seitz <keiths@redhat.com>
3264
3265 PR gdb/21356
3266 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3267 Resolve typedefs for type length calculations.
3268
7ab96794
TV
32692020-06-10 Tom de Vries <tdevries@suse.de>
3270
3271 PR ada/24713
3272 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3273 (write_psymbols): Enable .gdb_index for ada.
3274 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3275 ada.
3276
e5f3ece2
TV
32772020-06-10 Tom de Vries <tdevries@suse.de>
3278
3279 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3280 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3281 namei" instead of "const char *name" argument.
3282 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3283 dw2_symtab_iter_init.
3284
940da03e
SM
32852020-06-08 Simon Marchi <simon.marchi@efficios.com>
3286
3287 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3288 to use type::field and field::type instead.
3289
b6cdac4b
SM
32902020-06-08 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3293 to use field::type instead.
3294
5d14b6e5
SM
32952020-06-08 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * gdbtypes.h (struct field) <type, set_type>: New methods.
3298 Rename `type` field to...
3299 <m_type>: ... this. Change references throughout to use type or
3300 set_type methods.
3301 (FIELD_TYPE): Use field::type. Change call sites that modify
3302 the field's type to use field::set_type instead.
3303
3d967001
SM
33042020-06-08 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3307 to use type::index_type instead.
3308
262abc0d
SM
33092020-06-08 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3312 methods.
3313 (TYPE_INDEX_TYPE): Use type::index_type.
3314 * gdbtypes.c (create_array_type_with_stride): Likewise.
3315
82836c92
TT
33162020-06-07 Tom Tromey <tom@tromey.com>
3317
3318 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3319 parameter.
3320 (generic_value_print): Update.
3321
940dace9
AB
33222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 Revert commit 982a38f60b0.
3325 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3326
982a38f6
AB
33272020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3330 avoid use after free.
3331
82f06518
TV
33322020-06-05 Tom de Vries <tdevries@suse.de>
3333
3334 * NEWS: Fix typos.
3335
f8c41851
SM
33362020-06-04 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3339 the per_bfd object.
3340 (dwarf2_read_debug_names): Likewise.
3341 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3342 object when re-using a per_bfd object with an index.
3343
f9b5d5ea
TV
33442020-06-03 Tom de Vries <tdevries@suse.de>
3345
3346 PR symtab/26046
3347 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3348 children for C++.
3349 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3350 DW_TAG_subprogram.
3351
f6eee2d0
AB
33522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * ada-lang.c (ada_language_data): Delete skip_trampoline
3355 initializer.
3356 * c-lang.c (c_language_data): Likewise.
3357 (cplus_language_data): Likewise.
3358 (cplus_language::skip_trampoline): New member function.
3359 (asm_language_data): Delete skip_trampoline initializer.
3360 (minimal_language_data): Likewise.
3361 * d-lang.c (d_language_data): Likewise.
3362 * f-lang.c (f_language_data): Likewise.
3363 * go-lang.c (go_language_data): Likewise.
3364 * language.c (unk_lang_trampoline): Delete function.
3365 (skip_language_trampoline): Update.
3366 (unknown_language_data): Delete skip_trampoline initializer.
3367 (auto_language_data): Likewise.
3368 * language.h (language_data): Delete skip_trampoline field.
3369 (language_defn::skip_trampoline): New function.
3370 * m2-lang.c (m2_language_data): Delete skip_trampoline
3371 initializer.
3372 * objc-lang.c (objc_skip_trampoline): Delete function, move
3373 implementation to objc_language::skip_trampoline.
3374 (objc_language_data): Delete skip_trampoline initializer.
3375 (objc_language::skip_trampoline): New member function with
3376 implementation from objc_skip_trampoline.
3377 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3378 initializer.
3379 * p-lang.c (pascal_language_data): Likewise.
3380 * rust-lang.c (rust_language_data): Likewise.
3381
0a50df5d
AB
33822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3385 (ada_language::demangle): New member function.
3386 * c-lang.c (c_language_data): Delete la_demangle initializer.
3387 (cplus_language_data): Delete la_demangle initializer.
3388 (cplus_language::demangle): New member function.
3389 (asm_language_data): Delete la_demangle initializer.
3390 (minimal_language_data): Delete la_demangle initializer.
3391 * d-lang.c (d_language_data): Delete la_demangle initializer.
3392 (d_language::demangle): New member function.
3393 * f-lang.c (f_language_data): Delete la_demangle initializer.
3394 (f_language::demangle): New member function.
3395 * go-lang.c (go_language_data): Delete la_demangle initializer.
3396 (go_language::demangle): New member function.
3397 * language.c (language_demangle): Update.
3398 (unk_lang_demangle): Delete.
3399 (unknown_language_data): Delete la_demangle initializer.
3400 (unknown_language::demangle): New member function.
3401 (auto_language_data): Delete la_demangle initializer.
3402 (auto_language::demangle): New member function.
3403 * language.h (language_data): Delete la_demangle field.
3404 (language_defn::demangle): New function.
3405 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3406 * objc-lang.c (objc_language_data): Delete la_demangle
3407 initializer.
3408 (objc_language::demangle): New member function.
3409 * opencl-lang.c (opencl_language_data): Delete la_demangle
3410 initializer.
3411 * p-lang.c (pascal_language_data): Likewise.
3412 * rust-lang.c (rust_language_data): Likewise.
3413 (rust_language::demangle): New member function.
3414
fbfb0a46
AB
34152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * ada-lang.c (ada_language_data): Delete la_print_type
3418 initializer.
3419 (ada_language::print_type): New member function.
3420 * c-lang.c (c_language_data): Delete la_print_type initializer.
3421 (c_language::print_type): New member function.
3422 (cplus_language_data): Delete la_print_type initializer.
3423 (cplus_language::print_type): New member function.
3424 (asm_language_data): Delete la_print_type initializer.
3425 (asm_language::print_type): New member function.
3426 (minimal_language_data): Delete la_print_type initializer.
3427 (minimal_language::print_type): New member function.
3428 * d-lang.c (d_language_data): Delete la_print_type initializer.
3429 (d_language::print_type): New member function.
3430 * f-lang.c (f_language_data): Delete la_print_type initializer.
3431 (f_language::print_type): New member function.
3432 * go-lang.c (go_language_data): Delete la_print_type initializer.
3433 (go_language::print_type): New member function.
3434 * language.c (unk_lang_print_type): Delete.
3435 (unknown_language_data): Delete la_print_type initializer.
3436 (unknown_language::print_type): New member function.
3437 (auto_language_data): Delete la_print_type initializer.
3438 (auto_language::print_type): New member function.
3439 * language.h (language_data): Delete la_print_type field.
3440 (language_defn::print_type): New function.
3441 (LA_PRINT_TYPE): Update.
3442 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3443 (m2_language::print_type): New member function.
3444 * objc-lang.c (objc_language_data): Delete la_print_type
3445 initializer.
3446 (objc_language::print_type): New member function.
3447 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3448 to opencl_language::print_type.
3449 (opencl_language_data): Delete la_print_type initializer.
3450 (opencl_language::print_type): New member function, implementation
3451 from opencl_print_type.
3452 * p-lang.c (pascal_language_data): Delete la_print_type
3453 initializer.
3454 (pascal_language::print_type): New member function.
3455 * rust-lang.c (rust_print_type): Delete, implementation moved to
3456 rust_language::print_type.
3457 (rust_language_data): Delete la_print_type initializer.
3458 (rust_language::print_type): New member function, implementation
3459 from rust_print_type.
3460
6f827019
AB
34612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3464 implementation moves to...
3465 (ada_language::sniff_from_mangled_name): ...here. Update return
3466 type.
3467 (ada_language_data): Delete la_sniff_from_mangled_name
3468 initializer.
3469 * c-lang.c (c_language_data): Likewise.
3470 (cplus_language_data): Likewise.
3471 (cplus_language::sniff_from_mangled_name): New member function,
3472 implementation taken from gdb_sniff_from_mangled_name.
3473 (asm_language_data): Delete la_sniff_from_mangled_name
3474 initializer.
3475 (minimal_language_data): Likewise.
3476 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3477 implementation moves to cplus_language::sniff_from_mangled_name.
3478 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3479 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3480 moves to...
3481 (d_language::sniff_from_mangled_name): ...here.
3482 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3483 * f-lang.c (f_language_data): Likewise.
3484 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3485 moves to...
3486 (go_language::sniff_from_mangled_name): ...here.
3487 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3488 * language.c (language_sniff_from_mangled_name): Delete.
3489 (unknown_language_data): Delete la_sniff_from_mangled_name
3490 initializer.
3491 (auto_language_data): Likewise.
3492 * language.h (language_data): Delete la_sniff_from_mangled_name
3493 field.
3494 (language_defn::sniff_from_mangled_name): New function.
3495 (language_sniff_from_mangled_name): Delete declaration.
3496 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3497 field.
3498 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3499 implementation moves to...
3500 (objc_language::sniff_from_mangled_name): ...here.
3501 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3502 * opencl-lang.c (opencl_language_data): Likewise.
3503 * p-lang.c (pascal_language_data): Likewise.
3504 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3505 implementation moves to...
3506 (rust_language::sniff_from_mangled_name): ...here.
3507 (rust_language_data): Delete la_sniff_from_mangled_name
3508 initializer.
3509 * symtab.c (symbol_find_demangled_name): Call
3510 sniff_from_mangled_name member function.
3511
fb8006fd
AB
35122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3515 initializer.
3516 * c-lang.c (c_language_data): Likewise.
3517 (cplus_language_data): Likewise.
3518 (cplus_language::search_name_hash): New member function.
3519 (asm_language_data): Delete la_search_name_hash initializer.
3520 (minimal_language_data): Likewise.
3521 * d-lang.c (d_language_data): Likewise.
3522 * dictionary.c (default_search_name_hash): Rename to...
3523 (language_defn::search_name_hash): ...this.
3524 * f-lang.c (f_language_data): Likewise.
3525 (f_language::search_name_hash): New member function.
3526 * go-lang.c (go_language_data): Delete la_search_name_hash
3527 initializer.
3528 * language.c (unknown_language_data): Likewise.
3529 (auto_language_data): Likewise.
3530 * language.h (struct language_data): Delete la_search_name_hash
3531 field.
3532 (language_defn::search_name_hash): Declare new member function.
3533 (default_search_name_hash): Delete declaration.
3534 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3535 initializer.
3536 * objc-lang.c (objc_language_data): Likewise.
3537 * opencl-lang.c (opencl_language_data): Likewise.
3538 * p-lang.c (pascal_language_data): Likewise.
3539 * rust-lang.c (rust_language_data): Likewise.
3540 * symtab.c (search_name_hash): Update call.
3541
8e25bafe
AB
35422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3545 initializer.
3546 * c-lang.c (class compile_instance): Declare.
3547 (c_language_data): Delete la_get_compile_instance initializer.
3548 (c_language::get_compile_instance): New member function.
3549 (cplus_language_data): Delete la_get_compile_instance initializer.
3550 (cplus_language::get_compile_instance): New member function.
3551 (asm_language_data): Delete la_get_compile_instance initializer.
3552 (minimal_language_data): Likewise.
3553 * c-lang.h (c_get_compile_context): Update comment.
3554 (cplus_get_compile_context): Update comment.
3555 * compile/compile.c (compile_to_object): Update calls, don't rely
3556 on function pointer being NULL.
3557 * d-lang.c (d_language_data): Delete la_get_compile_instance
3558 initializer.
3559 * f-lang.c (f_language_data): Likewise.
3560 * go-lang.c (go_language_data): Likewise.
3561 * language.c (unknown_language_data): Likewise.
3562 (auto_language_data): Likewise.
3563 * language.h (language_data): Delete la_get_compile_instance field.
3564 (language_defn::get_compile_instance): New member function.
3565 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3566 initializer.
3567 * objc-lang.c (objc_language_data): Likewise.
3568 * opencl-lang.c (opencl_language_data): Likewise.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 * rust-lang.c (rust_language_data): Likewise.
3571
4009ee92
AB
35722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * ada-lang.c (ada_add_all_symbols): Update comment.
3575 (ada_iterate_over_symbols): Delete, move implementation to...
3576 (ada_language::iterate_over_symbols): ...here, a new member
3577 function, rewrite to use range based for loop.
3578 (ada_language_data): Delete la_iterate_over_symbols initializer.
3579 * c-lang.c (c_language_data): Likewise.
3580 (cplus_language_data): Likewise.
3581 (asm_language_data): Likewise.
3582 (minimal_language_data): Likewise.
3583 * d-lang.c (d_language_data): Likewise.
3584 * f-lang.c (f_language_data): Likewise.
3585 * go-lang.c (go_language_data): Likewise.
3586 * language.c (unknown_language_data): Likewise.
3587 (auto_language_data): Likewise.
3588 * language.h (language_data): Delete la_iterate_over_symbols field.
3589 (language_defn::iterate_over_symbols): New member function.
3590 (LA_ITERATE_OVER_SYMBOLS): Update.
3591 * linespec.c (iterate_over_all_matching_symtabs): Update.
3592 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3593 initializer.
3594 * objc-lang.c (objc_language_data): Likewise.
3595 * opencl-lang.c (opencl_language_data): Likewise.
3596 * p-lang.c (pascal_language_data): Likewise.
3597 * rust-lang.c (rust_language_data): Likewise.
3598
54f4ca46
AB
35992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (ada_language_data): Delete
3602 la_lookup_transparent_type initializer.
3603 * c-lang.c (c_language_data): Likewise.
3604 (cplus_language_data): Likewise.
3605 (cplus_language::lookup_transparent_type): New member function.
3606 (asm_language_data): Delete la_lookup_transparent_type
3607 initializer.
3608 (minimal_language_data): Likewise.
3609 * d-lang.c (d_language_data): Likewise.
3610 * f-lang.c (f_language_data): Likewise.
3611 * go-lang.c (go_language_data): Likewise.
3612 * language.c (unknown_language_data): Likewise.
3613 (auto_language_data): Likewise.
3614 * language.h (struct language_data): Delete
3615 la_lookup_transparent_type field.
3616 (language_defn::lookup_transparent_type): New member function.
3617 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3618 initializer.
3619 * objc-lang.c (objc_language_data): Likewise.
3620 * opencl-lang.c (opencl_language_data): Likewise.
3621 * p-lang.c (pascal_language_data): Likewise.
3622 * rust-lang.c (rust_language_data): Likewise.
3623 * symtab.c (symbol_matches_domain): Update call.
3624
1fb314aa
AB
36252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * ada-lang.c (ada_language_arch_info): Delete function, move
3628 implementation to...
3629 (ada_language::language_arch_info): ...here, a new member
3630 function.
3631 (ada_language_data): Delete la_language_arch_info.
3632 * c-lang.c (c_language_data): Likewise.
3633 (c_language::language_arch_info): New member function.
3634 (cplus_language_arch_info): Delete function, move
3635 implementation to...
3636 (cplus_language::language_arch_info): ...here, a new member
3637 function.
3638 (cplus_language_data): Delete la_language_arch_info.
3639 (asm_language_data): Likewise.
3640 (asm_language::language_arch_info): New member function.
3641 (minimal_language_data): Delete la_language_arch_info.
3642 (minimal_language::language_arch_info): New member function.
3643 * d-lang.c (d_language_arch_info): Delete function, move
3644 implementation to...
3645 (d_language::language_arch_info): ...here, a new member
3646 function.
3647 (d_language_data): Delete la_language_arch_info.
3648 * f-lang.c (f_language_arch_info): Delete function, move
3649 implementation to...
3650 (f_language::language_arch_info): ...here, a new member
3651 function.
3652 (f_language_data): Delete la_language_arch_info.
3653 * go-lang.c (go_language_arch_info): Delete function, move
3654 implementation to...
3655 (go_language::language_arch_info): ...here, a new member
3656 function.
3657 (go_language_data): Delete la_language_arch_info.
3658 * language.c (unknown_language_data): Likewise.
3659 (unknown_language::language_arch_info): New member function.
3660 (auto_language_data): Delete la_language_arch_info.
3661 (auto_language::language_arch_info): New member function.
3662 (language_gdbarch_post_init): Update call to
3663 la_language_arch_info.
3664 * language.h (language_data): Delete la_language_arch_info
3665 function pointer.
3666 (language_defn::language_arch_info): New function.
3667 * m2-lang.c (m2_language_arch_info): Delete function, move
3668 implementation to...
3669 (m2_language::language_arch_info): ...here, a new member
3670 function.
3671 (m2_language_data): Delete la_language_arch_info.
3672 * objc-lang.c (objc_language_arch_info): Delete function, move
3673 implementation to...
3674 (objc_language::language_arch_info): ...here, a new member
3675 function.
3676 (objc_language_data): Delete la_language_arch_info.
3677 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3678 implementation to...
3679 (opencl_language::language_arch_info): ...here, a new member
3680 function.
3681 (opencl_language_data): Delete la_language_arch_info.
3682 * p-lang.c (pascal_language_arch_info): Delete function, move
3683 implementation to...
3684 (pascal_language::language_arch_info): ...here, a new member
3685 function.
3686 (pascal_language_data): Delete la_language_arch_info.
3687 * rust-lang.c (rust_language_arch_info): Delete function, move
3688 implementation to...
3689 (rust_language::language_arch_info): ...here, a new member
3690 function.
3691 (rust_language_data): Delete la_language_arch_info.
3692
48448202
AB
36932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3694
3695 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3696 initializer.
3697 * c-lang.c (c_language_data): Likewise.
3698 (cplus_language_data): Likewise.
3699 (cplus_language::pass_by_reference_info): New method.
3700 (asm_language_data): Delete la_pass_by_reference initializer.
3701 (minimal_language_data): Likewise.
3702 * cp-abi.c (cp_pass_by_reference): Remove use of
3703 default_pass_by_reference.
3704 * d-lang.c (d_language_data): Likewise.
3705 * f-lang.c (f_language_data): Likewise.
3706 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3707 default_pass_by_reference.
3708 * go-lang.c (go_language_data): Likewise.
3709 * language.c (language_pass_by_reference): Update.
3710 (default_pass_by_reference): Delete.
3711 (unknown_language_data): Delete la_pass_by_reference
3712 initializer.
3713 (auto_language_data): Likewise.
3714 * language.h (struct language_data): Delete la_pass_by_reference
3715 field.
3716 (language_defn::pass_by_reference_info): New member function.
3717 (default_pass_by_reference): Delete declaration.
3718 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3719 initializer.
3720 * objc-lang.c (objc_language_data): Likewise.
3721 * opencl-lang.c (opencl_language_data): Likewise.
3722 * p-lang.c (pascal_language_data): Likewise.
3723 * rust-lang.c (rust_language_data): Likewise.
3724
15e5fd35
AB
37252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * ada-lang.c (ada_read_var_value): Delete function, move
3728 implementation to...
3729 (ada_language::read_var_value): ...here.
3730 (ada_language_data): Delete la_read_var_value initializer.
3731 * c-lang.c (c_language_data): Likewise.
3732 (cplus_language_data): Likewise.
3733 (minimal_language_data): Likewise.
3734 * d-lang.c (d_language_data): Likewise.
3735 * f-lang.c (f_language_data): Likewise.
3736 * findvar.c (default_read_var_value): Rename to...
3737 (language_defn::read_var_value): ...this.
3738 * findvar.c (read_var_value): Update header comment, and change to
3739 call member function instead of function pointer.
3740 * go-lang.c (go_language_data): Likewise.
3741 * language.c (unknown_language_data): Delete la_read_var_value
3742 initializer.
3743 (auto_language_data): Likewise.
3744 * language.h (struct language_data): Delete la_read_var_value
3745 field.
3746 (language_defn::read_var_value): New member function.
3747 (default_read_var_value): Delete declaration.
3748 * m2-lang.c (m2_language_data): Delete la_read_var_value
3749 initializer.
3750 * objc-lang.c (objc_language_data): Likewise.
3751 * opencl-lang.c (opencl_language_data): Likewise.
3752 * p-lang.c (pascal_language_data): Likewise.
3753 * rust-lang.c (rust_language_data): Likewise.
3754 * value.h (default_read_var_value): Delete declaration.
3755
5bd40f2a
AB
37562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * ada-lang.c (ada_print_array_index): Delete function, move
3759 implementation to...
3760 (ada_language::print_array_index): ...here.
3761 (ada_language_data): Delete la_print_array_index initializer.
3762 * c-lang.c (c_language_data): Likewise.
3763 (cplus_language_data): Likewise.
3764 (minimal_language_data): Likewise.
3765 * d-lang.c (d_language_data): Likewise.
3766 * f-lang.c (f_language_data): Likewise.
3767 * go-lang.c (go_language_data): Likewise.
3768 * language.c (default_print_array_index): Delete function, move
3769 implementation to...
3770 (language_defn::print_array_index): ...here.
3771 (unknown_language_data): Delete la_print_array_index initializer.
3772 (auto_language_data): Likewise.
3773 * language.h (struct language_data): Delete la_print_array_index
3774 field.
3775 (language_defn::print_array_index): New member function.
3776 (LA_PRINT_ARRAY_INDEX): Update.
3777 (default_print_array_index): Delete declaration.
3778 * m2-lang.c (m2_language_data): Delete la_print_array_index
3779 initializer.
3780 * objc-lang.c (objc_language_data): Likewise.
3781 * opencl-lang.c (opencl_language_data): Likewise.
3782 * p-lang.c (pascal_language_data): Likewise.
3783 * rust-lang.c (rust_language_data): Likewise.
3784
0874fd07
AB
37852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * gdb/ada-lang.c (ada_language_defn): Convert to...
3788 (ada_language_data): ...this.
3789 (class ada_language): New class.
3790 (ada_language_defn): New static global.
3791 * gdb/c-lang.c (c_language_defn): Convert to...
3792 (c_language_data): ...this.
3793 (class c_language): New class.
3794 (c_language_defn): New static global.
3795 (cplus_language_defn): Convert to...
3796 (cplus_language_data): ...this.
3797 (class cplus_language): New class.
3798 (cplus_language_defn): New static global.
3799 (asm_language_defn): Convert to...
3800 (asm_language_data): ...this.
3801 (class asm_language): New class.
3802 (asm_language_defn): New static global.
3803 (minimal_language_defn): Convert to...
3804 (minimal_language_data): ...this.
3805 (class minimal_language): New class.
3806 (minimal_language_defn): New static global.
3807 * gdb/d-lang.c (d_language_defn): Convert to...
3808 (d_language_data): ...this.
3809 (class d_language): New class.
3810 (d_language_defn): New static global.
3811 * gdb/f-lang.c (f_language_defn): Convert to...
3812 (f_language_data): ...this.
3813 (class f_language): New class.
3814 (f_language_defn): New static global.
3815 * gdb/go-lang.c (go_language_defn): Convert to...
3816 (go_language_data): ...this.
3817 (class go_language): New class.
3818 (go_language_defn): New static global.
3819 * gdb/language.c (unknown_language_defn): Remove declaration.
3820 (current_language): Initialize to nullptr, real initialization is
3821 moved to _initialize_language.
3822 (languages): Delete global.
3823 (language_defn::languages): Define.
3824 (set_language_command): Use language_defn::languages.
3825 (set_language): Likewise.
3826 (range_error): Likewise.
3827 (language_enum): Likewise.
3828 (language_def): Likewise.
3829 (add_set_language_command): Use language_def::languages for the
3830 language list, and language_def to lookup language pointers.
3831 (skip_language_trampoline): Use language_defn::languages.
3832 (unknown_language_defn): Convert to...
3833 (unknown_language_data): ...this.
3834 (class unknown_language): New class.
3835 (unknown_language_defn): New static global.
3836 (auto_language_defn): Convert to...
3837 (auto_language_data): ...this.
3838 (class auto_language): New class.
3839 (auto_language_defn): New static global.
3840 (language_gdbarch_post_init): Use language_defn::languages.
3841 (_initialize_language): Initialize current_language.
3842 * gdb/language.h (struct language_defn): Rename to...
3843 (struct language_data): ...this.
3844 (struct language_defn): New.
3845 (auto_language_defn): Delete.
3846 (unknown_language_defn): Delete.
3847 (minimal_language_defn): Delete.
3848 (ada_language_defn): Delete.
3849 (asm_language_defn): Delete.
3850 (c_language_defn): Delete.
3851 (cplus_language_defn): Delete.
3852 (d_language_defn): Delete.
3853 (f_language_defn): Delete.
3854 (go_language_defn): Delete.
3855 (m2_language_defn): Delete.
3856 (objc_language_defn): Delete.
3857 (opencl_language_defn): Delete.
3858 (pascal_language_defn): Delete.
3859 (rust_language_defn): Delete.
3860 * gdb/m2-lang.c (m2_language_defn): Convert to...
3861 (m2_language_data): ...this.
3862 (class m2_language): New class.
3863 (m2_language_defn): New static global.
3864 * gdb/objc-lang.c (objc_language_defn): Convert to...
3865 (objc_language_data): ...this.
3866 (class objc_language): New class.
3867 (objc_language_defn): New static global.
3868 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3869 (opencl_language_data): ...this.
3870 (class opencl_language): New class.
3871 (opencl_language_defn): New static global.
3872 * gdb/p-lang.c (pascal_language_defn): Convert to...
3873 (pascal_language_data): ...this.
3874 (class pascal_language): New class.
3875 (pascal_language_defn): New static global.
3876 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3877 language pointer, update comment format.
3878 * gdb/rust-lang.c (rust_language_defn): Convert to...
3879 (rust_language_data): ...this.
3880 (class rust_language): New class.
3881 (rust_language_defn): New static global.
3882
1313c56e
AB
38832020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3884
3885 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3886 member variable.
3887 <m_stmt_at_address>: New member variable.
3888 (lnp_state_machine::record_line): Don't record some lines, update
3889 tracking of is_stmt at the same address.
3890 (lnp_state_machine::lnp_state_machine): Initialise new member
3891 variables.
3892
b7ed9f3d
ST
38932020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3894
3895 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3896 "-include gnu-nat-mig.h".
3897 * gnu-nat-mig.h: New file.
3898 * gnu-nat.c: Include "gnu-nat-mig.h".
3899 (exc_server, msg_reply_server, notify_server,
3900 process_reply_server): Remove declarations.
3901
14a8ad62
ST
39022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3903
3904 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3905 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3906 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3907 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3908 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3909 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3910 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3911 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3912 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3913 to gnu_nat_target class.
3914 * gnu-nat.c: Likewise.
3915 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3916 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3917 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3918 object.
3919 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3920 instead of `gnu_target'.
3921
0af5e106
ST
39222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3923
3924 * i386-gnu-tdep.c: Include "gdbcore.h"
3925 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3926 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3927 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3928 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3929 i386_gnu_sigcontext_addr): New functions
3930 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3931 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3932 tdep.
3933
078f2fc9
ST
39342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3935
3936 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3937 before fork_inferior call. Avoid calling it if target_is_pushed returns
3938 true.
3939
53dff92c
ST
39402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3941
3942 * gnu-nat.h (gnu_target): New variable declaration.
3943 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3944 gnu_target.
3945 * gnu-nat.c (gnu_target): New variable.
3946 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3947 add_thread_silent, and add_thread calls.
3948 (gnu_nat_target::create_inferior): Pass gnu_target to
3949 add_thread_silent, thread_change_ptid call.
3950 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3951 call.
3952
5a8b8627
ST
39532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3954
3955 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3956 (gnu_nat_target::find_memory_regions): Remove unused
3957 `old_address' variable.
3958
366f550a
ST
39592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3960
3961 * gnu-nat.c: Include "gdbarch.h".
3962
f14871bf
ST
39632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3964
3965 * reply_mig_hack.awk (Error return): Cast function through
3966 void *, to bypass compiler function call check.
3967
c6887cfb
ST
39682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3969
3970 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3971 $(srcdir)/reply_mig_hack.awk.
3972
6930bffe
ST
39732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3974
3975 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3976
112c22ed
JG
39772020-05-30 Jonny Grant <jg@jguk.org>
3978
3979 * configure.ac (ACX_BUGURL): change bug URL to https.
3980
f68f85b5
PA
39812020-05-30 Pedro Alves <palves@redhat.com>
3982
3983 * cp-support.c (replace_typedefs_template): New.
3984 (replace_typedefs_qualified_name): Handle
3985 DEMANGLE_COMPONENT_TEMPLATE.
3986
976ca316
SM
39872020-05-29 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3990 dwarf2/index-cache.h, dwarf2/index-write.c,
3991 dwarf2/index-write.h, dwarf2/line-header.c,
3992 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3993 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3994 variables and fields from `dwarf2_per_objfile` to just
3995 `per_objfile` throughout.
3996
989ade05
SM
39972020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3998
3999 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4000 <push_dwarf_reg_entry_value>: Add comment.
4001
c47bae85
KB
40022020-05-28 Kevin Buettner <kevinb@redhat.com>
4003 Keith Seitz <keiths@redhat.com>
4004
4005 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4006 instead of PyEval_ReleaseLock.
4007 (class gdbpy_gil): Move to earlier in file.
4008 (finalize_python): Set gdb_python_initialized.
4009 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4010 when not initialized.
4011
44486dcf
SM
40122020-05-28 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4015 <push_dwarf_reg_entry_value>: Remove assert. Override
4016 per_objfile with caller_per_objfile.
4017
f030440d
TV
40182020-05-28 Tom de Vries <tdevries@suse.de>
4019
4020 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4021 PR gold/15646 workaround to symbol kind "type".
4022
f0fbb768
TT
40232020-05-27 Tom Tromey <tromey@adacore.com>
4024
4025 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4026
af0b2a3e
TT
40272020-05-27 Tom Tromey <tromey@adacore.com>
4028
4029 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4030 Use htab_find_with_hash.
4031 <add_abbrev>: Remove "abbrev_number" parameter.
4032 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4033 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4034 (hash_abbrev): Add comment.
4035 (abbrev_table::lookup_abbrev): Move to header file.
4036 (abbrev_table::read): Update.
4037
7d00ffec
TT
40382020-05-27 Tom Tromey <tromey@adacore.com>
4039
4040 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4041 method.
4042 <canonical_name>: New member.
4043 <raw_name>: Rename from "name".
4044 (partial_die_info): Initialize canonical_name.
4045 (scan_partial_symbols): Check raw_name.
4046 (partial_die_parent_scope, partial_die_full_name)
4047 (add_partial_symbol, add_partial_subprogram)
4048 (add_partial_enumeration, load_partial_dies): Use "name" method.
4049 (partial_die_info::name): New method.
4050 (partial_die_info::read, guess_partial_die_structure_name)
4051 (partial_die_info::fixup): Update.
4052
697bba18
TT
40532020-05-27 Tom Tromey <tromey@adacore.com>
4054
4055 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4056 <get_ref_die_offset>: Inline.
4057 <get_ref_die_offset_complaint>: New method.
4058 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4059 (attribute::get_ref_die_offset_complaint): Rename from
4060 get_ref_die_offset. Just issue complaint.
4061
c17ace43
HD
40622020-05-27 Hannes Domani <ssbssa@yahoo.de>
4063
4064 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4065
96445f0b
HD
40662020-05-27 Hannes Domani <ssbssa@yahoo.de>
4067
4068 * exec.c (exec_file_attach): Use errno value of first openp failure.
4069
ac637ec3
HD
40702020-05-27 Hannes Domani <ssbssa@yahoo.de>
4071
4072 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4073 Don't close thread handle.
4074
17ee85fc
TT
40752020-05-27 Tom Tromey <tom@tromey.com>
4076 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4079 shared_ptr.
4080 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4081 member.
4082 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4083 dwarf2_per_bfd_objfile_data_key>: New globals.
4084 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4085 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4086 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4087 shared.
4088 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4089 short-circuit when sharing.
4090 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4091 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4092
39b16f87
SM
40932020-05-27 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4096 to...
4097 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4098 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4099
fcf23d5b
SM
41002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4103 build_name_components, find_name_components_bounds>:
4104 Add per_objfile parameter.
4105 (struct mapped_index) <symbol_name_at>: Likewise.
4106 (struct mapped_debug_names): Remove constructor.
4107 <dwarf2_per_objfile>: Remove field.
4108 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4109 (mapped_index_base::find_name_components_bounds,
4110 mapped_index_base::build_name_components,
4111 dw2_expand_symtabs_matching_symbol): Likewise.
4112 (class mock_mapped_index) <symbol_name_at>: Likewise.
4113 (check_match): Likewise.
4114 (check_find_bounds_finds): Likewise.
4115 (test_mapped_index_find_name_component_bounds): Update.
4116 (CHECK_MATCH): Update.
4117 (dw2_expand_symtabs_matching): Update.
4118 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4119 per_objfile parameter.
4120 <find_vec_in_debug_names>: Likewise.
4121 <m_per_objfile>: New field.
4122 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4123 parameter.
4124 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4125 (dw2_debug_names_iterator::next): Update.
4126 (dw2_debug_names_lookup_symbol): Update.
4127 (dw2_debug_names_expand_symtabs_for_function): Update.
4128 (dw2_debug_names_map_matching_symbols): Update.
4129 (dw2_debug_names_expand_symtabs_matching): Update.
4130 (dwarf2_read_debug_names): Update.
4131
7188ed02
SM
41322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4135 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4136 move to dwarf2_per_objfile.
4137 <read_in_chain>: Remove.
4138 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4139 remove_all_cus, age_comp_units>: New methods.
4140 <m_dwarf2_cus>: New member.
4141 (struct dwarf2_per_cu_data) <cu>: Remove.
4142 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4143 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4144 moved to methods of dwarf2_per_objfile.
4145 (dwarf2_clear_marks): Remove.
4146 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4147 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4148 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4149 (dwarf2_per_objfile::remove_all_cus): New.
4150 (class free_cached_comp_units) <~free_cached_comp_units>:
4151 Update.
4152 (load_cu): Update.
4153 (dw2_do_instantiate_symtab): Adjust.
4154 (fill_in_sig_entry_from_dwo_entry): Adjust.
4155 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4156 (cutu_reader::cutu_reader): Likewise.
4157 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4158 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4159 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4160 and dwarf2_per_objfile::age_comp_units.
4161 (load_partial_comp_unit): Update.
4162 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4163 (process_queue): Likewise.
4164 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4165 backlink.
4166 (dwarf2_read_addr_index): Likewise.
4167 (follow_die_offset): Likewise.
4168 (dwarf2_fetch_die_loc_sect_off): Likewise.
4169 (dwarf2_fetch_constant_bytes): Likewise.
4170 (dwarf2_fetch_die_type_sect_off): Likewise.
4171 (follow_die_sig_1): Likewise.
4172 (load_full_type_unit): Likewise.
4173 (read_signatured_type): Likewise.
4174 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4175 (dwarf2_cu::~dwarf2_cu): Remove.
4176 (dwarf2_per_objfile::get_cu): New.
4177 (dwarf2_per_objfile::set_cu): New.
4178 (age_cached_comp_units): Rename to...
4179 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4180 to std::unordered_map.
4181 (free_one_cached_comp_unit): Rename to...
4182 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4183 to std::unordered_map.
4184 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4185 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4186 a dwarf2_per_objfile in data.
4187 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4188 (dwarf2_clear_marks): Remove.
4189
2e671100
SM
41902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4193 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4194 (init_tu_and_read_dwo_dies): Likewise.
4195 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4196 (cutu_reader::cutu_reader): Likewise.
4197 (load_partial_comp_unit): Likewise.
4198 (process_psymtab_comp_unit): Update.
4199 (build_type_psymtabs_1): Update.
4200 (process_skeletonless_type_unit): Update.
4201 (load_full_comp_unit): Update.
4202 (find_partial_die): Update.
4203 (dwarf2_read_addr_index): Update.
4204 (read_signatured_type): Update.
4205
2e6a9f79
SM
42062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4207
4208 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4209 m_header_read_in>: New fields.
4210 <get_header>: New method.
4211 * dwarf2/read.c (per_cu_header_read_in): Remove.
4212 (dwarf2_per_cu_data::get_header): New.
4213 (dwarf2_per_cu_data::addr_size): Update.
4214 (dwarf2_per_cu_data::offset_size): Update.
4215 (dwarf2_per_cu_data::ref_addr_size): Update.
4216
1b555f17
SM
42172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4218
4219 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4220 (dw2_do_instantiate_symtab): Update.
4221 (queue_and_load_all_dwo_tus): Change parameter from
4222 dwarf2_per_cu_data to dwarf2_cu.
4223 (dwarf2_fetch_die_loc_sect_off): Update.
4224 (dwarf2_fetch_constant_bytes): Update.
4225 (dwarf2_fetch_die_type_sect_off): Update.
4226
8fc0b21d
SM
42272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4228
4229 * dwarf2/read.c (process_full_comp_unit,
4230 process_full_type_unit): Remove per_cu, per_objfile paramters.
4231 Add dwarf2_cu parameter.
4232 (process_queue): Update.
4233
168c9250
SM
42342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4235
4236 * dwarf2/read.c (create_cu_from_index_list): Replace
4237 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4238 (create_cus_from_index_list): Likewise.
4239 (create_cus_from_index): Likewise.
4240 (create_signatured_type_table_from_index): Likewise.
4241 (create_cus_from_debug_names_list): Likewise.
4242 (create_cus_from_debug_names): Likewise.
4243 (dwarf2_read_gdb_index): Update.
4244 (dwarf2_read_debug_names): Update.
4245
e286671b
TT
42462020-05-27 Tom Tromey <tom@tromey.com>
4247 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.h (struct dwarf2_per_objfile)
4250 <get_type_for_signatured_type, set_type_for_signatured_type>:
4251 New methods.
4252 <m_type_map>: New member.
4253 (struct signatured_type) <type>: Remove.
4254 * dwarf2/read.c
4255 (dwarf2_per_objfile::get_type_for_signatured_type,
4256 dwarf2_per_objfile::set_type_for_signatured_type): New.
4257 (get_signatured_type): Use new methods.
4258
8adb8487
TT
42592020-05-27 Tom Tromey <tom@tromey.com>
4260 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4263 (struct dwarf2_per_objfile) <type_units>: New member.
4264 <get_type_unit_group_unshareable>: New method.
4265 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4266 num_symtabs, symtabs>: Remove; move to
4267 type_unit_group_unshareable.
4268 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4269 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4270 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4271
127bbf4b
SM
42722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * dwarf2/read.h (struct dwarf2_per_cu_data):
4275 <dwarf2_per_objfile>: Remove.
4276 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4277 dwarf2_per_objfile.
4278 (create_signatured_type_table_from_index): Likewise.
4279 (create_signatured_type_table_from_debug_names): Likewise.
4280 (create_debug_type_hash_table): Likewise.
4281 (fill_in_sig_entry_from_dwo_entry): Likewise.
4282 (create_type_unit_group): Likewise.
4283 (read_comp_units_from_section): Likewise.
4284 (create_cus_hash_table): Likewise.
4285
f6e649dd
SM
42862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4289 dwarf2_per_cu_data::dwarf2_per_objfile.
4290 (compute_compunit_symtab_includes): Likewise.
4291 (dwarf2_cu::start_symtab): Likewise.
4292
aa66c379
SM
42932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4296 parameter.
4297 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4298 (read_namespace_alias): Update.
4299 (lookup_die_type): Update.
4300 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4301 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4302 Update.
4303 (disassemble_dwarf_expression): Update.
4304
120ce1b5
SM
43052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4306
4307 * dwarf2/read.h (struct dwarf2_queue_item): Add
4308 dwarf2_per_objfile parameter, assign new parameter.
4309 <per_objfile>: New field.
4310 * dwarf2/read.c (free_one_cached_comp_unit): Add
4311 dwarf2_per_objfile parameter.
4312 (queue_comp_unit): Likewise.
4313 (dw2_do_instantiate_symtab): Update.
4314 (process_psymtab_comp_unit): Update.
4315 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4316 (process_imported_unit_die): Update.
4317 (queue_and_load_dwo_tu): Update.
4318 (follow_die_offset): Update.
4319 (follow_die_sig_1): Update.
4320
9f47c707
SM
43212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4324 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4325 (read_call_site_scope): Assign per_objfile.
4326 (dwarf2_per_cu_data::objfile): Remove.
4327 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4328 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4329 dwarf2_per_objfile parameter.
4330 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4331 dwarf2_per_objfile parameter.
4332 (dwarf_expr_reg_to_entry_parameter): Add output
4333 dwarf2_per_objfile parameter.
4334 (locexpr_get_frame_base): Update.
4335 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4336 <push_dwarf_reg_entry_value>: Update.
4337 <call_site_to_target_addr>: Update.
4338 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4339 parameter.
4340 (value_of_dwarf_reg_entry): Update.
4341 (rw_pieced_value): Update.
4342 (indirect_synthetic_pointer): Update.
4343 (dwarf2_evaluate_property): Update.
4344 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4345 parameter.
4346 (locexpr_read_variable): Update.
4347 (locexpr_get_symbol_read_needs): Update.
4348 (loclist_read_variable): Update.
4349
14095eb3
SM
43502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4351
4352 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4354 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4355 parameter.
4356 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4357 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4358 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4359 parameter.
4360 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4361 sect_variable_value): Add dwarf2_per_objfile parameter.
4362 (class dwarf_evaluate_loc_desc) <dwarf_call,
4363 dwarf_variable_value>: Update.
4364 (fetch_const_value_from_synthetic_pointer): Add
4365 dwarf2_per_objfile parameter.
4366 (fetch_const_value_from_synthetic_pointer): Update.
4367 (coerced_pieced_ref): Update.
4368 (class symbol_needs_eval_context) <dwarf_call,
4369 dwarf_variable_value>: Update.
4370 (dwarf2_compile_expr_to_ax): Update.
4371
3c3cd3d4
SM
43722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4375 parameter.
4376 (dwarf2_evaluate_loc_desc_full): Update.
4377
82ca3f51
SM
43782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4381 parameter.
4382 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4383 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4384 dwarf2_per_objfile parameter.
4385 (decode_debug_loc_dwo_addresses): Likewise.
4386 (dwarf2_find_location_expression): Update.
4387 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4388 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4389 parameter.
4390 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4391 parameter.
4392 (locexpr_describe_location_1): Likewise.
4393 (locexpr_describe_location): Update.
4394
4b167ea1
SM
43952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4398 Remove.
4399 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4400 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4401 (dwarf2_compile_property_to_c): Update.
4402 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4403 use text offset from objfile.
4404 (locexpr_tracepoint_var_ref): Update.
4405 (locexpr_generate_c_location): Update.
4406 (loclist_describe_location): Update.
4407 (loclist_tracepoint_var_ref): Update.
4408 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4409 dwarf2_per_objfile parameter.
4410 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4411 use text offset from objfile.
4412 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4413
89b07335
SM
44142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * dwarf2/expr.h (struct dwarf_expr_context)
4417 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4418 <offset>: Remove.
4419 <per_objfile>: New member.
4420 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4421 dwarf2_per_objfile parameter. Don't set offset, set
4422 per_objfile.
4423 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4424 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4425 a dwarf2_per_objfile object instead of an offset.
4426 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4427 constructor.
4428 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4429 to dwarf2_expr_executor constructor. Don't set offset.
4430 (dwarf2_fetch_cfa_info): Update.
4431 (struct dwarf2_frame_cache) <text_offset>: Remove.
4432 <per_objfile>: New field.
4433 (dwarf2_frame_cache): Update.
4434 (dwarf2_frame_prev_register): Update.
4435 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4436 <dwarf_evaluate_loc_desc>: Add constructor.
4437 (dwarf2_evaluate_loc_desc_full): Update.
4438 (dwarf2_locexpr_baton_eval): Update.
4439 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4440 Add constructor.
4441 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4442
293e7e51
SM
44432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4446 addr_sized_int_type>: Move to dwarf2_cu.
4447 <int_type>: Move to dwarf2_per_objfile.
4448 (struct dwarf2_per_objfile) <int_type>: Move here.
4449 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4450 addr_sized_int_type>: Move here.
4451 (read_func_scope): Update.
4452 (read_array_type): Update.
4453 (read_tag_string_type): Update.
4454 (attr_to_dynamic_prop): Update.
4455 (dwarf2_per_cu_data::int_type): Rename to...
4456 (dwarf2_per_objfile::int_type): ... this.
4457 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4458 (dwarf2_cu::addr_sized_int_type): ... this.
4459 (read_subrange_type): Update.
4460 (dwarf2_per_cu_data::addr_type): Rename to...
4461 (dwarf2_cu::addr_type): ... this.
4462 (set_die_type): Update.
4463
64874a40
SM
44642020-05-27 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4467 data through per_cu->cu.
4468
4ab09049
SM
44692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4472 dwarf2_per_cu_data parameter fo dwarf2_cu.
4473 (lookup_dwo_type_unit): Likewise.
4474 (read_cutu_die_from_dwo): Likewise.
4475 (lookup_dwo_unit): Likewise.
4476 (open_and_init_dwo_file): Likewise.
4477 (lookup_dwo_cutu): Likewise.
4478 (lookup_dwo_comp_unit): Likewise.
4479 (lookup_dwo_type_unit): Likewise.
4480 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4481 (cutu_reader::cutu_reader): Update.
4482
47b14e86
SM
44832020-05-27 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4486 parameter.
4487 (process_full_type_unit): Likewise.
4488 (process_queue): Update.
4489
43182c09
SM
44902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4491
4492 * dwarf2/read.c (recursively_compute_inclusions): Add
4493 dwarf2_per_objfile parameter.
4494 (compute_compunit_symtab_includes): Likewise.
4495 (process_cu_includes): Update.
4496
7aa104c4
SM
44972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4500 parameter.
4501 (create_type_unit_group): Update.
4502 (process_psymtab_comp_unit_reader): Update.
4503 (build_type_psymtabs_reader): Update.
4504
e3beb21d
SM
45052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4508 object through m_this_cu->cu.
4509
d460f660
SM
45102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4513 the info parameter.
4514 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4515
ab432490
SM
45162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4519 per_objfile parameter.
4520 (load_full_type_unit): Add per_objfile parameter.
4521 (read_signatured_type): Likewise.
4522 (load_full_comp_unit): Likewise.
4523 (load_cu): Likewise.
4524 (dw2_do_instantiate_symtab): Likewise.
4525 (dw2_get_file_names): Likewise.
4526 (dw2_map_symtabs_matching_filename): Update.
4527 (dw_expand_symtabs_matching_file_matcher): Update.
4528 (dw2_map_symbol_filenames): Update.
4529 (process_psymtab_comp_unit): Add per_objfile parameter.
4530 (build_type_psymtabs_1): Update.
4531 (process_skeletonless_type_unit): Update.
4532 (dwarf2_build_psymtabs_hard): Update.
4533 (load_partial_comp_unit): Add per_objfile parameter.
4534 (scan_partial_symbols): Update.
4535 (load_full_comp_unit): Add per_objfile parameter.
4536 (process_imported_unit_die): Update.
4537 (create_cus_hash_table): Update.
4538 (find_partial_die): Update.
4539 (dwarf2_read_addr_index): Update.
4540 (follow_die_offset): Update.
4541 (dwarf2_fetch_die_loc_sect_off): Update.
4542 (dwarf2_fetch_constant_bytes): Update.
4543 (dwarf2_fetch_die_type_sect_off): Update.
4544 (follow_die_sig_1): Update.
4545 (load_full_type_unit): Add per_objfile parameter.
4546 (read_signatured_type): Likewise.
4547
313bad1b
SM
45482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4551 of objfile_name.
4552
c3699833
SM
45532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4556 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4557 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4558 field.
4559 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4560 (create_cus_from_index): Update.
4561 (dwarf2_read_gdb_index): Update.
4562 (create_cus_from_debug_names): Update.
4563 (dwarf2_read_debug_names): Update.
4564 (get_abbrev_section_for_cu): Update.
4565 (create_all_comp_units): Update.
4566 (read_attribute_value): Update.
4567 (get_debug_line_section): Update.
4568 * dwarf2/index-cache.c (index_cache::store): Update.
4569 * dwarf2/index-write.c (save_gdb_index_command): Update.
4570 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4571
1859c670
SM
45722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4573
4574 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4575 member.
4576 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4577 dwarf2_per_cu_data::per_bfd.
4578 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4579 (create_type_unit_group): Likewise.
4580 (queue_comp_unit): Remove reference to
4581 per_cu->dwarf2_per_objfile.
4582 (maybe_queue_comp_unit): Likewise.
4583 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4584 (create_cus_hash_table): Assign new field.
4585
5e22e966
SM
45862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * dwarf2/read.c: Replace
4589 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4590 dwarf2_cu->per_objfile throughout.
4591
97a1449a
SM
45922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4595 parameter, don't use per_cu->dwarf2_per_objfile.
4596 (dw2_instantiate_symtab): Likewise.
4597 (dw2_find_last_source_symtab): Update.
4598 (dw2_map_expand_apply): Update.
4599 (dw2_lookup_symbol): Update.
4600 (dw2_expand_symtabs_for_function): Update.
4601 (dw2_expand_all_symtabs): Update.
4602 (dw2_expand_symtabs_with_fullname): Update.
4603 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4604 don't use per_cu->dwarf2_per_objfile.
4605 (dw2_expand_marked_cus): Update.
4606 (dw2_find_pc_sect_compunit_symtab): Update.
4607 (dw2_debug_names_lookup_symbol): Update.
4608 (dw2_debug_names_expand_symtabs_for_function): Update.
4609 (dw2_debug_names_map_matching_symbols): Update.
4610 (dwarf2_psymtab::expand_psymtab): Update.
4611
9e021579
SM
46122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4615 <per_objfile>: New member.
4616 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4617 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4618 call to dwarf2_cu.
4619 (cutu_reader::cutu_reader): Update.
4620 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4621
ae090bdb
SM
46222020-05-27 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4625 struct dwarf2_per_objfile.
4626 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4627 dwarf2_per_bfd.
4628 * dwarf2/read.c (set_die_type): Update.
4629 (get_die_type_at_offset): Update.
4630
af758d11
SM
46312020-05-27 Tom Tromey <tom@tromey.com>
4632 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4635 method.
4636 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4637 get_symtab, set_symtab>: New methods.
4638 <m_symtabs>: New field.
4639 (struct dwarf2_psymtab): Derive from partial_symtab.
4640 <readin_p, get_compunit_symtab>: Declare methods.
4641 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4642 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4643 New methods.
4644 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4645 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4646 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4647 (dw2_symtab_iter_next, dw2_print_stats)
4648 (dw2_expand_symtabs_with_fullname)
4649 (dw2_expand_symtabs_matching_one)
4650 (dw_expand_symtabs_matching_file_matcher)
4651 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4652 (dw2_debug_names_iterator::next)
4653 (dw2_debug_names_map_matching_symbols)
4654 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4655 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4656 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4657 New methods.
4658 (get_compunit_symtab, process_full_comp_unit)
4659 (process_full_type_unit): Update.
4660 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4661
5989a64e
SM
46622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4665 then introduce a new dwarf2_per_objfile type.
4666 <read_line_string>: Move to the new dwarf2_per_objfile type.
4667 <objfile>: Likewise.
4668 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4669 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4670 dwarf2_per_objfile->per_bfd.
4671 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4672 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4673 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4674 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4675 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4676 (dwarf2_per_objfile::locate_sections): Rename to...
4677 (dwarf2_per_bfd::locate_sections): ... this.
4678 (dwarf2_per_objfile::get_cutu): Rename to...
4679 (dwarf2_per_bfd::get_cutu): ... this.
4680 (dwarf2_per_objfile::get_cu): Rename to...
4681 (dwarf2_per_bfd::get_cu): ... this.
4682 (dwarf2_per_objfile::get_tu): Rename to...
4683 (dwarf2_per_bfd::get_tu): ... this.
4684 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4685 (dwarf2_per_bfd::allocate_per_cu): ... this.
4686 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4687 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4688 (get_gdb_index_contents_ftype): Change parameter from
4689 dwarf2_per_objfile to dwarf2_per_bfd.
4690 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4691 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4692
a50264ba
TT
46932020-05-27 Tom Tromey <tom@tromey.com>
4694 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4697 (allocate_piece_closure): Set "per_objfile" member.
4698 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4699 (locexpr_describe_location, loclist_describe_location): Use new
4700 member.
4701 * dwarf2/read.c (read_call_site_scope)
4702 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4703 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4704 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4705 handle_data_member_location): Set per_objfile member.
4706 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4707 member.
4708 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4709
d3473f0c
TT
47102020-05-27 Tom Tromey <tom@tromey.com>
4711
4712 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4713 allocate_signatured_type>: Declare new methods.
4714 <m_num_psymtabs>: New member.
4715 (struct dwarf2_per_cu_data) <index>: New member.
4716 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4717 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4718 (create_cu_from_index_list): Use allocate_per_cu.
4719 (create_signatured_type_table_from_index)
4720 (create_signatured_type_table_from_debug_names)
4721 (create_debug_type_hash_table, add_type_unit)
4722 (read_comp_units_from_section): Use allocate_signatured_type.
4723
5717c425
TT
47242020-05-27 Tom Tromey <tom@tromey.com>
4725
4726 * psymtab.c (partial_map_expand_apply)
4727 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4728 (psym_lookup_global_symbol_language)
4729 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4730 (psym_print_stats, psym_expand_symtabs_for_function)
4731 (psym_map_symbol_filenames, psym_map_matching_symbols)
4732 (psym_expand_symtabs_matching)
4733 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4734 (maintenance_check_psymtabs): Update.
4735 * psympriv.h (struct partial_symtab) <readin_p,
4736 get_compunit_symtab>: Add objfile parameter.
4737 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4738 Likewise.
4739 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4740 get_compunit_symtab>: Likewise.
4741 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4742
45940949
TT
47432020-05-27 Tom Tromey <tom@tromey.com>
4744
4745 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4746 member.
4747 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4748 (create_cu_from_index_list)
4749 (create_signatured_type_table_from_index)
4750 (create_signatured_type_table_from_debug_names)
4751 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4752 (dwarf2_create_include_psymtab)
4753 (create_debug_type_hash_table, add_type_unit)
4754 (create_type_unit_group, read_comp_units_from_section)
4755 (dwarf2_compute_name, create_cus_hash_table)
4756 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4757 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4758 obstack.
4759 (dw2_get_real_path): Likewise. Change argument to
4760 dwarf2_per_objfile.
4761
f8c6d152
LM
47622020-05-27 Luis Machado <luis.machado@linaro.org>
4763
4764 PR tdep/26000
4765 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4766 for ldrd (immediate).
4767
e98d2e6d
PW
47682020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769
4770 * command.h: Add comment giving the name of class_tui.
4771 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4772 create the fake command for the help for class_tui.
4773
53a47a3e
TT
47742020-05-26 Tom Tromey <tromey@adacore.com>
4775
4776 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4777 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4778 (val_atr): New function.
4779 (value_val_atr): Use it.
4780 * ada-valprint.c (print_optional_low_bound): Change low bound
4781 handling for enums.
4782 (val_print_packed_array_elements): Don't call discrete_position.
4783 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4784 discrete_position for enum types.
4785 * language.c (default_print_array_index): Change type.
4786 * language.h (struct language_defn) <la_print_array_index>: Add
4787 index_type parameter, change type of index_value.
4788 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4789 (default_print_array_index): Update.
4790 * valprint.c (maybe_print_array_index): Don't call
4791 value_from_longest. Update.
4792 (value_print_array_elements): Don't call discrete_position.
4793
0bc2354b
TT
47942020-05-26 Tom Tromey <tromey@adacore.com>
4795
4796 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4797 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4798
1218a4bf
CDA
47992020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4800
4801 PR gdb/13519
4802 * avr-tdep.c (avr_integer_to_address): Return data or code
4803 address accordingly to the second 'type' argument of the
4804 function.
4805
92651b1d
MW
48062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4807
4808 * infcmd.c, inferior.h: (construct_inferior_arguments):
4809 Moved function from here to gdbsupport/common-inferior.{h,cc}
4810
0a4f5f8c
TT
48112020-05-23 Tom Tromey <tom@tromey.com>
4812
4813 Revert commit eca1f90c:
4814 * NEWS: Remove entry for completion styling.
4815 * completer.c (_rl_completion_prefix_display_length): Move
4816 declaration later.
4817 (gdb_fnprint): Revert.
4818 (gdb_display_match_list_1): Likewise.
4819 * cli/cli-style.c (completion_prefix_style)
4820 (completion_difference_style, completion_suffix_style): Remove.
4821 (_initialize_cli_style): Revert.
4822 * cli/cli-style.h (completion_prefix_style)
4823 (completion_difference_style, completion_suffix_style): Don't
4824 declare.
4825
e08bd6c5
PA
48262020-05-24 Pedro Alves <palves@redhat.com>
4827
4828 * symtab.c (completion_list_add_name): Return boolean indication
4829 of whether the symbol matched.
4830 (completion_list_add_symbol): Don't try to remove C++ aliases if
4831 the symbol didn't match in the first place.
4832 * symtab.h (completion_list_add_name): Return bool.
4833
ceacbf6e
SM
48342020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4835
4836 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4837 type::field.
4838
26f16254
JB
48392020-05-23 Joel Brobecker <brobecker@adacore.com>
4840
4841 GDB 9.2 released.
4842
eca1f90c
TT
48432020-05-23 Tom Tromey <tom@tromey.com>
4844
4845 * NEWS: Add entry for completion styling.
4846 * completer.c (_rl_completion_prefix_display_length): Move
4847 declaration earlier.
4848 (gdb_fnprint): Use completion_style.
4849 (gdb_display_match_list_1): Likewise.
4850 * cli/cli-style.c (completion_prefix_style)
4851 (completion_difference_style, completion_suffix_style): New
4852 globals.
4853 (_initialize_cli_style): Register new globals.
4854 * cli/cli-style.h (completion_prefix_style)
4855 (completion_difference_style, completion_suffix_style): Declare.
4856
51e2cfa2
PA
48572020-05-23 Pedro Alves <palves@redhat.com>
4858
4859 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4860 (parse_escape): Use ISDIGIT instead of isdigit.
4861 (puts_debug): Use gdb_isprint instead of isprint.
4862 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4863 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4864 ISSPACE instead of isspace.
4865 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4866 instead of isspace.
4867 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4868 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4869 instead of isxdigit and ISDIGIT instead of isdigit.
4870
80fc5e77
SM
48712020-05-22 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * gdbtypes.h (struct type) <field>: New method.
4874 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4875 or type::field.
4876
3cabb6b0
SM
48772020-05-22 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4880 (TYPE_FIELDS): Use type::fields. Change all call sites that
4881 modify the propery to use type::set_fields instead.
4882
1f704f76
SM
48832020-05-22 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4886 type::num_fields instead.
4887
5e33d5f4
SM
48882020-05-22 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4891 methods.
4892 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4893 that modify the number of fields to use type::set_num_fields
4894 instead.
4895
9392ebb3
TT
48962020-05-22 Tom Tromey <tromey@adacore.com>
4897
4898 * compile/compile-object-load.h (munmap_list_free): Don't
4899 declare.
4900
7c13f4e8
AB
49012020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * annotate.c (annotate_source_line): Update return type, add call
4904 to update current symtab and line.
4905 * annotate.h (annotate_source_line): Update return type, and
4906 extend header comment.
4907 * source.c (info_line_command): Check annotation_level before
4908 calling annotate_source_line.
4909 * stack.c (print_frame_info): If calling annotate_source_line
4910 returns true, then don't print any other source line information.
4911
aa370940
SM
49122020-05-21 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4915
84d53fa9
SM
49162020-05-21 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * coffread.c (patch_type): Remove NULL check before xfree.
4919 * corefile.c (set_gnutarget): Likewise.
4920 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4921 * exec.c (build_section_table): Likewise.
4922 * remote.c (remote_target::pass_signals): Likewise.
4923 * utils.c (n_spaces): Likewise.
4924 * cli/cli-script.c (document_command): Likewise.
4925 * i386-windows-tdep.c (core_process_module_section): Likewise.
4926 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4927
9d428aae
SM
49282020-05-20 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * symfile.c (reread_symbols): Clear objfile's section_offsets
4931 vector and section indices, re-compute them by calling
4932 sym_offsets.
4933
250106a7
TT
49342020-05-20 Tom Tromey <tromey@adacore.com>
4935
4936 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4937 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4938
9a0bacfb
TV
49392020-05-20 Tom de Vries <tdevries@suse.de>
4940
4941 PR symtab/25833
4942 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4943
7b958a48
AM
49442020-05-20 Alan Modra <amodra@gmail.com>
4945
4946 PR 25993
4947 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4948 bfd_set_filename.
4949 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4950 passed to bfd_set_filename.
4951 * symfile-mem.c (add_vsyscall_page): Likewise for string
4952 passed to symbol_file_add_from_memory.
4953 (symbol_file_add_from_memory): Make name param a const char* and
4954 don't strdup.
4955
c7e97679
AM
49562020-05-20 Alan Modra <amodra@gmail.com>
4957
4958 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4959 rather than accessing bfd->filename directly.
4960 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4961 and use bfd_section_name.
4962 * dwarf2/frame.c (decode_frame_entry): Likewise.
4963 * exec.c (exec_set_section_address): Likewise.
4964 * solib-aix.c (solib_aix_bfd_open): Likewise.
4965 * stap-probe.c (get_stap_base_address): Likewise.
4966 * symfile.c (reread_symbols): Likewise.
4967
563c591b
TT
49682020-05-19 Tom Tromey <tromey@adacore.com>
4969
4970 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4971
f408d82c
SM
49722020-05-19 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4975
98c59b52
PA
49762020-05-19 Pedro Alves <palves@redhat.com>
4977
4978 * NEWS (set exec-file-mismatch): Adjust entry.
4979 * exec.c: Include "build-id.h".
4980 (validate_exec_file): Try to match build IDs instead of filenames.
4981 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4982 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4983 and pass down 'warn_if_slow'.
4984 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4985 gdb_bfd_open_closure to pass it down.
4986 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4987
4111f652
PA
49882020-05-19 Pedro Alves <palves@redhat.com>
4989
4990 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4991 * target.c (target_fileio_open_1): Rename to target_fileio_open
4992 and make extern. Use bool.
4993 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4994 (target_fileio_read_alloc_1): Adjust.
4995 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4996 (target_fileio_open_warn_if_slow): Delete declaration.
4997
ad80db5b
PA
49982020-05-19 Pedro Alves <palves@redhat.com>
4999
5000 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5001 Adjust all callers.
5002
1d6ce4d3
YS
50032020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5004
5005 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5006 whether disp is negative.
5007
9005fbbb
SM
50082020-05-19 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * symfile.h (struct symfile_segment_data)
5011 <~symfile_segment_data>: Remove.
5012 <segment_info>: Change to std::vector.
5013 * symfile.c (default_symfile_segments): Update.
5014 * elfread.c (elf_symfile_segments): Update.
5015
68b888ff
SM
50162020-05-19 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5019 <segments>: New.
5020 <segment_bases, segment_sizes>: Remove.
5021 * symfile.c (default_symfile_segments): Update.
5022 * elfread.c (elf_symfile_segments): Update.
5023 * remote.c (remote_target::get_offsets): Update.
5024 * solib-target.c (solib_target_relocate_section_addresses):
5025 Update.
5026
62982abd
SM
50272020-05-19 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * symfile.h (struct symfile_segment_data): Initialize fields.
5030 <~symfile_segment_data>: Add.
5031 (symfile_segment_data_up): New.
5032 (struct sym_fns) <sym_segments>: Return a
5033 symfile_segment_data_up.
5034 (default_symfile_segments): Return a symfile_segment_data_up.
5035 (free_symfile_segment_data): Remove.
5036 (get_symfile_segment_data): Return a symfile_segment_data_up.
5037 * symfile.c (default_symfile_segments): Likewise.
5038 (get_symfile_segment_data): Likewise.
5039 (free_symfile_segment_data): Remove.
5040 (symfile_find_segment_sections): Update.
5041 * elfread.c (elf_symfile_segments): Return a
5042 symfile_segment_data_up.
5043 * remote.c (remote_target::get_offsets): Update.
5044 * solib-target.c (solib_target_relocate_section_addresses):
5045 Update.
5046 * symfile-debug.c (debug_sym_segments): Return a
5047 symfile_segment_data_up.
5048
7f204339
RO
50492020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5050
e52a0f1b
RO
5051 PR build/25981
5052 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5053 Hardcode register numbers.
5054
7f204339
RO
5055 PR build/25981
5056 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5057 procfs_find_LDT_entry): Remove.
5058 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5059 procfs_find_LDT_entry): Remove.
5060 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5061 Remove.
5062
7f32a4d5
PA
50632020-05-17 Pedro Alves <palves@redhat.com>
5064 Andrew Burgess <andrew.burgess@embecosm.com>
5065 Keno Fischer <keno@juliacomputing.com>
5066
5067 PR gdb/25741
5068 * breakpoint.c (build_target_condition_list): Update comments.
5069 (build_target_command_list): Update comments and skip matching
5070 locations.
5071 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5072 a separate function. Simplify "set breakpoint auto-hw off"
5073 handling.
5074 (insert_breakpoints): Update comment.
5075 (tracepoint_locations_match): New parameter. For breakpoints,
5076 compare location types too, if the caller wants to.
5077 (handle_automatic_hardware_breakpoints): New functions.
5078 (bp_location_is_less_than): Also sort by location type and
5079 hardware breakpoint length.
5080 (update_global_location_list): Handle "set breakpoint auto-hw on"
5081 here.
5082 (update_breakpoint_locations): Ask breakpoint_locations_match to
5083 ignore location types.
5084
7d93a1e0
SM
50852020-05-16 Simon Marchi <simon.marchi@efficios.com>
5086
5087 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5088 type::name instead.
5089
d0e39ea2
SM
50902020-05-16 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * gdbtypes.h (struct type) <name, set_name>: New methods.
5093 (TYPE_CODE): Use type::name. Change all call sites used to set
5094 the name to use type::set_name instead.
5095
2dab0c7b
TT
50962020-05-16 Tom Tromey <tom@tromey.com>
5097
5098 * top.c (quit_force): Update.
5099 * infrun.c (handle_no_resumed): Update.
5100 * top.h (all_uis): New function.
5101 (ALL_UIS): Remove.
5102
59f7bd8d
SM
51032020-05-16 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5106
9bf058f0
PA
51072020-05-16 Pedro Alves <palves@redhat.com>
5108
5109 * ia64-linux-nat.c
5110 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5111 Declare method.
5112 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5113
8f86ae1a
SM
51142020-05-15 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5117 (sparc64_adi_info): Likewise.
5118
d6bc0792
TT
51192020-05-15 Tom Tromey <tom@tromey.com>
5120
5121 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5122 block_objfile.
5123 (lookup_objfile_from_block): Remove.
5124 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5125 (lookup_global_symbol): Use block_objfile.
5126 * symtab.h (lookup_objfile_from_block): Don't declare.
5127 * printcmd.c (clear_dangling_display_expressions): Use
5128 block_objfile.
5129 * parse.c (operator_check_standard): Use block_objfile.
5130
8c14c3a3
TT
51312020-05-15 Tom Tromey <tom@tromey.com>
5132
5133 * language.c (language_alloc_type_symbol): Set
5134 SYMBOL_SECTION.
5135 * symtab.c (initialize_objfile_symbol): Remove.
5136 (allocate_symbol): Remove.
5137 (allocate_template_symbol): Remove.
5138 * dwarf2/read.c (fixup_go_packaging): Use "new".
5139 (new_symbol): Use "new".
5140 (read_variable): Don't call initialize_objfile_symbol. Use
5141 "new".
5142 (read_func_scope): Use "new".
5143 * xcoffread.c (process_xcoff_symbol): Don't call
5144 initialize_objfile_symbol.
5145 (SYMBOL_DUP): Remove.
5146 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5147 "new".
5148 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5149 (allocate_template_symbol): Don't declare.
5150 (struct symbol): Add copy constructor. Change defaults.
5151 * jit.c (finalize_symtab): Use "new".
5152 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5153 Use "new".
5154 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5155 (common_block_end): Use "new".
5156 * mdebugread.c (parse_symbol): Use "new".
5157 (new_symbol): Likewise.
5158
5b4a1a8d
PW
51592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5160
5161 * NEWS: Mention changes to help and apropos.
5162
57b4f16e
PW
51632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164
5165 * command.h (enum command_class): Improve comments, document
5166 that class_alias is for user-defined aliases, give the class
5167 name for each class, remove unused class_xdb.
5168 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5169 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5170 by a precise class.
5171 * infcmd.c (_initialize_infcmd): Likewise.
5172 * reverse.c (_initialize_reverse): Likewise.
5173 * stack.c (_initialize_stack): Likewise.
5174 * symfile.c (_initialize_symfile): Likewise.
5175 * tracepoint.c (_initialize_tracepoint): Likewise.
5176
7c05caf7
PW
51772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5178
5179 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5180 when their aliased command is traversed.
5181 (help_cmd): Add fput_command_names_styled call to
5182 output command name and aliases when command has an alias.
5183
3b3aaacb
PW
51842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5185
5186 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5187 * cli/cli-decode.c (help_cmd_list): Declare as static,
5188 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5189 a command together with the command.
5190 (fput_command_name_styled, fput_command_names_styled): New functions.
5191 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5192 fput_command_name_styled.
5193 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5194 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5195
7aa1b46f
PW
51962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5197
5198 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5199 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5200 * command.h (cmd_show_list): Likewise.
5201 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5202 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5203
89bcba74
PW
52042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5205
5206 * unittests/command-def-selftests.c (traverse_command_structure):
5207 Verify all commands of a list have the same prefix command and
5208 that only the top cmdlist commands have a null prefix.
5209
3f4d92eb
PW
52102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5211
5212 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5213 as prefix, not one of its aliases.
5214 (set_cmd_prefix): Remove.
5215 (do_add_cmd): Centralize the setting of the prefix of a command, when
5216 command is defined after its full chain of prefix commands.
5217 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5218 (add_setshow_cmd_full): Likewise.
5219 (update_prefix_field_of_prefixed_commands): New function.
5220 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5221 update_prefix_field_of_prefixed_commands.
5222 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5223 addresses of remote_set_cmdlist and remote_show_cmdlist given
5224 as argument, not the address of an argument.
5225 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5226 * gdb/remote.c (_initialize_remote): Likewise.
5227
0605465f
PW
52282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5229
5230 * cli/cli-cmds.c (alias_command): Check for an existing alias
5231 using lookup_cmd_composition, as valid_command_p is too strict
5232 and forbids aliases that are the prefix of an existing alias
5233 or command.
5234 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5235 command is properly recognised as a valid command.
5236
58e6ac70
PW
52372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5238
5239 * unittests/help-doc-selftests.c: Rename to
5240 unittests/command-def-selftests.c
5241 * unittests/command-def-selftests.c (help_doc_tests): Update some
5242 comments.
5243 (command_structure_tests, traverse_command_structure): New namespace
5244 and function.
5245 (command_structure_invariants_tests): New function.
5246 (_initialize_command_def_selftests) Renamed from
5247 _initialize_help_doc_selftests, register command_structure_invariants
5248 selftest.
5249
a7b9ceb8
PW
52502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251
5252 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5253 an alias of 'show'.
5254
b2188a06
JB
52552020-05-15 Joel Brobecker <brobecker@adacore.com>
5256
5257 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5258 ada_is_fixed_point_type. Update all callers.
5259 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5260 all callers.
5261 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5262 Update all callers.
5263 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5264 print_fixed_point_type. Update all callers.
5265 * ada-valprint.c (ada_value_print_num): Replace call to
5266 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5267
a51951c2
KB
52682020-05-14 Kevin Buettner <kevinb@redhat.com>
5269
5270 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5271 processors.
5272 (cpu_supports_bts): Add CV_AMD case.
5273
29d6859f
LM
52742020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5275 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * infrun.c (stop_all_threads): Collect multiple wait events at
5278 each pass.
5279
78134374
SM
52802020-05-14 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5283 type::code instead.
5284
67607e24
SM
52852020-05-14 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (struct type) <code, set_code>: New methods.
5288 (TYPE_CODE): Use type::code. Change all call sites used to set
5289 the code to use type::set_code instead.
5290
a05575d3
TBA
52912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5292 Tom de Vries <tdevries@suse.de>
5293 Pedro Alves <palves@redhat.com>
5294
5295 PR threads/25478
5296 * infrun.c (stop_all_threads): Do NOT ignore
5297 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5298 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5299 received.
5300 (handle_no_resumed): Remove code handling a live inferior with no
5301 threads.
5302 * remote.c (has_single_non_exited_thread): New.
5303 (remote_target::update_thread_list): Do not delete a thread if is
5304 the last thread of the process.
5305 * thread.c (thread_select): Call delete_exited_threads instead of
5306 prune_threads.
5307
6ad82919
TBA
53082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5309
5310 * infrun.c (stop_all_threads): Enable/disable thread events of all
5311 targets. Move a debug message denoting the end of the function
5312 into the SCOPED_EXIT block.
5313
d890404b
TBA
53142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5315
5316 * process-stratum-target.h: Include <set>.
5317 (all_non_exited_process_targets, switch_to_target_no_thread): New
5318 function declarations.
5319 * process-stratum-target.c (all_non_exited_process_targets)
5320 (switch_to_target_no_thread): New function implementations.
5321
293b3ebc
TBA
53222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5323
5324 * infrun.c (handle_inferior_event): Extract out a piece of code
5325 into...
5326 (mark_non_executing_threads): ...this new function.
5327
7ca9b62a
TBA
53282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5331 use.
5332
fc75c28b
TBA
53332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5334
5335 * regcache.c (regcache_read_pc_protected): New function
5336 implementation that returns 0 if the PC cannot read via
5337 'regcache_read_pc'.
5338 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5339 instead of 'regcache_read_pc'.
5340 (keep_going_pass_signal): Ditto.
5341
a89febbd
TT
53422020-05-13 Tom Tromey <tromey@adacore.com>
5343
5344 * ada-lang.c (align_value): Remove.
5345 (ada_template_to_fixed_record_type_1): Use align_up.
5346
f7e23710
TBA
53472020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5348
5349 * async-event.c: Update the copyright year.
5350 * async-event.h: Update the copyright year.
5351
02ff80c2
SM
53522020-05-12 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * objfiles.h (is_addr_in_objfile,
5355 shared_objfile_contains_address_p): Return bool.
5356 * objfile.c (is_addr_in_objfile,
5357 shared_objfile_contains_address_p): Return bool.
5358
4fd6c7e8
TT
53592020-05-11 Tom Tromey <tromey@adacore.com>
5360
5361 * cli/cli-cmds.c (info_command): Restore.
5362 (_initialize_cli_cmds): Use add_prefix_command for "info".
5363 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5364
5eb68a39
TT
53652020-05-11 Tom Tromey <tromey@adacore.com>
5366
5367 * ada-lang.c (ada_value_primitive_field): Now public.
5368 * ada-lang.h (ada_value_primitive_field): Declare.
5369 * ada-valprint.c (print_field_values): Use
5370 ada_value_primitive_field for wrapper fields.
5371
7666722f
TV
53722020-05-11 Tom de Vries <tdevries@suse.de>
5373
5374 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5375 MODULE_DOMAIN.
5376
3ee6bb11
TV
53772020-05-11 Tom de Vries <tdevries@suse.de>
5378
5379 PR symtab/25941
5380 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5381 with length 0, if not gdb-produced.
5382 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5383
43434996
TV
53842020-05-09 Tom de Vries <tdevries@suse.de>
5385
5386 PR gdb/25955
5387 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5388 calculation.
5389
2f78cffc
TT
53902020-05-09 Tom Tromey <tom@tromey.com>
5391
5392 * top.c (server_command): Now bool.
5393 * top.h (server_command): Now bool.
5394
4f7bc5ed
TT
53952020-05-08 Tom Tromey <tromey@adacore.com>
5396
5397 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5398 already being processed.
5399
8be4b118
TT
54002020-05-08 Tom Tromey <tom@tromey.com>
5401
5402 * printcmd.c (struct display) <next>: Remove.
5403 <display>: New constructor.
5404 <exp_string>: Now a std::string.
5405 <enabled_p>: Now a bool.
5406 (display_number): Move definition earlier.
5407 (displays): Rename from display_chain. Now a std::vector.
5408 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5409 (display_command): Update.
5410 (do_one_display, disable_display)
5411 (enable_disable_display_command, do_enable_disable_display):
5412 Update.
5413 (free_display): Remove.
5414 (clear_displays): Rewrite.
5415 (delete_display): Update.
5416 (map_display_numbers): Use function_view. Remove "data"
5417 parameter. Update.
5418 (do_delete_display): Remove.
5419 (undisplay_command): Update.
5420 (do_one_display, do_displays, disable_display)
5421 (info_display_command): Update.
5422 (do_enable_disable_display): Remove.
5423 (enable_disable_display_command)
5424 (clear_dangling_display_expressions): Update.
5425
94c93c35
TT
54262020-05-08 Tom Tromey <tom@tromey.com>
5427
5428 * symtab.c (set_symbol_cache_size)
5429 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5430 (maintenance_print_symbol_cache_statistics): Update.
5431 * symmisc.c (print_symbol_bcache_statistics)
5432 (print_objfile_statistics, maintenance_print_objfiles)
5433 (maintenance_info_symtabs, maintenance_check_symtabs)
5434 (maintenance_expand_symtabs, maintenance_info_line_tables):
5435 Update.
5436 * symfile-debug.c (set_debug_symfile): Update.
5437 * source.c (forget_cached_source_info): Update.
5438 * python/python.c (gdbpy_progspaces): Update.
5439 * psymtab.c (maintenance_info_psymtabs): Update.
5440 * probe.c (parse_probes): Update.
5441 * linespec.c (iterate_over_all_matching_symtabs)
5442 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5443 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5444 * exec.c (exec_target::close): Update.
5445 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5446 * breakpoint.c (print_one_breakpoint_location)
5447 (create_longjmp_master_breakpoint)
5448 (create_std_terminate_master_breakpoint): Update.
5449 * progspace.c (program_spaces): Now a std::vector.
5450 (maybe_new_address_space): Update.
5451 (add_program_space): Remove.
5452 (program_space::program_space): Update.
5453 (remove_program_space): Update.
5454 (number_of_program_spaces): Remove.
5455 (print_program_space, update_address_spaces): Update.
5456 * progspace.h (program_spaces): Change type.
5457 (ALL_PSPACES): Remove.
5458 (number_of_program_spaces): Don't declare.
5459 (struct program_space) <next>: Remove.
5460
a1fd1ac9
TT
54612020-05-08 Tom Tromey <tom@tromey.com>
5462
5463 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5464 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5465 (enable_break): Update.
5466 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5467 (frv_fdpic_find_canonical_descriptor): Update.
5468 (frv_fetch_objfile_link_map): Update.
5469 * progspace.c (program_space::free_all_objfiles): Update.
5470 (program_space::solibs): New method.
5471 * progspace.h (struct program_space) <solibs>: New method.
5472 * solist.h (master_so_list): Don't declare.
5473 (ALL_SO_LIBS): Remove.
5474 * solib.h (so_list_head): Remove.
5475 (update_solib_list): Update comment.
5476 * solib.c (master_so_list): Remove.
5477 (solib_used, update_solib_list, solib_add)
5478 (info_sharedlibrary_command, clear_solib)
5479 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5480
38eae084
TT
54812020-05-08 Tom Tromey <tom@tromey.com>
5482
5483 * extension.c (extension_languages): Now a std::array.
5484 (ALL_EXTENSION_LANGUAGES): Remove.
5485 (get_ext_lang_defn, get_ext_lang_of_file)
5486 (eval_ext_lang_from_control_command): Update.
5487 (finish_ext_lang_initialization)
5488 (auto_load_ext_lang_scripts_for_objfile)
5489 (ext_lang_type_printers::ext_lang_type_printers)
5490 (apply_ext_lang_type_printers)
5491 (ext_lang_type_printers::~ext_lang_type_printers)
5492 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5493 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5494 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5495 (get_matching_xmethod_workers, ext_lang_colorize)
5496 (ext_lang_before_prompt): Update.
5497 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5498
596dc4ad
TT
54992020-05-08 Tom Tromey <tom@tromey.com>
5500
5501 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5502 overload.
5503 <swap_string, m_string>: Remove.
5504 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5505 Update.
5506 * stabsread.c (define_symbol, read_type): Update.
5507 * linespec.c (find_linespec_symbols): Update.
5508 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5509 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5510 * dbxread.c (read_dbx_symtab): Update.
5511 * cp-support.h (cp_canonicalize_string_full)
5512 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5513 Return unique_xmalloc_ptr.
5514 * cp-support.c (inspect_type): Update.
5515 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5516 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5517 Likewise.
5518 * c-typeprint.c (print_name_maybe_canonical): Update.
5519 * break-catch-throw.c (check_status_exception_catchpoint):
5520 Update.
5521
bf4cb9be
TV
55222020-05-08 Tom de Vries <tdevries@suse.de>
5523
5524 * infrun.c (follow_fork): Copy current_line and current_symtab to
5525 child thread.
5526
a1b68f28
SM
55272020-05-07 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * async-event.c (struct async_signal_handler, struct
5530 async_event_handler): Reformat, remove typedef.
5531
98d48915
SM
55322020-05-07 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5535 access thistype->main_type->dyn_prop_list directly.
5536
7aa91313
SM
55372020-05-07 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5540 (remove_dyn_prop): Remove. Update all users to use
5541 type::remove_dyn_prop.
5542 * gdbtypes.c (remove_dyn_prop): Rename to...
5543 (type::remove_dyn_prop): ... this.
5544
5c54719c
SM
55452020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5546
5547 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5548 (add_dyn_prop): Remove. Update all users to use
5549 type::add_dyn_prop.
5550 * gdbtypes.c (add_dyn_prop): Rename to...
5551 (type::add_dyn_prop): ... this.
5552
24e99c6c
SM
55532020-05-07 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5556 (get_dyn_prop): Remove. Update all users to use
5557 type::dyn_prop.
5558 * gdbtypes.c (get_dyn_prop): Rename to...
5559 (type::dyn_prop): ... this.
5560
0d4bf016
SM
55612020-05-06 Simon Marchi <simon.marchi@efficios.com>
5562
5563 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5564
ac4a4f1c
SM
55652020-05-06 Simon Marchi <simon.marchi@efficios.com>
5566
5567 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5568 instruction, skip it if it's there.
5569
a3bbacc1
SM
55702020-05-05 Simon Marchi <simon.marchi@efficios.com>
5571
5572 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5573
c3236f84
SM
55742020-05-04 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5577 * gdbtypes.c (recursive_dump_type): Remove use of
5578 TYPE_INCOMPLETE.
5579
3b6acaee
TT
55802020-05-03 Tom Tromey <tom@tromey.com>
5581
5582 * breakpoint.c (catch_command, tcatch_command): Remove.
5583 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5584 add_show_prefix_cmd.
5585 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5586 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5587 Remove.
5588 (add_internal_problem_command): Use add_basic_prefix_cmd,
5589 add_show_prefix_cmd.
5590 * mips-tdep.c (set_mipsfpu_command): Remove.
5591 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5592 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5593 (_initialize_index_cache): Use add_basic_prefix_cmd.
5594 * memattr.c (dummy_cmd): Remove.
5595 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5596 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5597 (_initialize_tui_win): Use add_basic_prefix_cmd,
5598 add_show_prefix_cmd.
5599 * cli/cli-logging.c (set_logging_command): Remove.
5600 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5601 add_show_prefix_cmd.
5602 (show_logging_command): Remove.
5603 * target.c (target_command): Remove.
5604 (add_target): Use add_basic_prefix_cmd.
5605
a51119cd
HD
56062020-05-02 Hannes Domani <ssbssa@yahoo.de>
5607
5608 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5609
652fc23a 56102020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5611
652fc23a
PW
5612 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5613 info_command.
5614
117539e6
KR
56152020-04-30 Kamil Rytarowski <n54@gmx.com>
5616
5617 * nbsd-nat.c (nbsd_enable_proc_events)
5618 (nbsd_nat_target::post_startup_inferior): Add.
5619 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5620 (nbsd_nat_target::update_thread_list): Rewrite.
5621 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5622 "PTRACE_LWP_CREATE".
5623 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5624
102e38eb 56252020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5626
102e38eb
PW
5627 * stack.c (_initialize_stack): Remove duplicated creation
5628 of "frame" command and "f" alias.
5629
ee9d1e5f
HD
56302020-04-30 Hannes Domani <ssbssa@yahoo.de>
5631
5632 PR gdb/18706
5633 * gdbtypes.c (check_typedef): Calculate size of array of
5634 stubbed type.
5635
627c7fb8
HD
56362020-04-30 Hannes Domani <ssbssa@yahoo.de>
5637
5638 PR gdb/15559
5639 * i386-tdep.c (i386_push_dummy_call): Call
5640 i386_thiscall_push_dummy_call.
5641 (i386_thiscall_push_dummy_call): New function.
5642 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5643 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5644 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5645
ffc2844e
SM
56462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * gdbarch.sh (do_read): Add shellcheck disable directive for
5649 warning SC2162.
5650
1207375d
SM
56512020-04-29 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5654 "referenced but not assigned" warning.
5655
9fdb2916
SM
56562020-04-29 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * gdbarch.sh: Remove code that sets fallbackdefault.
5659
759cea5e
SM
56602020-04-29 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbarch.sh: Use shell operators && and || instead of
5663 -a and -o.
5664
cb02ab24
SM
56652020-04-29 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbarch.sh: Use $(...) instead of `...`.
5668
a6fc5ffc
SM
56692020-04-29 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * gdbarch.sh: Use double quotes around variables.
5672
8d113d13
SM
56732020-04-29 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbarch.sh: Use %s with printf, instead of variables in the
5676 format string.
5677
ed6acedd
TT
56782020-04-29 Tom Tromey <tromey@adacore.com>
5679
5680 PR ada/25875:
5681 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5682 type fields here.
5683 (read_enumeration_type): Call
5684 update_enumeration_type_from_children later. Update comments.
5685 (process_enumeration_scope): Don't create type fields.
5686
b68b1b58
KR
56872020-04-29 Kamil Rytarowski <n54@gmx.com>
5688
5689 * nbsd-tdep.c: Include "xml-syscall.h".
5690 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5691
f94b2e03
KR
56922020-04-29 Kamil Rytarowski <n54@gmx.com>
5693
5694 * nbsd-nat.c: Include "sys/wait.h".
5695 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5696 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5697 (nbsd_nat_target::remove_exec_catchpoint)
5698 (nbsd_nat_target::set_syscall_catchpoint): Add.
5699 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5700 (nbsd_nat_target::insert_exec_catchpoint)
5701 (nbsd_nat_target::remove_exec_catchpoint)
5702 (nbsd_nat_target::set_syscall_catchpoint): Add.
5703 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5704 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5705 `nbsd_get_syscall_number'.
5706
fc49bc72
TT
57072020-04-29 Tom Tromey <tom@tromey.com>
5708
5709 * stack.c (print_block_frame_labels): Remove.
5710
d642b692
HD
57112020-04-29 Hannes Domani <ssbssa@yahoo.de>
5712
5713 PR gdb/17320
5714 * ada-valprint.c (val_print_packed_array_elements): Move array
5715 end bracket to new line.
5716 (ada_val_print_string): Remove extra spaces before first array
5717 element.
5718 * c-valprint.c (c_value_print_array): Likewise.
5719 * m2-valprint.c (m2_print_array_contents): Likewise.
5720 (m2_value_print_inner): Likewise.
5721 * p-valprint.c (pascal_value_print_inner): Likewise.
5722 * valprint.c (generic_val_print_array): Likewise.
5723 (value_print_array_elements): Move first array element and array
5724 end bracket to new line.
5725
ea90f227
TV
57262020-04-29 Tom de Vries <tdevries@suse.de>
5727
5728 PR symtab/25889
5729 * linespec.c (find_method): Fix ix calculation.
5730
4498ef4f
KR
57312020-04-28 Kamil Rytarowski <n54@gmx.com>
5732
5733 * syscalls/update-netbsd.sh: New file.
5734 * syscalls/netbsd.xml: Regenerate.
5735 * data-directory/Makefile.in: Register `netbsd.xml' in
5736 `SYSCALLS_FILES'.
5737
a55e30b5
SM
57382020-04-28 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * syscalls/update-freebsd.sh: Add double quotes.
5741
2b2fbab8
TT
57422020-04-28 Tom Tromey <tom@tromey.com>
5743
5744 * NEWS: Update.
5745 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5746 (cmdpy_init): Allow class_tui.
5747
a65189c9
TV
57482020-04-28 Mark Williams <mark@myosotissp.com>
5749
5750 PR gdb/24480
5751 * dwarf2read.c: Add missing assingments to list_in_scope when
5752 start_symtab was already called.
5753
1b95cdb7
SM
57542020-04-28 Simon Marchi <simon.marchi@efficios.com>
5755
5756 PR gdb/25881
5757 * dwarf2/read.c (offset_map_type): Use
5758 gdb:hash_enum<sect_offset> as hash function.
5759
15cd93d0
TV
57602020-04-28 Tom de Vries <tdevries@suse.de>
5761
5762 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5763 with DW_AT_signature.
5764
1eb39914
SM
57652020-04-27 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * configure.ac: Remove check for fs_base/gs_base in
5768 user_regs_struct.
5769 * configure: Re-generate.
5770 * config.in: Re-generate.
5771 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5772 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5773 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5774
991a3e2e
LM
57752020-04-27 Luis Machado <luis.machado@linaro.org>
5776
5777 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5778 problematic inline frame unwinding situation.
5779 * frame.c (frame_id_computed_p): New function.
5780 * frame.h (frame_id_computed_p): New prototype.
5781
361ba0e8
TT
57822020-04-26 Tom Tromey <tom@tromey.com>
5783
5784 * command.h (enum command_class) <class_pseudo>: Remove.
5785
bc3609fd
PW
57862020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5787
5788 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5789 and whitespace.
5790
b9771db7
KR
57912020-04-25 Kamil Rytarowski <n54@gmx.com>
5792
ec16513e
SM
5793 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5794 `PT_GET_PROCESS_STATE' block.
b9771db7 5795
7151c1af
TT
57962020-04-24 Tom Tromey <tom@tromey.com>
5797
5798 * symtab.h (symbol_get_demangled_name): Don't declare.
5799 * symtab.c (symbol_get_demangled_name): Remove.
5800 (general_symbol_info::natural_name)
5801 (general_symbol_info::demangled_name): Update.
5802
906bb4c5
TT
58032020-04-24 Tom Tromey <tom@tromey.com>
5804
5805 PR rust/25025:
5806 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5807
bcfe6157
TT
58082020-04-24 Tom Tromey <tom@tromey.com>
5809
5810 PR symtab/12707:
5811 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5812 exists.
5813 (new_symbol): Likewise.
5814 * compile/compile-object-load.c (get_out_value_type): Use
5815 symbol_matches_search_name.
5816
f049a313
TT
58172020-04-24 Tom Tromey <tom@tromey.com>
5818
5819 * dwarf2/read.c (add_partial_symbol): Do not call
5820 compute_and_set_names.
5821
76e288d1
TT
58222020-04-24 Tom Tromey <tom@tromey.com>
5823
5824 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5825 overload.
5826
2467f4f6
TT
58272020-04-24 Tom Tromey <tom@tromey.com>
5828
5829 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5830 (add_psymbol_to_list): New overload. Make old overload call new
5831 one.
5832 * psympriv.h (add_psymbol_to_list): New overload.
5833
e61108c9
TT
58342020-04-24 Tom Tromey <tom@tromey.com>
5835
5836 * dwarf2/read.c (partial_die_info::read) <case
5837 DW_AT_linkage_name>: Use value_as_string.
5838 (dwarf2_string_attr): Use value_as_string.
5839 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5840 method.
5841 * dwarf2/attribute.c (attribute::value_as_string): New method.
5842
8c87a452
TT
58432020-04-24 Tom Tromey <tom@tromey.com>
5844
5845 * symtab.c (general_symbol_info::natural_name)
5846 (general_symbol_info::demangled_name): Check for language_rust.
5847
787de330
TT
58482020-04-24 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5851 (dwarf2_physname): ... from here.
5852 (partial_die_info::read): Add Rust "{" hack.
5853
ff985671
TT
58542020-04-24 Tom Tromey <tom@tromey.com>
5855
5856 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5857 method.
5858 (symbol_set_demangled_name): Don't declare.
5859 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5860 symbol_set_demangled_name.
5861 (general_symbol_info::set_language)
5862 (general_symbol_info::compute_and_set_names): Update.
5863 * minsyms.c (minimal_symbol_reader::install): Update.
5864 * dwarf2/read.c (new_symbol): Update.
5865
1acda803
TT
58662020-04-24 Tom Tromey <tromey@adacore.com>
5867
5868 PR python/23662:
5869 * python/py-type.c (convert_field): Handle
5870 FIELD_LOC_KIND_DWARF_BLOCK.
5871 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5872 (typy_get_dynamic): Nw function.
5873 (type_object_getset): Add "dynamic".
5874 * NEWS: Add entry.
5875
d656f129
TT
58762020-04-24 Tom Tromey <tromey@adacore.com>
5877
5878 * ada-typeprint.c (print_choices, print_variant_part)
5879 (print_record_field_types_dynamic): New functions.
5880 (print_record_field_types): Use print_record_field_types_dynamic.
5881
7d79de9a
TT
58822020-04-24 Tom Tromey <tromey@adacore.com>
5883
5884 * dwarf2/read.c (handle_data_member_location): New overload.
5885 (dwarf2_add_field): Use it.
5886 (decode_locdesc): Add "computed" parameter. Update comment.
5887 * gdbtypes.c (is_dynamic_type_internal): Also look for
5888 FIELD_LOC_KIND_DWARF_BLOCK.
5889 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5890 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5891 virtual base classes.
5892 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5893 FIELD_LOC_KIND_DWARF_BLOCK.
5894
f8e89861
TT
58952020-04-24 Tom Tromey <tromey@adacore.com>
5896
5897 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5898 * gdbtypes.c (is_dynamic_type_internal): Check
5899 TYPE_HAS_DYNAMIC_LENGTH.
5900 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5901 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5902 New macros.
5903 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5904 constant.
5905
9c6a1327
TT
59062020-04-24 Tom Tromey <tromey@adacore.com>
5907
5908 * dwarf2/read.c (struct variant_field): Rewrite.
5909 (struct variant_part_builder): New.
5910 (struct nextfield): Remove "variant" field. Add "offset".
5911 (struct field_info): Add "current_variant_part" and
5912 "variant_parts".
5913 (alloc_discriminant_info): Remove.
5914 (alloc_rust_variant): New function.
5915 (quirk_rust_enum): Update.
5916 (dwarf2_add_field): Set "offset" member. Don't handle
5917 DW_TAG_variant_part.
5918 (offset_map_type): New typedef.
5919 (convert_variant_range, create_one_variant)
5920 (create_one_variant_part, create_variant_parts)
5921 (add_variant_property): New functions.
5922 (dwarf2_attach_fields_to_type): Call add_variant_property.
5923 (read_structure_type): Don't handle DW_TAG_variant_part.
5924 (handle_variant_part, handle_variant): New functions.
5925 (handle_struct_member_die): Use them.
5926 (process_structure_scope): Don't handle variant parts.
5927 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5928 (struct discriminant_info): Remove.
5929 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5930 (struct main_type) <flag_discriminated_union>: Remove.
5931 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5932 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5933 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5934 Update.
5935 * valops.c (value_union_variant): Remove.
5936 * value.h (value_union_variant): Don't declare.
5937
b249d2c2
TT
59382020-04-24 Tom Tromey <tromey@adacore.com>
5939
5940 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5941 (ada_value_primitive_packed_val): Update.
5942 * ada-valprint.c (ada_value_print_1): Update.
5943 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5944 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5945 just an address. Use evaluate_for_locexpr_baton.
5946 (dwarf2_evaluate_property): Update.
5947 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5948 array_view.
5949 * findvar.c (default_read_var_value): Update.
5950 * gdbtypes.c (compute_variant_fields_inner)
5951 (resolve_dynamic_type_internal): Update.
5952 (resolve_dynamic_type): Change type of valaddr parameter.
5953 * gdbtypes.h (resolve_dynamic_type): Update.
5954 * valarith.c (value_subscripted_rvalue): Update.
5955 * value.c (value_from_contents_and_address): Update.
5956
61122aa9
TT
59572020-04-24 Tom Tromey <tromey@adacore.com>
5958
5959 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5960 "push_initial_value" parameter.
5961 (dwarf2_evaluate_property): Likewise.
5962 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5963
ef83a141
TT
59642020-04-24 Tom Tromey <tromey@adacore.com>
5965
5966 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5967 (variant::matches, compute_variant_fields_recurse)
5968 (compute_variant_fields_inner, compute_variant_fields): New
5969 functions.
5970 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5971 Use resolved_type after type is made.
5972 (operator==): Add new cases.
5973 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5974 (struct discriminant_range, struct variant, struct variant_part):
5975 New.
5976 (union dynamic_prop_data) <variant_parts, original_type>: New
5977 members.
5978 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5979 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5980 constants.
5981 * value.c (unpack_bits_as_long): Now public.
5982 * value.h (unpack_bits_as_long): Declare.
5983
675127ec
TT
59842020-04-24 Tom Tromey <tromey@adacore.com>
5985
5986 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5987 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5988
9852ceef
HD
59892020-04-24 Hannes Domani <ssbssa@yahoo.de>
5990
5991 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5992
7632c6ce
KR
59932020-04-24 Kamil Rytarowski <n54@gmx.com>
5994
5995 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5996 (remove_fork_catchpoint, post_startup_inferior)
5997 (post_attach): Move...
5998 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5999 (remove_fork_catchpoint, post_startup_inferior)
6000 (post_attach): ...here.
6001 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6002 (remove_fork_catchpoint, post_startup_inferior)
6003 (post_attach): Move...
6004 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6005 (remove_fork_catchpoint, post_startup_inferior)
6006 (post_attach): ...here.
6007
7be2bb4f
TT
60082020-04-24 Tom Tromey <tromey@adacore.com>
6009
6010 * nat/windows-nat.h (struct windows_thread_info)
6011 <pc_adjusted>: New member.
6012 * windows-nat.c (windows_fetch_one_register): Check
6013 pc_adjusted.
6014 (windows_nat_target::get_windows_debug_event)
6015 (windows_nat_target::wait): Set pc_adjusted.
6016
f80cb3b4
TV
60172020-04-24 Tom de Vries <tdevries@suse.de>
6018
6019 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6020 Run gdb-add-index inside temp dir.
6021
29514b87
TT
60222020-04-23 Tom Tromey <tromey@adacore.com>
6023
6024 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6025 in loop.
6026
5939967b
LM
60272020-04-23 Luis Machado <luis.machado@linaro.org>
6028
6029 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6030 get_frame_register instead of gdbarch_unwind_pc.
6031
70bc38f5
TV
60322020-04-23 Tom de Vries <tdevries@suse.de>
6033
6034 * symtab.c (lookup_global_symbol): Prefer def over decl.
6035
de82891c
TV
60362020-04-23 Tom de Vries <tdevries@suse.de>
6037
6038 PR symtab/25807
6039 * block.c (best_symbol, better_symbol): Promote to external.
6040 * block.h (best_symbol, better_symbol): Declare.
6041 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6042 decl.
6043
ecc6c606
TT
60442020-04-23 Tom Tromey <tromey@adacore.com>
6045
6046 PR ada/25837:
6047 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6048 "const char *", not a "const std::string &".
6049 <name_and_matcher::operator==>: Update.
6050 * unittests/lookup_name_info-selftests.c: Change type of
6051 "result".
6052
740480b8
TT
60532020-04-23 Tom Tromey <tom@tromey.com>
6054
6055 * inferior.h (iterate_over_inferiors): Don't declare.
6056 * inferior.c (iterate_over_inferiors): Remove.
6057 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6058 Remove.
6059 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6060 use iterate_over_inferiors.
6061 (darwin_resume_inferior_it)
6062 (struct resume_inferior_threads_param)
6063 (darwin_resume_inferior_threads_it): Remove.
6064 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6065
ae3ab1f0
TV
60662020-04-23 Tom de Vries <tdevries@suse.de>
6067
6068 * blockframe.c (find_pc_partial_function): Use
6069 find_pc_sect_compunit_symtab rather than
6070 objfile->sf->qf->find_pc_sect_compunit_symtab.
6071
317d2668
TV
60722020-04-22 Tom de Vries <tdevries@suse.de>
6073
6074 PR symtab/25764
6075 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6076 in psymtabs.
6077
eea9e357
TV
60782020-04-22 Tom de Vries <tdevries@suse.de>
6079
6080 PR symtab/25801
6081 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6082 symtabs.
6083
3d5afab3
TV
60842020-04-22 Tom de Vries <tdevries@suse.de>
6085
6086 PR symtab/25700
6087 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6088 CU if already created.
6089
d43b7a2d
TBA
60902020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6091
6092 * infrun.c (displaced_step_fixup): Switch to the event_thread
6093 before calling displaced_step_restore, not after.
6094
d89edf9b
MM
60952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6096
6097 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6098 its inferior is not recorded by us.
6099 (record_btrace_target_open): Replace call to
6100 all_non_exited_threads () with call to current_inferior
6101 ()->non_exited_threads ().
6102 (record_btrace_target::stop_recording): Likewise.
6103 (record_btrace_target::close): Likewise.
6104 (record_btrace_target::wait): Likewise.
6105 (record_btrace_target::record_stop_replaying): Likewise.
6106
5897fd49
MM
61072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6108
6109 * btrace.c (btrace_enable): Throw an error on double enables and
6110 when enabling recording fails.
6111 (btrace_disable): Throw an error if the thread is not recorded.
6112
1a476b6d
MM
61132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6114
6115 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6116 request if we do not have a thread_info.
6117
4778a5f8
TV
61182020-04-21 Tom de Vries <tdevries@suse.de>
6119
6120 PR gdb/25471
6121 * thread.c
6122 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6123 exception in get_frame_id.
6124
0fa7617d
TT
61252020-04-20 Tom Tromey <tromey@adacore.com>
6126
6127 * python/python.c (struct gdbpy_event): Mark move constructor as
6128 noexcept.
6129 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6130 constructor as noexcept.
6131 * completer.h (struct completion_result): Mark move constructor as
6132 noexcept.
6133 * completer.c (completion_result::completion_result): Use
6134 initialization style. Don't call reset_match_list.
6135
ad23bda0
MS
61362020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6137
6138 * MAINTAINERS (Write After Approval): Add myself.
6139
45e1f031
TT
61402020-04-18 Tom Tromey <tom@tromey.com>
6141
6142 * windows-tdep.c (init_w32_command_list)
6143 (w32_prefix_command_valid): Restore.
6144 (_initialize_windows_tdep): Call init_w32_command_list.
6145
08feed99
TT
61462020-04-18 Tom Tromey <tom@tromey.com>
6147
6148 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6149 * value.c (value_fn_field): Update.
6150 * valops.c (find_function_in_inferior)
6151 (value_allocate_space_in_inferior): Update.
6152 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6153 Update.
6154 * tui/tui-source.c (tui_source_window::set_contents): Update.
6155 * symtab.c (lookup_global_or_static_symbol)
6156 (find_function_start_sal_1, skip_prologue_sal)
6157 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6158 * symmisc.c (dump_msymbols, dump_symtab_1)
6159 (maintenance_print_one_line_table): Update.
6160 * symfile.c (init_entry_point_info, section_is_mapped)
6161 (list_overlays_command, simple_read_overlay_table)
6162 (simple_overlay_update_1): Update.
6163 * stap-probe.c (handle_stap_probe): Update.
6164 * stabsread.c (dbx_init_float_type, define_symbol)
6165 (read_one_struct_field, read_enum_type, read_range_type): Update.
6166 * source.c (info_line_command): Update.
6167 * python/python.c (gdbpy_source_objfile_script)
6168 (gdbpy_execute_objfile_script): Update.
6169 * python/py-type.c (save_objfile_types): Update.
6170 * python/py-objfile.c (py_free_objfile): Update.
6171 * python/py-inferior.c (python_new_objfile): Update.
6172 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6173 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6174 (maintenance_check_psymtabs): Update.
6175 * printcmd.c (info_address_command): Update.
6176 * objfiles.h (struct objfile) <arch>: New method, from
6177 get_objfile_arch.
6178 (get_objfile_arch): Don't declare.
6179 * objfiles.c (get_objfile_arch): Remove.
6180 (filter_overlapping_sections): Update.
6181 * minsyms.c (msymbol_is_function): Update.
6182 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6183 (output_nondebug_symbol): Update.
6184 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6185 (mdebug_expand_psymtab): Update.
6186 * machoread.c (macho_add_oso_symfile): Update.
6187 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6188 Update.
6189 * linux-fork.c (checkpoint_command): Update.
6190 * linespec.c (convert_linespec_to_sals): Update.
6191 * jit.c (finalize_symtab): Update.
6192 * infrun.c (insert_exception_resume_from_probe): Update.
6193 * ia64-tdep.c (ia64_find_unwind_table): Update.
6194 * hppa-tdep.c (internalize_unwinds): Update.
6195 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6196 Update.
6197 * gcore.c (call_target_sbrk): Update.
6198 * elfread.c (record_minimal_symbol, elf_symtab_read)
6199 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6200 (elf_gnu_ifunc_resolve_by_got): Update.
6201 * dwarf2/read.c (create_addrmap_from_index)
6202 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6203 (read_debug_names_from_section)
6204 (process_psymtab_comp_unit_reader, add_partial_symbol)
6205 (add_partial_subprogram, process_full_comp_unit)
6206 (read_file_scope, read_func_scope, read_lexical_block_scope)
6207 (read_call_site_scope, dwarf2_ranges_read)
6208 (dwarf2_record_block_ranges, dwarf2_add_field)
6209 (mark_common_block_symbol_computed, read_tag_pointer_type)
6210 (read_tag_string_type, dwarf2_init_float_type)
6211 (dwarf2_init_complex_target_type, read_base_type)
6212 (partial_die_info::read, partial_die_info::read)
6213 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6214 (dwarf2_fetch_die_loc_sect_off): Update.
6215 * dwarf2/loc.c (dwarf2_find_location_expression)
6216 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6217 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6218 (dwarf2_loc_desc_get_symbol_read_needs)
6219 (locexpr_describe_location_piece, locexpr_describe_location_1)
6220 (loclist_describe_location): Update.
6221 * dwarf2/index-write.c (write_debug_names): Update.
6222 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6223 * dtrace-probe.c (dtrace_process_dof): Update.
6224 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6225 (process_one_symbol): Update.
6226 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6227 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6228 (coff_read_enum_type): Update.
6229 * cli/cli-cmds.c (edit_command, list_command): Update.
6230 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6231 * breakpoint.c (create_overlay_event_breakpoint)
6232 (create_longjmp_master_breakpoint)
6233 (create_std_terminate_master_breakpoint)
6234 (create_exception_master_breakpoint, get_sal_arch): Update.
6235 * block.c (block_gdbarch): Update.
6236 * annotate.c (annotate_source_line): Update.
6237
0743fc83
TT
62382020-04-17 Tom Tromey <tromey@adacore.com>
6239
6240 * auto-load.c (show_auto_load_cmd): Remove.
6241 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6242 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6243 (maintenance_print_arc_command): Remove.
6244 * tui/tui-win.c (tui_command): Remove.
6245 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6246 * tui/tui-layout.c (tui_layout_command): Remove.
6247 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6248 * python/python.c (user_set_python, user_show_python): Remove.
6249 (_initialize_python): Use add_basic_prefix_cmd,
6250 add_show_prefix_cmd.
6251 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6252 (install_gdb_commands): Use add_basic_prefix_cmd,
6253 add_show_prefix_cmd.
6254 (info_guile_command): Remove.
6255 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6256 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6257 add_show_prefix_cmd.
6258 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6259 Remove do_set and do_show parameters.
6260 * cli/cli-style.c (set_style, show_style): Remove.
6261 (_initialize_cli_style): Use add_basic_prefix_cmd,
6262 add_show_prefix_cmd.
6263 (cli_style_option::add_setshow_commands): Remove do_set and
6264 do_show parameters.
6265 (cli_style_option::add_setshow_commands): Use
6266 add_basic_prefix_cmd, add_show_prefix_cmd.
6267 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6268 (set_style_name): Remove.
6269 * cli/cli-dump.c (dump_command, append_command): Remove.
6270 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6271 (tekhex_dump_command, binary_dump_command)
6272 (binary_append_command): Remove.
6273 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6274 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6275 (init_w32_command_list): Remove; move into ...
6276 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6277 * valprint.c (set_print, show_print, set_print_raw)
6278 (show_print_raw): Remove.
6279 (_initialize_valprint): Use add_basic_prefix_cmd,
6280 add_show_prefix_cmd.
6281 * typeprint.c (set_print_type, show_print_type): Remove.
6282 (_initialize_typeprint): Use add_basic_prefix_cmd,
6283 add_show_prefix_cmd.
6284 * record.c (set_record_command, show_record_command): Remove.
6285 (_initialize_record): Use add_basic_prefix_cmd,
6286 add_show_prefix_cmd.
6287 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6288 add_show_prefix_cmd.
6289 (info_command, show_command, set_debug, show_debug): Remove.
6290 * top.h (set_history, show_history): Don't declare.
6291 * top.c (set_history, show_history): Remove.
6292 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6293 (unset_tdesc_cmd): Remove.
6294 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6295 add_show_prefix_cmd.
6296 * symtab.c (info_module_command): Remove.
6297 (_initialize_symtab): Use add_basic_prefix_cmd.
6298 * symfile.c (overlay_command): Remove.
6299 (_initialize_symfile): Use add_basic_prefix_cmd.
6300 * sparc64-tdep.c (info_adi_command): Remove.
6301 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6302 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6303 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6304 add_show_prefix_cmd.
6305 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6306 (_initialize_serial): Use add_basic_prefix_cmd,
6307 add_show_prefix_cmd.
6308 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6309 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6310 add_show_prefix_cmd.
6311 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6312 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6313 add_show_prefix_cmd.
6314 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6315 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6316 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6317 add_show_prefix_cmd.
6318 * remote.c (remote_command, set_remote_cmd): Remove.
6319 (_initialize_remote): Use add_basic_prefix_cmd.
6320 * record-full.c (set_record_full_command)
6321 (show_record_full_command): Remove.
6322 (_initialize_record_full): Use add_basic_prefix_cmd,
6323 add_show_prefix_cmd.
6324 * record-btrace.c (cmd_set_record_btrace)
6325 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6326 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6327 (cmd_show_record_btrace_pt): Remove.
6328 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6329 add_show_prefix_cmd.
6330 * ravenscar-thread.c (set_ravenscar_command)
6331 (show_ravenscar_command): Remove.
6332 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6333 add_show_prefix_cmd.
6334 * mips-tdep.c (show_mips_command, set_mips_command)
6335 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6336 add_show_prefix_cmd.
6337 * maint.c (maintenance_command, maintenance_info_command)
6338 (maintenance_check_command, maintenance_print_command)
6339 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6340 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6341 add_show_prefix_cmd.
6342 (show_per_command_cmd): Remove.
6343 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6344 Remove.
6345 (maintenance_show_test_settings_cmd): Remove.
6346 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6347 add_show_prefix_cmd.
6348 * maint-test-options.c (maintenance_test_options_command):
6349 Remove.
6350 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6351 * macrocmd.c (macro_command): Remove
6352 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6353 * language.c (set_check, show_check): Remove.
6354 (_initialize_language): Use add_basic_prefix_cmd,
6355 add_show_prefix_cmd.
6356 * infcmd.c (unset_command): Remove.
6357 (_initialize_infcmd): Use add_basic_prefix_cmd.
6358 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6359 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6360 add_show_prefix_cmd.
6361 * go32-nat.c (go32_info_dos_command): Remove.
6362 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6363 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6364 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6365 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6366 (_initialize_frame): Use add_basic_prefix_cmd,
6367 add_show_prefix_cmd.
6368 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6369 (_initialize_dcache): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * cp-support.c (maint_cplus_command): Remove.
6372 (_initialize_cp_support): Use add_basic_prefix_cmd.
6373 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6374 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6375 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6376 add_basic_prefix_cmd, add_show_prefix_cmd.
6377 * breakpoint.c (save_command): Remove.
6378 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6379 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6380 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6381 add_show_prefix_cmd.
6382 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6383 (set_ada_command, show_ada_command): Remove.
6384 (_initialize_ada_language): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6387
3557f442
KR
63882020-04-16 Kamil Rytarowski <n54@gmx.com>
6389
6390 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6391 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6392
16197208
SM
63932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6394
6395 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6396 warning messages.
6397
00ac85d3
SM
63982020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6401 import table is not at beginning of .idata section.
6402
381ce63f
PA
64032020-04-16 Pedro Alves <palves@redhat.com>
6404
6405 * inferior.c (delete_inferior): Use delete operator directly
6406 instead of delete_program_space.
6407 * progspace.c (add_program_space): New, factored out from
6408 program_space::program_space.
6409 (remove_program_space): New, factored out from
6410 delete_program_space.
6411 (program_space::program_space): Remove intro comment. Rewrite.
6412 (program_space::~program_space): Remove intro comment. Call
6413 remove_program_space.
6414 (delete_program_space): Delete.
6415 * progspace.h (program_space::program_space): Make explicit. Move
6416 intro comment here, adjusted.
6417 (program_space::~program_space): Move intro comment here,
6418 adjusted.
6419 (delete_program_space): Remove.
6420
a010605f
TT
64212020-04-16 Tom Tromey <tromey@adacore.com>
6422
6423 * windows-nat.c (windows_nat::handle_access_violation): New
6424 function.
6425 * nat/windows-nat.h (handle_access_violation): Declare.
6426 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6427 windows-nat.c. Call handle_access_violation.
6428
efba5c23
TV
64292020-04-16 Tom de Vries <tdevries@suse.de>
6430
6431 PR symtab/25791
6432 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6433 CUs without psymtab.
6434
97ed802d
KB
64352020-04-16 Kevin Buettner <kevinb@redhat.com>
6436
6437 * python/python.c (do_start_initialization): Don't call
6438 PyEval_InitThreads for Python 3.9 and beyond.
6439
c7d64809
KR
64402020-04-15 Kamil Rytarowski <n54@gmx.com>
6441
6442 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6443 thread functions.
6444 (obsd_nat_target::wait): Likewise.
6445
ce127a96
TT
64462020-04-15 Tom Tromey <tromey@adacore.com>
6447
6448 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6449 (DEBUG_EXCEPT): Use debug_printf.
6450
99f1bc6a
AB
64512020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 * completer.c (class completion_tracker::completion_hash_entry)
6454 <hash_name>: New member function.
6455 (completion_tracker::discard_completions): New callback to hash a
6456 completion_hash_entry, pass this to htab_create_alloc.
6457
a0e9b532
JT
64582016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6459
6460 * windows-nat.c (windows_make_so): Warn rather than stopping with
6461 an error if realpath() fails.
6462
06ca5dd4
KR
64632020-04-14 Kamil Rytarowski <n54@gmx.com>
6464
6465 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6466 (nbsd_nat_target::info_proc): Add do_status.
6467
194d088f
TV
64682020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6469 Tom de Vries <tdevries@suse.de>
6470
6471 PR symtab/25718
6472 * psympriv.h (struct partial_symtab::read_symtab)
6473 (struct partial_symtab::expand_psymtab)
6474 (struct partial_symtab::read_dependencies): Update comments.
6475 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6476 read_symtab for includer.
6477 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6478 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6479 (struct dwarf2_include_psymtab::m_readin): Remove.
6480 (struct dwarf2_include_psymtab::includer): New member function.
6481 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6482
c1a66c06
TV
64832020-04-14 Tom de Vries <tdevries@suse.de>
6484
6485 PR symtab/25720
6486 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6487 with NULL symbol_matcher and lookup_name.
6488 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6489 and lookup_name.
6490 * dwarf2/read.c (dw2_expand_symtabs_matching)
6491 (dw2_debug_names_expand_symtabs_matching): Same.
6492 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6493 Make lookup_name a pointer. Update comment.
6494 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6495 lookup_name being a pointer.
6496 * symfile.c (expand_symtabs_matching): Same.
6497 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6498 * linespec.c (iterate_over_all_matching_symtabs): Same.
6499
400b5eca
TT
65002020-04-13 Tom Tromey <tom@tromey.com>
6501
6502 * run-on-main-thread.c: Update include.
6503 * unittests/main-thread-selftests.c: Update include.
6504 * tui/tui-win.c: Update include.
6505 * tui/tui-io.c: Update include.
6506 * tui/tui-interp.c: Update include.
6507 * tui/tui-hooks.c: Update include.
6508 * top.h: Update include.
6509 * top.c: Update include.
6510 * ser-base.c: Update include.
6511 * remote.c: Update include.
6512 * remote-notif.c: Update include.
6513 * remote-fileio.c: Update include.
6514 * record-full.c: Update include.
6515 * record-btrace.c: Update include.
6516 * python/python.c: Update include.
6517 * posix-hdep.c: Update include.
6518 * mingw-hdep.c: Update include.
6519 * mi/mi-main.c: Update include.
6520 * mi/mi-interp.c: Update include.
6521 * main.c: Update include.
6522 * linux-nat.c: Update include.
6523 * interps.c: Update include.
6524 * infrun.c: Update include.
6525 * inf-loop.c: Update include.
6526 * event-top.c: Update include.
6527 * event-loop.c: Move to ../gdbsupport/.
6528 * event-loop.h: Move to ../gdbsupport/.
6529 * async-event.h: Update include.
6530 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6531
93b54c8e
TT
65322020-04-13 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-win.c: Include async-event.h.
6535 * remote.c: Include async-event.h.
6536 * remote-notif.c: Include async-event.h.
6537 * record-full.c: Include async-event.h.
6538 * record-btrace.c: Include async-event.h.
6539 * infrun.c: Include async-event.h.
6540 * event-top.c: Include async-event.h.
6541 * event-loop.h: Move some declarations to async-event.h.
6542 * event-loop.c: Don't include ser-event.h or top.h. Move some
6543 code to async-event.c.
6544 * async-event.h: New file.
6545 * async-event.c: New file.
6546 * Makefile.in (COMMON_SFILES): Add async-event.c.
6547 (HFILES_NO_SRCDIR): Add async-event.h.
6548
c1cd3163
TT
65492020-04-13 Tom Tromey <tom@tromey.com>
6550
6551 * utils.c (flush_streams): New function.
6552 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6553
29f2bf4f
TT
65542020-04-13 Tom Tromey <tom@tromey.com>
6555
6556 * event-loop.c (handle_file_event): Use warning, not
6557 printf_unfiltered.
6558
98029d02
TT
65592020-04-13 Tom Tromey <tom@tromey.com>
6560
6561 * event-loop.c: Include <chrono>.
6562
06cc9596
TT
65632020-04-13 Tom Tromey <tom@tromey.com>
6564
6565 * gdb_select.h: Move to ../gdbsupport/.
6566 * event-loop.c: Update include path.
6567 * top.c: Update include path.
6568 * ser-base.c: Update include path.
6569 * ui-file.c: Update include path.
6570 * ser-tcp.c: Update include path.
6571 * guile/scm-ports.c: Update include path.
6572 * posix-hdep.c: Update include path.
6573 * ser-unix.c: Update include path.
6574 * gdb_usleep.c: Update include path.
6575 * mingw-hdep.c: Update include path.
6576 * inflow.c: Update include path.
6577 * infrun.c: Update include path.
6578 * event-top.c: Update include path.
6579
8ae8e197
TT
65802020-04-13 Tom Tromey <tom@tromey.com>
6581
6582 * configure: Rebuild.
6583 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6584
58cf28e8
TT
65852020-04-13 Tom Tromey <tom@tromey.com>
6586
6587 * event-loop.h (start_event_loop): Don't declare.
6588 * event-loop.c (start_event_loop): Move...
6589 * main.c (start_event_loop): ...here. Now static.
6590
b7f999ae
SDJ
65912020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6592
6593 * MAINTAINERS: Update my email address.
6594
1085dfd4
KR
65952020-04-12 Kamil Rytarowski <n54@gmx.com>
6596
6597 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6598 IP_ALL.
6599
49d1d1f5
KR
66002020-04-12 Kamil Rytarowski <n54@gmx.com>
6601
6602 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6603 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6604
b4848d2a
KR
66052020-04-12 Kamil Rytarowski <n54@gmx.com>
6606
6607 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6608 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6609
51c133d5
KR
66102020-04-12 Kamil Rytarowski <n54@gmx.com>
6611
6612 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6613
54b8cbd0
KR
66142020-04-11 Kamil Rytarowski <n54@gmx.com>
6615
6616 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6617 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6618 (nbsd_nat_target::info_proc): New functions.
6619 * nbsd-nat.c (kinfo_get_vmmap): New function.
6620 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6621 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6622 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6623 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6624 functions.
6625 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6626 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6627 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6628 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6629 (KINFO_VME_FLAG_GROWS_DOWN): New.
6630
cf83625d
AS
66312020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6632
6633 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6634 bit shift.
6635
0c4311ab
TT
66362020-04-10 Tom Tromey <tromey@adacore.com>
6637
6638 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6639
3e65b3e9
TT
66402020-04-10 Tom Tromey <tromey@adacore.com>
6641
6642 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6643 separate debug files.
6644
13302e95
HD
66452020-04-10 Hannes Domani <ssbssa@yahoo.de>
6646
6647 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6648 Move to...
6649 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6650 ... here.
6651 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6652 Check for STATUS_WX86_BREAKPOINT.
6653 (windows_nat_target::wait): Same.
6654
bdfc1e8a
TV
66552020-04-10 Tom de Vries <tdevries@suse.de>
6656
6657 PR cli/25808
6658 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6659
f4460aec
SM
66602020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6663 (Write After Approval): Remove Tom de Vries.
6664
a25198bb
BE
66652020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6666
6667 revert partially:
6668 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6669
aac66a4c
SM
6670 * buildsym.c (record_line): Fix undefined behavior and preserve
6671 lines at eof.
a25198bb 6672
206c98a6
KR
66732020-04-09 Kamil Rytarowski <n54@gmx.com>
6674
6675 * auxv.h (svr4_auxv_parse): New.
6676 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6677 and generic_auxv_parse.
6678 (svr4_auxv_parse): Add.
6679 * obsd-tdep.c: Include "auxv.h".
6680 (obsd_auxv_parse): Remove.
6681 (obsd_init_abi): Remove comment.
6682 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6683 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6684 * nbsd-tdep.c: Include "auxv.h".
6685 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6686
71fbdbaf
TT
66872020-04-08 Tom Tromey <tromey@adacore.com>
6688
6689 * nat/windows-nat.h (last_wait_event): Don't declare.
6690 (wait_for_debug_event): Update comment.
6691 * nat/windows-nat.c (last_wait_event): Now static.
6692
2c1d95e8
TT
66932020-04-08 Tom Tromey <tromey@adacore.com>
6694
6695 * windows-nat.c (wait_for_debug_event): Move to
6696 nat/windows-nat.c.
6697 * nat/windows-nat.h (wait_for_debug_event): Declare.
6698 * nat/windows-nat.c (wait_for_debug_event): Move from
6699 windows-nat.c. No longer static.
6700
d2977bc4
TT
67012020-04-08 Tom Tromey <tromey@adacore.com>
6702
6703 * windows-nat.c (get_windows_debug_event): Use
6704 fetch_pending_stop.
6705 * nat/windows-nat.h (fetch_pending_stop): Declare.
6706 * nat/windows-nat.c (fetch_pending_stop): New function.
6707
e758e19c
TT
67082020-04-08 Tom Tromey <tromey@adacore.com>
6709
6710 * windows-nat.c (windows_continue): Use matching_pending_stop and
6711 continue_last_debug_event.
6712 * nat/windows-nat.h (matching_pending_stop)
6713 (continue_last_debug_event): Declare.
6714 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6715 (matching_pending_stop, continue_last_debug_event): New
6716 functions.
6717
8d30e395
TT
67182020-04-08 Tom Tromey <tromey@adacore.com>
6719
6720 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6721 (handle_exception_result): Move to nat/windows-nat.h.
6722 (DEBUG_EXCEPTION_SIMPLE): Remove.
6723 (windows_nat::handle_ms_vc_exception): New function.
6724 (handle_exception): Move to nat/windows-nat.c.
6725 (get_windows_debug_event): Update.
6726 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6727 nat/windows-nat.c.
6728 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6729 (handle_exception_result): Move from windows-nat.c.
6730 (handle_exception): Declare.
6731 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6732 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6733 windows-nat.c.
6734
29de418d
TT
67352020-04-08 Tom Tromey <tromey@adacore.com>
6736
6737 * windows-nat.c (exception_count, event_count): Remove.
6738 (handle_exception, get_windows_debug_event)
6739 (do_initial_windows_stuff): Update.
6740
a816ba18
TT
67412020-04-08 Tom Tromey <tromey@adacore.com>
6742
6743 * windows-nat.c (windows_nat::handle_load_dll)
6744 (windows_nat::handle_unload_dll): Rename. No longer static.
6745 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6746 Declare.
6747
a00caa12
TT
67482020-04-08 Tom Tromey <tromey@adacore.com>
6749
6750 * complaints.h (stop_whining): Declare at top-level.
6751 (complaint): Don't declare stop_whining.
6752
d41b524f
TT
67532020-04-08 Tom Tromey <tromey@adacore.com>
6754
6755 * windows-nat.c (windows_nat::handle_output_debug_string):
6756 Rename. No longer static.
6757 * nat/windows-nat.h (handle_output_debug_string): Declare.
6758
3c76026d
TT
67592020-04-08 Tom Tromey <tromey@adacore.com>
6760
6761 * windows-nat.c (current_process_handle, current_process_id)
6762 (main_thread_id, last_sig, current_event, last_wait_event)
6763 (current_windows_thread, desired_stop_thread_id, pending_stops)
6764 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6765 (display_selectors, fake_create_process)
6766 (get_windows_debug_event): Update.
6767 * nat/windows-nat.h (current_process_handle, current_process_id)
6768 (main_thread_id, last_sig, current_event, last_wait_event)
6769 (current_windows_thread, desired_stop_thread_id, pending_stops)
6770 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6771 * nat/windows-nat.c (current_process_handle, current_process_id)
6772 (main_thread_id, last_sig, current_event, last_wait_event)
6773 (current_windows_thread, desired_stop_thread_id, pending_stops)
6774 (siginfo_er): New globals. Move from windows-nat.c.
6775
9d8679cc
TT
67762020-04-08 Tom Tromey <tromey@adacore.com>
6777
6778 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6779 (handle_load_dll): Update.
6780 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6781
28688adf
TT
67822020-04-08 Tom Tromey <tromey@adacore.com>
6783
6784 * windows-nat.c (enum thread_disposition_type): Move to
6785 nat/windows-nat.h.
6786 (windows_nat::thread_rec): Rename from thread_rec. No longer
6787 static.
6788 (windows_add_thread, windows_nat_target::fetch_registers)
6789 (windows_nat_target::store_registers, handle_exception)
6790 (windows_nat_target::resume, get_windows_debug_event)
6791 (windows_nat_target::get_tib_address)
6792 (windows_nat_target::thread_name)
6793 (windows_nat_target::thread_alive): Update.
6794 * nat/windows-nat.h (enum thread_disposition_type): Move from
6795 windows-nat.c.
6796 (thread_rec): Declare.
6797
4834dad0
TT
67982020-04-08 Tom Tromey <tromey@adacore.com>
6799
6800 * windows-nat.c: Add "using namespace".
6801 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6802 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6803
65bafd5b
TT
68042020-04-08 Tom Tromey <tromey@adacore.com>
6805
6806 * nat/windows-nat.h (struct windows_thread_info): Declare
6807 destructor.
6808 * nat/windows-nat.c (~windows_thread_info): New.
6809
0a4afda3
TT
68102020-04-08 Tom Tromey <tromey@adacore.com>
6811
6812 PR gdb/22992
6813 * windows-nat.c (current_event): Update comment.
6814 (last_wait_event, desired_stop_thread_id): New globals.
6815 (struct pending_stop): New.
6816 (pending_stops): New global.
6817 (windows_nat_target) <stopped_by_sw_breakpoint>
6818 <supports_stopped_by_sw_breakpoint>: New methods.
6819 (windows_fetch_one_register): Add assertions. Adjust PC.
6820 (windows_continue): Handle pending stops. Suspend other threads
6821 when stepping. Use last_wait_event
6822 (wait_for_debug_event): New function.
6823 (get_windows_debug_event): Use wait_for_debug_event. Handle
6824 pending stops. Queue spurious stops.
6825 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6826 (windows_nat_target::kill): Use wait_for_debug_event.
6827 * nat/windows-nat.h (struct windows_thread_info)
6828 <stopped_at_software_breakpoint>: New field.
6829 * nat/windows-nat.c (windows_thread_info::resume): Clear
6830 stopped_at_software_breakpoint.
6831
8e61ebec
TT
68322020-04-08 Tom Tromey <tromey@adacore.com>
6833
6834 * windows-nat.c (enum thread_disposition_type): New.
6835 (thread_rec): Replace "get_context" parameter with "disposition";
6836 change type.
6837 (windows_add_thread, windows_nat_target::fetch_registers)
6838 (windows_nat_target::store_registers, handle_exception)
6839 (windows_nat_target::resume, get_windows_debug_event)
6840 (windows_nat_target::get_tib_address)
6841 (windows_nat_target::thread_name)
6842 (windows_nat_target::thread_alive): Update.
6843
98a03287
TT
68442020-04-08 Tom Tromey <tromey@adacore.com>
6845
6846 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6847 (windows_continue): Use windows_continue::resume.
6848 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6849 resume>: Declare new methods.
6850 * nat/windows-nat.c: New file.
6851 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6852
7c7411bc
TT
68532020-04-08 Tom Tromey <tromey@adacore.com>
6854
6855 * windows-nat.c (windows_add_thread, windows_delete_thread)
6856 (windows_nat_target::fetch_registers)
6857 (windows_nat_target::store_registers, fake_create_process)
6858 (windows_nat_target::resume, windows_nat_target::resume)
6859 (get_windows_debug_event, windows_nat_target::wait)
6860 (windows_nat_target::pid_to_str)
6861 (windows_nat_target::get_tib_address)
6862 (windows_nat_target::get_ada_task_ptid)
6863 (windows_nat_target::thread_name)
6864 (windows_nat_target::thread_alive): Use lwp, not tid.
6865
2950fdf7
TT
68662020-04-08 Tom Tromey <tromey@adacore.com>
6867
6868 * windows-nat.c (handle_exception)
6869 (windows_nat_target::thread_name): Update.
6870 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6871 <name>: Now unique_xmalloc_ptr.
6872
62fe396b
TT
68732020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (thread_rec)
6876 (windows_nat_target::fetch_registers): Update.
6877 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6878 Update comment.
6879 <debug_registers_changed, reload_context>: Now bool.
6880
e9534bd2
TT
68812020-04-08 Tom Tromey <tromey@adacore.com>
6882
6883 * windows-nat.c (windows_add_thread): Use new.
6884 (windows_init_thread_list, windows_delete_thread): Use delete.
6885 (get_windows_debug_event): Update.
6886 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6887 destructor, and initializers.
6888
ae1f8880
TT
68892020-04-08 Tom Tromey <tromey@adacore.com>
6890
6891 * windows-nat.c (struct windows_thread_info): Remove.
6892 * nat/windows-nat.h: New file.
6893
55a1e039
TT
68942020-04-08 Tom Tromey <tromey@adacore.com>
6895
6896 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6897 (thread_rec, windows_add_thread, windows_delete_thread)
6898 (windows_continue): Update.
6899
93366324
TT
69002020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * windows-nat.c (struct windows_thread_info): Remove typedef.
6903 (thread_head): Remove.
6904 (thread_list): New global.
6905 (thread_rec, windows_add_thread, windows_init_thread_list)
6906 (windows_delete_thread, windows_continue): Update.
6907
0f2265e2
SM
69082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6909
6910 * windows-tdep.h (windows_init_abi): Add comment.
6911 (cygwin_init_abi): New declaration.
6912 * windows-tdep.c: Split signal enumeration in two, one for
6913 Windows and one for Cygwin.
6914 (windows_gdb_signal_to_target): Only deal with signal of the
6915 Windows OS ABI.
6916 (cygwin_gdb_signal_to_target): New function.
6917 (windows_init_abi): Rename to windows_init_abi_common, don't set
6918 gdb_signal_to_target gdbarch method. Add new new function with
6919 this name.
6920 (cygwin_init_abi): New function.
6921 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6922 comment. Don't call windows_init_abi.
6923 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6924 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6925 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6926 i386_windows_init_abi_common, don't call windows_init_abi. Add
6927 a new function of this name.
6928 (i386_cygwin_init_abi): New function.
6929 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6930 OS ABI Cygwin.
6931
3810f182
SM
69322020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6935 parameter.c.
6936 (dwarf2_read_gdb_index): Update.
6937
063f8e80
KR
69382020-04-07 Kamil Rytarowski <n54@gmx.com>
6939
6940 * nbsd-tdep.c: Include "objfiles.h".
6941 (nbsd_skip_solib_resolver): New.
6942 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6943
85a9510c 69442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6945
6946 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6947 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6948 with DW_LLE_base_addressx are being emitted in DWARFv5.
6949 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6950 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6951 unsigned integer.
6952
9fc3eaae 69532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6954
6955 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6956 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6957 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6958 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6959 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6960 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6961 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6962
6963
41144253 69642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6965
6966 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6967 (read_loclist_index): New function definition.
6968 (lookup_loclist_base): New function definition.
6969 (read_loclist_header): New function definition.
6970 (dwarf2_cu): Add loclist_base and loclist_header field.
6971 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6972 (read_full_die_1): Read the value of DW_AT_loclists_base.
6973 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6974 (read_attribute_value): Handle DW_FORM_loclistx.
6975 (skip_one_die): Handle DW_FORM_loclistx.
6976 (loclist_header): New structure declaration.
6977 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6978
9f4e76a4
SM
69792020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6982 constructor. Remove `addr` parameter from other constructor and
6983 add `per_cu` parameter.
6984 * dwarf2/read.c (create_partial_symtab): Update.
6985
25c11aca
TV
69862020-04-07 Tom de Vries <tdevries@suse.de>
6987
6988 PR symtab/25796
6989 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6990 (partial_die_info::fixup): Inherit has_const_value.
6991
5707e24b
TV
69922020-04-07 Tom de Vries <tdevries@suse.de>
6993
6994 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6995 symbols without address.
6996
05f00e22
KR
69972020-04-06 Kamil Rytarowski <n54@gmx.com>
6998
6999 * nbsd-nat.h (struct thread_info): Add forward declaration.
7000 (nbsd_nat_target::thread_alive): Add.
7001 (nbsd_nat_target::thread_name): Likewise.
7002 (nbsd_nat_target::update_thread_list): Likewise.
7003 (update_thread_list::post_attach): Likewise.
7004 (post_attach::pid_to_str): Likewise.
7005 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7006 (nbsd_thread_lister): Add.
7007 (nbsd_nat_target::thread_alive): Likewise.
7008 (nbsd_nat_target::thread_name): Likewise.
7009 (nbsd_add_threads): Likewise.
7010 (update_thread_list::post_attach): Likewise.
7011 (nbsd_nat_target::update_thread_list): Likewise.
7012 (post_attach::pid_to_str): Likewise.
7013
6ee448cc
TT
70142020-04-06 Tom Tromey <tromey@adacore.com>
7015
7016 * ada-valprint.c (print_variant_part): Extract the variant field.
7017 (print_field_values): Use the field as the outer value when
7018 recursing.
7019
dea34e8c
TT
70202020-04-06 Tom Tromey <tromey@adacore.com>
7021
7022 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7023 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7024 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7025 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7026 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7027
93689ce9
TT
70282020-04-06 Tom Tromey <tromey@adacore.com>
7029
7030 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7031 TYPE_CODE_ERROR.
7032
79743962
KR
70332020-04-06 Kamil Rytarowski <n54@gmx.com>
7034
7035 * nbsd-tdep.c: Include "gdbarch.h".
7036 Define enum with NetBSD signal numbers.
7037 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7038 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7039 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7040 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7041 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7042 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7043 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7044 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7045 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7046 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7047 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7048 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7049
9e7c9a03
HD
70502020-04-03 Hannes Domani <ssbssa@yahoo.de>
7051
7052 PR gdb/25325
7053 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7054
d9e49b61
TT
70552020-04-03 Tom Tromey <tromey@adacore.com>
7056
7057 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7058 Read constant block.
7059
e0fc5c3f
SM
70602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7061
7062 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7063 (gdb_bfd_get_full_section_contents): New declaration.
7064 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7065 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7066 gdb_bfd_get_full_section_contents.
7067
e2ff18a0
SM
70682020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7069
7070 * exec.c (build_section_table): Replace internal_error with
7071 gdb_assert.
7072 (section_table_xfer_memory_partial): Likewise.
7073 * mdebugread.c (parse_partial_symbols): Likewise.
7074 * psymtab.c (lookup_partial_symbol): Likewise.
7075 * utils.c (wrap_here): Likewise.
7076
0830d301
TT
70772020-04-02 Tom Tromey <tromey@adacore.com>
7078
7079 * f-lang.c (build_fortran_types): Use arch_type to initialize
7080 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7081
e7da7f8f
TT
70822020-04-02 Tom Tromey <tromey@adacore.com>
7083
7084 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7085 of attributes.
7086
c90d28ac
AB
70872020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7088 Bernd Edlinger <bernd.edlinger@hotmail.de>
7089 Tom Tromey <tromey@adacore.com>
7090
7091 * buildsym.c (buildsym_compunit::record_line): Remove
7092 deduplication code.
7093
1aa98955
TV
70942020-04-02 Tom de Vries <tdevries@suse.de>
7095
7096 PR ada/24671
7097 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7098
d3214198
TV
70992020-04-02 Tom de Vries <tdevries@suse.de>
7100
7101 * dwarf2/read.c (dwarf2_gdb_index_functions,
7102 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7103 NULL.
7104 * psymtab.c (psym_lookup_global_symbol_language): New function.
7105 (psym_functions): Init psym_lookup_global_symbol_language with
7106 psym_lookup_global_symbol_language.
7107 * symfile-debug.c (debug_sym_quick_functions): Init
7108 lookup_global_symbol_language with NULL.
7109 * symfile.c (set_initial_language): Remove fixme comment.
7110 * symfile.h (struct quick_symbol_functions): Add
7111 lookup_global_symbol_language.
7112 * symtab.c (find_quick_global_symbol_language): New function.
7113 (find_main_name): Use find_quick_global_symbol_language.
7114
2836752f
SM
71152020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7116
7117 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7118
64dc2d4b
BE
71192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7120
7121 * buildsym.c (record_line): Fix undefined behavior and preserve
7122 lines at eof.
7123
bbe3dc41
BE
71242020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7125
7126 * buildsym.c (record_line): Fix the resizing condition.
7127
6b4a335b
TT
71282020-04-01 Tom Tromey <tom@tromey.com>
7129
7130 * value.h (value_literal_complex): Add comment.
7131 * valops.c (value_literal_complex): Refer to value.h.
7132
3638a098
TT
71332020-04-01 Tom Tromey <tom@tromey.com>
7134
7135 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7136 (scalar_type): New rule, from typebase.
7137 (typebase): Use scalar_type. Recognize complex types.
7138 (field_name): Handle FLOAT_KEYWORD.
7139 (ident_tokens): Add _Complex and __complex__.
7140
c34e8714
TT
71412020-04-01 Tom Tromey <tom@tromey.com>
7142
7143 PR exp/25299:
7144 * valarith.c (promotion_type, complex_binop): New functions.
7145 (scalar_binop): Handle complex numbers. Use promotion_type.
7146 (value_pos, value_neg, value_complement): Handle complex numbers.
7147
fa649bb7
TT
71482020-04-01 Tom Tromey <tom@tromey.com>
7149
7150 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7151 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7152 (parse_number): Handle complex numbers.
7153
981c08ce
TT
71542020-04-01 Tom Tromey <tom@tromey.com>
7155
7156 * c-valprint.c (c_decorations): Change complex suffix to "i".
7157
4c99290d
TT
71582020-04-01 Tom Tromey <tom@tromey.com>
7159
7160 * valprint.c (generic_value_print_complex): Use accessors.
7161 * value.h (value_real_part, value_imaginary_part): Declare.
7162 * valops.c (value_real_part, value_imaginary_part): New
7163 functions.
7164 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7165
5b930b45
TT
71662020-04-01 Tom Tromey <tom@tromey.com>
7167
7168 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7169 (read_range_type): Update.
7170 * mdebugread.c (basic_type): Update.
7171 * go-lang.c (build_go_types): Use init_complex_type.
7172 * gdbtypes.h (struct main_type) <complex_type>: New member.
7173 (init_complex_type): Update.
7174 (arch_complex_type): Don't declare.
7175 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7176 Make name if none given. Use alloc_type_copy. Look for cached
7177 complex type.
7178 (arch_complex_type): Remove.
7179 (gdbtypes_post_init): Use init_complex_type.
7180 * f-lang.c (build_fortran_types): Use init_complex_type.
7181 * dwarf2/read.c (read_base_type): Update.
7182 * d-lang.c (build_d_types): Use init_complex_type.
7183 * ctfread.c (read_base_type): Update.
7184
53cccef1
TBA
71852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7186
7187 * infrun.c (stop_all_threads): Update assertion, plus when
7188 stopping threads, take into account that we might be trying
7189 to stop an all-stop target.
7190 (stop_waiting): Call 'stop_all_threads' if there exists a
7191 non-stop target.
7192
a0714d30
TBA
71932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7194
7195 * target.h (exists_non_stop_target): New function declaration.
7196 * target.c (exists_non_stop_target): New function.
7197
60e22c1e
HD
71982020-04-01 Hannes Domani <ssbssa@yahoo.de>
7199
7200 PR gdb/24789
7201 * eval.c (is_integral_or_integral_reference): New function.
7202 (evaluate_subexp_standard): Allow integer references in
7203 pointer arithmetic.
7204
e139a727
TBA
72052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7206
7207 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7208 check for no ptid in the stop reply when the target is non-stop.
7209
e0802d59
TT
72102020-04-01 Tom Tromey <tromey@adacore.com>
7211
7212 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7213 "name" parameter to rvalue reference. Initialize m_name_holder.
7214 <lookup_name_info>: New overloads.
7215 <name>: Return gdb::string_view.
7216 <c_str>: New method.
7217 <make_ignore_params>: Update.
7218 <search_name_hash>: Update.
7219 <language_lookup_name>: Return const char *.
7220 <m_name>: Change type.
7221 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7222 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7223 (lookup_name_info::match_any): Update.
7224 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7225 Update.
7226 * minsyms.c (linkage_name_str): Update.
7227 * language.c (default_symbol_name_matcher): Update.
7228 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7229 Update.
7230 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7231 (ada_lookup_name_info::ada_lookup_name_info): Update.
7232 (literal_symbol_name_matcher): Update.
7233
8c072cb6
TT
72342020-04-01 Tom Tromey <tromey@adacore.com>
7235
7236 * psymtab.c (psymtab_search_name): Remove function.
7237 (psym_lookup_symbol): Create search name and lookup name here.
7238 (lookup_partial_symbol): Remove "name" parameter; add
7239 lookup_name.
7240 (psym_expand_symtabs_for_function): Update.
7241
6f29a534
TT
72422020-03-31 Joel Jones <joelkevinjones@gmail.com>
7243
7244 PR tui/25597:
7245 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7246
af62665e
TT
72472020-03-31 Tom Tromey <tromey@adacore.com>
7248
7249 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7250 memcpy.
7251
d1a89da5
NC
72522020-03-30 Nelson Chu <nelson.chu@sifive.com>
7253
7254 * features/riscv/32bit-csr.xml: Regenerated.
7255 * features/riscv/64bit-csr.xml: Regenerated.
7256
d8af9068
TT
72572020-03-30 Tom Tromey <tromey@adacore.com>
7258
7259 * ada-valprint.c (print_variant_part): Update.
7260 * ada-lang.h (ada_which_variant_applies): Update.
7261 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7262 outer_valaddr parameters; replace with "outer" value parameter.
7263 (to_fixed_variant_branch_type): Update.
7264
227c0bf4
PFC
72652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7266
7267 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7268 <list>. Remove inclusion of observable.h.
7269 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7270 (struct arch_lwp_info): New struct.
7271 (class ppc_linux_dreg_interface): New class.
7272 (struct ppc_linux_process_info): New struct.
7273 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7274 <low_new_clone, low_forget_process, low_prepare_to_resume>
7275 <copy_thread_dreg_state, mark_thread_stale>
7276 <mark_debug_registers_changed, register_hw_breakpoint>
7277 <clear_hw_breakpoint, register_wp, clear_wp>
7278 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7279 <num_memory_accesses, get_trigger_type>
7280 <create_watchpoint_request, hwdebug_point_cmp>
7281 <init_arch_lwp_info, get_arch_lwp_info>
7282 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7283 methods.
7284 <struct ptid_hash>: New inner struct.
7285 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7286 members.
7287 (saved_dabr_value, hwdebug_info, max_slots_number)
7288 (struct hw_break_tuple, struct thread_points, ppc_threads)
7289 (have_ptrace_hwdebug_interface)
7290 (hwdebug_find_thread_points_by_tid)
7291 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7292 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7293 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7294 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7295 use m_dreg_interface.
7296 (hwdebug_point_cmp): Change to...
7297 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7298 reference arguments instead of pointers.
7299 (ppc_linux_nat_target::ranged_break_num_registers): Use
7300 m_dreg_interface.
7301 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7302 m_dreg_interface. Call register_hw_breakpoint.
7303 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7304 m_dreg_interface. Call clear_hw_breakpoint.
7305 (get_trigger_type): Change to...
7306 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7307 comment.
7308 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7309 use m_dreg_interface. Call register_hw_breakpoint.
7310 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7311 use m_dreg_interface. Call clear_hw_breakpoint.
7312 (can_use_watchpoint_cond_accel): Change to...
7313 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7314 method. Update comment, use m_dreg_interface and
7315 m_process_info.
7316 (calculate_dvc): Change to...
7317 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7318 m_dreg_interface.
7319 (num_memory_accesses): Change to...
7320 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7321 (check_condition): Change to...
7322 (ppc_linux_nat_target::check_condition): ...this method.
7323 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7324 comment, use m_dreg_interface.
7325 (create_watchpoint_request): Change to...
7326 (ppc_linux_nat_target::create_watchpoint_request): ...this
7327 method. Use m_dreg_interface.
7328 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7329 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7330 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7331 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7332 (ppc_linux_nat_target::low_forget_process)
7333 (ppc_linux_nat_target::low_new_fork)
7334 (ppc_linux_nat_target::low_new_clone)
7335 (ppc_linux_nat_target::low_delete_thread)
7336 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7337 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7338 only call mark_thread_stale.
7339 (ppc_linux_thread_exit): Remove.
7340 (ppc_linux_nat_target::stopped_data_address): Change to...
7341 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7342 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7343 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7344 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7345 comment. Call low_stopped_data_address.
7346 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7347 m_dreg_interface.
7348 (ppc_linux_nat_target::masked_watch_num_registers): Use
7349 m_dreg_interface.
7350 (ppc_linux_nat_target::copy_thread_dreg_state)
7351 (ppc_linux_nat_target::mark_thread_stale)
7352 (ppc_linux_nat_target::mark_debug_registers_changed)
7353 (ppc_linux_nat_target::register_hw_breakpoint)
7354 (ppc_linux_nat_target::clear_hw_breakpoint)
7355 (ppc_linux_nat_target::register_wp)
7356 (ppc_linux_nat_target::clear_wp)
7357 (ppc_linux_nat_target::init_arch_lwp_info)
7358 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7359 (_initialize_ppc_linux_nat): Remove observer callback.
7360
4db10d8f
PFC
73612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7362
7363 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7364 (ppc_linux_nat_target::auxv_parse)
7365 (ppc_linux_nat_target::read_description)
7366 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7367 Move up.
7368
1310c1b0
PFC
73692020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7370
7371 * linux-nat.h (low_new_clone): New method.
7372 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7373
69b037c3
SM
73742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7375
7376 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7377 (dbx_expand_psymtab): ... this.
7378 (start_psymtab): Update.
7379 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7380 (mdebug_expand_psymtab): ... this.
7381 (parse_partial_symbols): Update.
7382 (new_psymtab): Update.
7383 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7384 (xcoff_expand_psymtab): ... this.
7385 (xcoff_start_psymtab): Update.
7386
48993951
SM
73872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7390 <expand_dependencies>: ... this.
7391 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7392 (partial_symtab::expand_dependencies): ... this.
7393 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7394 Update.
7395 (dwarf2_psymtab::expand_psymtab): Update.
7396 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7397 * mdebugread.c (psymtab_to_symtab_1): Update.
7398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7399
3ad83046
SM
74002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * psympriv.h (discard_psymtab): Remove.
7403 * dbxread.c (dbx_end_psymtab): Update.
7404 * xcoffread.c (xcoff_end_psymtab): Update.
7405
4d1b9ab6
TT
74062020-03-28 Tom Tromey <tom@tromey.com>
7407
7408 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7409 comment.
7410
f1749218
TT
74112020-03-28 Tom Tromey <tom@tromey.com>
7412
7413 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7414
ebea7626
HD
74152020-03-27 Hannes Domani <ssbssa@yahoo.de>
7416
7417 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7418
a879b4d5
JB
74192020-03-26 John Baldwin <jhb@FreeBSD.org>
7420
7421 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7422
0826b30a
TT
74232020-03-26 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7426 (mark_common_block_symbol_computed, read_tag_string_type)
7427 (attr_to_dynamic_prop, read_subrange_type): Update.
7428 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7429 to be methods on struct attribute.
7430 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7431 (read_call_site_scope, partial_die_info::read)
7432 (partial_die_info::read, lookup_die_type, follow_die_ref):
7433 Update.
7434 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7435 from dwarf2_get_ref_die_offset.
7436 (attribute::constant_value): New method, from
7437 dwarf2_get_attr_constant_value.
7438 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7439 Declare method.
7440 <constant_value>: New method.
7441
2b2558bf
TT
74422020-03-26 Tom Tromey <tom@tromey.com>
7443
7444 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7445 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7446 (dwarf_type_encoding_name): Move to stringify.c.
7447 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7448 * dwarf2/stringify.c: New file.
7449 * dwarf2/stringify.h: New file.
7450
eeb64781
TT
74512020-03-26 Tom Tromey <tom@tromey.com>
7452
7453 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7454 Rewrite.
7455
a39fdb41
TT
74562020-03-26 Tom Tromey <tom@tromey.com>
7457
7458 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7459 methods.
7460 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7461 (lookup_ranges_base): Likewise.
7462 (read_cutu_die_from_dwo, read_full_die_1): Update.
7463
436c571c
TT
74642020-03-26 Tom Tromey <tom@tromey.com>
7465
7466 * dwarf2/read.c (read_import_statement, read_file_scope)
7467 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7468 (read_lexical_block_scope, read_call_site_scope)
7469 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7470 (handle_struct_member_die, process_structure_scope)
7471 (update_enumeration_type_from_children)
7472 (process_enumeration_scope, read_array_type, read_common_block)
7473 (read_namespace, read_module, read_subroutine_type): Update.
7474 (sibling_die): Remove.
7475
052c8bb8
TT
74762020-03-26 Tom Tromey <tom@tromey.com>
7477
7478 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7479 (build_type_psymtabs_reader, read_structure_type)
7480 (read_enumeration_type, read_full_die_1): Update.
7481 (dwarf2_attr_no_follow): Move to die.h.
7482 * dwarf2/die.h (struct die_info) <attr>: New method.
7483
2b24b6e4
TT
74842020-03-26 Tom Tromey <tom@tromey.com>
7485
7486 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7487 <base_address>: Now an optional.
7488 (dwarf2_find_base_address, dwarf2_rnglists_process)
7489 (dwarf2_ranges_process, fill_in_loclist_baton)
7490 (dwarf2_symbol_mark_computed): Update.
7491
c2d50fd0
TT
74922020-03-26 Tom Tromey <tom@tromey.com>
7493
7494 * dwarf2/read.c (struct die_info): Move to die.h.
7495 * dwarf2/die.h: New file.
7496
0df7ad3a
TT
74972020-03-26 Tom Tromey <tom@tromey.com>
7498
7499 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7500 * dwarf2/read.c
7501 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7502 Move to line-header.c.
7503 (read_checked_initial_length_and_offset, read_formatted_entries):
7504 Likewise.
7505 (dwarf_decode_line_header): Split into two.
7506 * dwarf2/line-header.c
7507 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7508 Move from read.c.
7509 (read_checked_initial_length_and_offset, read_formatted_entries):
7510 Likewise.
7511 (dwarf_decode_line_header): New function, split from read.c.
7512
86c0bb4c
TT
75132020-03-26 Tom Tromey <tom@tromey.com>
7514
7515 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7516 Declare method.
7517 * dwarf2/read.c (read_attribute_value): Update.
7518 (dwarf2_per_objfile::read_line_string): Rename from
7519 read_indirect_line_string.
7520 (read_formatted_entries): Update.
7521
2ef46c2f
TT
75222020-03-26 Tom Tromey <tom@tromey.com>
7523
7524 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7525 variable.
7526
4f9c1eda
TT
75272020-03-26 Tom Tromey <tom@tromey.com>
7528
7529 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7530 const.
7531 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7532 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7533 parameter const.
7534
5a0e026f
TT
75352020-03-26 Tom Tromey <tom@tromey.com>
7536
7537 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7538 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7539 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7540 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7541
8844c11b
TT
75422020-03-26 Tom Tromey <tom@tromey.com>
7543
7544 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7545 file_names_size, file_full_name, file_file_name>: Use const.
7546 <file_name_at, file_names>: Add const overload.
7547 * dwarf2/line-header.c (line_header::file_file_name)
7548 (line_header::file_full_name): Update.
7549
c90ec28a
TT
75502020-03-26 Tom Tromey <tom@tromey.com>
7551
7552 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7553 (macro_start_file, consume_improper_spaces)
7554 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7555 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7556 (dwarf_decode_macros): Move to macro.c.
7557 * dwarf2/macro.c: New file.
7558 * dwarf2/macro.h: New file.
7559 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7560
4f44ae6c
TT
75612020-03-26 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7564 method.
7565 * dwarf2/section.c: New method. From
7566 read_indirect_string_at_offset_from.
7567 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7568 (read_indirect_string_at_offset_from): Move to section.c.
7569 (read_indirect_string_at_offset): Rewrite.
7570 (read_indirect_line_string_at_offset): Remove.
7571 (read_indirect_string, read_indirect_line_string)
7572 (dwarf_decode_macro_bytes): Update.
7573
a0194fa8
TT
75742020-03-26 Tom Tromey <tom@tromey.com>
7575
7576 * dwarf2/section.h (struct dwarf2_section_info)
7577 <overload_complaint>: Declare.
7578 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7579 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7580 Rename from dwarf2_section_buffer_overflow_complaint.
7581 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7582 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7583
3d27bbdb
TT
75842020-03-26 Tom Tromey <tom@tromey.com>
7585
7586 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7587 Declare.
7588 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7589 Move from read.c.
7590 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7591 to section.c.
7592
9eac9650
TT
75932020-03-26 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7596
bf80d710
TT
75972020-03-26 Tom Tromey <tom@tromey.com>
7598
7599 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7600 "builder".
7601 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7602 parameter.
7603 (dwarf_decode_macros): Update.
7604
0314b390
TT
76052020-03-26 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2/read.c (read_attribute_value): Update.
7608 (read_indirect_string_from_dwz): Move to dwz.c; change into
7609 method.
7610 (dwarf_decode_macro_bytes): Update.
7611 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7612 * dwarf2/dwz.c: New file.
7613 * Makefile.in (COMMON_SFILES): Add dwz.c.
7614
9fda78b6
TT
76152020-03-26 Tom Tromey <tom@tromey.com>
7616
7617 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7618 * dwarf2/read.c: Add include.
7619 * dwarf2/index-write.c: Add include.
7620 * dwarf2/index-cache.c: Add include.
7621 * dwarf2/dwz.h: New file.
7622
33aa3c10
TT
76232020-03-25 Tom Tromey <tom@tromey.com>
7624
7625 * compile/compile-object-load.c (get_out_value_type): Mention
7626 correct symbol name in error message.
7627
d503b685
HD
76282020-03-25 Hannes Domani <ssbssa@yahoo.de>
7629
7630 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7631
7b1eff95
TV
76322020-03-25 Tom de Vries <tdevries@suse.de>
7633
7634 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7635 * symmisc.c (dump_symtab_1): Print user and includes fields.
7636 (maintenance_info_symtabs): Same.
7637
dd895392
AB
76382020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 PR gdb/25534
7641 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7642 (riscv_regcache_cooked_write): New function.
7643 (riscv_push_dummy_call): Use new function.
7644 (riscv_return_value): Likewise.
7645
5ab2fbf1
SM
76462020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7647
7648 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7649 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7650 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7651 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7652 * infrun.c (follow_fork): Likewise.
7653 (follow_fork_inferior): Likewise.
7654 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7655 * linux-nat.h (class linux_nat_target): Likewise.
7656 * remote.c (class remote_target) <follow_fork>: Likewise.
7657 (remote_target::follow_fork): Likewise.
7658 * target-delegates.c: Re-generate.
7659 * target.c (default_follow_fork): Likewise.
7660 (target_follow_fork): Likewise.
7661 * target.h (struct target_ops) <follow_fork>: Likewise.
7662 (target_follow_fork): Likewise.
7663
a64fafb5
TV
76642020-03-24 Tom de Vries <tdevries@suse.de>
7665
7666 * psymtab.c (maintenance_info_psymtabs): Print user field.
7667
fe26d3a3
TT
76682020-03-20 Tom Tromey <tromey@adacore.com>
7669
7670 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7671 const.
7672 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7673 const.
7674
c884cc46
SM
76752020-03-20 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * ptrace.m4: Don't check for ptrace declaration.
7678 * config.in: Re-generate.
7679 * configure: Re-generate.
7680 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7681 not defined.
7682
1ff700c2
KR
76832020-03-20 Kamil Rytarowski <n54@gmx.com>
7684
7685 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7686 `PTRACE_TYPE_RET'.
7687 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7688 * sparc-nat.c (gdb_ptrace): Likewise.
7689 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7690
f7d4f0b1
TT
76912020-03-20 Tom Tromey <tromey@adacore.com>
7692
7693 * c-exp.y (lex_one_token): Fix assert.
7694
f67210ff
TT
76952020-03-20 Tom Tromey <tromey@adacore.com>
7696
7697 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7698 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7699 strncpy call.
7700
1773be9e
TT
77012020-03-20 Tom Tromey <tromey@adacore.com>
7702
7703 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7704
70304be9
TT
77052020-03-20 Tom Tromey <tromey@adacore.com>
7706
7707 * ada-valprint.c (print_variant_part): Remove parameters; switch
7708 to value-based API.
7709 (print_field_values): Likewise.
7710 (ada_val_print_struct_union): Likewise.
7711 (ada_value_print_1): Update.
7712
9faa006d
KR
77132020-03-20 Kamil Rytarowski <n54@gmx.com>
7714
7715 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7716 nbsd_nat_target instead of inf_ptrace_target.
7717 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7718 nbsd_nat_target.
7719
4a90f062
KR
77202020-03-20 Kamil Rytarowski <n54@gmx.com>
7721
7722 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7723 it to the ptrace call.
7724 * (store_registers): Likewise.
7725
77262020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7727
7728 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7729 it to the ptrace call.
7730 * (store_registers): Likewise.
7731
2d07da27
LM
77322020-03-19 Luis Machado <luis.machado@linaro.org>
7733
7734 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7735 valid, fetch vg value from ptrace.
7736
f09db380
KR
77372020-03-19 Kamil Rytarowski <n54@gmx.com>
7738 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7739 * inf-ptrace.c: Likewise.
7740 * (gdb_ptrace): Add.
7741 * (inf_ptrace_target::resume): Update.
7742 * (inf_ptrace_target::xfer_partial): Likewise.
7743 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7744 * (inf_ptrace_peek_poke): Update.
7745
fcc7376e
KR
77462020-03-19 Kamil Rytarowski <n54@gmx.com>
7747
7748 * x86-bsd-nat.c (gdb_ptrace): New.
7749 * (x86bsd_dr_set): Add new argument `ptid'.
7750 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7751 x86bsd_dr_set_addr): Update.
7752
cada5fc9
AB
77532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * remote.c (remote_target::process_stop_reply): Handle events for
7756 all threads differently.
7757
19a2740f
AB
77582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * completer.c (completion_tracker::remove_completion): Define new
7761 function.
7762 * completer.h (completion_tracker::remove_completion): Declare new
7763 function.
7764 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7765 when adding a C++ function symbol.
7766
724fd9ba
AB
77672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7768
7769 * completer.c (completion_tracker::completion_hash_entry): Define
7770 new class.
7771 (advance_to_filename_complete_word_point): Call
7772 recompute_lowest_common_denominator.
7773 (completion_tracker::completion_tracker): Call discard_completions
7774 to setup the hash table.
7775 (completion_tracker::discard_completions): Allow for being called
7776 from the constructor, pass new equal function, and element deleter
7777 when constructing the hash table. Initialise new class member
7778 variables.
7779 (completion_tracker::maybe_add_completion): Remove use of
7780 m_entries_vec, and store more information into m_entries_hash.
7781 (completion_tracker::recompute_lcd_visitor): New function, most
7782 content taken from...
7783 (completion_tracker::recompute_lowest_common_denominator):
7784 ...here, this now just visits each item in the hash calling the
7785 above visitor.
7786 (completion_tracker::build_completion_result): Remove use of
7787 m_entries_vec, call recompute_lowest_common_denominator.
7788 * completer.h (completion_tracker::have_completions): Remove use
7789 of m_entries_vec.
7790 (completion_tracker::completion_hash_entry): Declare new class.
7791 (completion_tracker::recompute_lowest_common_denominator): Change
7792 function signature.
7793 (completion_tracker::recompute_lcd_visitor): Declare new function.
7794 (completion_tracker::m_entries_vec): Delete.
7795 (completion_tracker::m_entries_hash): Initialize to NULL.
7796 (completion_tracker::m_lowest_common_denominator_valid): New
7797 member variable.
7798 (completion_tracker::m_lowest_common_denominator_max_length): New
7799 member variable.
7800
5a82b8a1
KR
78012020-03-17 Kamil Rytarowski <n54@gmx.com>
7802
7803 * regformats/regdef.h: Put reg in gdb namespace.
7804
fb516a69
KR
78052020-03-17 Kamil Rytarowski <n54@gmx.com>
7806
7807 * i386-bsd-nat.c (gdb_ptrace): New.
7808 * (i386bsd_fetch_inferior_registers,
7809 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7810 * (i386bsd_fetch_inferior_registers,
7811 i386bsd_store_inferior_registers) Use gdb_ptrace.
7812
1c0aa1fb
KR
78132020-03-17 Kamil Rytarowski <n54@gmx.com>
7814
7815 * amd64-bsd-nat.c (gdb_ptrace): New.
7816 * (amd64bsd_fetch_inferior_registers,
7817 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7818 * (amd64bsd_fetch_inferior_registers,
7819 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7820
5ccd2fb7
KR
78212020-03-17 Kamil Rytarowski <n54@gmx.com>
7822
7823 * user-regs.c (user_reg::read): Rename to...
7824 (user_reg::xread): ...this.
7825 * (append_user_reg): Rename argument `read' to `xread'.
7826 * (user_reg_add_builtin): Likewise.
7827 * (user_reg_add): Likewise.
7828 * (value_of_user_reg): Likewise.
7829
2108a63a
KR
78302020-03-17 Kamil Rytarowski <n54@gmx.com>
7831
7832 * sparc-nat.c (gdb_ptrace): New.
7833 * sparc-nat.c (sparc_fetch_inferior_registers)
7834 (sparc_store_inferior_registers) Remove obsolete comment.
7835 * sparc-nat.c (sparc_fetch_inferior_registers)
7836 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7837 * sparc-nat.c (sparc_fetch_inferior_registers)
7838 (sparc_store_inferior_registers) Use gdb_ptrace.
7839
a225c9a8
KR
78402020-03-17 Kamil Rytarowski <n54@gmx.com>
7841
7842 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7843 it to the ptrace call.
7844 * sh-nbsd-nat.c (store_registers): Likewise.
7845
98097623
KR
78462020-03-17 Kamil Rytarowski <n54@gmx.com>
7847
7848 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7849 nbsd_nat_target instead of inf_ptrace_target.
7850 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7851 nbsd_nat_target.
7852
9e38d619
KR
78532020-03-17 Kamil Rytarowski <n54@gmx.com>
7854
7855 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7856
a2ecbe9f
KR
78572020-03-17 Kamil Rytarowski <n54@gmx.com>
7858
7859 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7860 <sys/sysctl.h>.
7861 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7862
58990295
TV
78632020-03-17 Tom de Vries <tdevries@suse.de>
7864
7865 PR gdb/23710
7866 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7867 fields.
7868 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7869 fields.
7870 (process_imported_unit_die): Skip import of c++ CUs.
7871
771dd3a8
TT
78722020-03-16 Tom Tromey <tom@tromey.com>
7873
7874 * p-valprint.c (pascal_object_print_value): Initialize
7875 base_value.
7876
817a7585
AK
78772020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7878 Shahab Vahedi <shahab@synopsys.com>
7879
7880 * Makefile.in: Add arch/arc.o
7881 * configure.tgt: Likewise.
7882 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7883 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7884 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7885 * arc-tdep.h (arc_read_description): Add proto type.
7886 * arch/arc.c: New file.
7887 * arch/arc.h: Likewise.
7888 * features/Makefile: Replace old target descriptions with new.
7889 * features/arc-arcompact.c: Remove.
7890 * features/arc-arcompact.xml: Likewise.
7891 * features/arc-v2.c: Likewise
7892 * features/arc-v2.xml: Likewise
7893 * features/arc/aux-arcompact.xml: New file.
7894 * features/arc/aux-v2.xml: Likewise.
7895 * features/arc/core-arcompact.xml: Likewise.
7896 * features/arc/core-v2.xml: Likewise.
7897 * features/arc/aux-arcompact.c: Generate.
7898 * features/arc/aux-v2.c: Likewise.
7899 * features/arc/core-arcompact.c: Likewise.
7900 * features/arc/core-v2.c: Likewise.
7901 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7902
67430cd0
TT
79032020-03-16 Tom Tromey <tromey@adacore.com>
7904
7905 PR gdb/25663:
7906 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7907 putting value into bcache.
7908
30efb6c7
SM
79092020-03-16 Simon Marchi <simon.marchi@efficios.com>
7910
7911 PR gdb/21500
7912 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7913 to...
7914 (amd64_windows_init_abi_common): ... this. Don't set size of
7915 long type.
7916 (amd64_windows_init_abi): New function.
7917 (amd64_cygwin_init_abi): New function.
7918 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7919 the Cygwin OS ABI.
7920 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7921 comment.
7922
8db52437
SM
79232020-03-16 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7926 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7927 (pe_import_directory_entry): New struct type.
7928 (is_linked_with_cygwin_dll): New function.
7929 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7930 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7931 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7932
5982a56a
SM
79332020-03-16 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7936 i386_cygwin_core_osabi_sniffer.
7937
7a1998df
SM
79382020-03-16 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * i386-cygwin-tdep.c: Rename to...
7941 * i386-windows-tdep.c: ... this.
7942 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7943 i386-windows-tdep.c.
7944 * configure.tgt: Likewise.
7945
053205cc
SM
79462020-03-16 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7949 * osabi.c (gdb_osabi_names): Add "Windows".
7950 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7951 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7952 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7953 i386_cygwin_osabi_sniffer.
7954 (_initialize_i386_cygwin_tdep): Register OS ABI
7955 GDB_OSABI_WINDOWS for i386.
7956 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7957 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7958 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7959 for x86-64.
7960 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7961 when the target matches '*-*-mingw*'.
7962
fe4b2ee6
SM
79632020-03-16 Simon Marchi <simon.marchi@efficios.com>
7964
7965 * defs.h (enum gdb_osabi): Move to...
7966 * osabi.h (enum gdb_osabi): ... here.
7967 * gdbarch.sh: Include osabi.h in gdbarch.h.
7968 * gdbarch.h: Re-generate.
7969
cb9b645d
SM
79702020-03-16 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7973 function.
7974 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7975
3293bbaf
TT
79762020-03-14 Tom Tromey <tom@tromey.com>
7977
7978 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7979 for C++.
7980 (c_type_print_modifier): Likewise. Add "language" parameter.
7981 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7982 (c_type_print_base_1): Update.
7983 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7984 constants.
7985 * type-stack.c (type_stack::insert): Handle tp_atomic and
7986 tp_restrict.
7987 (type_stack::follow_type_instance_flags): Likewise.
7988 (type_stack::follow_types): Likewise. Merge type-following code.
7989 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7990 (space_identifier, cv_with_space_id)
7991 (const_or_volatile_or_space_identifier_noopt)
7992 (const_or_volatile_or_space_identifier): Remove.
7993 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7994 rules.
7995 (ptr_operator, typebase): Update.
7996 (enum token_flag) <FLAG_C>: New constant.
7997 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7998 "_Atomic".
7999 (lex_one_token): Handle FLAG_C.
8000
154151a6
KR
80012020-03-14 Kamil Rytarowski <n54@gmx.com>
8002
8003 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8004 it to the ptrace call.
8005 * m68k-bsd-nat.c (store_registers): Likewise.
8006
bc107784
KR
80072020-03-14 Kamil Rytarowski <n54@gmx.com>
8008
8009 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8010 gdb_byte *.
8011 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8012 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8013 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8014
01a80117
KR
80152020-03-14 Kamil Rytarowski <n54@gmx.com>
8016
8017 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8018 nbsd_nat_target instead of inf_ptrace_target.
8019 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8020 nbsd_nat_target.
8021
f90280ca
KR
80222020-03-14 Kamil Rytarowski <n54@gmx.com>
8023
8024 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8025 register_t.
8026
6def66f1
KR
80272020-03-14 Kamil Rytarowski <n54@gmx.com>
8028
8029 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8030 it to the ptrace call.
8031 * alpha-bsd-nat.c (store_registers): Likewise.
8032
66eaca97
KR
80332020-03-14 Kamil Rytarowski <n54@gmx.com>
8034
8035 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8036 includes.
8037 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8038 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8039 fill_fpregset): Likewise.
8040
4fed520b
KR
80412020-03-14 Kamil Rytarowski <n54@gmx.com>
8042
8043 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8044 nbsd_nat_target instead of inf_ptrace_target.
8045 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8046 nbsd_nat_target.
8047
2190cf06
KR
80482020-03-14 Kamil Rytarowski <n54@gmx.com>
8049
8050 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8051 register_t.
8052
75c56d3d
KR
80532020-03-14 Kamil Rytarowski <n54@gmx.com>
8054
8055 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8056 it to the ptrace call.
8057 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8058 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8059 * arm-nbsd-nat.c (store_register): Likewise.
8060 * arm-nbsd-nat.c (store_regs): Likewise.
8061 * arm-nbsd-nat.c (store_fp_register): Likewise.
8062 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8063
6018d381
KR
80642020-03-14 Kamil Rytarowski <n54@gmx.com>
8065
8066 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8067 nbsd_nat_target instead of inf_ptrace_target.
8068 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8069 nbsd_nat_target.
8070
013f99f0
KR
80712020-03-14 Kamil Rytarowski <n54@gmx.com>
8072
8073 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8074 it to the ptrace call.
8075 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8076
12753073
KR
80772020-03-14 Kamil Rytarowski <n54@gmx.com>
8078
6227b330
KR
8079 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8080 it to the ptrace call.
8081 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8082
80832020-03-14 Kamil Rytarowski <n54@gmx.com>
8084
8085 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8086 gdb_byte *.
12753073
KR
8087 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8088
d5be5fa4
KR
80892020-03-14 Kamil Rytarowski <n54@gmx.com>
8090
8091 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8092 instead of inf_ptrace_target.
8093 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8094 nbsd_nat_target.
8095
8110f842
KR
80962020-03-14 Kamil Rytarowski <n54@gmx.com>
8097
8098 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8099 register_t.
8100
52feded7
KR
81012020-03-14 Kamil Rytarowski <n54@gmx.com>
8102
8103 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8104 register_t.
8105
25567eee
KR
81062020-03-14 Kamil Rytarowski <n54@gmx.com>
8107
8108 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8109 register_t.
8110
426a9c18
TT
81112020-03-13 Tom Tromey <tom@tromey.com>
8112
8113 * value.h (val_print): Don't declare.
8114 * valprint.h (val_print_array_elements)
8115 (val_print_scalar_formatted, generic_val_print): Don't declare.
8116 * valprint.c (generic_val_print_array): Take a struct value.
8117 (generic_val_print_ptr, generic_val_print_memberptr)
8118 (generic_val_print_bool, generic_val_print_int)
8119 (generic_val_print_char, generic_val_print_complex)
8120 (generic_val_print): Remove.
8121 (generic_value_print): Update.
8122 (do_val_print): Remove unused parameters. Don't call
8123 la_val_print.
8124 (val_print): Remove.
8125 (common_val_print): Update. Don't call value_check_printable.
8126 (val_print_scalar_formatted, val_print_array_elements): Remove.
8127 * rust-lang.c (rust_val_print): Remove.
8128 (rust_language_defn): Update.
8129 * p-valprint.c (pascal_val_print): Remove.
8130 (pascal_value_print_inner): Update.
8131 (pascal_object_print_val_fields, pascal_object_print_val):
8132 Remove.
8133 (pascal_object_print_static_field): Update.
8134 * p-lang.h (pascal_val_print): Don't declare.
8135 * p-lang.c (pascal_language_defn): Update.
8136 * opencl-lang.c (opencl_language_defn): Update.
8137 * objc-lang.c (objc_language_defn): Update.
8138 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8139 * m2-lang.h (m2_val_print): Don't declare.
8140 * m2-lang.c (m2_language_defn): Update.
8141 * language.h (struct language_defn) <la_val_print>: Remove.
8142 * language.c (unk_lang_value_print_inner): Rename. Change
8143 argument types.
8144 (unknown_language_defn, auto_language_defn): Update.
8145 * go-valprint.c (go_val_print): Remove.
8146 * go-lang.h (go_val_print): Don't declare.
8147 * go-lang.c (go_language_defn): Update.
8148 * f-valprint.c (f_val_print): Remove.
8149 * f-lang.h (f_value_print): Don't declare.
8150 * f-lang.c (f_language_defn): Update.
8151 * d-valprint.c (d_val_print): Remove.
8152 * d-lang.h (d_value_print): Don't declare.
8153 * d-lang.c (d_language_defn): Update.
8154 * cp-valprint.c (cp_print_value_fields)
8155 (cp_print_value_fields_rtti, cp_print_value): Remove.
8156 (cp_print_static_field): Update.
8157 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8158 (c_val_print_struct, c_val_print_union, c_val_print_int)
8159 (c_val_print_memberptr, c_val_print): Remove.
8160 * c-lang.h (c_val_print_array, cp_print_value_fields)
8161 (cp_print_value_fields_rtti): Don't declare.
8162 * c-lang.c (c_language_defn, cplus_language_defn)
8163 (asm_language_defn, minimal_language_defn): Update.
8164 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8165 (ada_val_print_enum): Take a struct value.
8166 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8167 (ada_val_print): Remove.
8168 (ada_value_print_1): Update.
8169 (printable_val_type): Remove.
8170 * ada-lang.h (ada_val_print): Don't declare.
8171 * ada-lang.c (ada_language_defn): Update.
8172
42331a1e
TT
81732020-03-13 Tom Tromey <tom@tromey.com>
8174
8175 * valprint.c (do_val_print): Update.
8176 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8177 a struct value.
8178 (value_to_value_object_no_release): Declare.
8179 * python/py-value.c (value_to_value_object_no_release): New
8180 function.
8181 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8182 struct value.
8183 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8184 function.
8185 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8186 a struct value.
8187 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8188 Declare.
8189 (gdbscm_apply_val_pretty_printer): Take a struct value.
8190 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8191 value.
8192 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8193 value.
8194 * extension-priv.h (struct extension_language_ops)
8195 <apply_val_pretty_printer>: Take a struct value.
8196 * cp-valprint.c (cp_print_value): Create a struct value.
8197 (cp_print_value): Update.
8198
3a916a97
TT
81992020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * ada-valprint.c (print_field_values): Call common_val_print.
8202
b59eac37
TT
82032020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * ada-valprint.c (val_print_packed_array_elements): Remove
8206 bitoffset and val parameters. Call common_val_print.
8207 (ada_val_print_string): Remove offset, address, and original_value
8208 parameters.
8209 (ada_val_print_array): Update.
8210 (ada_value_print_array): New function.
8211 (ada_value_print_1): Call it.
8212
03371129
TT
82132020-03-13 Tom Tromey <tom@tromey.com>
8214
8215 * ada-valprint.c (ada_value_print): Use common_val_print.
8216
2e088f8b
TT
82172020-03-13 Tom Tromey <tom@tromey.com>
8218
8219 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8220
39ef85a8
TT
82212020-03-13 Tom Tromey <tom@tromey.com>
8222
8223 * ada-valprint.c (ada_value_print_num): New function.
8224 (ada_value_print_1): Use it.
8225
b9fa6e07
TT
82262020-03-13 Tom Tromey <tom@tromey.com>
8227
8228 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8229
416595d6
TT
82302020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * ada-valprint.c (ada_value_print_ptr): New function.
8233 (ada_value_print_1): Use it.
8234
5b5e15ec
TT
82352020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8238 call common_val_print.
8239 (ada_val_print_1): Update.
8240 (ada_value_print_1): New function.
8241 (ada_value_print_inner): Rewrite.
8242
fbf54e75
TT
82432020-03-13 Tom Tromey <tom@tromey.com>
8244
8245 * cp-valprint.c (cp_print_value_fields): Update.
8246 (cp_print_value): New function.
8247
64b653ca
TT
82482020-03-13 Tom Tromey <tom@tromey.com>
8249
8250 * m2-valprint.c (m2_value_print_inner): Use
8251 cp_print_value_fields.
8252 * cp-valprint.c (cp_print_value_fields): New function.
8253 * c-valprint.c (c_value_print_struct): New function.
8254 (c_value_print_inner): Use c_value_print_struct.
8255 * c-lang.h (cp_print_value_fields): Declare.
8256
6999f067
TT
82572020-03-13 Tom Tromey <tom@tromey.com>
8258
8259 * c-valprint.c (c_value_print_array): New function.
8260 (c_value_print_inner): Use it.
8261
ce80b8bd
TT
82622020-03-13 Tom Tromey <tom@tromey.com>
8263
8264 * c-valprint.c (c_value_print_memberptr): New function.
8265 (c_value_print_inner): Use it.
8266
2faac269
TT
82672020-03-13 Tom Tromey <tom@tromey.com>
8268
8269 * c-valprint.c (c_value_print_int): New function.
8270 (c_value_print_inner): Use it.
8271
da3e2c29
TT
82722020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * c-valprint.c (c_value_print_ptr): New function.
8275 (c_value_print_inner): Use it.
8276
50836231
TT
82772020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * c-valprint.c (c_value_print_inner): Rewrite.
8280
4f412b6e
TT
82812020-03-13 Tom Tromey <tom@tromey.com>
8282
8283 * valprint.c (generic_value_print_complex): New function.
8284 (generic_value_print): Use it.
8285
f5354008
TT
82862020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * valprint.c (generic_val_print_float): Don't call
8289 val_print_scalar_formatted.
8290 (generic_val_print, generic_value_print): Update.
8291
3eec3b05
TT
82922020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * valprint.c (generic_value_print_char): New function
8295 (generic_value_print): Use it.
8296
fdddfccb
TT
82972020-03-13 Tom Tromey <tom@tromey.com>
8298
8299 * valprint.c (generic_value_print_int): New function.
8300 (generic_value_print): Use it.
8301
6dde7521
TT
83022020-03-13 Tom Tromey <tom@tromey.com>
8303
8304 * valprint.c (generic_value_print_bool): New function.
8305 (generic_value_print): Use it.
8306
4112d2e6
TT
83072020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * valprint.c (generic_val_print_func): Simplify.
8310 (generic_val_print, generic_value_print): Update.
8311
65786af6
TT
83122020-03-13 Tom Tromey <tom@tromey.com>
8313
8314 * valprint.c (generic_val_print_flags): Remove.
8315 (generic_val_print, generic_value_print): Update.
8316 (val_print_type_code_flags): Add original_value parameter.
8317
40f3ce18
TT
83182020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * valprint.c (generic_val_print): Update.
8321 (generic_value_print): Update.
8322 * valprint.c (generic_val_print_enum): Don't call
8323 val_print_scalar_formatted.
8324
2a5b130b
TT
83252020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8328 * valprint.c (generic_value_print_ptr): New function.
8329
abc66ce9
TT
83302020-03-13 Tom Tromey <tom@tromey.com>
8331
8332 * valprint.c (generic_value_print): Rewrite.
8333
07a32858
TT
83342020-03-13 Tom Tromey <tom@tromey.com>
8335
8336 * p-valprint.c (pascal_object_print_value_fields)
8337 (pascal_object_print_value): New functions.
8338
64d64d3a
TT
83392020-03-13 Tom Tromey <tom@tromey.com>
8340
8341 * p-valprint.c (pascal_value_print_inner): Rewrite.
8342
6a95a1f5
TT
83432020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * f-valprint.c (f_value_print_innner): Rewrite.
8346
59fcdac6
TT
83472020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * m2-valprint.c (m2_print_unbounded_array): New overload.
8350 (m2_print_unbounded_array): Update.
8351 (m2_print_array_contents): Take a struct value.
8352 (m2_value_print_inner): Rewrite.
8353
d133c3e1
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8357 (d_value_print_inner): New function.
8358 * d-lang.h (d_value_print_inner): Declare.
8359 * d-lang.c (d_language_defn): Use d_value_print_inner.
8360
23b0f06b
TT
83612020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * go-valprint.c (go_value_print_inner): New function.
8364 * go-lang.h (go_value_print_inner): Declare.
8365 * go-lang.c (go_language_defn): Use go_value_print_inner.
8366
5f56f7cb
TT
83672020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8370 API.
8371 (rust_val_print): Rewrite.
8372 (rust_value_print_inner): New function, from rust_val_print.
8373 (rust_language_defn): Use rust_value_print_inner.
8374
26792ee0
TT
83752020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * ada-valprint.c (ada_value_print_inner): New function.
8378 * ada-lang.h (ada_value_print_inner): Declare.
8379 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8380
24051bbe
TT
83812020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * f-valprint.c (f_value_print_innner): New function.
8384 * f-lang.h (f_value_print_innner): Declare.
8385 * f-lang.c (f_language_defn): Use f_value_print_innner.
8386
c0941be6
TT
83872020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * p-valprint.c (pascal_value_print_inner): New function.
8390 * p-lang.h (pascal_value_print_inner): Declare.
8391 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8392
62c4663d
TT
83932020-03-13 Tom Tromey <tom@tromey.com>
8394
8395 * m2-valprint.c (m2_value_print_inner): New function.
8396 * m2-lang.h (m2_value_print_inner): Declare.
8397 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8398
62182190
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8402 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8403 * c-valprint.c (c_value_print_inner): New function.
8404 * c-lang.h (c_value_print_inner): Declare.
8405 * c-lang.c (c_language_defn, cplus_language_defn)
8406 (asm_language_defn, minimal_language_defn): Use
8407 c_value_print_inner.
8408
1e592a8a
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * p-valprint.c (pascal_object_print_value_fields): Now static.
8412 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8413
7fe471e9
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * c-valprint.c (c_val_print_array): Simplify.
8417
d121c6ce
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * valprint.c (value_print_array_elements): New function.
8421 * valprint.h (value_print_array_elements): Declare.
8422
4dba70ee
TT
84232020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8426 * mips-tdep.c (mips_print_register): Use
8427 value_print_scalar_formatted.
8428
4f9ae810
TT
84292020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * valprint.h (value_print_scalar_formatted): Declare.
8432 * valprint.c (value_print_scalar_formatted): New function.
8433
156bfec9
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * valprint.h (generic_value_print): Declare.
8437 * valprint.c (generic_value_print): New function.
8438
2b4e573d
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * valprint.c (do_val_print): Call la_value_print_inner, if
8442 available.
8443 * rust-lang.c (rust_language_defn): Update.
8444 * p-lang.c (pascal_language_defn): Update.
8445 * opencl-lang.c (opencl_language_defn): Update.
8446 * objc-lang.c (objc_language_defn): Update.
8447 * m2-lang.c (m2_language_defn): Update.
8448 * language.h (struct language_defn) <la_value_print_inner>: New
8449 member.
8450 * language.c (unknown_language_defn, auto_language_defn): Update.
8451 * go-lang.c (go_language_defn): Update.
8452 * f-lang.c (f_language_defn): Update.
8453 * d-lang.c (d_language_defn): Update.
8454 * c-lang.c (c_language_defn, cplus_language_defn)
8455 (asm_language_defn, minimal_language_defn): Update.
8456 * ada-lang.c (ada_language_defn): Update.
8457
a1f6a07c
TT
84582020-03-13 Tom Tromey <tom@tromey.com>
8459
8460 * c-valprint.c (c_value_print): Use common_val_print.
8461
410cf315
TT
84622020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8465
72a45c93
TT
84662020-03-13 Tom Tromey <tom@tromey.com>
8467
8468 * f-valprint.c (f77_print_array_1, f_val_print): Use
8469 common_val_print.
8470
040f66bd
TT
84712020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * riscv-tdep.c (riscv_print_one_register_info): Use
8474 common_val_print.
8475
a6e05a6c
TT
84762020-03-13 Tom Tromey <tom@tromey.com>
8477
8478 * mi/mi-main.c (output_register): Use common_val_print.
8479
3444c526
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * infcmd.c (default_print_one_register_info): Use
8483 common_val_print.
8484
c2a44efe
TT
84852020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * valprint.h (common_val_print_checked): Declare.
8488 * valprint.c (common_val_print_checked): New function.
8489 * stack.c (print_frame_arg): Use common_val_print_checked.
8490
b0c26e99
TT
84912020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * valprint.c (do_val_print): New function, from val_print.
8494 (val_print): Use do_val_print.
8495 (common_val_print): Use do_val_print.
8496
ce3acbe9
TT
84972020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * valprint.c (value_print): Use scoped_value_mark.
8500
96c7f873
TV
85012020-03-13 Tom de Vries <tdevries@suse.de>
8502
8503 PR symtab/25646
8504 * psymtab.c (partial_symtab::partial_symtab): Don't set
8505 globals_offset and statics_offset. Push element onto
8506 current_global_psymbols and current_static_psymbols stacks.
8507 (concat): New function.
8508 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8509 element from current_global_psymbols and current_static_psymbols
8510 stacks. Concat popped elements to global_psymbols and
8511 static_symbols.
8512 (add_psymbol_to_list): Use current_global_psymbols and
8513 current_static_psymbols stacks.
8514 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8515 current_static_psymbols fields.
8516
6ba0a321
CB
85172020-03-12 Christian Biesinger <cbiesinger@google.com>
8518
8519 * corelow.c (sniff_core_bfd): Remove.
8520 (class core_target) <m_core_vec>: Remove.
8521 (core_target::core_target): Update.
8522 (core_file_fns): Remove.
8523 (deprecated_add_core_fns): Remove.
8524 (default_core_sniffer): Remove.
8525 (sniff_core_bfd): Remove.
8526 (default_check_format): Remove.
8527 (gdb_check_format): Remove.
8528 (core_target_open): Update.
8529 (core_target::get_core_register_section): Update.
8530 (get_core_registers_cb): Update.
8531 (core_target::fetch_registers): Update.
8532 * gdbcore.h (struct core_fns): Remove.
8533 (deprecated_add_core_fns): Remove.
8534 (default_core_sniffer): Remove.
8535 (default_check_format): Remove.
8536
227031b2
TT
85372020-03-12 Tom Tromey <tom@tromey.com>
8538
8539 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8540 CORE_ADDR.
8541 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8542
53807e9f
TT
85432020-03-12 Tom Tromey <tom@tromey.com>
8544
8545 * remote.c (remote_target::download_tracepoint)
8546 (remote_target::enable_tracepoint)
8547 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8548 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8549 sprintf_vma.
8550
64f25102
TT
85512020-03-12 Tom Tromey <tom@tromey.com>
8552
8553 * symfile-mem.c: Update CORE_ADDR size assert.
8554
272cd5a3
SM
85552020-03-12 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * selftest.m4: Move to gdbsupport/.
8558 * acinclude.m4: Update path to selftest.m4.
8559
74cd3f9d
SM
85602020-03-12 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8563 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8564 gdbarch-selfselftests.c and selftest-arch.c.
8565 (SUBDIR_UNITTESTS_OBS): Rename to...
8566 (SELFTESTS_OBS): ... this.
8567 (COMMON_SFILES): Remove disasm-selftests.c and
8568 gdbarch-selftests.c.
8569 * configure.ac: Don't add selftest-arch.{c,o} to
8570 CONFIG_{SRCS,OBS}.
8571 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8572 preprocessor conditions.
8573
db6878ac
SM
85742020-03-12 Simon Marchi <simon.marchi@efficios.com>
8575
8576 * configure.ac: Don't source bfd/development.sh.
8577 * selftest.m4: Modify comment.
8578 * configure: Re-generate.
8579
4d696a5c
SM
85802020-03-12 Simon Marchi <simon.marchi@efficios.com>
8581
8582 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8583 not "true" or "false".
8584 * configure: Re-generate.
8585
8dd8e1c7
CB
85862020-03-12 Christian Biesinger <cbiesinger@google.com>
8587
8588 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8589 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8590 renamed to arm_nbsd_supply_gregset.
8591 (fetch_register): Update to call arm_nbsd_supply_gregset.
8592 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8593 (arm_netbsd_nat_target::fetch_registers): Update.
8594 (fetch_elfcore_registers): Removed.
8595 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8596 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8597 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8598 not require NetBSD system headers.
8599 (arm_nbsd_regset): New struct.
8600 (arm_nbsd_iterate_over_regset_sections): New function.
8601 (arm_netbsd_init_abi_common): Updated to call
8602 set_gdbarch_iterate_over_regset_sections.
8603 * arm-nbsd-tdep.h: New file.
8604
dd69bf7a
KB
86052020-03-11 Kevin Buettner <kevinb@redhat.com>
8606
8607 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8608 recursion.
8609
a0761e34
SM
86102020-03-11 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * configure: Re-generate.
8613
e7a82140
TT
86142020-03-11 Tom Tromey <tromey@adacore.com>
8615
8616 * ada-typeprint.c (print_choices): Fix comment.
8617
dcc050c8
AB
86182020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8619
8620 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8621 previous item in the list, when the list has no items.
8622
1c33af77
TV
86232020-03-11 Tom de Vries <tdevries@suse.de>
8624
8625 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8626 PROP_LOCLIST handling code.
8627
8c95582d
AB
86282020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * buildsym-legacy.c (record_line): Pass extra parameter to
8631 record_line.
8632 * buildsym.c (buildsym_compunit::record_line): Take an extra
8633 parameter, reduce duplication in the line table, and record the
8634 is_stmt flag in the line table.
8635 * buildsym.h (buildsym_compunit::record_line): Add extra
8636 parameter.
8637 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8638 non-statement lines.
8639 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8640 this to the symtab builder.
8641 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8642 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8643 through to dwarf_record_line_1.
8644 * infrun.c (process_event_stop_test): When stepping, don't stop at
8645 a non-statement instruction, and only refresh the step info when
8646 we land in the middle of a line's range. Also add an extra
8647 comment.
8648 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8649 field.
8650 * record-btrace.c (btrace_find_line_range): Only record lines
8651 marked as is-statement.
8652 * stack.c (frame_show_address): Show the frame address if we are
8653 in a non-statement sal.
8654 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8655 (maintenance_print_one_line_table): Print a header for the is_stmt
8656 column, and include is_stmt information in the output.
8657 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8658 preference to non-statements.
8659 (find_pcs_for_symtab_line): Prefer is-statement entries.
8660 (find_line_common): Likewise.
8661 * symtab.h (struct linetable_entry): Add is_stmt field.
8662 (struct symtab_and_line): Likewise.
8663 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8664 arranging the line table.
8665
e4003a34
TV
86662020-03-07 Tom de Vries <tdevries@suse.de>
8667
8668 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8669 DIE.
8670
e8932576
TT
86712020-03-07 Tom Tromey <tom@tromey.com>
8672
8673 * valops.c (value_literal_complex): Remove obsolete comment.
8674 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8675 comment.
8676
29734269
SM
86772020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8678
8679 * infrun.h: Forward-declare thread_info.
8680 (set_step_info): Add thread_info parameter, add doc.
8681 * infrun.c (set_step_info): Add thread_info parameter, move doc
8682 to header.
8683 * infrun.c (process_event_stop_test): Pass thread to
8684 set_step_info call.
8685 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8686 set_step_info.
8687 (prepare_one_step): Add thread_info parameter, pass it to
8688 set_step_frame and prepare_one_step (recursive) call.
8689 (step_1): Pass thread to prepare_one_step call.
8690 (step_command_fsm::should_stop): Pass thread to
8691 prepare_one_step.
8692 (until_next_fsm): Pass thread to set_step_frame call.
8693 (finish_command): Pass thread to set_step_info call.
8694
b7d64b29
HD
86952020-03-06 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * windows-tdep.c (windows_solib_create_inferior_hook):
8698 Check if inferior is running.
8699
09f2921c
TV
87002020-03-06 Tom de Vries <tdevries@suse.de>
8701
8702 * NEWS: Fix "the the".
8703 * ctfread.c: Same.
8704
fd760e79
TV
87052020-03-06 Tom de Vries <tdevries@suse.de>
8706
8707 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8708
20ea4a60
AB
87092020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8710
8711 * .dir-locals.el: Add a comment referencing the other copies of
8712 this file.
8713
0afbabf0
JB
87142020-03-05 John Baldwin <jhb@FreeBSD.org>
8715
8716 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8717 psargs.
8718
842806cb
TBA
87192020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8720
8721 * .gitattributes: New file.
8722
be1e3d3e
TT
87232020-03-04 Tom Tromey <tom@tromey.com>
8724
8725 * symmisc.c (print_symbol_bcache_statistics)
8726 (print_objfile_statistics): Update.
8727 * symfile.c (allocate_symtab): Use intern.
8728 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8729 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8730 macro_cache>: Remove.
8731 <string_cache>: New member.
8732 (struct objfile) <intern>: New methods.
8733 * elfread.c (elf_symtab_read): Use intern.
8734 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8735 (dwarf2_compute_name, dwarf2_physname)
8736 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8737 names.
8738 (guess_partial_die_structure_name): Update.
8739 (partial_die_info::fixup): Intern name.
8740 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8741 name.
8742 (dwarf2_name): Intern name. Update.
8743 * buildsym.c (buildsym_compunit::get_macro_table): Use
8744 string_cache.
8745
4e7625fd
TT
87462020-03-04 Tom Tromey <tom@tromey.com>
8747
8748 * jit.c (bfd_open_from_target_memory): Make "target" const.
8749 * corefile.c (gnutarget): Now const.
8750 * gdbcore.h (gnutarget): Now const.
8751
46f9f931
HD
87522020-03-04 Hannes Domani <ssbssa@yahoo.de>
8753
8754 * NEWS: Mention support for WOW64 processes.
8755 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8756 (amd64_windows_segment_register_p): Remove static.
8757 (_initialize_amd64_windows_nat): Update.
8758 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8759 * i386-windows-nat.c (context_offset): Update.
8760 (i386_mappings): Rename and remove static.
8761 (i386_windows_segment_register_p): Remove static.
8762 (_initialize_i386_windows_nat): Update.
8763 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8764 (STATUS_WX86_SINGLE_STEP): New macro.
8765 (EnumProcessModulesEx): New macro.
8766 (Wow64SuspendThread): New macro.
8767 (Wow64GetThreadContext): New macro.
8768 (Wow64SetThreadContext): New macro.
8769 (Wow64GetThreadSelectorEntry): New macro.
8770 (windows_set_context_register_offsets): Add static.
8771 (windows_set_segment_register_p): Likewise.
8772 (windows_add_thread): Adapt for WOW64 processes.
8773 (windows_fetch_one_register): Likewise.
8774 (windows_nat_target::fetch_registers): Likewise.
8775 (windows_store_one_register): Likewise.
8776 (display_selector): Likewise.
8777 (display_selectors): Likewise.
8778 (handle_exception): Likewise.
8779 (windows_continue): Likewise.
8780 (windows_nat_target::resume): Likewise.
8781 (windows_add_all_dlls): Likewise.
8782 (do_initial_windows_stuff): Likewise.
8783 (windows_nat_target::attach): Likewise.
8784 (windows_get_exec_module_filename): Likewise.
8785 (windows_nat_target::create_inferior): Likewise.
8786 (windows_xfer_siginfo): Likewise.
8787 (_initialize_loadable): Initialize Wow64SuspendThread,
8788 Wow64GetThreadContext, Wow64SetThreadContext,
8789 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8790 * windows-nat.h (windows_set_context_register_offsets):
8791 Remove declaration.
8792 (windows_set_segment_register_p): Likewise.
8793 (i386_windows_segment_register_p): Add declaration.
8794 (amd64_windows_segment_register_p): Likewise.
8795
440cf44e
LM
87962020-03-04 Luis Machado <luis.machado@linaro.org>
8797
8798 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8799 in "info registers" for AArch64/ARM.
8800
8801 The change caused "info registers" to not print GPR's.
8802
8803 gdb/ChangeLog:
8804
8805 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8806
8807 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8808 when reg->group is empty and reggroup is not.
8809
1009d92f
TT
88102020-03-03 Tom Tromey <tromey@adacore.com>
8811
8812 * dwarf2/frame.c (struct dwarf2_frame_cache)
8813 <checked_tailcall_bottom, entry_cfa_sp_offset,
8814 entry_cfa_sp_offset_p>: Remove members.
8815 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8816 (dwarf2_frame_prev_register): Don't call
8817 dwarf2_tailcall_sniffer_first.
8818 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8819 * frame-unwind.c (add_unwinder): New fuction.
8820 (frame_unwind_init): Use it. Add tailcall unwinder.
8821
5e5d66b6
AB
88222020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8823 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8824
8825 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8826 value should be printed as true.
8827
584cf46d
HD
88282020-03-03 Hannes Domani <ssbssa@yahoo.de>
8829
8830 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8831 (windows_init_abi): Set and use windows_so_ops.
8832
7b973adc
SDJ
88332020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8834
8835 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8836 when verifying if dealing with a convenience variable.
8837
bb7b70ab
LM
88382020-03-03 Luis Machado <luis.machado@linaro.org>
8839
8840 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8841
9822cb57
SM
88422020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8843
8844 * infrun.c (gdbarch_supports_displaced_stepping): New.
8845 (use_displaced_stepping): Break up conditions in smaller pieces.
8846 Use gdbarch_supports_displaced_stepping.
8847 (displaced_step_prepare_throw): Use
8848 gdbarch_supports_displaced_stepping.
8849
63e163f2
AB
88502020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * NEWS: Mention new behaviour of the history filename.
8853 * top.c (write_history_p): Add comment.
8854 (show_write_history_p): Add header comment, give a different
8855 message when history writing is on, but the history filename is
8856 empty.
8857 (history_filename): Add comment.
8858 (history_filename_empty): New function.
8859 (show_history_filename): Add header comment, give a different
8860 message when the filename is empty.
8861 (init_history): Compare history_filename against nullptr, and only
8862 read history if the filename is not empty.
8863 (set_history_filename): Add header comment, and only make
8864 non-empty filenames absolute.
8865 (init_main): Make the filename argument to 'set history filename'
8866 optional.
8867
81b86b97
CB
88682020-03-02 Christian Biesinger <cbiesinger@google.com>
8869
8870 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8871 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8872 (fetch_fp_register): Update.
8873 (fetch_fp_regs): Update.
8874 (store_fp_register): Update.
8875 (store_fp_regs): Update.
8876 (arm_netbsd_nat_target::read_description): New function.
8877 (fetch_elfcore_registers): Update.
8878
24ed6739
AB
88792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8880
8881 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8882 general_thread if the stop reply is missing a thread-id.
8883 (remote_target::process_stop_reply): Use the first non-exited
8884 thread if the target didn't pass a thread-id.
8885 * infrun.c (do_target_wait): Move call to
8886 switch_to_inferior_no_thread to ....
8887 (do_target_wait_1): ... here.
8888
a84bb2a0
JT
88892020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8890
8891 * debuginfod-support.c: Include defs.h first.
8892
658dadf0
TV
88932020-02-28 Tom de Vries <tdevries@suse.de>
8894
8895 * symfile.c (set_initial_language): Use default language for lookup.
8896
4ebe4877
SM
88972020-02-28 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8900 reader variable, pass `this` to read_cutu_die_from_dwo.
8901
e5da1139
AM
89022020-02-27 Aaron Merey <amerey@redhat.com>
8903
8904 * source.c (open_source_file): Check for nullptr when computing
8905 srcpath.
8906
317f7127
TT
89072020-02-27 Tom Tromey <tromey@adacore.com>
8908
8909 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8910 member.
8911 (dwarf2_add_field): Don't update nfields.
8912 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8913
3104d9ee
AB
89142020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8915
8916 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8917 abs.
8918
b83470bf
TT
89192020-02-26 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8922 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8923 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8924 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8925 per_cu_data.
8926
edfe0a0c
TT
89272020-02-26 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2/index-write.c (psym_index_map): Change type.
8930 (add_address_entry_worker, write_one_signatured_type)
8931 (recursively_count_psymbols, recursively_write_psymbols)
8932 (class debug_names, psyms_seen_size, write_gdbindex)
8933 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8934
0d79cdc4
AM
89352020-02-26 Aaron Merey <amerey@redhat.com>
8936
8937 * Makefile.in: Handle optional debuginfod support.
8938 * NEWS: Update.
8939 * README: Add --with-debuginfod summary.
8940 * config.in: Regenerate.
8941 * configure: Regenerate.
8942 * configure.ac: Handle optional debuginfod support.
8943 * debuginfod-support.c: debuginfod helper functions.
8944 * debuginfod-support.h: Ditto.
8945 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8946 summary.
8947 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8948 when a dwz file cannot be found.
8949 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8950 debuginfo file cannot be found.
8951 * source.c (open_source_file): Query debuginfod servers when a
8952 source file cannot be found.
8953 * top.c (print_gdb_configuration): Include
8954 --{with,without}-debuginfod in the output.
8955
b65ce565
JG
89562020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8957
8958 * thread.c (thr_try_catch_cmd): Print thread name.
8959
d4c9a4f8
SM
89602020-02-26 Simon Marchi <simon.marchi@efficios.com>
8961
8962 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8964 dwarf2_fetch_die_type_sect_off): Move to...
8965 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8967 dwarf2_fetch_die_type_sect_off): ... here.
8968 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8970 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8971
0dce4280
TV
89722020-02-26 Tom de Vries <tdevries@suse.de>
8973
8974 PR gdb/25603
8975 * symfile.c (set_initial_language): Exit-early if
8976 language_mode == language_mode_manual.
8977
450a1bfc
SM
89782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8979
8980 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8981 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8982 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8983
9e80cfa1
AB
89842020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * gdbtypes.c (create_array_type_with_stride): Handle negative
8987 array strides.
8988 * valarith.c (value_subscripted_rvalue): Likewise.
8989
09624f1f
LM
89902020-02-25 Luis Machado <luis.machado@linaro.org>
8991
8992 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8993
8cb5117c
SM
89942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8995
8996 * loc.h (dwarf2_get_die_type): Move to...
8997 * read.h (dwarf2_get_die_type): ... here.
8998 * read.c (dwarf2_get_die_type): Move doc to header.
8999
c325c44e
JB
90002020-02-25 Joel Brobecker <brobecker@adacore.com>
9001
9002 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9003 'gnulib/Makefile.in' to the list.
9004
4ac93832
TT
90052020-02-24 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9008 Remove.
9009 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9010 XOBNEWVEC.
9011
197400e8
TT
90122020-02-24 Tom Tromey <tom@tromey.com>
9013
9014 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9015 New method.
9016 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9017 (dw2_do_instantiate_symtab, dw2_get_file_names)
9018 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9019
76935768
TT
90202020-02-24 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9023 make_scoped_restore.
9024 (dwarf2_psymtab::read_symtab): Don't clear
9025 reading_partial_symbols.
9026
a88ef40d
TV
90272020-02-24 Tom de Vries <tdevries@suse.de>
9028
9029 PR gdb/25592
9030 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9031
c9af6521
TV
90322020-02-24 Tom de Vries <tdevries@suse.de>
9033
9034 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9035 commands layout next/prev/regs.
9036
5707a07a
TT
90372020-02-22 Tom Tromey <tom@tromey.com>
9038
9039 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9040 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9041
3b0fb49e
TT
90422020-02-22 Tom Tromey <tom@tromey.com>
9043
9044 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9045
283be8bf
TT
90462020-02-22 Tom Tromey <tom@tromey.com>
9047
9048 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9049 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9050 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9051 * tui/tui.c (_initialize_tui): Add usage text.
9052
ca793b96
TT
90532020-02-22 Tom Tromey <tom@tromey.com>
9054
9055 * tui/tui-win.c (tui_set_focus_command)
9056 (tui_set_win_height_command): Use error_no_arg.
9057 (_initialize_tui_win): Update help text.
9058 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9059
432b5c40
TT
90602020-02-22 Tom Tromey <tom@tromey.com>
9061
9062 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9063 * tui/tui-disasm.h (struct tui_disasm_window)
9064 <display_start_addr>: Declare.
9065 * tui/tui-source.h (struct tui_source_window)
9066 <display_start_addr>: Declare.
9067 * tui/tui-winsource.h (struct tui_source_window_base)
9068 <show_source_line, display_start_addr>: New methods.
9069 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9070 Rename and move to protected section.
9071 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9072 (tui_source_window_base::do_erase_source_content): Update.
9073 (tui_source_window_base::show_source_line): Now a method.
9074 (tui_source_window_base::show_source_content)
9075 (tui_source_window_base::tui_source_window_base)
9076 (tui_source_window_base::rerender)
9077 (tui_source_window_base::refill)
9078 (tui_source_window_base::do_scroll_horizontal)
9079 (tui_source_window_base::set_is_exec_point_at)
9080 (tui_source_window_base::update_breakpoint_info)
9081 (tui_source_window_base::update_exec_info): Update.
9082 * tui/tui-source.c (tui_source_window::set_contents)
9083 (tui_source_window::showing_source_p)
9084 (tui_source_window::do_scroll_vertical)
9085 (tui_source_window::location_matches_p)
9086 (tui_source_window::line_is_displayed): Update.
9087 (tui_source_window::display_start_addr): New method.
9088 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9089 (tui_disasm_window::do_scroll_vertical)
9090 (tui_disasm_window::location_matches_p): Update.
9091 (tui_disasm_window::display_start_addr): New method.
9092
01b1af32
TT
90932020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 * NEWS: Add entry for gdb.register_window_type.
9096 * tui/tui-layout.h (window_factory): New typedef.
9097 (tui_register_window): Declare.
9098 * tui/tui-layout.c (saved_tui_windows): New global.
9099 (tui_apply_current_layout): Use it.
9100 (tui_register_window): New function.
9101 * python/python.c (do_start_initialization): Call
9102 gdbpy_initialize_tui.
9103 (python_GdbMethods): Add "register_window_type" function.
9104 * python/python-internal.h (gdbpy_register_tui_window)
9105 (gdbpy_initialize_tui): Declare.
9106 * python/py-tui.c: New file.
9107 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9108
fc96d20b
TT
91092020-02-22 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9112
935c78c0
TT
91132020-02-22 Tom Tromey <tom@tromey.com>
9114
9115 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9116 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9117 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9118 (tui_set_win_focus_to): Move from tui-win.c.
9119
0240c8f1
TT
91202020-02-22 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9123 functions.
9124 (known_window_types): New global.
9125 (tui_get_window_by_name): Reimplement.
9126 (initialize_known_windows): New function.
9127 (validate_window_name): Rewrite.
9128 (_initialize_tui_layout): Call initialize_known_windows.
9129
fdb01f0c
TT
91302020-02-22 Tom Tromey <tom@tromey.com>
9131
9132 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9133 Remove constants.
9134 * tui/tui-winsource.h (struct tui_source_window_base)
9135 <tui_source_window_base>: Remove parameter.
9136 * tui/tui-winsource.c
9137 (tui_source_window_base::tui_source_window_base): Remove
9138 parameter.
9139 (tui_source_window_base::refill): Update.
9140 * tui/tui-stack.h (struct tui_locator_window)
9141 <tui_locator_window>: Update.
9142 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9143 Default the constructor.
9144 * tui/tui-regs.h (struct tui_data_item_window)
9145 <tui_data_item_window>: Default the constructor.
9146 (struct tui_data_window) <tui_data_window>: Likewise.
9147 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9148 Default the constructor.
9149 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9150 Default the constructor.
9151 <type>: Remove.
9152 (struct tui_win_info) <tui_win_info>: Default the constructor.
9153 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9154 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9155 Default the constructor.
9156
865a5aec
TT
91572020-02-22 Tom Tromey <tom@tromey.com>
9158
9159 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9160 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9161 * tui/tui-win.c (tui_resize_all): Don't call
9162 tui_delete_invisible_windows.
9163 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9164 done.
9165 (tui_set_layout): Update.
9166 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9167 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9168 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9169
e098d18c
TT
91702020-02-22 Tom Tromey <tom@tromey.com>
9171
9172 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9173 correctly.
9174
eb9c8874
TT
91752020-02-22 Tom Tromey <tom@tromey.com>
9176
9177 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9178
7eed1a8e
TT
91792020-02-22 Tom Tromey <tom@tromey.com>
9180
9181 * tui/tui-winsource.h (struct tui_source_window_iterator)
9182 <inner_iterator>: New etytypedef.
9183 <tui_source_window_iterator>: Take "end" parameter.
9184 <tui_source_window_iterator>: Take iterator.
9185 <operator*, advance>: Update.
9186 <m_iter>: Change type.
9187 <m_end>: New field.
9188 (struct tui_source_windows) <begin, end>: Update.
9189 * tui/tui-layout.c (tui_windows): New global.
9190 (tui_apply_current_layout): Clear tui_windows.
9191 (tui_layout_window::apply): Update tui_windows.
9192 * tui/tui-data.h (tui_windows): Declare.
9193 (all_tui_windows): Now inline function.
9194 (class tui_window_iterator, struct all_tui_windows): Remove.
9195
7c043ba6
TT
91962020-02-22 Tom Tromey <tom@tromey.com>
9197
9198 PR tui/17850:
9199 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9200 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9201 "height" argument.
9202 (class tui_layout_window) <get_sizes>: Likewise.
9203 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9204 argument.
9205 <get_sizes>: Add "height" argument.
9206 <m_vertical>: New field.
9207 * tui/tui-layout.c (tui_layout_split::clone): Update.
9208 (tui_layout_split::get_sizes): Add "height" argument.
9209 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9210 (tui_new_layout_command): Parse "-horizontal".
9211 (_initialize_tui_layout): Update help string.
9212 (tui_layout_split::specification): Add "-horizontal" when needed.
9213 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9214 argument.
9215 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9216 New methods.
9217
6bc56648
TT
92182020-02-22 Tom Tromey <tom@tromey.com>
9219
9220 * tui/tui-layout.h (enum tui_adjust_result): New.
9221 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9222 (class tui_layout_window) <adjust_size>: Return
9223 tui_adjust_result. Rewrite.
9224 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9225 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9226
c22fef7e
TT
92272020-02-22 Tom Tromey <tom@tromey.com>
9228
9229 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9230 parameter and return types.
9231 (class tui_layout_base) <specification>: Add "depth".
9232 (class tui_layout_window) <specification>: Add "depth".
9233 (class tui_layout_split) <specification>: Add "depth".
9234 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9235 and return types.
9236 (tui_new_layout_command): Parse sub-layouts.
9237 (_initialize_tui_layout): Update help string.
9238 (tui_layout_window::specification): Add "depth".
9239 (add_layout_command): Update.
9240
ee325b61
TT
92412020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * NEWS: Add "tui new-layout" item.
9244 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9245 Add new-layout command to help text.
9246 (validate_window_name): New function.
9247 (tui_new_layout_command): New function.
9248 (_initialize_tui_layout): Register "new-layout".
9249 (tui_layout_window::specification): New method.
9250 (tui_layout_window::specification): New method.
9251 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9252 method.
9253 (class tui_layout_window) <specification>: New method.
9254 (class tui_layout_split) <specification>: New method.
9255
416eb92d
TT
92562020-02-22 Tom Tromey <tom@tromey.com>
9257
9258 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9259 * tui/tui-win.c (window_name_completer): Update comment.
9260 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9261 Declare method.
9262 (class tui_layout_window) <replace_window>: Likewise.
9263 (class tui_layout_split) <replace_window>: Likewise.
9264 (tui_set_layout): Don't declare.
9265 (tui_set_initial_layout): Declare function.
9266 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9267 (asm_regs_layout): New globals.
9268 (tui_current_layout, show_layout): Remove.
9269 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9270 (find_layout, tui_apply_layout): New function.
9271 (layout_completer): Remove.
9272 (tui_next_layout): Reimplement.
9273 (tui_next_layout_command): New function.
9274 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9275 (tui_regs_layout): Reimplement.
9276 (tui_regs_layout_command): New function.
9277 (extract_display_start_addr): Rewrite.
9278 (next_layout, prev_layout): Remove.
9279 (tui_layout_window::replace_window): New method.
9280 (tui_layout_split::replace_window): New method.
9281 (destroy_layout): New function.
9282 (layout_list): New global.
9283 (add_layout_command): New function.
9284 (initialize_layouts): Update.
9285 (tui_layout_command): New function.
9286 (_initialize_tui_layout): Install "layout" commands.
9287 * tui/tui-data.h (enum tui_layout_type): Remove.
9288 (tui_current_layout): Don't declare.
9289
0dbc2fc7
TT
92902020-02-22 Tom Tromey <tom@tromey.com>
9291
9292 * tui/tui-regs.c (tui_reg_layout): Remove.
9293 (tui_reg_command): Use tui_regs_layout.
9294 * tui/tui-layout.h (tui_reg_command): Declare.
9295 * tui/tui-layout.c (tui_reg_command): New function.
9296
5afe342e
TT
92972020-02-22 Tom Tromey <tom@tromey.com>
9298
9299 * tui/tui.c (tui_rl_delete_other_windows): Call
9300 tui_remove_some_windows.
9301 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9302 Declare method.
9303 (class tui_layout_window) <remove_windows>: New method.
9304 (class tui_layout_split) <remove_windows>: Declare.
9305 (tui_remove_some_windows): Declare.
9306 * tui/tui-layout.c (tui_remove_some_windows): New function.
9307 (tui_layout_split::remove_windows): New method.
9308
427326a8
TT
93092020-02-22 Tom Tromey <tom@tromey.com>
9310
9311 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9312 * tui/tui-layout.h (tui_next_layout): Declare.
9313 * tui/tui-layout.c (tui_next_layout): New function.
9314
3fe12b6d
TT
93152020-02-22 Tom Tromey <tom@tromey.com>
9316
9317 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9318 correct coordinates.
9319
59b8b5d2
TT
93202020-02-22 Tom Tromey <tom@tromey.com>
9321
9322 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9323 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9324 DATA_WIN case.
9325
2a3d458b
TT
93262020-02-22 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9329 TUI_DISASM_WIN, not tui_win_list.
9330
3f0cbb04
TT
93312020-02-22 Tom Tromey <tom@tromey.com>
9332
9333 * valprint.c (generic_val_print_enum_1)
9334 (val_print_type_code_flags): Style member names.
9335 * rust-lang.c (val_print_struct, rust_print_enum)
9336 (rust_print_struct_def, rust_internal_print_type): Style member
9337 names.
9338 * p-valprint.c (pascal_object_print_value_fields): Style member
9339 names. Only call fprintf_symbol_filtered for static members.
9340 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9341 * f-valprint.c (f_val_print): Style member names.
9342 * f-typeprint.c (f_type_print_base): Style member names.
9343 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9344 call fprintf_symbol_filtered for static members.
9345 (cp_print_class_member): Style member names.
9346 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9347 member names.
9348 * ada-valprint.c (ada_print_scalar): Style enum names.
9349 (ada_val_print_enum): Likewise.
9350 * ada-typeprint.c (print_enum_type): Style enum names.
9351
d4d947ae
TT
93522020-02-21 Tom Tromey <tom@tromey.com>
9353
9354 * psympriv.h (struct partial_symtab): Update comment.
9355
e94e944b
TT
93562020-02-21 Tom Tromey <tromey@adacore.com>
9357
9358 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9359 type is CORE_ADDR.
9360
1eb73179
TV
93612020-02-21 Tom de Vries <tdevries@suse.de>
9362
9363 PR gdb/25534
9364 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9365 if dependencies[i]->user != NULL.
9366
4f180d53
AT
93672020-02-21 Ali Tamur <tamur@google.com>
9368
9369 * dwarf2/read.c (dwarf2_name): Add null check.
9370
22b6cd70
TT
93712020-02-20 Tom Tromey <tom@tromey.com>
9372
9373 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9374 ">=", in binary search.
9375 (dwarf2_find_containing_comp_unit): New overload.
9376 (run_test): New self-test.
9377 (_initialize_dwarf2_read): Register new test.
9378
bd0cf5a6
NC
93792020-02-20 Nelson Chu <nelson.chu@sifive.com>
9380
9381 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9382 * riscv-tdep.h: Likewise.
9383 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9384 rv32-only CSR.
9385 * features/riscv/64bit-csr.xml: Regenerated.
9386
3f702acd
SDJ
93872020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9388 Tom Tromey <tom@tromey.com>
9389
9390 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9391 of 'fputc_unfiltered'.
9392 (putchar_unfiltered): Call 'fputc_unfiltered'.
9393 (fputc_unfiltered): Call 'fputs_unfiltered'.
9394
d13c7322
AB
93952020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9396
9397 * config.in: Regenerate.
9398 * configure: Regenerate.
9399 * configure.ac: Add --with-python-libdir option.
9400 * main.c: Use WITH_PYTHON_LIBDIR.
9401
869d8950
TT
94022020-02-19 Tom Tromey <tom@tromey.com>
9403
9404 * symtab.c (general_symbol_info::compute_and_set_names): Use
9405 obstack_strndup. Simplify call to symbol_set_demangled_name.
9406
298e9637
SM
94072020-02-19 Simon Marchi <simon.marchi@efficios.com>
9408
9409 * dwarf2/read.c (allocate_signatured_type_table,
9410 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9411 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9412 Remove objfile parameter, update all callers.
9413
08410482
DE
94142020-02-19 Doug Evans <dje@google.com>
9415
9416 PR rust/25535
9417 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9418 rust_enum_variant calculation.
9419
dfdeeca1
TT
94202020-02-19 Tom Tromey <tromey@adacore.com>
9421
9422 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9423
2ef5453b
TT
94242020-02-19 Tom Tromey <tromey@adacore.com>
9425
9426 * ada-lang.c (cache_symbol): Use obstack_strdup.
9427
9f1528a1
AB
94282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * configure: Regenerate.
9431
d3c22fa8
TT
94322020-02-19 Tom Tromey <tromey@adacore.com>
9433
9434 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9435 NULL check.
9436
bf84f706
MR
94372020-02-19 Maciej W. Rozycki <macro@wdc.com>
9438
9439 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9440
d1c9b20f
AB
94412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9444 if GDBSERVER is not defined.
9445 (riscv_tdesc_cache): Likewise, also store const target_desc.
9446 (STATIC_IN_GDB): Define.
9447 (riscv_create_target_description): Update declaration with
9448 STATIC_IN_GDB.
9449 (riscv_lookup_target_description): New function, only define if
9450 GDBSERVER is not defined.
9451 * arch/riscv.h (riscv_create_target_description): Declare only
9452 when GDBSERVER is defined.
9453 (riscv_lookup_target_description): New declaration when GDBSERVER
9454 is not defined.
9455 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9456 (riscv_linux_read_features): ...this, and return
9457 riscv_gdbarch_features instead of target_desc.
9458 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9459 (riscv_linux_read_description): Rename to...
9460 (riscv_linux_read_features): ...this.
9461 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9462 Update to use riscv_gdbarch_features and
9463 riscv_lookup_target_description.
9464 * riscv-tdep.c (riscv_find_default_target_description): Use
9465 riscv_lookup_target_description instead of
9466 riscv_create_target_description.
9467
373d7ac0
SM
94682020-02-18 Simon Marchi <simon.marchi@efficios.com>
9469
9470 * valprint.c (generic_val_print_enum_1): When printing a flag
9471 enum with value 0 and there is no enumerator with value 0, print
9472 just "0" instead of "(unknown: 0x0)".
9473
b29a2df0
SM
94742020-02-18 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * valprint.c (generic_val_print_enum_1): Print unknown part of
9477 flag enum in hex.
9478
6740f0cc
SM
94792020-02-18 Simon Marchi <simon.marchi@efficios.com>
9480
9481 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9482 flag enums to contain duplicate enumerators.
9483 * valprint.c (generic_val_print_enum_1): Update comment.
9484
edd45eb0
SM
94852020-02-18 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * dwarf2/read.c: Include "count-one-bits.h".
9488 (update_enumeration_type_from_children): If an enumerator has
9489 multiple bits set, don't treat the enumeration as a "flag enum".
9490 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9491 of flag enums have 0 or 1 bit set.
9492
6d0cf446
BE
94932020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9494
9495 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9496 conversion.
9497 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9498 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9499 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9500 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9501 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9502
7001c1b7
SM
95032020-02-18 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9506
fdb61c6c
SM
95072020-02-14 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9510 displaced_step_closure_up.
9511 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9512 (struct displaced_step_closure_up):
9513 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9514 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9516 Likewise.
9517 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9518 * gdbarch.c, gdbarch.h: Re-generate.
9519 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9520 displaced_step_closure_up.
9521 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9522 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9523 * infrun.h (displaced_step_closure_up): New type alias.
9524 (struct displaced_step_inferior_state) <step_closure>: Change
9525 type to displaced_step_closure_up.
9526 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9527 displaced_step_closure_up.
9528 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9529
a4a38eb4
TT
95302020-02-14 Tom Tromey <tom@tromey.com>
9531
9532 * minidebug.c (gnu_debug_key): New global.
9533 (find_separate_debug_file_in_section): Use it.
9534
e8217e61
SM
95352020-02-14 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9538 std::unique_ptr.
9539 * gdbarch.c: Re-generate.
9540 * gdbarch.h: Re-generate.
9541 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9542 change.
9543 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9544 type to std::unique_ptr.
9545 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9546 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9547 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9548 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9549 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9550 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9551 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9553 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9554
d8d83535
SM
95552020-02-14 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9558 std::unique_ptr.
9559 (displaced_step_clear): Rename to...
9560 (displaced_step_reset): ... this. Just call displaced->reset ().
9561 (displaced_step_clear_cleanup): Rename to...
9562 (displaced_step_reset_cleanup): ... this.
9563 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9564 (displaced_step_fixup): Likewise.
9565 (resume_1): Likewise.
9566 (handle_inferior_event): Restore child's memory before calling
9567 displaced_step_fixup on the parent.
9568 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9569 to std::unique_ptr.
9570 <step_closure>: Change type to std::unique_ptr.
9571
5f661e03
SM
95722020-02-14 Simon Marchi <simon.marchi@efficios.com>
9573
9574 * arm-tdep.c: Include count-one-bits.h.
9575 (cleanup_block_store_pc): Use count_one_bits.
9576 (cleanup_block_load_pc): Use count_one_bits.
9577 (arm_copy_block_xfer): Use count_one_bits.
9578 (thumb2_copy_block_xfer): Use count_one_bits.
9579 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9580 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9581 (thumb_get_next_pcs_raw): Use count_one_bits.
9582 (arm_get_next_pcs_raw): Use count_one_bits_l.
9583 * arch/arm.c (bitcount): Remove.
9584 * arch/arm.h (bitcount): Remove.
9585
8084e579
TT
95862020-02-14 Tom Tromey <tromey@adacore.com>
9587
9588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9589 Update.
9590 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9591 * dwarf2/loc.c (call_site_find_chain_1): Return
9592 unique_xmalloc_ptr.
9593 (call_site_find_chain): Likewise.
9594
258bf0ee
RB
95952020-02-14 Richard Biener <rguenther@suse.de>
9596
9597 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9598 on expression with division operators.
9599
f98a8458
AKS
96002020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9601
9602 * MAINTAINERS (Write After Approval): Adding myself.
9603
d1437c0e
TT
96042020-02-12 Tom Tromey <tom@tromey.com>
9605
9606 * event-loop.c (event_data, gdb_event, event_handler_func):
9607 Remove.
9608
3d4560f7
TT
96092020-02-12 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9612 (dwarf2_frame_objfile_data): Add comment.
9613 (find_comp_unit, set_comp_unit): New functions.
9614 (dwarf2_frame_find_fde): Use find_comp_unit.
9615 (dwarf2_build_frame_info): Use set_comp_unit.
9616
21982304
TT
96172020-02-12 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9620 (comp_unit): Don't initialize objfile.
9621 (execute_cfa_program): Add text_offset parameter.
9622 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9623 (dwarf2_frame_cache): Update.
9624 (dwarf2_build_frame_info): Don't set "objfile" member.
9625
4debb237
TT
96262020-02-12 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9629 (decode_frame_entry): Likewise.
9630 (dwarf2_build_frame_info): Update.
9631
0d404d44
TT
96322020-02-12 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9635 (decode_frame_entry_1): Use the comp_unit obstack.
9636
a7a3ae5c
TT
96372020-02-12 Tom Tromey <tom@tromey.com>
9638
9639 * dwarf2/frame.c (struct comp_unit): Add initializers and
9640 constructor.
9641 (dwarf2_frame_objfile_data): Store a comp_unit.
9642 (dwarf2_frame_find_fde): Update.
9643 (dwarf2_build_frame_info): Use "new".
9644
a9d65418
TT
96452020-02-12 Tom Tromey <tom@tromey.com>
9646
9647 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9648 (dwarf2_fde_table): Typedef for std::vector.
9649 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9650 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9651 (decode_frame_entry): Update.
9652 (dwarf2_build_frame_info): Use "new".
9653
7559c217
CB
96542020-02-12 Christian Biesinger <cbiesinger@google.com>
9655
9656 * arm-tdep.c (arm_gdbarch_init): Update.
9657 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9658 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9659 have_neon, is_m>: Change to bool.
9660
aeefc73c
CB
96612020-02-12 Christian Biesinger <cbiesinger@google.com>
9662
9663 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9664
d27b8e5f
TT
96652020-02-12 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9668
cd5900f3
HD
96692020-02-12 Hannes Domani <ssbssa@yahoo.de>
9670
9671 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9672 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9673
f056b22b
TT
96742020-02-11 Tom Tromey <tom@tromey.com>
9675
9676 * psymtab.h: Update comment.
9677
f92ff6b5
TT
96782020-02-11 Tom Tromey <tom@tromey.com>
9679
9680 * gdb_obstack.h (struct auto_obstack): Use
9681 DISABLE_COPY_AND_ASSIGN.
9682
3fd6912b
TT
96832020-02-11 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/frame.h (struct objfile): Don't forward declare.
9686
69ed9b74
CB
96872020-02-11 Christian Biesinger <cbiesinger@google.com>
9688
9689 * cris-tdep.c (cris_supply_gregset): Change signature to match
9690 what struct regset expects.
9691 (cris_regset): New struct.
9692 (fetch_core_registers): Remove.
9693 (cris_iterate_over_regset_sections): New function.
9694 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9695 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9696
bda874f6
CB
96972020-02-11 Christian Biesinger <cbiesinger@google.com>
9698
9699 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9700 registers.
9701
754e1564
CB
97022020-02-11 Christian Biesinger <cbiesinger@google.com>
9703
9704 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9705
8ddd8e0e
SM
97062020-02-11 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * configure: Re-generate.
9709
898e7f60
SM
97102020-02-11 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * configure: Re-generate.
9713
58df732b
SM
97142020-02-11 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * acinclude: Update warning.m4 path.
9717 * warning.m4: Move to gdbsupport.
9718
da5bd37e
TT
97192020-02-11 Tom Tromey <tromey@adacore.com>
9720
9721 * remote.c (remote_console_output): Update.
9722 * printcmd.c (printf_command): Update.
9723 * event-loop.c (gdb_wait_for_event): Update.
9724 * linux-nat.c (sigchld_handler): Update.
9725 * remote-sim.c (gdb_os_write_stdout): Update.
9726 (gdb_os_flush_stdout): Update.
9727 (gdb_os_flush_stderr): Update.
9728 (gdb_os_write_stderr): Update.
9729 * exceptions.c (print_exception): Update.
9730 * remote-fileio.c (remote_fileio_func_read): Update.
9731 (remote_fileio_func_write): Update.
9732 * tui/tui.c (tui_enable): Update.
9733 * tui/tui-interp.c (tui_interp::init): Update.
9734 * utils.c (init_page_info): Update.
9735 (putchar_unfiltered, fputc_unfiltered): Update.
9736 (gdb_flush): Update.
9737 (emit_style_escape): Update.
9738 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9739 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9740 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9741 (stderr_file::write): Update.
9742 (stderr_file::puts): Update.
9743 * ui-file.h (ui_file_isatty, ui_file_write)
9744 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9745 (ui_file_puts): Don't declare.
9746
85f0dd3c
TV
97472020-02-10 Tom de Vries <tdevries@suse.de>
9748
9749 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9750 sentinel to char *.
9751
2e927613
TV
97522020-02-09 Tom de Vries <tdevries@suse.de>
9753
9754 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9755 filename if it matches "<artificial>".
9756
6bafc845
HD
97572020-02-09 Hannes Domani <ssbssa@yahoo.de>
9758
9759 * windows-tdep.c (struct enum_value_name): New struct.
9760 (create_enum): New function.
9761 (windows_get_siginfo_type): Create and use enum types.
9762
7928d571
HD
97632020-02-09 Hannes Domani <ssbssa@yahoo.de>
9764
9765 * NEWS: Mention $_siginfo support for Windows.
9766 * windows-nat.c (handle_exception): Set siginfo_er.
9767 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9768 (windows_xfer_siginfo): New function.
9769 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9770 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9771 (init_windows_gdbarch_data): New function.
9772 (get_windows_gdbarch_data): New function.
9773 (windows_get_siginfo_type): New function.
9774 (windows_init_abi): Register windows_get_siginfo_type.
9775 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9776
6751ebae
TT
97772020-02-08 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9780 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9781 <keep>: Declare method.
9782 <m_keep>: Remove member.
9783 <~cutu_reader>: Remove.
9784 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9785 (cutu_reader::cutu_reader): Update.
9786 (cutu_reader::keep): Rename from ~cutu_reader.
9787 (process_psymtab_comp_unit, build_type_psymtabs_1)
9788 (process_skeletonless_type_unit, load_partial_comp_unit)
9789 (load_full_comp_unit, dwarf2_read_addr_index)
9790 (read_signatured_type): Update.
9791
135f5437
TT
97922020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9795 "want_partial_unit" parameter.
9796 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9797 Inline check for DW_TAG_partial_unit.
9798 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9799
9f66ff1c
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9803 read.c.
9804 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9805 read.c.
9806
c8a7a66f
TT
98072020-02-08 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2/read.c (read_address): Move to comp-unit.c.
9810 (dwarf2_rnglists_process, dwarf2_ranges_process)
9811 (read_attribute_value, dwarf_decode_lines_1)
9812 (var_decode_location, decode_locdesc): Update.
9813 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9814 read.c. Remove "cu" parameter.
9815 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9816 method.
9817
8266302d
TT
98182020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9821 (read_indirect_line_string): Update.
9822 * dwarf2/comp-unit.c (read_offset): Remove.
9823 (read_comp_unit_head): Update.
9824 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9825 method.
9826 (read_offset): Don't declare.
9827
4057dfde
TT
98282020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9831 * dwarf2/read.c (struct comp_unit_head): Move to
9832 dwarf2/comp-unit.h.
9833 (enum class rcuh_kind): Move to comp-unit.h.
9834 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9835 (read_comp_unit_head, error_check_comp_unit_head)
9836 (read_and_check_comp_unit_head): Move to comp-unit.c.
9837 (read_offset, dwarf_unit_type_name): Likewise.
9838 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9839 (cutu_reader::cutu_reader, read_call_site_scope)
9840 (find_partial_die, follow_die_offset): Update.
9841 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9842
24aa364d
TT
98432020-02-08 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/read.c (read_offset_1): Move to leb.c.
9846 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9847 (dwarf_decode_macro_bytes): Update.
9848 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9849 * dwarf2/leb.h (read_offset): Declare.
9850
2c7d5afc
TT
98512020-02-08 Tom Tromey <tom@tromey.com>
9852
9853 * dwarf2/read.c (dwarf2_section_size): Remove.
9854 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9855 Update.
9856 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9857
4075cb26
TT
98582020-02-08 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/read.c (read_initial_length): Move to leb.c.
9861 * dwarf2/leb.h (read_initial_length): Declare.
9862 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9863 handle_nonstd parameter.
9864 * dwarf2/frame.c (read_initial_length): Remove.
9865 (decode_frame_entry_1): Update.
9866
09ba997f
TT
98672020-02-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/loc.c (dwarf2_find_location_expression)
9870 (dwarf_evaluate_loc_desc::get_tls_address)
9871 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9872 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9873 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9874 (dwarf2_compile_property_to_c)
9875 (dwarf2_loc_desc_get_symbol_read_needs)
9876 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9877 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9878 (loclist_describe_location, loclist_tracepoint_var_ref)
9879 (loclist_generate_c_location): Update.
9880 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9881 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9882 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9883 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9884 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9885 (dwarf2_per_cu_data::addr_size)
9886 (dwarf2_per_cu_data::ref_addr_size)
9887 (dwarf2_per_cu_data::text_offset)
9888 (dwarf2_per_cu_data::addr_type): Now methods.
9889 (per_cu_header_read_in): Make per_cu "const".
9890 (dwarf2_version): Remove.
9891 (dwarf2_per_cu_data::int_type): Now a method.
9892 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9893 (set_die_type, read_array_type, read_subrange_index_type)
9894 (read_tag_string_type, read_subrange_type): Update.
9895 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9896 offset_size, ref_addr_size, text_offset, addr_type, version,
9897 objfile, int_type, addr_sized_int_type>: Declare methods.
9898
96c738c0
TT
98992020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9902 Move earlier.
9903
8fdd972c
TT
99042020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/read.h (dwarf_line_debug): Declare.
9907 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9908 * dwarf2/read.c: Move line_header code to new files.
9909 (dwarf_line_debug): No longer static.
9910 * dwarf2/line-header.c: New file.
9911 * dwarf2/line-header.h: New file.
9912
03075812
TT
99132020-02-08 Tom Tromey <tom@tromey.com>
9914
9915 * dwarf2/read.c (struct line_header) <file_full_name,
9916 file_file_name>: Return unique_xmalloc_ptr.
9917 (line_header::file_file_name): Update.
9918 (line_header::file_full_name): Update.
9919 (dw2_get_file_names_reader): Update.
9920 (macro_start_file): Update.
9921
bb822404
TT
99222020-02-08 Tom Tromey <tom@tromey.com>
9923
9924 * dwarf2/read.c (struct line_header) <file_full_name,
9925 file_file_name>: Declare methods.
9926 (dw2_get_file_names_reader): Update.
9927 (file_file_name): Now a method.
9928 (file_full_name): Likewise.
9929 (macro_start_file): Update.
9930
009b64fc
TT
99312020-02-08 Tom Tromey <tom@tromey.com>
9932
9933 * dwarf2/read.c (dwarf_always_disassemble)
9934 (show_dwarf_always_disassemble): Move to loc.c.
9935 (_initialize_dwarf2_read): Move "always-disassemble" registration
9936 to loc.c.
9937 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9938 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9939 static.
9940 (show_dwarf_always_disassemble): Move from read.c.
9941 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9942
5895093f
TT
99432020-02-08 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9946 (create_quick_file_names_table): Return htab_up.
9947 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9948 Update.
9949 * dwarf2/read.h (struct dwarf2_per_objfile)
9950 <quick_file_names_table>: Now htab_up.
9951
b3b32279
TT
99522020-02-08 Tom Tromey <tom@tromey.com>
9953
9954 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9955
1d33d811
TT
99562020-02-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9959 Rewrite.
9960 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9961 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9962 (abbrev_table::abbrev_table): No longer inline.
9963 (ABBREV_HASH_SIZE): Remove.
9964 (abbrev_table::m_abbrevs): Now an htab_up.
9965
86de1d91
TT
99662020-02-08 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9969 (cutu_reader): Update.
9970 (build_type_psymtabs_1): Update.
9971 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9972 (abbrev_table::alloc_abbrev): Update.
9973 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9974 (abbrev_table::read): New static method, renamed from
9975 abbrev_table_read_table.
9976 (abbrev_table::alloc_abbrev)
9977 (abbrev_table::add_abbrev): Now private.
9978 (abbrev_table::abbrev_table): Now private.
9979 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9980
0335378b
TT
99812020-02-08 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9984 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9985 htab_up.
9986
48b490f2
TT
99872020-02-08 Tom Tromey <tom@tromey.com>
9988
9989 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9990 htab_up.
9991 (lookup_dwo_unit_in_dwp): Update.
9992 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9993 on obstack.
9994
bc68fb19
TT
99952020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9998 obstack.
9999
d15acc42
TT
100002020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10003 line_header_hash.
10004 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10005 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10006 Change type to htab_up.
10007
eaa5fa8b
TT
100082020-02-08 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10011 htab_up. Don't allocate on obstack.
10012 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10013 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10014 Change type to htab_up.
10015
b0b6a987
TT
100162020-02-08 Tom Tromey <tom@tromey.com>
10017
10018 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10019 Change type to htab_up.
10020 * dwarf2/read.c (create_signatured_type_table_from_index)
10021 (create_signatured_type_table_from_debug_names)
10022 (create_all_type_units, add_type_unit)
10023 (lookup_dwo_signatured_type, lookup_signatured_type)
10024 (process_skeletonless_type_unit): Update.
10025 (create_debug_type_hash_table, create_debug_types_hash_table):
10026 Change type of types_htab.
10027 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10028 htab_up. Don't allocate on obstack.
10029 (create_cus_hash_table): Change type of cus_htab parameter.
10030 (struct dwo_file) <cus, tus>: Now htab_up.
10031 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10032 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10033 (queue_and_load_all_dwo_tus): Update.
10034 * dwarf2/index-write.c (write_gdbindex): Update.
10035 (write_debug_names): Update.
10036
39856def
TT
100372020-02-08 Tom Tromey <tom@tromey.com>
10038
10039 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10040 dwarf2/read.c. Remove "next" member. Add constructor ntad
10041 destructor.
10042 (struct dwarf2_per_objfile) <queue>: New member.
10043 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10044 dwarf2/read.h.
10045 (dwarf2_queue, dwarf2_queue_tail): Remove.
10046 (class dwarf2_queue_guard): Add parameter to constructor. Use
10047 DISABLE_COPY_AND_ASSIGN.
10048 <m_per_objfile>: New member.
10049 <~dwarf2_queue_guard>: Rewrite.
10050 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10051 Update.
10052 (~dwarf2_queue_item): New.
10053
3e225074
TT
100542020-02-08 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/read.c (struct die_info) <has_children>: New member.
10057 (dw2_get_file_names_reader): Remove has_children.
10058 (dw2_get_file_names): Update.
10059 (read_cutu_die_from_dwo): Remove has_children.
10060 (cutu_reader::init_tu_and_read_dwo_dies)
10061 (cutu_reader::cutu_reader): Update.
10062 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10063 Remove has_children.
10064 (build_type_psymtabs_1, process_skeletonless_type_unit)
10065 (load_partial_comp_unit, load_full_comp_unit): Update.
10066 (create_dwo_cu_reader): Remove has_children.
10067 (create_cus_hash_table, read_die_and_children): Update.
10068 (read_full_die_1,read_full_die): Remove has_children.
10069 (read_signatured_type): Update.
10070 (class cutu_reader) <has_children>: Remove.
10071
82ca8957
TT
100722020-02-08 Tom Tromey <tom@tromey.com>
10073
10074 * dwarf2/expr.c: Rename from dwarf2expr.c.
10075 * dwarf2/expr.h: Rename from dwarf2expr.h.
10076 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10077 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10078 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10079 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10080 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10081 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10082 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10083 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10084 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10085 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10086 * dwarf2/loc.c: Rename from dwarf2loc.c.
10087 * dwarf2/loc.h: Rename from dwarf2loc.h.
10088 * dwarf2/read.c: Rename from dwarf2read.c.
10089 * dwarf2/read.h: Rename from dwarf2read.h.
10090 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10091 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10092 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10093 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10094 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10095 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10096 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10097 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10098 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10099 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10100 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10101 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10102 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10103 Update.
10104 * Makefile.in (COMMON_SFILES): Update.
10105 (HFILES_NO_SRCDIR): Update.
10106
9e35d499
TT
101072020-02-08 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10110 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10111
1eba2311
TT
101122020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2read.h (struct die_info): Don't declare.
10115
e41c2da2
TT
101162020-02-08 Tom Tromey <tom@tromey.com>
10117
10118 * dwarf2read.h (die_info_ptr): Remove typedef.
10119
4fc6c0d5
TT
101202020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2read.c (read_call_site_scope)
10123 (handle_data_member_location, dwarf2_add_member_fn)
10124 (mark_common_block_symbol_computed, read_common_block)
10125 (attr_to_dynamic_prop, partial_die_info::read)
10126 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10127 (dwarf2_symbol_mark_computed, set_die_type): Update.
10128 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10129 method.
10130 (attr_form_is_block): Don't declare.
10131 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10132
cd6c91b4
TT
101332020-02-08 Tom Tromey <tom@tromey.com>
10134
10135 * dwarf2read.c (dwarf2_find_base_address, )
10136 (read_call_site_scope, rust_containing_type)
10137 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10138 (handle_data_member_location, dwarf2_add_member_fn)
10139 (get_alignment, read_structure_type, process_structure_scope)
10140 (mark_common_block_symbol_computed, read_common_block)
10141 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10142 (partial_die_info::read, read_attribute_value, new_symbol)
10143 (lookup_die_type, dwarf2_get_ref_die_offset)
10144 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10145 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10146 (dwarf2_symbol_mark_computed): Update.
10147 * dwarf2/attribute.h (struct attribute) <value_as_address,
10148 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10149 methods.
10150 (value_as_address, attr_form_is_section_offset)
10151 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10152 * dwarf2/attribute.c (attribute::value_as_address)
10153 (attribute::form_is_section_offset, attribute::form_is_constant)
10154 (attribute::form_is_ref): Now methods.
10155
162dce55
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2read.c (struct attribute, DW_STRING)
10159 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10160 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10161 (attr_form_is_block, attr_form_is_section_offset)
10162 (attr_form_is_constant, attr_form_is_ref): Move.
10163 * dwarf2/attribute.h: New file.
10164 * dwarf2/attribute.c: New file, from dwarf2read.c.
10165 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10166
3054dd54
TT
101672020-02-08 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10170 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10171 Move.
10172 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10173 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10174 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10175 abbrev.c.
10176 * dwarf2/abbrev.h: New file.
10177 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10178 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10179
96b79293
TT
101802020-02-08 Tom Tromey <tom@tromey.com>
10181
10182 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10183 (dwarf2_section_size, dwarf2_get_section_info)
10184 (create_signatured_type_table_from_debug_names)
10185 (create_addrmap_from_aranges, read_debug_names_from_section)
10186 (get_gdb_index_contents_from_section, read_comp_unit_head)
10187 (error_check_comp_unit_head, read_abbrev_offset)
10188 (create_debug_type_hash_table, init_cu_die_reader)
10189 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10190 (read_comp_units_from_section, create_cus_hash_table)
10191 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10192 (create_dwp_v2_section, dwarf2_rnglists_process)
10193 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10194 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10195 (read_indirect_string_from_dwz, read_addr_index_1)
10196 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10197 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10198 (fill_in_loclist_baton): Update.
10199 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10200 get_containing_section, get_bfd_owner, get_bfd_section,
10201 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10202 (dwarf2_read_section, get_section_name, get_section_file_name)
10203 (get_containing_section, get_section_bfd_owner)
10204 (get_section_bfd_section, get_section_name, get_section_file_name)
10205 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10206 declare.
10207 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10208 (dwarf2_section_info::get_bfd_owner)
10209 (dwarf2_section_info::get_bfd_section)
10210 (dwarf2_section_info::get_name)
10211 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10212 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10213 (dwarf2_section_info::read): Now methods.
10214 * dwarf-index-write.c (class debug_names): Update.
10215
2c86cff9
TT
102162020-02-08 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10219 Move to dwarf2/section.h.
10220 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10221 (get_section_bfd_section, get_section_name)
10222 (get_section_file_name, get_section_id, get_section_flags)
10223 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10224 dwarf2/section.c.
10225 * dwarf2/section.h: New file.
10226 * dwarf2/section.c: New file, from dwarf2read.c.
10227 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10228
f4382c45
TT
102292020-02-08 Tom Tromey <tom@tromey.com>
10230
10231 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10232 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10233 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10234 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10235 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10236 * dwarf2/leb.h: New file, from dwarf2read.c.
10237 * dwarf2/leb.c: New file, from dwarf2read.c.
10238 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10239 Remove.
10240 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10241 (COMMON_SFILES): Add dwarf2/leb.c.
10242
01840b7a
JB
102432020-02-08 Joel Brobecker <brobecker@adacore.com>
10244
10245 GDB 9.1 released.
10246
dfcb27e4
IB
102472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10248
10249 PR gdb/25190:
aac66a4c
SM
10250 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10251 * gdb/remote.c (remote_console_output): Update.
10252 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10253 (ui_file_puts): ...this.
10254 * gdb/ui-file.h (ui_file_puts): Add declaration.
10255 * gdb/utils.c (emit_style_escape): Update.
10256 (flush_wrap_buffer): Update.
10257 (fputs_maybe_filtered): Update.
10258 (fputs_unfiltered): Add function.
dfcb27e4 10259
faa17681
IB
102602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10261
aac66a4c
SM
10262 * gdb/event-loop.c (gdb_wait_for_event): Update.
10263 * gdb/printcmd.c (printf_command): Update.
10264 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10265 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10266 (gdb_os_flush_stderr): Update.
10267 * gdb/remote.c (remote_console_output): Update.
10268 * gdb/ui-file.c (gdb_flush): Rename to...
10269 (ui_file_flush): ...this.
10270 (stderr_file::write): Update.
10271 (stderr_file::puts): Update.
10272 * gdb/ui-file.h (gdb_flush): Rename to...
10273 (ui_file_flush): ...this.
10274 * gdb/utils.c (gdb_flush): Add function.
10275 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10276
5abbbe1d
TT
102772020-02-07 Tom Tromey <tromey@adacore.com>
10278
10279 PR breakpoints/24915:
10280 * source.c (find_and_open_source): Do not check basenames_may_differ.
10281
919adfe8
TT
102822020-02-07 Tom Tromey <tom@tromey.com>
10283
10284 * README: Update gdbserver documentation.
10285 * gdbserver: Move to top level.
10286 * configure.tgt (build_gdbserver): Remove.
10287 * configure.ac: Remove --enable-gdbserver.
10288 * configure: Rebuild.
10289 * Makefile.in (distclean): Don't mention gdbserver.
10290
1d5d29e7
SV
102912020-02-06 Shahab Vahedi <shahab@synopsys.com>
10292
10293 * source-cache.c (source_cache::ensure): Surround
10294 get_plain_source_lines with a try/catch.
10295 (source_cache::get_line_charpos): Get rid of try/catch
10296 and only check for the return value of "ensure".
10297 * tui/tui-source.c (tui_source_window::set_contents):
10298 Simplify "nlines" calculation.
10299
6eb1129c
SV
103002020-02-06 Shahab Vahedi <shahab@synopsys.com>
10301
10302 * MAINTAINERS (Write After Approval): Add myself.
10303
c6a42d11
CB
103042020-02-05 Christian Biesinger <cbiesinger@google.com>
10305
10306 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10307 function call.
10308
c8ecdda6
CB
103092020-02-05 Christian Biesinger <cbiesinger@google.com>
10310
10311 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10312
f6480e70
MR
103132020-02-05 Maciej W. Rozycki <macro@wdc.com>
10314
10315 * nat/riscv-linux-tdesc.h: New file.
10316 * nat/riscv-linux-tdesc.c: New file, taking code from...
10317 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10318 ... here.
10319 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10320 NATDEPFILES.
10321
dcc9fbc6
AB
103222020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10325 we don't set the fake simulator ptid to the null_ptid.
10326
719546c4
SM
103272020-02-03 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10330 * gdbthread.h (class thread_info) <resumed>: Likewise.
10331 * infrun.c (resume_1): Likewise.
10332 (proceed): Likewise.
10333 (infrun_thread_stop_requested): Likewise.
10334 (stop_all_threads): Likewise.
10335 (handle_inferior_event): Likewise.
10336 (restart_threads): Likewise.
10337 (finish_step_over): Likewise.
10338 (keep_going_stepped_thread): Likewise.
10339 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10340 (linux_handle_extended_wait): Likewise.
10341 * record-btrace.c (get_thread_current_frame_id): Likewise.
10342 * record-full.c (record_full_wait_1): Likewise.
10343 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10344 * target.c (target_resume): Likewise.
10345 * thread.c (set_running_thread): Likewise.
10346
e409c542
AKS
103472020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10348
10349 * f-valprint.c (f77_print_array_1): Changed datatype of index
10350 variable to LONGEST from int to enable it to contain bound
10351 values correctly.
10352
ee98c0da
MR
103532020-02-03 Maciej W. Rozycki <macro@wdc.com>
10354
10355 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10356 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10357 offsets according to FLEN determined.
10358 (riscv_linux_nat_target::read_description): Determine FLEN
10359 dynamically.
10360 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10361 according to FLEN determined.
10362 (riscv_linux_nat_target::store_registers): Likewise.
10363
aa66aac4
SV
103642020-02-01 Shahab Vahedi <shahab@synopsys.com>
10365
10366 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10367 when reg->group is empty and reggroup is not.
10368
fd9faca8
TT
103692020-01-31 Tom Tromey <tromey@adacore.com>
10370
10371 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10372 Call beneath target's mourn_inferior after unpushing.
10373
42330a68
AB
103742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10375
10376 PR tui/9765
10377 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10378 have enough lines to fill the screen, still return the lowest
10379 address we found.
10380
7a27a45b
AB
103812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10382
10383 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10384 '-', '<', and '>' commands.
10385
c47f70e2
PA
103862020-01-29 Pedro Alves <palves@redhat.com>
10387 Sergio Durigan Junior <sergiodj@redhat.com>
10388
10389 * infcmd.c (construct_inferior_arguments): Assert that
10390 'argc' is greater than 0.
10391
5133a315
LM
103922020-01-29 Luis Machado <luis.machado@linaro.org>
10393
10394 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10395 (BRK_INSN_MASK): Define to 0xd4200000.
10396 (aarch64_program_breakpoint_here_p): New function.
10397 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10398 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10399 breakpoint.c.
10400 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10401 breakpoint.h
10402 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10403 call gdbarch_program_breakpoint_here_p.
10404 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10405 default_program_breakpoint_here_p, changed return type to bool and
10406 simplified.
10407 * breakpoint.h (program_breakpoint_here): Moved prototype to
10408 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10409 return type to bool.
10410 * gdbarch.c: Regenerate.
10411 * gdbarch.h: Regenerate.
10412 * gdbarch.sh (program_breakpoint_here_p): New method.
10413 * infrun.c (handle_signal_stop): Call
10414 gdbarch_program_breakpoint_here_p.
10415
168f8c6b
TT
104162020-01-26 Tom Tromey <tom@tromey.com>
10417
10418 * ctfread.c (struct ctf_fp_info): Reindent.
10419 (_initialize_ctfread): Remove.
10420
128a391f
TT
104212020-01-26 Tom Tromey <tom@tromey.com>
10422
10423 * psymtab.c (partial_map_expand_apply)
10424 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10425 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10426 (psym_print_stats, psym_expand_symtabs_for_function)
10427 (psym_map_symbol_filenames, psym_map_matching_symbols)
10428 (psym_expand_symtabs_matching)
10429 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10430 (maintenance_check_psymtabs): Use new methods.
10431 * psympriv.h (struct partial_symtab) <readin_p,
10432 get_compunit_symtab>: New methods.
10433 <readin, compunit_symtab>: Remove members.
10434 (struct standard_psymtab): New.
10435 (struct legacy_psymtab): Derive from standard_psymtab.
10436 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10437 standard_psymtab.
10438 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10439
0494dbec
TT
104402020-01-26 Tom Tromey <tom@tromey.com>
10441
10442 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10443 read_dependencies. Add assert.
10444 * psymtab.c (partial_symtab::read_dependencies): New method.
10445 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10446 method.
10447 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10448 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10449 read_dependencies.
10450 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10451 Add assert.
10452
8566b89b
TT
104532020-01-26 Tom Tromey <tom@tromey.com>
10454
10455 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10456 Call expand_psymtab.
10457 (xcoff_read_symtab): Call expand_psymtab.
10458 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10459 legacy_expand_psymtab.
10460 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10461 method.
10462 (struct legacy_psymtab) <expand_psymtab>: Implement.
10463 <legacy_expand_psymtab>: New member.
10464 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10465 (parse_partial_symbols): Set legacy_expand_psymtab.
10466 (psymtab_to_symtab_1): Change argument order. Call
10467 expand_psymtab.
10468 (new_psymtab): Set legacy_expand_psymtab.
10469 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10470 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10471 expand_psymtab.
10472 (dwarf2_psymtab::expand_psymtab): Rename from
10473 psymtab_to_symtab_1. Call expand_psymtab.
10474 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10475 (dbx_end_psymtab): Likewise.
10476 (dbx_psymtab_to_symtab_1): Change argument order. Call
10477 expand_psymtab.
10478 (dbx_read_symtab): Call expand_psymtab.
10479 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10480 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10481 (ctf_psymtab::read_symtab): Call expand_psymtab.
10482
077cbab2
TT
104832020-01-26 Tom Tromey <tom@tromey.com>
10484
10485 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10486 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10487 messages.
10488 * mdebugread.c (mdebug_read_symtab): Remove prints.
10489 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10490 assert.
10491 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10492
891813be
TT
104932020-01-26 Tom Tromey <tom@tromey.com>
10494
10495 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10496 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10497 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10498 legacy_symtab.
10499 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10500 * psymtab.c (psymtab_to_symtab): Call method.
10501 (dump_psymtab): Update.
10502 * psympriv.h (struct partial_symtab): Add virtual destructor.
10503 <read_symtab>: New method.
10504 (struct legacy_symtab): New.
10505 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10506 (struct pst_map) <pst>: Now a legacy_psymtab.
10507 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10508 (new_psymtab): Use legacy_psymtab.
10509 * dwarf2read.h (struct dwarf2_psymtab): New.
10510 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10511 * dwarf2read.c (dwarf2_create_include_psymtab)
10512 (dwarf2_build_include_psymtabs, create_type_unit_group)
10513 (create_partial_symtab, process_psymtab_comp_unit_reader)
10514 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10515 (set_partial_user): Use dwarf2_psymtab.
10516 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10517 (psymtab_to_symtab_1, process_full_comp_unit)
10518 (process_full_type_unit, dwarf2_ranges_read)
10519 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10520 (dwarf_decode_lines): Use dwarf2_psymtab.
10521 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10522 (add_address_entry_worker, write_one_signatured_type)
10523 (recursively_count_psymbols, recursively_write_psymbols)
10524 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10525 (write_debug_names): Likewise.
10526 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10527 <pst>: Now a legacy_psymtab.
10528 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10529 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10530 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10531 * ctfread.c (struct ctf_psymtab): New.
10532 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10533 ctf_psymtab.
10534 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10535 (create_partial_symtab): Return a ctf_psymtab.
10536 (scan_partial_symbols): Update.
10537
c3693a1d
TT
105382020-01-26 Tom Tromey <tom@tromey.com>
10539
10540 * xcoffread.c (xcoff_start_psymtab): Use new.
10541 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10542 renamed from start_psymtab_common.
10543 * psympriv.h (struct partial_symtab): Add new constructor.
10544 (start_psymtab_common): Don't declare.
10545 * mdebugread.c (parse_partial_symbols): Use new.
10546 * dwarf2read.c (create_partial_symtab): Use new.
10547 * dbxread.c (start_psymtab): Use new.
10548 * ctfread.c (create_partial_symtab): Use new.
10549
32caafd0
TT
105502020-01-26 Tom Tromey <tom@tromey.com>
10551
10552 * xcoffread.c (xcoff_end_psymtab): Use new.
10553 * psymtab.c (start_psymtab_common): Use new.
10554 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10555 Update.
10556 * psympriv.h (struct partial_symtab): Add parameters to
10557 constructor. Don't inline.
10558 (allocate_psymtab): Don't declare.
10559 * mdebugread.c (new_psymtab): Use new.
10560 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10561 * dbxread.c (dbx_end_psymtab): Use new.
10562
abaa2f23
TT
105632020-01-26 Tom Tromey <tom@tromey.com>
10564
10565 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10566 allocate_psymtab. Update documentation.
10567 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10568 allocate_psymtab. Do not use new.
10569 (allocate_psymtab): Use new. Update.
10570
6d94535f
TT
105712020-01-26 Tom Tromey <tom@tromey.com>
10572
10573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10574 * psymtab.c (psym_print_stats): Update.
10575 * psympriv.h (struct partial_symtab) <readin,
10576 psymtabs_addrmap_supported, anonymous>: Now bool.
10577 * mdebugread.c (psymtab_to_symtab_1): Update.
10578 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10579 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10580 (process_full_comp_unit, process_full_type_unit): Update.
10581 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10582 * ctfread.c (psymtab_to_symtab): Update.
10583
6f17252b
TT
105842020-01-26 Tom Tromey <tom@tromey.com>
10585
10586 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10587 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10588 * psymtab.c (psymtab_storage): Delete psymtabs.
10589 (psymtab_storage::allocate_psymtab): Use new.
10590 (psymtab_storage::discard_psymtab): Use delete.
10591 * psympriv.h (struct partial_symtab): Add constructor and
10592 initializers.
10593
f6f1cebc
TT
105942020-01-26 Tom Tromey <tom@tromey.com>
10595
10596 * machoread.c: Do not include psympriv.h.
10597
e47e48f6
PW
105982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10599
10600 * NEWS: Mention the new option and the set/show commands.
10601
a2fedca9
PW
106022020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10603
10604 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10605 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10606 (validate_exec_file): New variables, enums, functions.
10607 (exec_file_locate_attach, print_section_info): Style the filenames.
10608 (_initialize_exec): Install show_exec_file_mismatch_command and
10609 set_exec_file_mismatch_command.
10610 * gdbcore.h (validate_exec_file): Declare.
10611 * infcmd.c (attach_command): Call validate_exec_file.
10612 * remote.c ( remote_target::remote_add_inferior): Likewise.
10613
7ffa82e1
AB
106142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * frame.c (find_frame_sal): Move call to get_next_frame into more
10617 inner scope.
10618 * inline-frame.c (inilne_state) <inline_state>: Update argument
10619 types.
10620 (inilne_state) <skipped_symbol>: Rename to...
10621 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10622 (skip_inline_frames): Build vector of skipped symbols and use this
10623 to reate the inline_state.
10624 (inline_skipped_symbol): Add a comment and some assertions, fetch
10625 skipped symbol from the list.
10626
3d92a3e3
AB
106272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10628
10629 * buildsym.c (lte_is_less_than): Delete.
10630 (buildsym_compunit::end_symtab_with_blockvector): Create local
10631 lambda function to sort line table entries, and use
10632 std::stable_sort instead of std::sort.
10633 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10634 markers when looking for a previous line.
10635
94a72be7
AB
106362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * dwarf2read.c (lnp_state_machine::record_line): Include
10639 end_sequence parameter in debug print out. Record the line if we
10640 are at an end_sequence marker even if it's not the start of a
10641 statement.
10642 * symmisc.c (maintenance_print_one_line_table): Print end of
10643 sequence markers with 'END' not '0'.
10644
53af73bf
PA
106452020-01-24 Pedro Alves <palves@redhat.com>
10646
10647 PR gdb/25410
10648 * thread.c (scoped_restore_current_thread::restore): Use
10649 switch_to_inferior_no_thread.
10650 * exec.c: Include "progspace-and-thread.h".
10651 (add_target_sections, remove_target_sections):
10652 scoped_restore_current_pspace_and_thread instead of
10653 scoped_restore_current_thread.
10654 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10655 and aspace to the inferior before calling clone_program_space.
10656 Remove stale comment.
10657
3050c6f4
CB
106582020-01-24 Christian Biesinger <cbiesinger@google.com>
10659
10660 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10661 (arm_netbsd_nat_target::fetch_registers): ...this.
10662 (arm_nbsd_nat_target::store_registers): Rename to...
10663 (arm_netbsd_nat_target::store_registers): ...this.
10664
73685c7e
CB
106652020-01-24 Christian Biesinger <cbiesinger@google.com>
10666
10667 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10668 register_t.
10669
89203d40
CB
106702020-01-24 Christian Biesinger <cbiesinger@google.com>
10671
10672 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10673 Update comment.
10674 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10675 Likewise.
10676 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10677 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10678 the correct replacement (iterate_over_regset_sections).
10679 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10680 Update comment.
10681
1ba1ac88
AB
106822020-01-24 Graham Markall <graham.markall@embecosm.com>
10683
10684 PR gdb/23718
10685 * gdb/python/python.c (execute_gdb_command): Call
10686 async_enable_stdin in catch block.
10687
f3364a6d
AB
106882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10691 SWITCH_THRU_ALL_UIS.
10692
733d0a67
AB
106932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 PR tui/9765
10696 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10697 comment, add extra parameter, and update to store previous symbol
10698 when appropriate.
10699 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10700 add extra parameter.
10701 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10702 remove unneeded parameter, add try/catch around gdb_print_insn,
10703 rewrite to add items to asm_lines vector.
10704 (tui_find_backward_disassembly_start_address): New function.
10705 (tui_find_disassembly_address): Updated throughout.
10706 (tui_disasm_window::set_contents): Update for changes to
10707 tui_disassemble.
10708 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10709 number of lines to scroll.
10710
b3b3bada
SM
107112020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10712
10713 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10714 (SECT_OFF_DATA): Likewise.
10715 (SECT_OFF_RODATA): Likewise.
10716 (SECT_OFF_TEXT): Likewise.
10717 (SECT_OFF_BSS): Likewise.
10718 (struct objfile) <text_section_offset, data_section_offset>: New
10719 methods.
10720 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10721 objfile::text_section_offset.
10722 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10723 * coffread.c (coff_symtab_read): Likewise.
10724 (enter_linenos): Likewise.
10725 (process_coff_symbol): Likewise.
10726 * ctfread.c (get_objfile_text_range): Likewise.
10727 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10728 Use objfile::data_section_offset.
10729 * dwarf2-frame.c (execute_cfa_program): Use
10730 objfile::text_section_offset.
10731 (dwarf2_frame_find_fde): Likewise.
10732 * dwarf2read.c (create_addrmap_from_index): Likewise.
10733 (create_addrmap_from_aranges): Likewise.
10734 (dw2_find_pc_sect_compunit_symtab): Likewise.
10735 (process_psymtab_comp_unit_reader): Likewise.
10736 (add_partial_symbol): Likewise.
10737 (add_partial_subprogram): Likewise.
10738 (process_full_comp_unit): Likewise.
10739 (read_file_scope): Likewise.
10740 (read_func_scope): Likewise.
10741 (read_lexical_block_scope): Likewise.
10742 (read_call_site_scope): Likewise.
10743 (dwarf2_rnglists_process): Likewise.
10744 (dwarf2_ranges_process): Likewise.
10745 (dwarf2_ranges_read): Likewise.
10746 (dwarf_decode_lines_1): Likewise.
10747 (new_symbol): Likewise.
10748 (dwarf2_fetch_die_loc_sect_off): Likewise.
10749 (dwarf2_per_cu_text_offset): Likewise.
10750 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10751 * hppa-tdep.c (read_unwind_info): Likewise.
10752 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10753 * psympriv.h (struct partial_symtab): Likewise.
10754 * psymtab.c (find_pc_sect_psymtab): Likewise.
10755 * solib-svr4.c (enable_break): Likewise.
10756 * stap-probe.c (relocate_address): Use
10757 objfile::data_section_offset.
10758 * xcoffread.c (enter_line_range): Use
10759 objfile::text_section_offset.
10760 (read_xcoff_symtab): Likewise.
10761
ab53f382
SM
107622020-01-23 Simon Marchi <simon.marchi@efficios.com>
10763
10764 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10765 declaration to narrower scopes.
10766
e7eee665
SM
107672020-01-23 Simon Marchi <simon.marchi@efficios.com>
10768
10769 * darwin-nat.h (struct darwin_exception_msg, enum
10770 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10771 Move up.
10772 (class darwin_nat_target) <wait_1, check_new_threads,
10773 decode_exception_message, decode_message, stop_inferior,
10774 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10775 * darwin-nat.c (darwin_check_new_threads): Rename to...
10776 (darwin_nat_target::check_new_threads): ... this.
10777 (darwin_suspend_inferior_it): Remove.
10778 (darwin_decode_exception_message): Rename to...
10779 (darwin_nat_target::decode_exception_message): ... this.
10780 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10781 (darwin_decode_message): Rename to...
10782 (darwin_nat_target::decode_message): ... this.
10783 (cancel_breakpoint): Rename to...
10784 (darwin_nat_target::cancel_breakpoint): ... this.
10785 (darwin_wait): Rename to...
10786 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10787 instead of iterate_over_inferiors.
10788 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10789 (darwin_stop_inferior): Rename to...
10790 (darwin_nat_target::stop_inferior): ... this.
10791 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10792 (darwin_init_thread_list): Rename to...
10793 (darwin_nat_target::init_thread_list): ... this.
10794 (darwin_ptrace_him): Rename to...
10795 (darwin_nat_target::ptrace_him): ... this.
10796 (darwin_nat_target::create_inferior): Pass lambda function to
10797 fork_inferior.
10798 (darwin_nat_target::detach): Call stop_inferior instead of
10799 darwin_stop_inferior.
10800 * fork-inferior.h (fork_inferior): Change init_trace_fun
10801 parameter to gdb::function_view.
10802 * fork-inferior.c (fork_inferior): Likewise.
10803
c162ed3e
HD
108042020-01-23 Hannes Domani <ssbssa@yahoo.de>
10805
10806 * i386-cygwin-tdep.c (core_process_module_section): Update.
10807 * windows-nat.c (struct lm_info_windows): Add text_offset.
10808 (windows_xfer_shared_libraries): Update.
10809 * windows-tdep.c (windows_xfer_shared_library):
10810 Add text_offset_cached argument.
10811 * windows-tdep.h (windows_xfer_shared_library): Update.
10812
a1237872
SM
108132020-01-21 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10816
b3ee6dd9
SM
108172020-01-21 Simon Marchi <simon.marchi@efficios.com>
10818
10819 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10820 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10821 replace with range-based for.
10822 (gdbsim_interrupt_inferior): Remove.
10823 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10824 with a range-based for. Inline code from
10825 gdbsim_interrupt_inferior.
10826
f9fac3c8
SM
108272020-01-21 Simon Marchi <simon.marchi@efficios.com>
10828
10829 * infrun.c (proceed): Fix indentation.
10830
f6474de9
TT
108312020-01-21 Tom Tromey <tromey@adacore.com>
10832
10833 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10834 * python/python.c (python_extension_ops): Update.
10835 (gdbpy_colorize): New function.
10836 * python/lib/gdb/__init__.py (colorize): New function.
10837 * extension.h (ext_lang_colorize): Declare.
10838 * extension.c (ext_lang_colorize): New function.
10839 * extension-priv.h (struct extension_language_ops) <colorize>: New
10840 member.
10841 * cli/cli-style.c (_initialize_cli_style): Update help text.
10842
f0c702d4
LM
108432020-01-21 Luis Machado <luis.machado@linaro.org>
10844
10845 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10846 <cond>: Change type to bool.
10847 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10848 (aarch64_displaced_step_cb): Likewise.
10849 (aarch64_displaced_step_tb): Likewise.
10850
1ab139e5
LM
108512020-01-21 Luis Machado <luis.machado@linaro.org>
10852
10853 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10854 output.
10855
0c271889
LM
108562020-01-21 Luis Machado <luis.machado@linaro.org>
10857
10858 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10859 <pc_adjust>: Adjust the documentation.
10860 (aarch64_displaced_step_fixup): Check if PC really moved before
10861 adjusting it.
10862
4d89c1c7
TT
108632020-01-19 Tom Tromey <tom@tromey.com>
10864
10865 * disasm.c (~gdb_disassembler): New destructor.
10866 (gdb_buffered_insn_length): Call disassemble_free_target.
10867 * disasm.h (class gdb_disassembler): Declare destructor. Use
10868 DISABLE_COPY_AND_ASSIGN.
10869
c0ab21c2
TT
108702020-01-19 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10873 (die_reader_func_ftype): Remove.
10874 (cutu_reader): New class.
10875 (dw2_get_file_names_reader): Remove "data" parameter.
10876 (dw2_get_file_names): Use cutu_reader.
10877 (create_debug_type_hash_table): Update.
10878 (read_cutu_die_from_dwo): Update comment.
10879 (lookup_dwo_unit): Add dwo_name parameter.
10880 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10881 die_reader_func_ftype and data parameters.
10882 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10883 Remove die_reader_func_ftype and data parameters.
10884 (~cutu_reader): New; from init_cutu_and_read_dies.
10885 (cutu_reader::cutu_reader): Rename from
10886 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10887 and data parameters.
10888 (init_cutu_and_read_dies_simple): Remove.
10889 (struct process_psymtab_comp_unit_data): Remove.
10890 (process_psymtab_comp_unit_reader): Remove data parameter; add
10891 want_partial_unit and pretend_language parameters.
10892 (process_psymtab_comp_unit): Use cutu_reader.
10893 (build_type_psymtabs_reader): Remove data parameter.
10894 (build_type_psymtabs_1): Use cutu_reader.
10895 (process_skeletonless_type_unit): Likewise.
10896 (load_partial_comp_unit_reader): Remove.
10897 (load_partial_comp_unit): Use cutu_reader.
10898 (load_full_comp_unit_reader): Remove.
10899 (load_full_comp_unit): Use cutu_reader.
10900 (struct create_dwo_cu_data): Remove.
10901 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10902 dwo_unit parameters.
10903 (create_cus_hash_table): Use cutu_reader.
10904 (struct dwarf2_read_addr_index_data): Remove.
10905 (dwarf2_read_addr_index_reader): Remove.
10906 (dwarf2_read_addr_index): Use cutu_reader.
10907 (read_signatured_type_reader): Remove.
10908 (read_signatured_type): Use cutu_reader.
10909
45bbae5c
TT
109102020-01-19 Tom Tromey <tom@tromey.com>
10911
10912 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10913 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10914 (tui_wrefresh): Declare.
10915 * tui/tui-wingeneral.c (suppress_output): New global.
10916 (tui_suppress_output, ~tui_suppress_output): New constructor and
10917 destructor.
10918 (tui_wrefresh): New function.
10919 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10920 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10921 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10922 method.
10923 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10924 tui_wrefresh.
10925 (tui_data_window::no_refresh): New method.
10926 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10927 (tui_reg_command): Use tui_suppress_output
10928 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10929 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10930 method.
10931 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10932
4f13c1c0
TT
109332020-01-19 Tom Tromey <tom@tromey.com>
10934
10935 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10936 Handle case where symtab is null.
10937
fa47e446
SM
109382020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * linux-fork.c (one_fork_p): Simplify.
10941
26f42329
SM
109422020-01-17 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * top.c (struct qt_args): Remove.
10945 (kill_or_detach): Change return type to void, replace `void *`
10946 parameter with a proper one.
10947 (print_inferior_quit_action): Likewise.
10948 (quit_confirm): Use range-based for loop to iterate over inferiors.
10949 (quit_force): Likewise.
10950
a9ac81b1
SM
109512020-01-17 Simon Marchi <simon.marchi@efficios.com>
10952
10953 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10954 `void *` parameter with proper parameters.
10955 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10956 (print_one_inferior): Change return type to void, replace `void *`
10957 parameter with proper parameters.
10958 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10959 inferiors.
10960 (get_other_inferior): Remove.
10961 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10962 inferiors.
10963
788eca49
SM
109642020-01-17 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * mi/mi-interp.c (report_initial_inferior): Remove.
10967 (mi_interp::init): Use range-based for to iterate over inferiors.
10968
d9bc85b6
SM
109692020-01-17 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * python/py-inferior.c (build_inferior_list): Remove.
10972 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10973
40c94099
CB
109742020-01-16 Christian Biesinger <cbiesinger@google.com>
10975
10976 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10977 (btrace_stitch_trace): Likewise.
10978 * charset.c (intermediate_encoding): Likewise (vaild).
10979 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10980 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10981 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10982
e0cdfe3c
HD
109832020-01-16 Hannes Domani <ssbssa@yahoo.de>
10984
10985 * windows-tdep.c (windows_get_tlb_type):
10986 Add rtl_user_process_parameters type.
10987
790f1718 109882020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10989 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10990
10991 PR build/24805
10992 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10993 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10994 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10995 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10996 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10997 (ps_plog): Redeclare exported functions with default visibility.
10998
3112ed97
NA
109992020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11000
11001 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11002 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11003
8dc3273e
SM
110042020-01-15 Simon Marchi <simon.marchi@efficios.com>
11005
11006 * infcmd.c (post_create_inferior): Use get_thread_regcache
11007 instead of get_current_regcache.
11008
ff47f4f0
TT
110092020-01-14 Tom Tromey <tom@tromey.com>
11010
11011 PR symtab/12535:
11012 * python/python.c (gdbpy_decode_line): Treat empty string the same
11013 as no argument.
11014
975f45b7
TT
110152020-01-14 Tom Tromey <tom@tromey.com>
11016
11017 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11018
25e57356
TT
110192020-01-14 Tom Tromey <tom@tromey.com>
11020
11021 * nat/linux-btrace.c: Don't include <config.h>.
11022 * nat/linux-ptrace.c: Don't include <config.h>.
11023 * nat/x86-linux-dregs.c: Don't include <config.h>.
11024
05ea2a05
TT
110252020-01-14 Tom Tromey <tom@tromey.com>
11026
11027 * configure: Rebuild.
11028 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11029
01027315
TT
110302020-01-14 Tom Tromey <tom@tromey.com>
11031
11032 * nat/x86-linux-dregs.c: Include configh.h.
11033 * nat/linux-ptrace.c: Include configh.h.
11034 * nat/linux-btrace.c: Include configh.h.
11035 * defs.h: Include config.h, bfd.h.
11036 * configure.ac: Don't source common.host.
11037 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11038 * configure: Rebuild.
11039 * acinclude.m4: Update path.
11040 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11041 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11042 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11043 (CLIBS): Add LIBSUPPORT.
11044 (CDEPS): Likewise.
11045 (COMMON_SFILES): Remove gdbsupport files.
11046 (HFILES_NO_SRCDIR): Likewise.
11047 (stamp-version): Update path to create-version.sh.
11048 (ALLDEPFILES): Remove gdbsupport files.
11049
b2ceabe8
TT
110502020-01-14 Tom Tromey <tom@tromey.com>
11051
11052 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11053 USE_WIN32API when needed.
11054 * configure.ac (USE_WIN32API): Don't define.
11055 (WIN32LIBS): Use WIN32APILIBS.
11056 * configure: Rebuild.
11057
25c51f71
TT
110582020-01-14 Tom Tromey <tom@tromey.com>
11059
11060 * configure: Rebuild.
11061 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11062
717c684d
BE
110632020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11064
11065 * skip.c (skip_function_command): Make skip w/o arguments use the
11066 name of the inlined function if pc is inside any inlined function.
11067
7da6a5b9
LM
110682020-01-14 Luis Machado <luis.machado@linaro.org>
11069
11070 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11071 * infrun.c (resume_1): Likewise.
11072 (handle_inferior_event): Remove stale comment.
11073 * linux-nat.c (linux_nat_target::resume): Update comments.
11074 (save_stop_reason): Likewise.
11075 (linux_nat_filter_event): Likewise.
11076 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11077
44e4c775
AB
110782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11079
11080 * elfread.c (record_minimal_symbol): Set section index to 0 for
11081 non-allocatable sections.
11082
18a8505e
AT
11083
110842020-01-13 Ali Tamur <tamur@google.com>
11085
11086 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11087 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11088 to gdb::optional. Update comments.
11089 (dwo_file): Update comments.
11090 (read_attribute): Update API to take an additional out parameter,
11091 need_reprocess. This is used to mark attributes that need other
11092 attributes (e.g. str_offsets_base) for correct computation which may not
11093 have been read yet.
11094 (read_attribute_reprocess): New function declaration.
11095 (read_addr_index): Likewise.
11096 (read_dwo_str_index): Likewise.
11097 (read_stub_str_index): Likewise.
11098 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11099 (lookup_addr_base): New function definition.
11100 (lookup_ranges_base): Likewise.
11101 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11102 lookup_ranges_base.
11103 (init_cutu_and_read_dies): Update comments.
11104 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11105 unit. This is used to inherit parent's str_offsets_base and addr_base.
11106 Update comments.
11107 (init_cutu_and_read_dies_simple): Reflect API changes.
11108 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11109 (create_cus_hash_table): Change API to take parent compile unit.
11110 Reflect API changes.
11111 (open_and_init_dwo_file): Reflect API changes.
11112 (dwarf2_get_pc_bounds): Update comments.
11113 (dwarf2_record_block_ranges): Likewise.
11114 (read_full_die_1): Change implementation to reprocess attributes that
11115 need str_offsets_base and addr_base.
11116 (partial_die_info::read): Likewise.
11117 (read_attribute_reprocess): New function definition.
11118 (read_attribute_value): Change API to take an additional out parameter,
11119 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11120 when a non-dwo compile unit has index based attributes.
11121 (read_attribute): Reflect API changes.
11122 (read_addr_index_1): Reflect API changes. Update comments.
11123 (dwarf2_read_addr_index_data): Reflect API changes.
11124 (dwarf2_read_addr_index): Likewise.
11125 (read_str_index): Change API and implementation. This becomes a helper
11126 to be used by the new string index related methods. Update error
11127 message and comments.
11128 (read_dwo_str_index): New function definition.
11129 (read_stub_str_index): Likewise.
11130 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11131 * symfile.h (dwarf2_debug_sections): Likewise.
11132 * xcoffread.c (dwarf2_debug_sections): Likewise.
11133
0cac9354
SM
111342020-01-13 Simon Marchi <simon.marchi@efficios.com>
11135
11136 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11137 core_reg_sect type to gdb_byte *.
11138 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11139 * cris-tdep.c (fetch_core_registers): Likewise.
11140 * corelow.c (core_target::get_core_register_section): Change
11141 type of `contents` to gdb::byte_vector.
11142
9a6d629c
AB
111432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11144
11145 * tui/tui-wingeneral.c (box_win): Position the title in the center
11146 of the border.
11147
d8b2f9e3
SM
111482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11149
11150 * corelow.c (core_target::get_core_register_section): Use
11151 std::vector instead of alloca.
11152
bb564c58
SM
111532020-01-13 Simon Marchi <simon.marchi@efficios.com>
11154
11155 * warning.m4: Add -Wmissing-declarations to build_warnings.
11156 * configure: Re-generate.
11157
6b366111
SM
111582020-01-13 Simon Marchi <simon.marchi@efficios.com>
11159
11160 * python/python.c (init__gdb_module): Add declaration.
11161
6c265988
SM
111622020-01-13 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11165 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11166 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11167 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11168 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11169 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11170 * ada-exp.y (_initialize_ada_exp): Add declaration.
11171 * ada-lang.c (_initialize_ada_language): Add declaration.
11172 * ada-tasks.c (_initialize_tasks): Add declaration.
11173 * agent.c (_initialize_agent): Add declaration.
11174 * aix-thread.c (_initialize_aix_thread): Add declaration.
11175 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11176 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11177 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11178 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11179 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11180 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11181 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11182 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11183 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11184 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11185 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11186 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11187 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11188 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11189 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11190 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11191 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11192 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11193 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11194 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11195 * annotate.c (_initialize_annotate): Add declaration.
11196 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11197 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11198 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11199 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11200 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11201 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11202 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11203 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11204 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11205 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11206 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11207 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11208 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11209 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11210 * auto-load.c (_initialize_auto_load): Add declaration.
11211 * auxv.c (_initialize_auxv): Add declaration.
11212 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11213 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11214 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11215 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11216 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11217 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11218 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11219 * breakpoint.c (_initialize_breakpoint): Add declaration.
11220 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11221 * btrace.c (_initialize_btrace): Add declaration.
11222 * charset.c (_initialize_charset): Add declaration.
11223 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11224 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11225 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11226 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11227 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11228 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11229 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11230 * coffread.c (_initialize_coffread): Add declaration.
11231 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11232 * compile/compile.c (_initialize_compile): Add declaration.
11233 * complaints.c (_initialize_complaints): Add declaration.
11234 * completer.c (_initialize_completer): Add declaration.
11235 * copying.c (_initialize_copying): Add declaration.
11236 * corefile.c (_initialize_core): Add declaration.
11237 * corelow.c (_initialize_corelow): Add declaration.
11238 * cp-abi.c (_initialize_cp_abi): Add declaration.
11239 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11240 * cp-support.c (_initialize_cp_support): Add declaration.
11241 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11242 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11243 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11244 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11245 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11246 * ctfread.c (_initialize_ctfread): Add declaration.
11247 * d-lang.c (_initialize_d_language): Add declaration.
11248 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11249 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11250 * dbxread.c (_initialize_dbxread): Add declaration.
11251 * dcache.c (_initialize_dcache): Add declaration.
11252 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11253 * disasm.c (_initialize_disasm): Add declaration.
11254 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11255 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11256 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11257 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11258 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11259 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11260 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11261 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11262 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11263 * elfread.c (_initialize_elfread): Add declaration.
11264 * exec.c (_initialize_exec): Add declaration.
11265 * extension.c (_initialize_extension): Add declaration.
11266 * f-lang.c (_initialize_f_language): Add declaration.
11267 * f-valprint.c (_initialize_f_valprint): Add declaration.
11268 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11269 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11270 * filesystem.c (_initialize_filesystem): Add declaration.
11271 * findcmd.c (_initialize_mem_search): Add declaration.
11272 * findvar.c (_initialize_findvar): Add declaration.
11273 * fork-child.c (_initialize_fork_child): Add declaration.
11274 * frame-base.c (_initialize_frame_base): Add declaration.
11275 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11276 * frame.c (_initialize_frame): Add declaration.
11277 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11278 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11279 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11280 * gcore.c (_initialize_gcore): Add declaration.
11281 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11282 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11283 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11284 * gdbarch.c (_initialize_gdbarch): Add declaration.
11285 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11286 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11287 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11288 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11289 * go-lang.c (_initialize_go_language): Add declaration.
11290 * go32-nat.c (_initialize_go32_nat): Add declaration.
11291 * guile/guile.c (_initialize_guile): Add declaration.
11292 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11293 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11294 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11295 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11296 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11297 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11298 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11299 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11300 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11301 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11302 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11303 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11304 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11305 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11306 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11307 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11308 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11309 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11310 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11311 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11312 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11313 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11314 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11315 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11316 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11317 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11318 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11319 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11320 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11321 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11322 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11323 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11324 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11325 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11326 * infcall.c (_initialize_infcall): Add declaration.
11327 * infcmd.c (_initialize_infcmd): Add declaration.
11328 * inflow.c (_initialize_inflow): Add declaration.
11329 * infrun.c (_initialize_infrun): Add declaration.
11330 * interps.c (_initialize_interpreter): Add declaration.
11331 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11332 * jit.c (_initialize_jit): Add declaration.
11333 * language.c (_initialize_language): Add declaration.
11334 * linux-fork.c (_initialize_linux_fork): Add declaration.
11335 * linux-nat.c (_initialize_linux_nat): Add declaration.
11336 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11337 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11338 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11339 * m2-lang.c (_initialize_m2_language): Add declaration.
11340 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11341 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11342 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11343 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11344 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11345 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11346 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11347 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11348 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11349 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11350 * machoread.c (_initialize_machoread): Add declaration.
11351 * macrocmd.c (_initialize_macrocmd): Add declaration.
11352 * macroscope.c (_initialize_macroscope): Add declaration.
11353 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11354 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11355 * maint.c (_initialize_maint_cmds): Add declaration.
11356 * mdebugread.c (_initialize_mdebugread): Add declaration.
11357 * memattr.c (_initialize_mem): Add declaration.
11358 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11359 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11360 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11361 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11362 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11363 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11364 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11365 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11366 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11367 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11368 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11369 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11370 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11371 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11372 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11373 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11374 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11375 * mipsread.c (_initialize_mipsread): Add declaration.
11376 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11377 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11378 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11379 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11380 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11381 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11382 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11383 * nto-procfs.c (_initialize_procfs): Add declaration.
11384 * objc-lang.c (_initialize_objc_language): Add declaration.
11385 * observable.c (_initialize_observer): Add declaration.
11386 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11387 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11388 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11389 * osabi.c (_initialize_gdb_osabi): Add declaration.
11390 * osdata.c (_initialize_osdata): Add declaration.
11391 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11392 * parse.c (_initialize_parse): Add declaration.
11393 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11394 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11395 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11396 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11397 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11398 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11399 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11400 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11401 * printcmd.c (_initialize_printcmd): Add declaration.
11402 * probe.c (_initialize_probe): Add declaration.
11403 * proc-api.c (_initialize_proc_api): Add declaration.
11404 * proc-events.c (_initialize_proc_events): Add declaration.
11405 * proc-service.c (_initialize_proc_service): Add declaration.
11406 * procfs.c (_initialize_procfs): Add declaration.
11407 * producer.c (_initialize_producer): Add declaration.
11408 * psymtab.c (_initialize_psymtab): Add declaration.
11409 * python/python.c (_initialize_python): Add declaration.
11410 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11411 * record-btrace.c (_initialize_record_btrace): Add declaration.
11412 * record-full.c (_initialize_record_full): Add declaration.
11413 * record.c (_initialize_record): Add declaration.
11414 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11415 * regcache.c (_initialize_regcache): Add declaration.
11416 * reggroups.c (_initialize_reggroup): Add declaration.
11417 * remote-notif.c (_initialize_notif): Add declaration.
11418 * remote-sim.c (_initialize_remote_sim): Add declaration.
11419 * remote.c (_initialize_remote): Add declaration.
11420 * reverse.c (_initialize_reverse): Add declaration.
11421 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11422 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11423 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11424 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11425 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11426 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11427 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11428 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11429 Add declaration.
11430 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11431 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11432 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11433 * rust-exp.y (_initialize_rust_exp): Add declaration.
11434 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11435 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11436 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11437 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11438 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11439 * score-tdep.c (_initialize_score_tdep): Add declaration.
11440 * ser-go32.c (_initialize_ser_dos): Add declaration.
11441 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11442 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11443 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11444 * ser-uds.c (_initialize_ser_socket): Add declaration.
11445 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11446 * serial.c (_initialize_serial): Add declaration.
11447 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11448 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11449 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11450 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11451 * skip.c (_initialize_step_skip): Add declaration.
11452 * sol-thread.c (_initialize_sol_thread): Add declaration.
11453 * solib-aix.c (_initialize_solib_aix): Add declaration.
11454 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11455 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11456 * solib-frv.c (_initialize_frv_solib): Add declaration.
11457 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11458 * solib-target.c (_initialize_solib_target): Add declaration.
11459 * solib.c (_initialize_solib): Add declaration.
11460 * source-cache.c (_initialize_source_cache): Add declaration.
11461 * source.c (_initialize_source): Add declaration.
11462 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11463 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11464 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11465 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11466 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11467 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11468 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11469 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11470 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11471 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11472 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11473 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11474 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11475 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11476 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11477 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11478 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11479 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11480 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11481 * stabsread.c (_initialize_stabsread): Add declaration.
11482 * stack.c (_initialize_stack): Add declaration.
11483 * stap-probe.c (_initialize_stap_probe): Add declaration.
11484 * std-regs.c (_initialize_frame_reg): Add declaration.
11485 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11486 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11487 * symfile.c (_initialize_symfile): Add declaration.
11488 * symmisc.c (_initialize_symmisc): Add declaration.
11489 * symtab.c (_initialize_symtab): Add declaration.
11490 * target.c (_initialize_target): Add declaration.
11491 * target-connection.c (_initialize_target_connection): Add
11492 declaration.
11493 * target-dcache.c (_initialize_target_dcache): Add declaration.
11494 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11495 * thread.c (_initialize_thread): Add declaration.
11496 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11497 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11498 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11499 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11500 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11501 * tracectf.c (_initialize_ctf): Add declaration.
11502 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11503 * tracefile.c (_initialize_tracefile): Add declaration.
11504 * tracepoint.c (_initialize_tracepoint): Add declaration.
11505 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11506 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11507 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11508 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11509 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11510 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11511 * tui/tui.c (_initialize_tui): Add declaration.
11512 * typeprint.c (_initialize_typeprint): Add declaration.
11513 * ui-style.c (_initialize_ui_style): Add declaration.
11514 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11515 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11516 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11517 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11518 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11519 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11520 * unittests/filtered_iterator-selftests.c
11521 (_initialize_filtered_iterator_selftests): Add declaration.
11522 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11523 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11524 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11525 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11526 * unittests/main-thread-selftests.c
11527 (_initialize_main_thread_selftests): Add declaration.
11528 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11529 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11530 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11531 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11532 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11533 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11534 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11535 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11536 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11537 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11538 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11539 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11540 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11541 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11542 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11543 declaration.
11544 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11545 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11546 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11547 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11548 * user-regs.c (_initialize_user_regs): Add declaration.
11549 * utils.c (_initialize_utils): Add declaration.
11550 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11551 * valops.c (_initialize_valops): Add declaration.
11552 * valprint.c (_initialize_valprint): Add declaration.
11553 * value.c (_initialize_values): Add declaration.
11554 * varobj.c (_initialize_varobj): Add declaration.
11555 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11556 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11557 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11558 * windows-nat.c (_initialize_windows_nat): Add declaration.
11559 (_initialize_check_for_gdb_ini): Add declaration.
11560 (_initialize_loadable): Add declaration.
11561 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11562 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11563 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11564 * xcoffread.c (_initialize_xcoffread): Add declaration.
11565 * xml-support.c (_initialize_xml_support): Add declaration.
11566 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11567 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11568 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11569 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11570
e2de1eec
SM
115712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11572
11573 * regformats/regdat.sh: Generate declaration for init function.
11574
e0037b4c
SM
115752020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11576
11577 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11578 up.
11579 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11580 close_one_inferior>: New methods.
11581 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11582 pass down target to find_inferior_pid.
11583 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11584 Pass down target to find_inferior_ptid.
11585 (gdbsim_target::create_inferior): Pass down target to
11586 add_thread_silent.
11587 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11588 target down to find_inferior_ptid and switch_to_thread.
11589 (gdbsim_target::close): Update to call close_one_inferior.
11590 (struct resume_data): Remove.
11591 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11592 directly, rather than through a void pointer.
11593 (gdbsim_target::resume): Update to call resume_one_inferior.
11594
58920b5b
SM
115952020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11596
11597 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11598
4ec89149
PA
115992020-01-12 Pedro Alves <palves@redhat.com>
11600
11601 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11602 directly for the current inferior instead of
11603 discard_all_inferiors.
11604 (discard_all_inferiors): Delete.
11605
7c392d1d
TT
116062020-01-11 Tom Tromey <tom@tromey.com>
11607
11608 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11609 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11610 deprecated_safe_get_selected_frame.
11611
d9ebdab7
TBA
116122020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11613
11614 * inferior.c (print_inferior): Switch inferior before printing it.
11615
f3c469b9
PA
116162020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11617 Pedro Alves <palves@redhat.com>
11618
11619 * progspace-and-thread.c (switch_to_program_space_and_thread):
11620 Assert there's an inferior for PSPACE. Use
11621 switch_to_inferior_no_thread to switch the inferior too.
11622 * progspace.c (program_space::~program_space): Call
11623 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11624 (program_space::free_all_objfiles): Don't call clear_symtab_users
11625 here.
11626 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11627
65c574f6
PA
116282020-01-10 Pedro Alves <palves@redhat.com>
11629
11630 * NEWS: Mention multi-target debugging, "info connections", and
11631 "add-inferior -no-connection".
11632
2f4fcf00
PA
116332020-01-10 Pedro Alves <palves@redhat.com>
11634
11635 * infrun.c: Include "target-connection.h".
11636 (check_multi_target_resumption): New.
11637 (proceed): Call it.
11638 * target-connection.c (make_target_connection_string): Make
11639 extern.
11640 * target-connection.h (make_target_connection_string): Declare.
11641
121b3efd
PA
116422020-01-10 Pedro Alves <palves@redhat.com>
11643
11644 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11645 * inferior.c (uiout_field_connection): New function.
11646 (print_inferior): Add new "connection-id" column.
11647 (add_inferior_command): Show connection number/string of added
11648 inferior.
11649 * process-stratum-target.h
11650 (process_stratum_target::connection_string): New virtual method.
11651 (process_stratum_target::connection_number): New field.
11652 * remote.c (remote_target::connection_string): New override.
11653 * target-connection.c: New file.
11654 * target-connection.h: New file.
11655 * target.c (decref_target): Remove process_stratum targets from
11656 the connection list.
11657 (target_stack::push): Add process_stratum targets to the
11658 connection list.
11659
4f837581
PA
116602020-01-10 Pedro Alves <palves@redhat.com>
11661
11662 Revert:
11663 2016-04-12 Pedro Alves <palves@redhat.com>
11664 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11665 Remove references to name.
11666 * serial.h (struct serial) <name>: Delete.
11667
f4ec508e
PA
116682020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * gdbarch-selftests.c (register_to_value_test): Remove "target
11671 already pushed" check.
11672
5b6d1e4f
PA
116732020-01-10 Pedro Alves <palves@redhat.com>
11674 John Baldwin <jhb@FreeBSD.org>
11675
11676 * aarch64-linux-nat.c
11677 (aarch64_linux_nat_target::thread_architecture): Adjust.
11678 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11679 (task_command_1): Likewise.
11680 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11681 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11682 (aix_thread_target::store_registers)
11683 (aix_thread_target::thread_alive): Adjust.
11684 * amd64-fbsd-tdep.c: Include "inferior.h".
11685 (amd64fbsd_get_thread_local_address): Pass down target.
11686 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11687 thread's gdbarch instead of target_gdbarch.
11688 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11689 get_last_target_status.
11690 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11691 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11692 inferiors.
11693 (update_inserted_breakpoint_locations): Skip if inferiors with no
11694 execution.
11695 (update_global_location_list): When handling moribund locations,
11696 find representative inferior for location's pspace, and use thread
11697 count of its process_stratum target.
11698 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11699 * bsd-uthread.c (bsd_uthread_target::wait): Use
11700 as_process_stratum_target and adjust thread_change_ptid and
11701 add_thread calls.
11702 (bsd_uthread_target::update_thread_list): Use
11703 as_process_stratum_target and adjust find_thread_ptid,
11704 thread_change_ptid and add_thread calls.
11705 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11706 find_thread_ptid call.
11707 * corelow.c (add_to_thread_list): Adjust add_thread call.
11708 (core_target_open): Adjust add_thread_silent and thread_count
11709 calls.
11710 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11711 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11712 * event-top.c (async_disconnect): Pop targets from all inferiors.
11713 * exec.c (add_target_sections): Push exec target on all inferiors
11714 sharing the program space.
11715 (remove_target_sections): Remove the exec target from all
11716 inferiors sharing the program space.
11717 (exec_on_vfork): New.
11718 * exec.h (exec_on_vfork): Declare.
11719 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11720 Pass it down.
11721 (fbsd_nat_target::update_thread_list): Adjust.
11722 (fbsd_nat_target::resume): Adjust.
11723 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11724 down.
11725 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11726 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11727 get_thread_arch_regcache call.
11728 * fork-child.c (gdb_startup_inferior): Pass target down to
11729 startup_inferior and set_executing.
11730 * gdbthread.h (struct process_stratum_target): Forward declare.
11731 (add_thread, add_thread_silent, add_thread_with_info)
11732 (in_thread_list): Add process_stratum_target parameter.
11733 (find_thread_ptid(inferior*, ptid_t)): New overload.
11734 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11735 parameter.
11736 (all_threads()): Delete overload.
11737 (all_threads, all_non_exited_threads): Add process_stratum_target
11738 parameter.
11739 (all_threads_safe): Use brace initialization.
11740 (thread_count): Add process_stratum_target parameter.
11741 (set_resumed, set_running, set_stop_requested, set_executing)
11742 (threads_are_executing, finish_thread_state): Add
11743 process_stratum_target parameter.
11744 (switch_to_thread): Use is_current_thread.
11745 * i386-fbsd-tdep.c: Include "inferior.h".
11746 (i386fbsd_get_thread_local_address): Pass down target.
11747 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11748 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11749 have_inferiors check.
11750 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11751 (inf_ptrace_target::attach): Adjust.
11752 * infcall.c (run_inferior_call): Adjust.
11753 * infcmd.c (run_command_1): Pass target to
11754 scoped_finish_thread_state.
11755 (proceed_thread_callback): Skip inferiors with no execution.
11756 (continue_command): Rename 'all_threads' local to avoid hiding
11757 'all_threads' function. Adjust get_last_target_status call.
11758 (prepare_one_step): Adjust set_running call.
11759 (signal_command): Use user_visible_resume_target. Compare thread
11760 pointers instead of inferior_ptid.
11761 (info_program_command): Adjust to pass down target.
11762 (attach_command): Mark target's 'thread_executing' flag.
11763 (stop_current_target_threads_ns): New, factored out from ...
11764 (interrupt_target_1): ... this. Switch inferior before making
11765 target calls.
11766 * inferior-iter.h
11767 (struct all_inferiors_iterator, struct all_inferiors_range)
11768 (struct all_inferiors_safe_range)
11769 (struct all_non_exited_inferiors_range): Filter on
11770 process_stratum_target too. Remove explicit.
11771 * inferior.c (inferior::inferior): Push dummy target on target
11772 stack.
11773 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11774 Add process_stratum_target parameter, and pass it down.
11775 (have_live_inferiors): Adjust.
11776 (switch_to_inferior_and_push_target): New.
11777 (add_inferior_command, clone_inferior_command): Handle
11778 "-no-connection" parameter. Use
11779 switch_to_inferior_and_push_target.
11780 (_initialize_inferior): Mention "-no-connection" option in
11781 the help of "add-inferior" and "clone-inferior" commands.
11782 * inferior.h: Include "process-stratum-target.h".
11783 (interrupt_target_1): Use bool.
11784 (struct inferior) <push_target, unpush_target, target_is_pushed,
11785 find_target_beneath, top_target, process_target, target_at,
11786 m_stack>: New.
11787 (discard_all_inferiors): Delete.
11788 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11789 (all_inferiors, all_non_exited_inferiors): Add
11790 process_stratum_target parameter.
11791 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11792 (target_last_proc_target): New global.
11793 (follow_fork_inferior): Push target on new inferior. Pass target
11794 to add_thread_silent. Call exec_on_vfork. Handle target's
11795 reference count.
11796 (follow_fork): Adjust get_last_target_status call. Also consider
11797 target.
11798 (follow_exec): Push target on new inferior.
11799 (struct execution_control_state) <target>: New field.
11800 (user_visible_resume_target): New.
11801 (do_target_resume): Call target_async.
11802 (resume_1): Set target's threads_executing flag. Consider resume
11803 target.
11804 (commit_resume_all_targets): New.
11805 (proceed): Also consider resume target. Skip threads of inferiors
11806 with no execution. Commit resumtion in all targets.
11807 (start_remote): Pass current inferior to wait_for_inferior.
11808 (infrun_thread_stop_requested): Consider target as well. Pass
11809 thread_info pointer to clear_inline_frame_state instead of ptid.
11810 (infrun_thread_thread_exit): Consider target as well.
11811 (random_pending_event_thread): New inferior parameter. Use it.
11812 (do_target_wait): Rename to ...
11813 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11814 down.
11815 (threads_are_resumed_pending_p, do_target_wait): New.
11816 (prepare_for_detach): Adjust calls.
11817 (wait_for_inferior): New inferior parameter. Handle it. Use
11818 do_target_wait_1 instead of do_target_wait.
11819 (fetch_inferior_event): Adjust. Switch to representative
11820 inferior. Pass target down.
11821 (set_last_target_status): Add process_stratum_target parameter.
11822 Save target in global.
11823 (get_last_target_status): Add process_stratum_target parameter and
11824 handle it.
11825 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11826 (context_switch): Check inferior_ptid == null_ptid before calling
11827 inferior_thread().
11828 (get_inferior_stop_soon): Pass down target.
11829 (wait_one): Rename to ...
11830 (poll_one_curr_target): ... this.
11831 (struct wait_one_event): New.
11832 (wait_one): New.
11833 (stop_all_threads): Adjust.
11834 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11835 event's target.
11836 (switch_back_to_stepped_thread): Also consider target.
11837 (print_stop_event): Update.
11838 (normal_stop): Update. Also consider the resume target.
11839 * infrun.h (wait_for_inferior): Remove declaration.
11840 (user_visible_resume_target): New declaration.
11841 (get_last_target_status, set_last_target_status): New
11842 process_stratum_target parameter.
11843 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11844 process_stratum_target parameter, and use it.
11845 (clear_inline_frame_state (thread_info*)): New.
11846 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11847 process_stratum_target parameter.
11848 (clear_inline_frame_state (thread_info*)): Declare.
11849 * linux-fork.c (delete_checkpoint_command): Pass target down to
11850 find_thread_ptid.
11851 (checkpoint_command): Adjust.
11852 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11853 instead of just tweaking inferior_ptid.
11854 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11855 (exit_lwp): Pass target down to find_thread_ptid.
11856 (attach_proc_task_lwp_callback): Pass target down to
11857 add_thread/set_running/set_executing.
11858 (linux_nat_target::attach): Pass target down to
11859 thread_change_ptid.
11860 (get_detach_signal): Pass target down to find_thread_ptid.
11861 Consider last target status's target.
11862 (linux_resume_one_lwp_throw, resume_lwp)
11863 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11864 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11865 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11866 (linux_nat_target::async_wait_fd): New.
11867 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11868 target down.
11869 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11870 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11871 * linux-thread-db.c (struct thread_db_info::process_target): New
11872 field.
11873 (add_thread_db_info): Save target.
11874 (get_thread_db_info): New process_stratum_target parameter. Also
11875 match target.
11876 (delete_thread_db_info): New process_stratum_target parameter.
11877 Also match target.
11878 (thread_from_lwp): Adjust to pass down target.
11879 (thread_db_notice_clone): Pass down target.
11880 (check_thread_db_callback): Pass down target.
11881 (try_thread_db_load_1): Always push the thread_db target.
11882 (try_thread_db_load, record_thread): Pass target down.
11883 (thread_db_target::detach): Pass target down. Always unpush the
11884 thread_db target.
11885 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11886 target down. Always unpush the thread_db target.
11887 (find_new_threads_callback, thread_db_find_new_threads_2)
11888 (thread_db_target::update_thread_list): Pass target down.
11889 (thread_db_target::pid_to_str): Pass current inferior down.
11890 (thread_db_target::get_thread_local_address): Pass target down.
11891 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11892 target down.
11893 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11894 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11895 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11896 (procfs_init_inferior): Rename to ...
11897 (procfs_target::procfs_init_inferior): ... this and adjust.
11898 (procfs_target::create_inferior, procfs_notice_thread)
11899 (procfs_do_thread_registers): Adjust.
11900 * ppc-fbsd-tdep.c: Include "inferior.h".
11901 (ppcfbsd_get_thread_local_address): Pass down target.
11902 * proc-service.c (ps_xfer_memory): Switch current inferior and
11903 program space as well.
11904 (get_ps_regcache): Pass target down.
11905 * process-stratum-target.c
11906 (process_stratum_target::thread_address_space)
11907 (process_stratum_target::thread_architecture): Pass target down.
11908 * process-stratum-target.h
11909 (process_stratum_target::threads_executing): New field.
11910 (as_process_stratum_target): New.
11911 * ravenscar-thread.c
11912 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11913 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11914 down.
11915 * record-btrace.c (record_btrace_target::info_record): Adjust.
11916 (record_btrace_target::record_method)
11917 (record_btrace_target::record_is_replaying)
11918 (record_btrace_target::fetch_registers)
11919 (get_thread_current_frame_id, record_btrace_target::resume)
11920 (record_btrace_target::wait, record_btrace_target::stop): Pass
11921 target down.
11922 * record-full.c (record_full_wait_1): Switch to event thread.
11923 Pass target down.
11924 * regcache.c (regcache::regcache)
11925 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11926 process_stratum_target parameter and handle it.
11927 (current_thread_target): New global.
11928 (get_thread_regcache): Add process_stratum_target parameter and
11929 handle it. Switch inferior before calling target method.
11930 (get_thread_regcache): Pass target down.
11931 (get_thread_regcache_for_ptid): Pass target down.
11932 (registers_changed_ptid): Add process_stratum_target parameter and
11933 handle it.
11934 (registers_changed_thread, registers_changed): Pass target down.
11935 (test_get_thread_arch_aspace_regcache): New.
11936 (current_regcache_test): Define a couple local test_target_ops
11937 instances and use them for testing.
11938 (readwrite_regcache): Pass process_stratum_target parameter.
11939 (cooked_read_test, cooked_write_test): Pass mock_target down.
11940 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11941 (get_thread_arch_aspace_regcache): Add process_stratum_target
11942 parameter.
11943 (regcache::target): New method.
11944 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11945 (regcache::registers_changed_ptid): Add process_stratum_target
11946 parameter.
11947 (regcache::m_target): New field.
11948 (registers_changed_ptid): Add process_stratum_target parameter.
11949 * remote.c (remote_state::supports_vCont_probed): New field.
11950 (remote_target::async_wait_fd): New method.
11951 (remote_unpush_and_throw): Add remote_target parameter.
11952 (get_current_remote_target): Adjust.
11953 (remote_target::remote_add_inferior): Push target.
11954 (remote_target::remote_add_thread)
11955 (remote_target::remote_notice_new_inferior)
11956 (get_remote_thread_info): Pass target down.
11957 (remote_target::update_thread_list): Skip threads of inferiors
11958 bound to other targets. (remote_target::close): Don't discard
11959 inferiors. (remote_target::add_current_inferior_and_thread)
11960 (remote_target::process_initial_stop_replies)
11961 (remote_target::start_remote)
11962 (remote_target::remote_serial_quit_handler): Pass down target.
11963 (remote_target::remote_unpush_target): New remote_target
11964 parameter. Unpush the target from all inferiors.
11965 (remote_target::remote_unpush_and_throw): New remote_target
11966 parameter. Pass it down.
11967 (remote_target::open_1): Check whether the current inferior has
11968 execution instead of checking whether any inferior is live. Pass
11969 target down.
11970 (remote_target::remote_detach_1): Pass down target. Use
11971 remote_unpush_target.
11972 (extended_remote_target::attach): Pass down target.
11973 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11974 (remote_target::append_resumption): Pass down target.
11975 (remote_target::append_pending_thread_resumptions)
11976 (remote_target::remote_resume_with_hc, remote_target::resume)
11977 (remote_target::commit_resume): Pass down target.
11978 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11979 (remote_target::interrupt_query)
11980 (remote_target::remove_new_fork_children)
11981 (remote_target::check_pending_events_prevent_wildcard_vcont)
11982 (remote_target::remote_parse_stop_reply)
11983 (remote_target::process_stop_reply): Pass down target.
11984 (first_remote_resumed_thread): New remote_target parameter. Pass
11985 it down.
11986 (remote_target::wait_as): Pass down target.
11987 (unpush_and_perror): New remote_target parameter. Pass it down.
11988 (remote_target::readchar, remote_target::remote_serial_write)
11989 (remote_target::getpkt_or_notif_sane_1)
11990 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11991 down target.
11992 (remote_target::mourn_inferior): Pass down target. Use
11993 remote_unpush_target.
11994 (remote_target::core_of_thread)
11995 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11996 (remote_target::pid_to_exec_file)
11997 (remote_target::thread_handle_to_thread_info): Pass down target.
11998 (remote_target::async_wait_fd): New.
11999 * riscv-fbsd-tdep.c: Include "inferior.h".
12000 (riscv_fbsd_get_thread_local_address): Pass down target.
12001 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12002 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12003 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12004 Adjust.
12005 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12006 * solib-svr4.c (enable_break): Pass down target.
12007 * spu-multiarch.c (parse_spufs_run): Pass down target.
12008 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12009 * target-delegates.c: Regenerate.
12010 * target.c (g_target_stack): Delete.
12011 (current_top_target): Return the current inferior's top target.
12012 (target_has_execution_1): Refer to the passed-in inferior's top
12013 target.
12014 (target_supports_terminal_ours): Check whether the initial
12015 inferior was already created.
12016 (decref_target): New.
12017 (target_stack::push): Incref/decref the target.
12018 (push_target, push_target, unpush_target): Adjust.
12019 (target_stack::unpush): Defref target.
12020 (target_is_pushed): Return bool. Adjust to refer to the current
12021 inferior's target stack.
12022 (dispose_inferior): Delete, and inline parts ...
12023 (target_preopen): ... here. Only dispose of the current inferior.
12024 (target_detach): Hold strong target reference while detaching.
12025 Pass target down.
12026 (target_thread_name): Add assertion.
12027 (target_resume): Pass down target.
12028 (target_ops::beneath, find_target_at): Adjust to refer to the
12029 current inferior's target stack.
12030 (get_dummy_target): New.
12031 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12032 has a thread running.
12033 (initialize_targets): Rename to ...
12034 (_initialize_target): ... this.
12035 * target.h: Include "gdbsupport/refcounted-object.h".
12036 (struct target_ops): Inherit refcounted_object.
12037 (target_ops::shortname, target_ops::longname): Make const.
12038 (target_ops::async_wait_fd): New method.
12039 (decref_target): Declare.
12040 (struct target_ops_ref_policy): New.
12041 (target_ops_ref): New typedef.
12042 (get_dummy_target): Declare function.
12043 (target_is_pushed): Return bool.
12044 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12045 (all_matching_threads_iterator::all_matching_threads_iterator):
12046 Handle filter target.
12047 * thread-iter.h (struct all_matching_threads_iterator, struct
12048 all_matching_threads_range, class all_non_exited_threads_range):
12049 Filter by target too. Remove explicit.
12050 * thread.c (threads_executing): Delete.
12051 (inferior_thread): Pass down current inferior.
12052 (clear_thread_inferior_resources): Pass down thread pointer
12053 instead of ptid_t.
12054 (add_thread_silent, add_thread_with_info, add_thread): Add
12055 process_stratum_target parameter. Use it for thread and inferior
12056 searches.
12057 (is_current_thread): New.
12058 (thread_info::deletable): Use it.
12059 (find_thread_ptid, thread_count, in_thread_list)
12060 (thread_change_ptid, set_resumed, set_running): New
12061 process_stratum_target parameter. Pass it down.
12062 (set_executing): New process_stratum_target parameter. Pass it
12063 down. Adjust reference to 'threads_executing'.
12064 (threads_are_executing): New process_stratum_target parameter.
12065 Adjust reference to 'threads_executing'.
12066 (set_stop_requested, finish_thread_state): New
12067 process_stratum_target parameter. Pass it down.
12068 (switch_to_thread): Also match inferior.
12069 (switch_to_thread): New process_stratum_target parameter. Pass it
12070 down.
12071 (update_threads_executing): Reimplement.
12072 * top.c (quit_force): Pop targets from all inferior.
12073 (gdb_init): Don't call initialize_targets.
12074 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12075 Declare.
12076 (windows_add_thread, windows_delete_thread): Adjust.
12077 (get_windows_debug_event): Rename to ...
12078 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12079 * tracefile-tfile.c (tfile_target_open): Pass down target.
12080 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12081 Forward declare.
12082 (switch_to_thread): Add process_stratum_target parameter.
12083 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12084 parameter. Use it.
12085 (mi_on_resume): Pass target down.
12086 * nat/fork-inferior.c (startup_inferior): Add
12087 process_stratum_target parameter. Pass it down.
12088 * nat/fork-inferior.h (startup_inferior): Add
12089 process_stratum_target parameter.
12090 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12091
75c6c844
PA
120922020-01-10 Pedro Alves <palves@redhat.com>
12093
12094 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12095 directly. Instead find the first thread in the thread list and
12096 use switch_to_thread.
12097
78f2c40a
PA
120982020-01-10 Pedro Alves <palves@redhat.com>
12099
12100 * remote.c (remote_target::remote_add_inferior): Don't bind a
12101 process to the current inferior if the current inferior is already
12102 bound to a process.
12103
e7af6c70
TBA
121042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12105 Pedro Alves <palves@redhat.com>
12106
12107 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12108 If no process is specified, return null_ptid instead of
12109 inferior_ptid.
12110 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12111 TARGET_WAITKIND_SIGNALLED with no pid.
12112
31ba933e
PA
121132020-01-10 Pedro Alves <palves@redhat.com>
12114
12115 * remote.c (first_remote_resumed_thread): New.
12116 (remote_target::wait_as): Use it as default event_ptid instead of
12117 inferior_ptid.
12118
735fc2ca
PA
121192020-01-10 Pedro Alves <palves@redhat.com>
12120
12121 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12122
c17e02e1
PA
121232020-01-10 Pedro Alves <palves@redhat.com>
12124
12125 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12126 not -1.
12127
ab1ddbcf
PA
121282020-01-10 Pedro Alves <palves@redhat.com>
12129
12130 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12131 ptid to get_last_target_status.
12132 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12133 ptid to get_last_target_status.
12134 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12135 get_last_target_status.
12136 (info_program_command): Don't pass a target_waitstatus to
12137 get_last_target_status.
12138 * infrun.c (init_wait_for_inferior): Use
12139 nullify_last_target_wait_ptid.
12140 (get_last_target_status): Handle nullptr arguments.
12141 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12142 (print_stop_event): Don't pass a ptid to get_last_target_status.
12143 (normal_stop): Don't pass a ptid to get_last_target_status.
12144 * infrun.h (get_last_target_status, set_last_target_status): Move
12145 comments here and update.
12146 (nullify_last_target_wait_ptid): Declare.
12147 * linux-fork.c (fork_load_infrun_state): Remove local extern
12148 declaration of nullify_last_target_wait_ptid.
12149 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12150 to get_last_target_status.
12151
f3f8ece4
PA
121522020-01-10 Pedro Alves <palves@redhat.com>
12153
12154 * gdbthread.h (scoped_restore_current_thread)
12155 <dont_restore, restore, m_dont_restore>: Declare.
12156 * thread.c (thread_alive): Add assertion. Return bool.
12157 (switch_to_thread_if_alive): New.
12158 (prune_threads): Switch inferior/thread.
12159 (print_thread_info_1): Switch thread before calling target methods.
12160 (scoped_restore_current_thread::restore): New, factored out from
12161 ...
12162 (scoped_restore_current_thread::~scoped_restore_current_thread):
12163 ... this.
12164 (scoped_restore_current_thread::scoped_restore_current_thread):
12165 Add assertion.
12166 (thread_apply_all_command, thread_select): Use
12167 switch_to_thread_if_alive.
12168 * infrun.c (proceed, restart_threads, handle_signal_stop)
12169 (switch_back_to_stepped_thread): Switch current thread before
12170 calling target methods.
12171
db2d40f7
PA
121722020-01-10 Pedro Alves <palves@redhat.com>
12173
12174 * inferior.c (switch_to_inferior_no_thread): New function,
12175 factored out from ...
12176 (inferior_command): ... here.
12177 * inferior.h (switch_to_inferior_no_thread): Declare.
12178 * mi/mi-main.c (run_one_inferior): Use
12179 switch_to_inferior_no_thread.
12180
bd420a2d
PA
121812020-01-10 Pedro Alves <palves@redhat.com>
12182
12183 * infcmd.c (kill_command): Remove dead code.
12184
ddf5db90
PA
121852020-01-10 Pedro Alves <palves@redhat.com>
12186
12187 * remote.c (remote_target::mourn_inferior): No longer check
12188 whether the target is running.
12189
5018ce90
PA
121902020-01-10 Pedro Alves <palves@redhat.com>
12191
12192 * corelow.c (core_target::has_execution): Change parameter type to
12193 inferior pointer.
12194 * inferior.c (number_of_live_inferiors): Use
12195 inferior::has_execution instead of target_has_execution_1.
12196 * inferior.h (inferior::has_execution): New.
12197 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12198 inferior::has_execution instead of target_has_execution_1.
12199 * process-stratum-target.c
12200 (process_stratum_target::has_execution): Change parameter type to
12201 inferior pointer. Check the inferior's PID instead of
12202 inferior_ptid.
12203 * process-stratum-target.h
12204 (process_stratum_target::has_execution): Change parameter type to
12205 inferior pointer.
12206 * record-full.c (record_full_core_target::has_execution): Change
12207 parameter type to inferior pointer.
12208 * target.c (target_has_execution_1): Change parameter type to
12209 inferior pointer.
12210 (target_has_execution_current): Adjust.
12211 * target.h (target_ops::has_execution): Change parameter type to
12212 inferior pointer.
12213 (target_has_execution_1): Change parameter type to inferior
12214 pointer. Change return type to bool.
12215 * tracefile.h (tracefile_target::has_execution): Change parameter
12216 type to inferior pointer.
12217
74375d18
PA
122182020-01-10 Pedro Alves <palves@redhat.com>
12219
12220 * exceptions.c (print_flush): Remove current_top_target() check.
12221
acdf84a6
PA
122222020-01-10 Pedro Alves <palves@redhat.com>
12223
12224 * remote.c (show_remote_exec_file): Show the current inferior's
12225 exec-file instead of the command variable's value.
12226
ec506636
PA
122272020-01-10 Pedro Alves <palves@redhat.com>
12228
12229 * record-full.c (record_full_resume_ptid): New global.
12230 (record_full_target::resume): Set it.
12231 (record_full_wait_1): Use record_full_resume_ptid instead of
12232 inferior_ptid.
12233
873657b9
PA
122342020-01-10 Pedro Alves <palves@redhat.com>
12235
12236 * gdbthread.h (scoped_restore_current_thread)
12237 <dont_restore, restore, m_dont_restore>: Declare.
12238 * thread.c (thread_alive): Add assertion. Return bool.
12239 (switch_to_thread_if_alive): New.
12240 (prune_threads): Switch inferior/thread.
12241 (print_thread_info_1): Switch thread before calling target methods.
12242 (scoped_restore_current_thread::restore): New, factored out from
12243 ...
12244 (scoped_restore_current_thread::~scoped_restore_current_thread):
12245 ... this.
12246 (scoped_restore_current_thread::scoped_restore_current_thread):
12247 Add assertion.
12248 (thread_apply_all_command, thread_select): Use
12249 switch_to_thread_if_alive.
12250
7f0ae84c
GB
122512020-01-10 George Barrett <bob@bob131.so>
12252
12253 * stap-probe.c (stap_modify_semaphore): Don't check for null
12254 semaphores.
12255 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12256 for null semaphores.
12257
f5a7c406
AB
122582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12259
12260 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12261 all source windows, and maintain horizontal scroll status while
12262 doing so.
12263
9ae6bf64
TT
122642020-01-09 Tom Tromey <tom@tromey.com>
12265
12266 PR tui/18932:
12267 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12268 update_source_window, not print_source_lines.
12269
b2efe70c
AB
122702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12271
12272 * tui/tui.c (tui_enable): Register tui hooks after calling
12273 tui_display_main.
12274
5f23a082
CB
122752020-01-09 Christian Biesinger <cbiesinger@google.com>
12276
12277 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12278
3061113b
SM
122792020-01-08 Simon Marchi <simon.marchi@efficios.com>
12280
12281 * thread.c (print_thread_info_1): Fix indentation.
12282
57d75002
CB
122832020-01-09 Christian Biesinger <cbiesinger@google.com>
12284
12285 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12286 unique_xmalloc_ptr outside the if to always free the demangled name.
12287
6a053cb1
TT
122882020-01-08 Tom Tromey <tromey@adacore.com>
12289
12290 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12291 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12292 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12293 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12294 Remove.
12295 (section_offsets): New typedef.
12296 * symtab.c (fixup_section, get_msymbol_address): Update.
12297 * symmisc.c (dump_msymbols): Update.
12298 * symfile.h (relative_addr_info_to_section_offsets)
12299 (symfile_map_offsets_to_segments): Update.
12300 * symfile.c (build_section_addr_info_from_objfile)
12301 (init_objfile_sect_indices): Update.
12302 (struct place_section_arg): Change type of "offsets".
12303 (place_section): Update.
12304 (relative_addr_info_to_section_offsets): Change type of
12305 "section_offsets". Remove "num_sections" parameter.
12306 (default_symfile_offsets, syms_from_objfile_1)
12307 (set_objfile_default_section_offset): Update.
12308 (reread_symbols): No need to preserve section offsets by hand.
12309 (symfile_map_offsets_to_segments): Change type of "offsets".
12310 * stap-probe.c (relocate_address): Update.
12311 * stabsread.h (process_one_symbol): Update.
12312 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12313 (solib_target_relocate_section_addresses): Update.
12314 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12315 Update.
12316 * solib-frv.c (frv_relocate_main_executable): Update.
12317 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12318 * solib-aix.c (solib_aix_get_section_offsets): Change return
12319 type.
12320 (solib_aix_solib_create_inferior_hook): Update.
12321 * remote.c (remote_target::get_offsets): Update.
12322 * psymtab.c (find_pc_sect_psymtab): Update.
12323 * psympriv.h (struct partial_symbol) <address, text_low,
12324 text_high>: Update.
12325 * objfiles.h (obj_section_offset): Update.
12326 (struct objfile) <section_offsets>: Change type.
12327 <num_sections>: Remove.
12328 (objfile_relocate): Update.
12329 * objfiles.c (entry_point_address_query): Update
12330 (relocate_one_symbol): Change type of "section_offsets".
12331 (objfile_relocate1, objfile_relocate1): Change type of
12332 "new_offsets".
12333 (objfile_rebase1): Update.
12334 * mipsread.c (mipscoff_symfile_read): Update.
12335 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12336 parameter.
12337 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12338 (parse_external, psymtab_to_symtab_1): Update.
12339 * machoread.c (macho_symfile_offsets): Update.
12340 * ia64-tdep.c (ia64_find_unwind_table): Update.
12341 * hppa-tdep.c (read_unwind_info): Update.
12342 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12343 * dwarf2read.c (create_addrmap_from_index)
12344 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12345 (process_psymtab_comp_unit_reader, add_partial_symbol)
12346 (add_partial_subprogram, process_full_comp_unit)
12347 (read_file_scope, read_func_scope, read_lexical_block_scope)
12348 (read_call_site_scope, dwarf2_rnglists_process)
12349 (dwarf2_ranges_process, dwarf2_ranges_read)
12350 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12351 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12352 Update.
12353 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12354 Update.
12355 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12356 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12357 (process_one_symbol): Change type of "section_offsets".
12358 * ctfread.c (get_objfile_text_range): Update.
12359 * coffread.c (coff_symtab_read, enter_linenos)
12360 (process_coff_symbol): Update.
12361 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12362 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12363
456e800a
TT
123642020-01-08 Tom Tromey <tromey@adacore.com>
12365
12366 * dwarf2read.c (parse_macro_definition): Use std::string.
12367 (parse_macro_definition): Likewise.
12368
6dfa2fc2
TT
123692020-01-08 Tom Tromey <tromey@adacore.com>
12370
12371 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12372 (ATTR_ALLOC_CHUNK): Remove.
12373
421d1616
TT
123742020-01-08 Tom Tromey <tromey@adacore.com>
12375
12376 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12377
43816ebc
TT
123782020-01-08 Tom Tromey <tromey@adacore.com>
12379
12380 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12381 (dwarf2_compute_name, open_dwo_file): Likewise.
12382 (process_enumeration_scope): Use std::vector.
12383 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12384 (partial_die_info::fixup, dwarf2_start_subfile)
12385 (guess_full_die_structure_name, dwarf2_name): Likewise.
12386 (determine_prefix): Update.
12387 (guess_full_die_structure_name): Make return type const.
12388 (partial_die_full_name): Return unique_xmalloc_ptr.
12389 (DW_FIELD_ALLOC_CHUNK): Remove.
12390
4212d509
TT
123912020-01-07 Tom Tromey <tromey@adacore.com>
12392
12393 PR build/24937:
12394 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12395
06a6207a
JT
123962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12397
12398 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12399
153d79c4
AB
124002020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 * stack.c (print_frame_info): Move disassemble_next_line code
12403 inside source_print block.
12404
66182876
EZ
124052020-01-06 Eli Zaretskii <eliz@gnu.org>
12406
12407 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12408 gdb/signals.h, as we are now using native signal symbols.
12409
cbfa8581
SV
124102020-01-06 Shahab Vahedi <shahab@synopsys.com>
12411
12412 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12413 overflow by an early check of content vs threshold.
aac66a4c 12414 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12415 Likewise.
12416
3f602821
EZ
124172020-01-06 Eli Zaretskii <eliz@gnu.org>
12418
12419 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12420
a08c904d
JT
124212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12422
12423 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12424 export table if no section contains it's RVA.
12425
89a65580
EZ
124262020-01-06 Eli Zaretskii <eliz@gnu.org>
12427
12428 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12429
8b7fcda2
HD
124302020-01-06 Hannes Domani <ssbssa@yahoo.de>
12431
12432 * source.c (print_source_lines_base): Set last_line_listed.
12433
a61b4f69
SV
124342020-01-06 Shahab Vahedi <shahab@synopsys.com>
12435
12436 * tui/tui-disasm.c: Remove trailing spaces.
12437
559e7e50
EZ
124382020-01-06 Eli Zaretskii <eliz@gnu.org>
12439 Pedro Alves <palves@redhat.com>
12440
12441 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12442 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12443 (windows_gdb_signal_to_target): New function, uses the above
12444 enumeration to convert GDB internal signal codes to equivalent
12445 Windows codes.
12446 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12447 * windows-nat.c: Include "gdb_wait.h".
12448 (get_windows_debug_event): Extract the fatal exception from the
12449 exit status and convert to the equivalent Posix signal number.
12450 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12451 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12452 * gdbsupport/gdb_wait.c: New file, implements
12453 windows_status_to_termsig.
12454 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12455 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12456
f2302a34
AB
124572020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12458
12459 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12460 show_layout.
12461
6a5206eb
LM
124622020-01-05 Luis Machado <luis.machado@linaro.org>
12463
12464 * aarch64-linux-nat.c
12465 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12466 and bfd_mach_aarch64.
12467
6ec1d75e
PW
124682020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12469
12470 * ui-file.c (stdio_file::can_emit_style_escape)
12471 (tee_file::can_emit_style_escape): Ensure style is used also on
12472 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12473 to gdb_stdout.
12474 * main.c (set_gdb_data_directory): Use file style to output the
12475 warning that the given pathname is not a directory.
12476 * top.c (show_history_filename, gdb_safe_append_history)
12477 (show_gdb_datadir): Use file style.
12478
44f81a76
HD
124792020-01-03 Hannes Domani <ssbssa@yahoo.de>
12480
12481 * solib-target.c (struct lm_info_target):
12482 Change offsets to be a unique_xmalloc_ptr.
12483 (solib_target_relocate_section_addresses): Update.
12484
25057eb0
HD
124852020-01-03 Hannes Domani <ssbssa@yahoo.de>
12486
12487 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12488
6e2118f5
BE
124892020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12490
12491 * MAINTAINERS (Write After Approval): Add myself.
12492
8133c7dc
LM
124932020-01-02 Luis Machado <luis.machado@linaro.org>
12494
12495 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12496 Cell BE architecture.
12497 * target.h (struct target_ops) <thread_architecture>: Likewise.
12498
48189bec
HD
124992020-01-01 Hannes Domani <ssbssa@yahoo.de>
12500
12501 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12502
ead1063b
HD
125032020-01-01 Hannes Domani <ssbssa@yahoo.de>
12504
12505 * MAINTAINERS (Write After Approval): Add myself.
12506
e5d78223
JB
125072020-01-01 Joel Brobecker <brobecker@adacore.com>
12508
12509 * gdbarch.sh: Update copyright year range of generated files.
12510
b811d2c2
JB
125112020-01-01 Joel Brobecker <brobecker@adacore.com>
12512
12513 Update copyright year range in all GDB files.
12514
5f4def5c
JB
125152020-01-01 Joel Brobecker <brobecker@adacore.com>
12516
12517 * copyright.py: Convert to Python 3.
12518
51fd4002
JB
125192020-01-01 Joel Brobecker <brobecker@adacore.com>
12520
12521 * copyright.py: Adapt after move of gnulib directory from gdb
12522 directory to toplevel directory.
12523
5fb651f2
JB
125242020-01-01 Joel Brobecker <brobecker@adacore.com>
12525
12526 * copyright.py (main): Exit if run from the wrong directory.
12527
5dd8bf88
JB
125282020-01-01 Joel Brobecker <brobecker@adacore.com>
12529
12530 * top.c (print_gdb_version): Change copyright year to 2020.
12531
9f71dacb 125322020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12533
9f71dacb 12534 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12535
9f71dacb 12536For older changes see ChangeLog-2019.
c906108c
SS
12537\f
12538Local Variables:
12539mode: change-log
12540left-margin: 8
12541fill-column: 74
12542version-control: never
57da7796 12543coding: utf-8
c906108c 12544End: