gdb: add type::target_is_stub / type::set_target_is_stub
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8f53807e
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4 New methods.
5 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
6 sites to use type::set_target_is_stub.
7
e46d3488
SM
82020-09-14 Simon Marchi <simon.marchi@efficios.com>
9
10 * gdbtypes.h (TYPE_STUB): Remove, replace all
11 uses with type::is_stub.
12
b4b73759
SM
132020-09-14 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
16 (TYPE_STUB): Use type::is_stub, change all write call sites to
17 use type::set_is_stub.
18
20ce4123
SM
192020-09-14 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
22 type::has_no_signedness.
23
15152a54
SM
242020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (struct type) <has_no_signedness,
27 set_has_no_signedness>: New methods.
28 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
29 call sites to use type::set_has_no_signedness.
30
c6d940a9
SM
312020-09-14 Simon Marchi <simon.marchi@efficios.com>
32
33 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
34 type::is_unsigned.
35
653223d3
SM
362020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
39 methods.
40 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
41 sites to use type::set_is_unsigned.
42
55ea94da
FH
432020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
44 Adam Renquinha <arenquinha@cimeq.qc.ca>
45
46 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
47 pointer and stack frame offset when unwinding.
48
6791b117
PA
492020-09-13 Pedro Alves <pedro@palves.net>
50
51 * NEWS: Document "-break-insert --qualified".
52 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
53
77f2120b
PA
542020-09-13 Pedro Alves <pedro@palves.net>
55
56 * linespec.c (classify_mtype, compare_msyms): Delete.
57 (search_minsyms_for_name): Remove classification logic. Instead
58 filter out trampoline symbols if we also found an external
59 function of the same name.
60
ed6a896c
JB
612020-09-13 Joel Brobecker <brobecker@adacore.com>
62
63 * NEWS: Create a new section for the next release branch.
64 Rename the section of the current branch, now that it has
65 been cut.
66
32aea73e
JB
672020-09-13 Joel Brobecker <brobecker@adacore.com>
68
69 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
70 * version.in: Bump version to 11.0.50.DATE-git.
71
8087c3fa
JB
722020-09-12 Joel Brobecker <brobecker@adacore.com>
73
74 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
75
2a67f09d
FW
762020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
77 Felix Willgerodt <Felix.Willgerodt@intel.com>
78
79 * gdbarch.sh: Added bfloat16 type.
80 * gdbarch.c: Regenerated.
81 * gdbarch.h: Regenerated.
82 * gdbtypes.c (floatformats_bfloat16): New struct.
83 (gdbtypes_post_init): Add builtin_bfloat16.
84 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
85 (floatformats_bfloat16): New struct.
86 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
87 (i386_ymm_type): Add field "v16_bfloat16"
88 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
89 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
90 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
91 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
92 * features/i386/64bit-avx512.xml: Add bfloat16 type.
93 * features/i386/64bit-avx512.c: Regenerated.
94 * features/i386/64bit-sse.xml: Add bfloat16 type.
95 * features/i386/64bit-sse.c: Regenerated.
96
1347d111
FW
972020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
98
99 * i386-tdep.c (i386_zmm_type): Fix field names.
100 (i386_ymm_type): Fix field names.
101
7a4e8e7d
TBA
1022020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103
104 * breakpoint.c: Fix typo in the help message of the
105 "set breakpoint condition-evaluation" command.
106
cf4ac4be
KR
1072020-09-10 Kamil Rytarowski <n54@gmx.com>
108
109 * nbsd-nat.c: Include "nat/netbsd-nat.h".
110 * (nbsd_nat_target::pid_to_exec_file)
111 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
112 (nbsd_nat_target::post_startup_inferior)
113 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
114 (nbsd_add_threads): Switch local code to common gdb/nat functions.
115 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
116 * (nbsd_thread_lister): Remove.
117
f404573e
KR
1182020-09-10 Kamil Rytarowski <n54@gmx.com>
119
120 * fork-inferior.c (startup_inferior): Avoid double free.
121
1ccb2c17
KR
1222020-09-10 Kamil Rytarowski <n54@gmx.com>
123
124 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
125 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
126
feedfcc7
KR
1272020-09-10 Kamil Rytarowski <n54@gmx.com>
128
129 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
130 * netbsd-nat.c: Include <sys/ptrace.h>.
131 * (netbsd_nat::enable_proc_events): Add.
132
c489f8c6
KR
1332020-09-10 Kamil Rytarowski <n54@gmx.com>
134
135 * netbsd-nat.h: Include "gdbsupport/function-view.h".
136 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
137 (netbsd_nat::for_each_thread): Add.
138 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
139 "gdbsupport/common-debug.h".
140 * (netbsd_nat::netbsd_thread_lister)
141 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
142 (netbsd_nat::for_each_thread): Add.
143
330662f6
KR
1442020-09-10 Kamil Rytarowski <n54@gmx.com>
145
146 * netbsd-nat.h: Include <unistd.h>.
147 * (netbsd_nat::pid_to_exec_file): Add.
148 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
149 * (netbsd_nat::pid_to_exec_file) Add.
150
70b67307
KR
1512020-09-10 Kamil Rytarowski <n54@gmx.com>
152
153 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
154
99cf6da6
KR
1552020-09-10 Kamil Rytarowski <n54@gmx.com>
156
157 * netbsd-nat.h: New file.
158 * netbsd-nat.c: Likewise.
159
1b788fb6
TT
1602020-09-09 Tom Tromey <tromey@adacore.com>
161
162 * ada-lang.c (remove_extra_symbols): Do not increment when
163 removing an element
164
03b0a45f
TT
1652020-09-08 Tom Tromey <tromey@adacore.com>
166
167 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
168
3cae4447
TT
1692020-09-08 Tom Tromey <tromey@adacore.com>
170
171 PR win32/25302:
172 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
173 (gdb_bfd_init_data): New function.
174 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
175
7f08fd51
TBA
1762020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
177
178 * infrun.c (fetch_inferior_event): Use
179 `switch_to_target_no_thread` to switch the target.
180
3e6ff933
TT
1812020-09-06 Tom Tromey <tom@tromey.com>
182
183 * symfile.h (dwarf2_free_objfile): Don't declare.
184
e56798df
AKS
1852020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
186
187 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
188 to match 16 byte real/complex type generated by Flang compiler.
189
8f5c6526
TV
1902020-09-03 Tom de Vries <tdevries@suse.de>
191
192 PR breakpoint/26546
193 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
194 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
195
c5065df0
SM
1962020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * maint.c (index_digits): New function.
199 (struct maint_print_section_data): Remove.
200 (print_bfd_section_info): Remove print_data parameter, add arg
201 and index_digits.
202 (print_objfile_section_info): Likewise.
203 (print_bfd_section_info_maybe_relocated): Likewise (plus
204 objfile).
205 (maintenance_info_sections): Adjust calls.
206
02c6f3f1
TT
2072020-09-02 Tom Tromey <tromey@adacore.com>
208
209 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
210 for null pointers.
211 (ada_varobj_adjust_for_child_access): Special-case null pointers.
212
ef5e5b0b
SM
2132020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * bcache.h (struct bcache) <insert>: Change type of `added` to
216 pointer to bool.
217 * bcache.c (bcache::insert): Likewise.
218 * gdbtypes.c (check_types_worklist): Adjust.
219 * psymtab.c (add_psymbol_to_bcache): Adjust.
220
973695d6
KB
2212020-08-31 Kevin Buettner <kevinb@redhat.com>
222
223 * corelow.c (unordered_set): Include.
224 (class core_target): Add field 'm_core_unavailable_mappings'.
225 (core_target::build_file_mappings): Print only one warning
226 per inaccessible file. Add unavailable/broken mappings
227 to m_core_unavailable_mappings.
228 (core_target::xfer_partial): Call...
229 (core_target::xfer_memory_via_mappings): New method.
230
264fc0e2
SM
2312020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
234 type to bool.
235
2de01bdb
SM
2362020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * dwarf2/read.c (struct field_info): Fix indentation.
239
f3bd50f1
SM
2402020-08-31 Simon Marchi <simon.marchi@efficios.com>
241
242 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
243 ordering in comment.
244 * frame.c (frame_id_eq): Fix indentation.
245
22b9b4b0
SL
2462020-08-31 Scott Linder <scott@scottlinder.com>
247 Simon Marchi <simon.marchi@efficios.com>
248
249 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
250 inline frame ids in outer frame.
251
84154d16
SM
2522020-08-31 Simon Marchi <simon.marchi@efficios.com>
253
254 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
255 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
256 (outer_frame_id): Use FID_STACK_OUTER instead of
257 FID_STACK_INVALID.
258 (frame_id_p): Don't check for outer_frame_id.
259
8efaf6b3
SM
2602020-08-31 Simon Marchi <simon.marchi@efficios.com>
261
262 * frame-unwind.c (frame_unwind_got_optimized): Don't set
263 regnum/frame in value. Call allocate_value_lazy.
264 * frame.c (frame_unwind_register_value): Use
265 val_print_not_saved.
266
fe1fe7ea
SM
2672020-08-31 Simon Marchi <simon.marchi@efficios.com>
268
269 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
270
f7c7700d
PA
2712020-08-29 Pedro Alves <pedro@palves.net>
272
273 * progspace.c (print_program_space): Use all_inferiors. Switch to
274 the inferior before calling target_pid_to_str.
275
e0814aae
TT
2762020-08-28 Tom Tromey <tom@tromey.com>
277
278 * xcoffread.c (xcoff_end_psymtab): Update comment.
279 * dbxread.c (dbx_end_psymtab): Update comment.
280
626d2320
TV
2812020-08-28 Tom de Vries <tdevries@suse.de>
282
283 PR breakpoint/26544
284 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
285 event_location.
286 (create_breakpoint): Same.
287 (base_breakpoint_decode_location): Same.
288 (bkpt_create_sals_from_location): Same.
289 (bkpt_decode_location): Same.
290 (bkpt_probe_create_sals_from_location): Same.
291 (bkpt_probe_decode_location): Same.
292 (tracepoint_create_sals_from_location): Same.
293 (tracepoint_decode_location): Same.
294 (tracepoint_probe_decode_location): Same.
295 (strace_marker_create_sals_from_location): Same.
296 (strace_marker_decode_location): Same.
297 (create_sals_from_location_default): Same.
298 (decode_location_default): Same.
299 * breakpoint.h (struct breakpoint_ops): Same.
300 (create_breakpoint): Same.
301 * linespec.h (decode_line_full): Same.
302 * linespec.c (decode_line_full): Same. Throw error if
303 result.size () == 0.
304
df631783
PA
3052020-08-27 Pedro Alves <pedro@palves.net>
306
307 PR gdb/26524
308 * breakpoint.c (until_break_fsm) <location_breakpoint,
309 caller_breakpoint>: Delete fields.
310 <breakpoints>: New field.
311 <until_break_fsm>: Adjust to save a breakpoint vector instead of
312 two individual breakpoints.
313 (until_break_fsm::should_stop): Loop over breakpoints in the
314 breakpoint vector.
315 (until_break_fsm::clean_up): Adjust to clear the breakpoints
316 vector.
317 (until_break_command): Handle location expanding into multiple
318 sals.
319
b2b38aa4
PA
3202020-08-27 Pedro Alves <pedro@palves.net>
321
322 PR gdb/26523
323 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
324 bp_until breakpoints user-specified locations. Update intro
325 comment.
326
b886559f
SM
3272020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
330 gdb_bfd_sections): New.
331 * maint.c (print_bfd_section_info): Change param type to
332 maint_print_section_data.
333 (print_objfile_section_info): Likewise.
334 (print_bfd_section_info_maybe_relocated): Likewise.
335 (maintenance_info_sections): Use gdb_bfd_sections.
336
4c6e63bf
SV
3372020-08-25 Shahab Vahedi <shahab@synopsys.com>
338
339 * MAINTAINERS: Add ARC target and maintainer.
340
8d7f0635
AK
3412020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
342
343 * configure.tgt: ARC support for GNU/Linux.
344 * Makefile.in (ALL_TARGET_OBJS): Likewise.
345 * arc-linux-tdep.c: New file.
346 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
347 * arc-tdep.c (arc_write_pc): Use it.
348
fdd8731b
SV
3492020-08-25 Shahab Vahedi <shahab@synopsys.com>
350
351 * arc-tdep.c (arc_check_for_hardware_loop): New.
352 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
353
22459524
SV
3542020-08-25 Shahab Vahedi <shahab@synopsys.com>
355
356 * arc-tdep.h: Include "gdbarch.h".
357
995d3a19
SV
3582020-08-25 Shahab Vahedi <shahab@synopsys.com>
359
360 * arch/arc.h
361 (arc_gdbarch_features): New class to stir the selection of target XML.
362 (arc_create_target_description): Use FEATURES to choose XML target.
363 (arc_lookup_target_description): Use arc_create_target_description
364 to create _new_ target descriptions or return the already created
365 ones if the FEATURES is the same.
366 * arch/arc.c: Implementation of prototypes described above.
367 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
368 (arc_gdbarch_features_init): Initialize the FEATURES struct.
369 * arc-tdep.c (*_feature_name): Make feature names consistent.
370 (arc_register_feature): A new struct to hold information about
371 registers of a particular target/feature.
372 (arc_check_tdesc_feature): Check if XML provides registers in
373 compliance with ARC_REGISTER_FEATURE structs.
374 (arc_update_acc_reg_names): Add aliases for r58 and r59.
375 (determine_*_reg_feature_set): Which feature name to look for.
376 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
377 (mach_type_to_arc_isa): Convert from a set of binutils machine types
378 to expected ISA enums to be used in arc_gdbarch_features structs.
379 * features/Makefile (FEATURE_XMLFILES): Add new files.
380 * gdb/features/arc/v1-aux.c: New file.
381 * gdb/features/arc/v1-aux.xml: Likewise.
382 * gdb/features/arc/v1-core.c: Likewise.
383 * gdb/features/arc/v1-core.xml: Likewise.
384 * gdb/features/arc/v2-aux.c: Likewise.
385 * gdb/features/arc/v2-aux.xml: Likewise.
386 * gdb/features/arc/v2-core.c: Likewise.
387 * gdb/features/arc/v2-core.xml: Likewise.
388 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
389
3945d2d7
GM
3902020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
391 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 PR m2/26372
fc5d6901 394 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
395 an assert. Remove single element array indexing pattern as the
396 MULTI_SUBSCRIPT support will handle this case too.
397
2677f2d3
SM
3982020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * value.h (valprint_check_validity): Move declaration from
401 here...
402 * valprint.h (valprint_check_validity): ... to here.
403
c426fddb
SM
4042020-08-24 Simon Marchi <simon.marchi@efficios.com>
405
406 * debug.h: New file.
407 * debug.c (debug_prefixed_vprintf): New function.
408 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
409 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
410
1eb8556f
SM
4112020-08-24 Simon Marchi <simon.marchi@efficios.com>
412
413 * infrun.h (infrun_debug_printf_1): New function declaration.
414 (infrun_debug_printf): New macro.
415 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
416 throughout.
417 (infrun_debug_printf): New function.
418 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
419 (handle_jit_event): Likewise.
420
b8fff44e
MW
4212020-08-21 Mark Wielaard <mark@klomp.org>
422
423 * ada-lex.l: Extend register warnings diagnostics comment for g++.
424
d19c3068
SM
4252020-08-22 Simon Marchi <simon.marchi@efficios.com>
426
427 * frame.c (enum class frame_id_status): New.
428 (struct frame_info) <this_id::p>: Change type to frame_id_status.
429 (fprintf_frame): Update.
430 (compute_frame_id): Set frame id status to "computing" on entry.
431 Set it back to "not_computed" on failure and to "computed" on
432 success.
433 (get_frame_id): Assert the frame id is not being computed.
434 (create_sentinel_frame): Use frame_id_status::COMPUTED.
435 (create_new_frame): Likewise.
436 (frame_cleanup_after_sniffer): Update assert.
437
b70e516e
SM
4382020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
439
440 * regcache.c (pid_ptid_regcache_map): New type.
441 (target_ptid_regcache_map): Remove.
442 (target_pid_ptid_regcache_map): New type.
443 (regcaches): Change type to target_pid_ptid_regcache_map.
444 (get_thread_arch_aspace_regcache): Update.
445 (regcache_thread_ptid_changed): Update, handle pid-like ptid
446 case.
447 (regcaches_size): Update.
448 (regcache_count): Update.
449 (registers_changed_ptid_target_pid_test): New.
450 (_initialize_regcache): Register new test.
451
cdd9148a
SM
4522020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * regcache.c (regcache_count): New.
455 (struct regcache_test_data): New.
456 (regcache_test_data_up): New.
457 (populate_regcaches_for_test): New.
458 (regcaches_test): Remove.
459 (get_thread_arch_aspace_regcache_test): New.
460 (registers_changed_ptid_all_test): New.
461 (registers_changed_ptid_target_test): New.
462 (registers_changed_ptid_target_ptid_test): New.
463 (regcache_thread_ptid_changed): Remove regcache_count lambda.
464 (_initialize_regcache): Register new tests.
465
dd125343
SM
4662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
469 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
470 gdbarch and aspace parameter. Use current inferior's aspace.
471 Validate regcache's arch value.
472 (regcaches_test): Update.
473
3ee93972
SM
4742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * regcache.c (regcaches_test): Call registers_changed.
477
33bf4c5c
TBA
4782020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
479
480 * infrun.c (process_event_stop_test): Fix typo "breapoint".
481
c2fd7fae
AKS
4822020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
483
484 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
485 to find the end of prologue for flang compiled binaries.
486 * arm-tdep.c (arm_skip_prologue): Likewise.
487 * i386-tdep.c (i386_skip_prologue): Likewise.
488 * producer.c (producer_is_llvm): New function.
489 (producer_parsing_tests): Added new tests for clang/flang.
490 * producer.h (producer_is_llvm): New declaration.
491
9327494e
SM
4922020-08-18 Simon Marchi <simon.marchi@efficios.com>
493
494 * linux-nat.c (linux_nat_debug_printf): New function.
495 (linux_nat_debug_printf_1): New macro. Use throughout the file.
496
d138725a
AM
4972020-08-18 Aaron Merey <amerey@redhat.com>
498
499 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
500 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
501 (CLIBS): Add DEBUGINFOD_LIBS.
502
f9b11e6b
ST
5032020-08-17 Sergei Trofimovich <siarheit@google.com>
504
505 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
506 'gdbarch_num_regs'.
507
3ae7ab99
TT
5082020-08-17 Tom Tromey <tromey@adacore.com>
509
510 * ada-varobj.c (ada_varobj_decode_var): Handle case where
511 ada_get_decoded_value returns NULL.
512
b017825f
TT
5132020-08-17 Tom Tromey <tromey@adacore.com>
514
515 * python/py-inferior.c (infpy_search_memory): Use
516 gdb_py_object_from_ulongest.
517 * python/py-infevents.c (create_inferior_call_event_object)
518 (create_memory_changed_event_object): Use
519 gdb_py_object_from_ulongest.
520 * python/py-linetable.c (ltpy_entry_get_pc): Use
521 gdb_py_object_from_ulongest.
522
7635cf79
SM
5232020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * loc.c (class symbol_needs_eval_context): Fix indentation.
526
f54be24b
SM
5272020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
530 bool.
531
53d5a2a5
TV
5322020-08-17 Tom de Vries <tdevries@suse.de>
533
534 PR gdb/26393
535 * gdbtypes.c (dump_dynamic_prop): New function.
536 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
537
547ce8f0
TV
5382020-08-15 Tom de Vries <tdevries@suse.de>
539
540 PR backtrace/26390
541 * stack.c (print_frame_args): Temporarily set the selected
542 frame to FRAME while printing the frame's arguments.
543
6ea815e7
PFC
5442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
545
546 PR breakpoints/26385
547 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
548 Always clear watchpoint with PTRACE_SET_DEBUGREG.
549
6e562fa3
PFC
5502020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
551
552 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
553 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
554 and >= to check return value instead of == -1 and != -1.
555
d369b608
SM
5562020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * utils.h (class gdb_argv) <as_array_view>: New method.
559 * utils.c (gdb_argv_as_array_view_test): New.
560 (_initialize_utils): Register selftest.
561 * maint.c (maintenance_selftest): Use the new method.
562
b31488a3
KR
5632020-08-13 Kamil Rytarowski <n54@gmx.com>
564
565 * target.h (supports_dumpcore, dumpcore): New
566 function declarations.
567 * target.c (supports_dumpcore, dumpcore): New
568 functions.
569 * target-delegates.c: Rebuild.
570 * gcore.c (gcore_command): Use target_supports_dumpcore ()
571 and target_dumpcore ().
572
002a3166
AM
5732020-08-13 Aaron Merey <amerey@redhat.com>
574
575 * debuginfod-support.c: Replace global variables with user_data.
576
ece5bc8a
SM
5772020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * maint.c (maintenance_selftest): Split args and pass array_view
580 to run_tests.
581
6d8a0a5e
LM
5822020-08-12 Luis Machado <luis.machado@linaro.org>
583
584 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
585 type's length.
586 Use %s and pulongest to print the length.
587
7cf663a9
PA
5882020-08-12 Pedro Alves <palves@redhat.com>
589
590 * NEWS: Move "Multi-target debugging support" item to the
591 "Changes since GDB 9" section.
592
27c7b875
PA
5932020-08-12 Pedro Alves <palves@redhat.com>
594
595 PR gdb/26336
596 * progspace.c (program_space::remove_objfile): Invalidate the
597 frame cache.
598
1796a2a1
TV
5992020-08-11 Tom de Vries <tdevries@suse.de>
600
601 * MAINTAINERS: Mark ms1 as deleted.
602
f8e3fe0d
LM
6032020-08-10 Luis Machado <luis.machado@linaro.org>
604
605 PR gdb/26310
606
607 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
608 act accordingly.
609 (aarch64_analyze_prologue_test): Add more unit tests to exercise
610 movz/str/stur/stp skipping behavior.
611
cc308722
LM
6122020-08-10 Luis Machado <luis.machado@linaro.org>
613
614 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
615 struct user_sve_header instead of struct sve_context.
616
041d9819
SM
6172020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * read.h (dwarf2_fetch_die_loc_sect_off,
620 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
621 `void *` parameter with function_view.
622 * read.c (dwarf2_fetch_die_loc_sect_off,
623 dwarf2_fetch_die_loc_cu_off): Likewise.
624 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
625 (per_cu_dwarf_call): Adjust.
626 (get_frame_address_in_block_wrapper): Remove.
627 (indirect_synthetic_pointer): Adjust.
628 (get_ax_pc): Remove.
629 (dwarf2_compile_expr_to_ax): Adjust.
630
38f8aa06
TV
6312020-08-08 Tom de Vries <tdevries@suse.de>
632
633 PR build/26344
634 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
635 constructor.
636 * regcache.c (get_thread_arch_aspace_regcache): Same.
637
a52b3ae2
TT
6382020-08-07 Tom Tromey <tromey@adacore.com>
639
640 * ravenscar-thread.c
641 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
642 New method.
643 (ravenscar_thread_target::wait): Check
644 runtime_initialized.
645 (ravenscar_thread_target::prepare_to_store)
646 (ravenscar_thread_target::stopped_by_sw_breakpoint)
647 (ravenscar_thread_target::stopped_by_hw_breakpoint)
648 (ravenscar_thread_target::stopped_by_watchpoint)
649 (ravenscar_thread_target::stopped_data_address)
650 (ravenscar_thread_target::core_of_thread): Use
651 scoped_restore_current_thread and
652 set_base_thread_from_ravenscar_task.
653
0e29517d
TT
6542020-08-07 Tom Tromey <tromey@adacore.com>
655
656 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
657
592f9bd7
TT
6582020-08-07 Tom Tromey <tromey@adacore.com>
659
660 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
661 update_inferior_ptid before update_thread_list.
662 (temporarily_change_regcache_ptid): New class.
663 (ravenscar_thread_target::fetch_registers)
664 (ravenscar_thread_target::store_registers)
665 (ravenscar_thread_target::prepare_to_store): Use base thread when
666 forwarding operation.
667
39e2018a
TT
6682020-08-07 Tom Tromey <tromey@adacore.com>
669
670 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
671 "is_pid" case.
672
2080266b
TT
6732020-08-07 Tom Tromey <tromey@adacore.com>
674
675 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
676 New methods.
677 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
678 first.
679 (ravenscar_thread_target::add_thread): Rename from
680 ravenscar_add_thread.
681 (ravenscar_thread_target::update_thread_list): Use a lambda.
682 (ravenscar_thread_target::xfer_partial): New method.
683
78c02f21
TT
6842020-08-07 Tom Tromey <tromey@adacore.com>
685
686 * ada-lang.h (ada_task_list_iterator_ftype): Now a
687 gdb::function_view.
688 (iterate_over_live_ada_tasks): Change type of argument.
689 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
690 of argument.
691
d5d833af
TT
6922020-08-07 Tom Tromey <tromey@adacore.com>
693
694 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
695 Remove.
696 (ravenscar_thread_target::extra_thread_info): Remove.
697 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
698 defer to target beneath for non-Ravenscar threads.
699
a8ac85bb
TT
7002020-08-07 Tom Tromey <tromey@adacore.com>
701
702 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
703 get_base_thread_from_ravenscar_task>: Now methods.
704 <m_cpu_map>: New member.
705 (ravenscar_thread_target::get_thread_base_cpu): Rename from
706 ravenscar_get_thread_base_cpu. Check m_cpu_map.
707 (ravenscar_thread_target::task_is_currently_active): Update.
708 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
709 Now a method.
710 (ravenscar_thread_target::add_active_thread): Put initial thread
711 into the m_cpu_map.
712
550ab58d
TT
7132020-08-07 Tom Tromey <tromey@adacore.com>
714
715 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
716 event_ptid.
717
e9546579
TT
7182020-08-07 Tom Tromey <tromey@adacore.com>
719
720 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
721 runtime_initialized.
722
3d4470e5
TT
7232020-08-07 Tom Tromey <tromey@adacore.com>
724
725 * ravenscar-thread.c (ravenscar_thread_target): Don't call
726 add_active_thread.
727 (ravenscar_thread_target::add_active_thread): Now public.
728 (ravenscar_inferior_created): Call add_active_thread after pushing
729 the target.
730
888bdb2b
SM
7312020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * regcache.c (ptid_regcache_map): New type.
734 (target_ptid_regcache_map): New type.
735 (regcaches): Change type to target_ptid_regcache_map.
736 (get_thread_arch_aspace_regcache): Update to regcaches' new
737 type.
738 (regcache_thread_ptid_changed): Likewise.
739 (registers_changed_ptid): Likewise.
740 (regcaches_size): Likewise.
741 (regcaches_test): Update.
742 (regcache_thread_ptid_changed): Update.
743 * regcache.h (regcache_up): New type.
744 * gdbsupport/ptid.h (hash_ptid): New struct.
745
b161a60d
SM
7462020-08-07 Simon Marchi <simon.marchi@efficios.com>
747
748 * observable.h (thread_ptid_changed): Add parameter
749 `process_stratum_target *`.
750 * infrun.c (infrun_thread_ptid_changed): Add parameter
751 `process_stratum_target *` and use it.
752 (selftests): New namespace.
753 (infrun_thread_ptid_changed): New function.
754 (_initialize_infrun): Register selftest.
755 * regcache.c (regcache_thread_ptid_changed): Add parameter
756 `process_stratum_target *` and use it.
757 (regcache_thread_ptid_changed): New function.
758 (_initialize_regcache): Register selftest.
759 * thread.c (thread_change_ptid): Pass target to
760 thread_ptid_changed observable.
761
d2854d8d
CT
7622020-08-06 Caroline Tice <cmtice@google.com>
763
fe4c3d43
SM
764 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
765 (struct dwp_sections): Update field comments. Add loclists and
766 rnglists fields.
767 (struct virtual_v2_dwo_sections): Rename struct to
768 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
769 size & offset fields for loclists and rnglists.
770 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
771 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
772 skipping dummy type units.
773 (create_dwp_hash_table): Update the large comment above the function to
774 discuss Version 5 DWP files as well, with references. Update all the
775 version checks in the function to check for version 5 as well. Add new
776 section at the end to create dwp hash table for version 5.
777 (create_dwp_v2_section): Rename function to
778 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
779 Add V5 to error message text.
780 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
781 into calls to create_dwp_v2_or_v5_section.
782 (create_dwo_unit_in_dwp_v5): New function.
783 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
784 check for version2; add else clause to handle version 5.
785 (open_and_init_dwo_file): Add code to check dwarf version & only call
786 create_debug_types_hash_table (with sections.types) if version is not 5;
787 else call create_debug_type_hash_table, with sections.info.
788 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
789 version 5.
790 (dwarf2_locate_v5_dwp_sections): New function.
791 (open_and_init_dwp_file): Add else-if clause for version 5 to call
792 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 793
159ed7d9
SM
7942020-08-06 Simon Marchi <simon.marchi@efficios.com>
795
796 * regcache.h (class regcache): Remove friend
797 registers_changed_ptid.
798 <regcache_thread_ptid_changed>: Remove.
799 <regcaches>: Remove.
800 * regcache.c (regcache::regcaches): Rename to...
801 (regcaches): ... this. Make static.
802 (get_thread_arch_aspace_regcache): Update.
803 (regcache::regcache_thread_ptid_changed): Rename to...
804 (regcache_thread_ptid_changed): ... this. Update.
805 (class regcache_access): Remove.
806 (regcaches_test): Update.
807 (_initialize_regcache): Update.
808 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
809 <forward_list>.
810
174981ae
SM
8112020-08-06 Simon Marchi <simon.marchi@efficios.com>
812
813 * regcache.h (class regcache) <current_regcache>: Rename to...
814 <regcaches>: ... this. Move doc here.
815 * regcache.c (regcache::current_regcache) Rename to...
816 (regcache::regcaches): ... this. Move doc to header.
817 (get_thread_arch_aspace_regcache): Update.
818 (regcache::regcache_thread_ptid_changed): Update.
819 (registers_changed_ptid): Update.
820 (class regcache_access) <current_regcache_size>: Rename to...
821 <regcaches_size>: ... this.
822 (current_regcache_test): Rename to...
823 (regcaches_test): ... this.
824 (_initialize_regcache): Update.
825
ed908db6
VC
8262020-08-06 Victor Collod <vcollod@nvidia.com>
827
828 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
829
b5582ab7
KB
8302020-08-05 Kevin Buettner <kevinb@redhat.com>
831
832 * corelow.c (core_target::build_file_mappings): Don't output
833 null pathname in warning.
834
ea946b86
SM
8352020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
836
837 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
838 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
839 gdb.dwarf2/dw2-single-line-discriminators.exp,
840 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
841
57d02173
TT
8422020-08-05 Tom Tromey <tromey@adacore.com>
843
844 PR rust/26197:
845 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
846 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
847 Fix off-by-one and type size errors in ordinary case.
848
5555c86d
TV
8492020-08-05 Tom de Vries <tdevries@suse.de>
850
851 * gdbtypes.c (type_not_allocated, type_not_associated): Use
852 "prop->const_val () == 0" instead of "prop->const_val () != 0".
853
97916bfe
SM
8542020-08-04 Simon Marchi <simon.marchi@efficios.com>
855
856 * frame.h (frame_id_p): Return bool.
857 (frame_id_artificial_p): Return bool.
858 (frame_id_eq): Return bool.
859 (has_stack_frames): Return bool.
860 (get_selected_frame): Fix typo in comment.
861 (get_frame_pc_if_available): Return bool.
862 (get_frame_address_in_block_if_available): Return bool.
863 (get_frame_func_if_available): Return bool.
864 (read_frame_register_unsigned): Return bool.
865 (get_frame_register_bytes): Return bool.
866 (safe_frame_unwind_memory): Return bool.
867 (deprecated_frame_register_read): Return bool.
868 (frame_unwinder_is): Return bool.
869 * frame.c (struct frame_info) <prev_arch::p>: Change type to
870 bool.
871 <this_id::p>: Likewise.
872 <prev_p>: Likewise.
873 (frame_stash_add): Return bool.
874 (get_frame_id): Use bool.
875 (frame_id_build_special) Use bool.
876 (frame_id_build_unavailable_stack): Use bool.
877 (frame_id_build): Use bool.
878 (frame_id_p): Return bool, use true/false instead of 1/0.
879 (frame_id_artificial_p): Likewise.
880 (frame_id_eq): Likewise.
881 (frame_id_inner): Likewise.
882 (get_frame_func_if_available): Likewise.
883 (read_frame_register_unsigned): Likewise.
884 (deprecated_frame_register_read): Likewise.
885 (get_frame_register_bytes): Likewise.
886 (has_stack_frames): Likewise.
887 (inside_main_func): Likewise.
888 (inside_entry_func): Likewise.
889 (get_frame_pc_if_available): Likewise.
890 (get_frame_address_in_block_if_available): Likewise.
891 (frame_unwinder_is): Likewise.
892 (safe_frame_unwind_memory): Likewise.
893 (frame_unwind_arch): Likewise.
894
fedfee88
SM
8952020-08-04 Simon Marchi <simon.marchi@efficios.com>
896
897 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
898 type to cached_copy_status.
899 (fprintf_frame): Adjust.
900 (get_frame_func_if_available): Adjust.
901 (frame_cleanup_after_sniffer): Adjust.
902
6cfa9b59
MW
9032020-08-04 Mark Wielaard <mark@klomp.org>
904
905 * MAINTAINERS (Write After Approval): Update email address.
906
66d6346b
SM
9072020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
910 dynamic_prop::const_val.
911
8a6d5e35
SM
9122020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
915 dynamic_prop::kind.
916
51d6067d
SM
9172020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
920
b26e2ae7
JM
9212020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
922
923 * configure.tgt: Set gdb_sim for bpf-*-* targets.
924
39791af2
JM
9252020-08-04 Weimin Pan <weimin.pan@oracle.com>
926 Jose E. Marchesi <jose.marchesi@oracle.com>
927
928 * configure.tgt: Add entry for bpf-*-*.
929 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
930 (ALLDEPFILES): Add bpf-tdep.c.
931 * bpf-tdep.c: New file.
932 * MAINTAINERS: Add bpf target and maintainer.
933 * NEWS: Mention the support for the new target.
934
521894aa
TV
9352020-08-04 Tom de Vries <tdevries@suse.de>
936
937 PR symtab/23270
938 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
939 Error.
940
5d6356e9
JB
9412020-08-03 John Baldwin <jhb@FreeBSD.org>
942
943 * syscalls/freebsd.xml: Regenerate.
944
0cf82b81
JB
9452020-08-03 John Baldwin <jhb@FreeBSD.org>
946
947 * syscalls/update-freebsd.sh: Fix usage and year range.
948
8f34b746
TV
9492020-08-03 Tom de Vries <tdevries@suse.de>
950
951 PR symtab/26333
952 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
953 DW_LNE_lo_user/DW_LNE_hi_user range.
954
5e500d33
SM
9552020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
956
957 PR ada/26318
958 * ada-lang.c (ada_modulus): Return 0 if property is not of const
959 kind.
960
78319c15
TBA
9612020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962
963 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
964
4c55e970
TBA
9652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 * breakpoint.c (set_breakpoint_condition): Update the condition
968 expressions after checking that the input condition string parses
969 successfully and does not contain junk at the end.
970
1e620590
TBA
9712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
972
973 * breakpoint.c (set_breakpoint_condition): Update the
974 condition string after parsing the new condition successfully.
975
c8693053
RO
9762020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
977
978 * proc-api.c (_STRUCTURED_PROC): Don't define.
979 * proc-events.c: Likewise.
980 * proc-flags.c: Likewise.
981 * proc-why.c: Likewise.
982 * procfs.c: Likewise.
983
984 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
985 * configure, config.in: Regenerate.
986
5a99adb8
TV
9872020-07-30 Tom de Vries <tdevries@suse.de>
988
989 PR build/26320
990 * ui-style.h (struct ui_file_style::color): Wrap m_value and
991 m_red/m_green/m_blue in a union.
992
8ba83e91
TV
9932020-07-29 Tom de Vries <tdevries@suse.de>
994
995 PR tdep/26280
996 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
997
f75a0693
AB
9982020-07-28 Tom Tromey <tromey@adacore.com>
999
1000 PR symtab/26270:
1001 * symtab.h (find_pc_partial_function_sym): Declare.
1002 * cli/cli-cmds.c (disassemble_command): Use
1003 find_pc_partial_function_sym. Check asm_demangle.
1004 * blockframe.c (cache_pc_function_sym): New global.
1005 (cache_pc_function_name): Remove.
1006 (clear_pc_function_cache): Update.
1007 (find_pc_partial_function_sym): New function, from
1008 find_pc_partial_function.
1009 (find_pc_partial_function): Rewrite using
1010 find_pc_partial_function_sym.
1011
16f3242c
TT
10122020-07-28 Tom Tromey <tromey@adacore.com>
1013
1014 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1015 help. Add usage.
1016
4888741a
TT
10172020-07-28 Tom Tromey <tromey@adacore.com>
1018
1019 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1020 <DW_OP_GNU_variable_value>: Cast to address type.
1021
4d46f402
KR
10222020-07-28 Kamil Rytarowski <n54@gmx.com>
1023
1024 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1025 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1026 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1027 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1028 (nbsd_get_siginfo_type): New.
1029 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1030 (_initialize_nbsd_tdep): New.
1031
d70f978b
L
10322020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1033
1034 PR binutils/26301
1035 * configure: Regenerated.
1036
377170fa
L
10372020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1038
1039 PR binutils/26301
1040 * configure: Regenerated.
1041
43d5901d
AB
10422020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * python/py-frame.c: Remove 'user-regs.h' include.
1045 (frapy_read_register): Rewrite to make use of
1046 gdbpy_parse_register_id.
1047 * python/py-registers.c (gdbpy_parse_register_id): New function,
1048 moved here from python/py-unwind.c. Updated the return type, and
1049 also accepts register descriptor objects.
1050 * python/py-unwind.c: Remove 'user-regs.h' include.
1051 (pyuw_parse_register_id): Moved to python/py-registers.c.
1052 (unwind_infopy_add_saved_register): Update to use
1053 gdbpy_parse_register_id.
1054 (pending_framepy_read_register): Likewise.
1055 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1056
14fa8fb3
AB
10572020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * python/py-registers.c: Add 'user-regs.h' include.
1060 (register_descriptor_iter_find): New function.
1061 (register_descriptor_iterator_object_methods): New static global
1062 methods array.
1063 (register_descriptor_iterator_object_type): Add pointer to methods
1064 array.
1065
ddce1758
JB
10662020-07-27 John Baldwin <jhb@FreeBSD.org>
1067
1068 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1069 for all architectures on FreeBSD 11.3 and later.
1070
a4089f52
TT
10712020-07-27 Tom Tromey <tromey@adacore.com>
1072
1073 * gcore.h (load_corefile): Don't declare.
1074
95420d30
TV
10752020-07-27 Tom de Vries <tdevries@suse.de>
1076
1077 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1078 * config.in: Regenerate.
1079 * configure: Regenerate.
1080
05a6b8c2
EZ
10812020-07-26 Eli Zaretskii <eliz@gnu.org>
1082
1083 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1084 ws2tcpip.h. When checking whether socklen_t type is defined, use
1085 ws2tcpip.h if it is available and sys/socket.h isn't.
1086 * configure: Regenerate.
1087 * config.in: Regenerate.
1088
e79eb02f
AB
10892020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 PR fortran/23051
1092 PR fortran/26139
1093 * valops.c (value_ind): Pass address to
1094 readjust_indirect_value_type.
1095 * value.c (readjust_indirect_value_type): Make parameter
1096 non-const, and add extra address parameter. Resolve original type
1097 before using it.
1098 * value.h (readjust_indirect_value_type): Update function
1099 signature and comment.
1100
876518dd
TV
11012020-07-25 Tom de Vries <tdevries@suse.de>
1102
1103 PR symtab/26243
1104 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1105 entries.
1106
f6720b1c
AM
11072020-07-24 Aaron Merey <amerey@redhat.com>
1108
1109 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1110 * configure: Rebuild.
1111
513487e1
KB
11122020-07-23 Kevin Buettner <kevinb@redhat.com>
1113
1114 PR corefiles/26294
1115 * corelow.c (_initialize_corelow): Add period to help text
1116 for "maintenance print core-file-backed-mappings".
1117
e7bc9db8
PA
11182020-07-23 Pedro Alves <pedro@palves.net>
1119
1120 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1121 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1122 meanwhile.
1123 * frame.c (frame_cache_generation, get_frame_cache_generation):
1124 New.
1125 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1126 (get_prev_frame_if_no_cycle): On exception, don't touch
1127 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1128 * frame.h (get_frame_cache_generation): Declare.
1129
90fcc466
TV
11302020-07-23 Tom de Vries <tdevries@suse.de>
1131
1132 PR tui/26282
1133 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1134 New default constructor.
1135
78344df7
AB
11362020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1139 exclude non-statement entries.
1140
b089853a
KB
11412020-07-22 Kevin Buettner <kevinb@redhat.com>
1142
1143 * NEWS (New commands): Mention new command
1144 "maintenance print core-file-backed-mappings".
1145
09c2f5d4
KB
11462020-07-22 Kevin Buettner <kevinb@redhat.com>
1147
1148 * corelow.c (gdbcmd.h): Include.
1149 (core_target::info_proc_mappings): New method.
1150 (get_current_core_target): New function.
1151 (maintenance_print_core_file_backed_mappings): New function.
1152 (_initialize_corelow): Add core-file-backed-mappings to
1153 "maint print" commands.
1154
9c5ec5c2 11552020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1156
9c5ec5c2
KB
1157 * linux-tdep.c (dump_note_entry_p): New function.
1158 (linux_dump_mapping_p_ftype): New typedef.
1159 (linux_find_memory_regions_full): Add new parameter,
1160 should_dump_mapping_p.
1161 (linux_find_memory_regions): Adjust call to
1162 linux_find_memory_regions_full.
1163 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1164 call to linux_find_memory_regions_full.
1165
db082f59
KB
11662020-07-22 Kevin Buettner <kevinb@redhat.com>
1167
1168 * corelow.c (solist.h, unordered_map): Include.
1169 (class core_target): Add field m_core_file_mappings and
1170 method build_file_mappings.
1171 (core_target::core_target): Call build_file_mappings.
1172 (core_target::~core_target): Free memory associated with
1173 m_core_file_mappings.
1174 (core_target::build_file_mappings): New method.
1175 (core_target::xfer_partial): Use m_core_file_mappings
1176 for memory transfers.
1177 * linux-tdep.c (linux_read_core_file_mappings): New
1178 function.
1179 (linux_core_info_proc_mappings): Rewrite to use
1180 linux_read_core_file_mappings.
1181 (linux_init_abi): Register linux_read_core_file_mappings.
1182
7e183d27
KB
11832020-07-22 Kevin Buettner <kevinb@redhat.com>
1184
1185 * arch-utils.c (default_read_core_file_mappings): New function.
1186 * arch-utils.c (default_read_core_file_mappings): Declare.
1187 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1188 * gdbarch.h, gdbarch.c: Regenerate.
1189
2735d421
KB
11902020-07-22 Kevin Buettner <kevinb@redhat.com>
1191
1192 PR corefiles/25631
1193 * corelow.c (core_target:xfer_partial): Revise
1194 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1195 case after first checking the stratum beneath the core
1196 target.
1197 (has_all_memory): Return true.
1198 * target.c (raw_memory_xfer_partial): Revise comment
1199 regarding use of has_all_memory.
1200
e56cb451
KB
12012020-07-22 Kevin Buettner <kevinb@redhat.com>
1202
1203 * exec.h (section_table_xfer_memory): Revise declaration,
1204 replacing section name parameter with an optional callback
1205 predicate.
1206 * exec.c (section_table_xfer_memory): Likewise.
1207 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1208 of section_table_xfer_memory.
1209
32fa152e
TT
12102020-07-22 Tom Tromey <tromey@adacore.com>
1211
1212 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1213 lookup_symbol_search_name.
1214
a67a1c41
AB
12152020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1218 redundant local variable.
1219 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1220 reference, not pointer, update code accordingly.
1221
a7b4ff4f
SM
12222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1223 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1224
1225 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1226 * jit.c (jit_breakpoint_re_set_internal): Use the
1227 `skip_jit_symbol_lookup` field.
1228
2340e834
SM
12292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1230 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1231
1232 * jit.c (jit_read_descriptor): Define the descriptor address once,
1233 use twice.
1234 (jit_breakpoint_deleted): Move the declaration of the loop variable
1235 `iter` into the loop header.
1236 (jit_breakpoint_re_set_internal): Move the declaration of the local
1237 variable `objf_data` to the first point of definition.
1238 (jit_event_handler): Move the declaration of local variables
1239 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1240 Rename `objf` to `jited`.
1241
c1072906
SM
12422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1245 Remove.
1246 * jit.c (get_jiter_objfile_data): Update.
1247
c8474dc3
TBA
12482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1249 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * jit.c (struct jit_program_space_data): Remove.
1252 (jit_program_space_key): Remove.
1253 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1254 stuff.
1255 (get_jit_program_space_data): Remove.
1256 (jit_breakpoint_deleted): Iterate on all of the program space's
1257 objfiles.
1258 (jit_inferior_init): Likewise.
1259 (jit_breakpoint_re_set_internal): Likewise. Also change return
1260 type to void.
1261 (jit_breakpoint_re_set): Pass current_program_space to
1262 jit_breakpoint_re_set_internal.
1263
77208eb7
SM
12642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * jit.h (struct jiter_objfile_data) <cached_code_address,
1267 jit_breakpoint>: Move to here from ...
1268 * jit.c (jit_program_space_data): ... here.
1269 (jiter_objfile_data::~jiter_objfile_data): Update.
1270 (jit_breakpoint_deleted): Update.
1271 (jit_breakpoint_re_set_internal): Update.
1272
8c1c720f
SM
12732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1276 checks.
1277 (jit_read_descriptor): Remove NULL check.
1278 (jit_event_handler): Add an assertion.
1279
0e74a041
SM
12802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * jit.h (struct jit_objfile_data): Split into...
1283 (struct jiter_objfile_data): ... this ...
1284 (struct jited_objfile_data): ... and this.
1285 * objfiles.h (struct objfile) <jit_data>: Remove.
1286 <jiter_data, jited_data>: New fields.
1287 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1288 (jiter_objfile_data::~jiter_objfile_data): ... this.
1289 (get_jit_objfile_data): Rename to ...
1290 (get_jiter_objfile_data): ... this.
1291 (add_objfile_entry): Update.
1292 (jit_read_descriptor): Use get_jiter_objfile_data.
1293 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1294 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1295 (jit_inferior_exit_hook): Use objfile's jited_data field.
1296
238b5c9f
SM
12972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * jit.h: Forward-declare `struct minimal_symbol`.
1300 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1301 constructor, destructor, and an objfile* field.
1302 * jit.c (jit_objfile_data): Remove.
1303 (struct jit_objfile_data): Migrate from here to jit.h.
1304 (jit_objfile_data::~jit_objfile_data): New destructor
1305 implementation with code moved from free_objfile_data.
1306 (free_objfile_data): Delete.
1307 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1308 (jit_find_objf_with_entry_addr): Ditto.
1309 (jit_inferior_exit_hook): Ditto.
1310 (_initialize_jit): Remove the call to
1311 register_objfile_data_with_cleanup.
1312 * objfiles.h (struct objfile) <jit_data>: New field.
1313
fe053b9e
TBA
13142020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315
1316 * jit.h: Forward-declare `struct objfile`.
1317 (jit_event_handler): Add a second parameter, the JITer objfile.
1318 * jit.c (jit_read_descriptor): Change the signature to take the
1319 JITer objfile as an argument instead of the jit_program_space_data.
1320 (jit_inferior_init): Update the call to jit_read_descriptor.
1321 (jit_event_handler): Use the new JITer objfile argument when calling
1322 jit_read_descriptor.
1323 * breakpoint.c (handle_jit_event): Update the call to
1324 jit_event_handler to pass the JITer objfile.
1325
4cec0c66
JB
13262020-07-21 John Baldwin <jhb@FreeBSD.org>
1327
1328 * gdbarch.c: Regenerate.
1329 * gdbarch.h: Regenerate.
1330 * gdbarch.sh (handle_segmentation_fault): Remove method.
1331 * infrun.c (handle_segmentation_fault): Remove.
1332 (print_signal_received_reason): Remove call to
1333 handle_segmentation_fault.
1334
0e42f66a
JB
13352020-07-21 John Baldwin <jhb@FreeBSD.org>
1336
1337 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1338 Rename to sparc64_linux_report_signal_info and add siggnal
1339 argument.
1340 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1341 instead of sparc64_linux_handle_segmentation_fault.
1342
77bdfeb2
JB
13432020-07-21 John Baldwin <jhb@FreeBSD.org>
1344
1345 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1346 i386_linux_report_signal_info instead of
1347 i386_linux_handle_segmentation_fault.
1348 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1349 to i386_linux_report_signal_info and add siggnal argument.
1350 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1351 of i386_linux_handle_segmentation_fault.
1352 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1353 to i386_linux_report_signal_info and add siggnal argument.
1354
ad97bfc5
JB
13552020-07-21 John Baldwin <jhb@FreeBSD.org>
1356
1357 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1358 hook if present.
1359
272bb05c
JB
13602020-07-21 John Baldwin <jhb@FreeBSD.org>
1361
1362 * gdbarch.c: Regenerate.
1363 * gdbarch.h: Regenerate.
1364 * gdbarch.sh (report_signal_info): New method.
1365 * infrun.c (print_signal_received_reason): Invoke gdbarch
1366 report_signal_info hook if present.
1367
baf8791e
AB
13682020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * python/py-registers.c : Add 'unordered_map' include.
1371 (gdbpy_new_reggroup): Renamed to...
1372 (gdbpy_get_reggroup): ...this. Update to only create register
1373 group descriptors when needed.
1374 (gdbpy_reggroup_iter_next): Update.
1375
f7306dac
AB
13762020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * python/py-registers.c (gdbpy_register_object_data): New static
1379 global.
1380 (gdbpy_register_object_data_init): New function.
1381 (gdbpy_new_register_descriptor): Renamed to...
1382 (gdbpy_get_register_descriptor): ...this, and update to reuse
1383 existing register descriptors where possible.
1384 (gdbpy_register_descriptor_iter_next): Update.
1385 (gdbpy_initialize_registers): Register new gdbarch data.
1386
05c309a8
SM
13872020-07-21 Simon Marchi <simon.marchi@efficios.com>
1388
1389 * linux-nat.c (stopped_pids): Make static.
1390
d1fd641e
SM
13912020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 PR ada/26235
1394 * gdbtypes.c (ada_discrete_type_low_bound,
1395 ada_discrete_type_high_bound): Handle undefined bounds.
1396
1de14d77
KR
13972020-07-21 Kamil Rytarowski <n54@gmx.com>
1398
1399 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1400 declaration.
1401 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1402 function.
1403
ed810cc7
JB
14042020-07-20 John Baldwin <jhb@FreeBSD.org>
1405
1406 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1407 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1408 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1409 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1410 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1411 method.
1412
ae5369e7
LC
14132020-07-20 Ludovic Courtès <ludo@gnu.org>
1414
1415 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1416 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1417 which are deprecated in Guile 3.0.
1418 * configure.ac (try_guile_versions): Add "guile-3.0".
1419 * configure (try_guile_versions): Regenerate.
1420 * NEWS: Update entry.
1421
68cf161c
LC
14222020-07-20 Ludovic Courtès <ludo@gnu.org>
1423 Doug Evans <dje@google.com>
1424
1425 PR gdb/21104
1426 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1427 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1428 USING_GUILE_BEFORE_2_2.
1429 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1430 Change type to 'scm_t_port_type *'.
1431 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1432 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1433 parameter and honor it. Update callers.
1434 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1435 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1436 functions.
1437 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1438 USING_GUILE_BEFORE_2_2.
1439 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1440 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1441 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1442 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1443 and 'SCM_PORT_TYPE'.
1444 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1445 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1446 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1447 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1448 [!USING_GUILE_BEFORE_2_2]: New functions.
1449 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1450 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1451 'gdbscm_memory_port_read'.
1452 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1453 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1454 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1455 function.
1456 (ioscm_init_memory_port): Remove.
1457 (ioscm_init_memory_port_stream): New function
1458 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1459 function.
1460 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1461 Return scm_from_uint (0).
1462 (gdbscm_set_memory_port_read_buffer_size_x)
1463 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1464 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1465 Return scm_from_uint (0).
1466 (gdbscm_set_memory_port_write_buffer_size_x)
1467 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1468 * configure.ac (try_guile_versions): Add "guile-2.2".
1469 * configure: Regenerate.
1470 * NEWS: Add entry.
1471
aee91db3
TT
14722020-07-18 Tom Tromey <tom@tromey.com>
1473
1474 * linux-nat.c (linux_multi_process): Remove.
1475 (linux_nat_target::supports_multi_process): Return true.
1476
0e267416
AB
14772020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1480 (riscv_lookup_target_description): Return pointer out of
1481 unique_ptr.
1482 * target-descriptions.c (allocate_target_description): Add
1483 comment.
1484 (target_desc_deleter::operator()): Likewise.
1485 * target-descriptions.h (struct target_desc_deleter): Moved to
1486 gdbsupport/tdesc.h.
1487 (target_desc_up): Likewise.
1488
f80c8ec4
TT
14892020-07-17 Tom Tromey <tromey@adacore.com>
1490
1491 * linux-nat.c (linux_nat_target::supports_non_stop)
1492 (linux_nat_target::always_non_stop_p): Use "true".
1493 (linux_nat_target::supports_disable_randomization): Use "true" and
1494 "false".
1495
d0ce17d8
CT
14962020-07-16 Caroline Tice <cmtice@google.com>
1497
1498 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1499 (RNGLIST_HEADER_SIZE64): New constant definition.
1500 (struct dwop_section_names): Add rnglists_dwo.
1501 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1502 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1503 (struct dwo_sections): Add rnglists field.
1504 (read_attribut_reprocess): Add tag parameter.
1505 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1506 (cu_debug_rnglists_section): New function (decl & definition).
1507 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1508 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1509 die whose range is being checked; get rnglist section from
1510 cu_debug_rnglists_section, to get from either objfile or dwo file as
1511 appropriate. Add cases for DW_RLE_base_addressx,
1512 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1513 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1514 test inside if-condition and updating complaint message.
1515 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1516 dwarf2_rnglists_process.
1517 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1518 dwarf2_ranges_process.
1519 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1520 need_ranges_base and update comment appropriately. Also pass die tag
1521 to dwarf2_ranges_read.
1522 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1523 need_ranges_base and update comment appropriately. Also pass die tag
1524 to dwarf2_ranges_process.
1525 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1526 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1527 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1528 need_ranges_base and update comment appropriately. Also pass die tag
1529 to read_attribute_reprocess and dwarf2_ranges_read.
1530 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1531 and update function comment appropriately.
1532 (read_loclist_index): Call read_loclists_rnglists_header instead of
1533 read_loclist_header.
1534 (read_rnglist_index): New function.
1535 (read_attribute_reprocess): Add tag parameter. Add code for
1536 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1537 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1538
3dcc261c
AB
15392020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1542 being resolved.
1543
ccb9eba6
AB
15442020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * arch-utils.c (show_architecture): Update formatting of messages.
1547
cf88be68
SM
15482020-07-12 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * gdbtypes.h (struct type) <bounds>: Handle array and string
1551 types.
1552 * ada-lang.c (assign_aggregate): Use type::bounds on
1553 array/string type.
1554 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1555 * c-varobj.c (c_number_of_children): Likewise.
1556 (c_describe_child): Likewise.
1557 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1558 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1559 (f_type_print_base): Likewise.
1560 * f-valprint.c (f77_array_offset_tbl): Likewise.
1561 (f77_get_upperbound): Likewise.
1562 (f77_print_array_1): Likewise.
1563 * guile/scm-type.c (gdbscm_type_range): Likewise.
1564 * m2-typeprint.c (m2_array): Likewise.
1565 (m2_is_long_set_of_type): Likewise.
1566 * m2-valprint.c (get_long_set_bounds): Likewise.
1567 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1568 * python/py-type.c (typy_range): Likewise.
1569 * rust-lang.c (rust_internal_print_type): Likewise.
1570 * type-stack.c (type_stack::follow_types): Likewise.
1571 * valarith.c (value_subscripted_rvalue): Likewise.
1572 * valops.c (value_cast): Likewise.
1573
509971ae
SM
15742020-07-12 Simon Marchi <simon.marchi@efficios.com>
1575
1576 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1577 callers to use the equivalent accessor methods.
1578
107406b7
SM
15792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1582 (struct type) <bit_stride>: New method.
1583 (TYPE_BIT_STRIDE): Remove.
1584 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1585
bb789949
SM
15862020-07-12 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1589 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1590 callers to use the equivalent accessor methods instead.
1591
39498edb
SM
15922020-07-12 Simon Marchi <simon.marchi@efficios.com>
1593
1594 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1595 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1596 callers to use the equivalent accessor methods instead.
1597
3b606f38
SM
15982020-07-12 Simon Marchi <simon.marchi@efficios.com>
1599
1600 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1601 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1602 to use dynamic_prop::kind.
1603
064d9cb9
SM
16042020-07-12 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1607 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1608 to get the bound property's kind and check against
1609 PROP_UNDEFINED.
1610
5537ddd0
SM
16112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1614 all callers to use type::range_bounds followed by
1615 dynamic_prop::{low,high}.
1616
8c2e4e06
SM
16172020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1620 const_val, set_const_val, baton, set_locexpr, set_loclist,
1621 set_addr_offset, variant_parts, set_variant_parts,
1622 original_type, set_original_type>: New methods.
1623 <kind>: Rename to...
1624 <m_kind>: ... this. Update all users to use the new methods
1625 instead.
1626 <data>: Rename to...
1627 <m_data>: ... this. Update all users to use the new methods
1628 instead.
1629
7c6f2712
SM
16302020-07-12 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * gdbtypes.c (get_discrete_bounds): Return failure if
1633 the range type's bounds are not both defined and constant
1634 values.
1635 (get_array_bounds): Update comment. Remove undefined bound check.
1636
599088e3
SM
16372020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1640 the type::bounds method directly.
1641
c4dfcb36
SM
16422020-07-12 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1645 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1646 are used to set the range type's bounds to use set_bounds.
1647
0a278aa7
PW
16482020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1649
1650 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1651
cce20f10
PA
16522020-07-10 Pedro Alves <pedro@palves.net>
1653
1654 * gdbthread.h (inferior_ref): Define.
1655 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1656 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1657 * thread.c
1658 (scoped_restore_current_thread::restore):
1659 Adjust to gdb::ref_ptr.
1660 (scoped_restore_current_thread::~scoped_restore_current_thread):
1661 Remove manual decref handling.
1662 (scoped_restore_current_thread::scoped_restore_current_thread):
1663 Adjust to use
1664 inferior_ref::new_reference/thread_info_ref::new_reference.
1665 Incref the thread before calling get_frame_id instead of after.
1666 Let TARGET_CLOSE_ERROR propagate.
1667
6d7aa592
PA
16682020-07-10 Pedro Alves <pedro@palves.net>
1669
1670 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1671 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1672 NOT_AVAILABLE_ERROR.
1673 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1674 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1675
b3e3a4c1
SM
16762020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1677 Pedro Alves <pedro@palves.net>
1678
1679 PR gdb/26199
1680 * infrun.c (threads_are_resumed_pending_p): Delete.
1681 (do_target_wait): Remove threads_are_executing and
1682 threads_are_resumed_pending_p checks from the inferior_matches
1683 lambda. Update comments.
1684
d6cc5d98
PA
16852020-07-10 Pedro Alves <pedro@palves.net>
1686
1687 PR gdb/26199
1688 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1689 executing threads.
1690
7d3badc6
PA
16912020-07-10 Pedro Alves <pedro@palves.net>
1692
1693 PR gdb/26199
1694 * infrun.c (handle_no_resumed): Handle multiple targets.
1695
42bd97a6
PA
16962020-07-10 Pedro Alves <pedro@palves.net>
1697
1698 PR gdb/26199
1699 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1700 target_is_async_p.
1701
43667cc6
PA
17022020-07-10 Pedro Alves <pedro@palves.net>
1703
1704 PR gdb/26199
1705 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1706 threads, not all threads.
1707
96118d11
PA
17082020-07-10 Pedro Alves <pedro@palves.net>
1709
1710 PR gdb/26199
1711 * remote.c (remote_target::open_1): Pass remote target pointer as
1712 data to create_async_event_handler.
1713 (remote_async_inferior_event_handler): Mark async event handler
1714 before returning if the remote target still has either pending
1715 events or unacknowledged notifications.
1716
54904d81
JB
17172020-07-10 John Baldwin <jhb@FreeBSD.org>
1718
1719 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1720 declaration.
1721 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1722 function.
1723
f37e5866
JB
17242020-07-09 John Baldwin <jhb@FreeBSD.org>
1725
1726 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1727 inferior_ptid.
1728
fc238d4a
JB
17292020-07-09 John Baldwin <jhb@FreeBSD.org>
1730
1731 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1732 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1733 AT_FREEBSD_PS_STRINGS.
1734
6e2469ff
HD
17352020-07-08 Hannes Domani <ssbssa@yahoo.de>
1736
1737 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1738 of debugfile path on Windows.
1739
d1076c41
JB
17402020-07-08 John Baldwin <jhb@FreeBSD.org>
1741
1742 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1743 argument to 'data'.
1744
15f3b077
TT
17452020-07-08 Tom Tromey <tromey@adacore.com>
1746
1747 * ada-lang.c (ada_exception_message_1): Use read_memory.
1748
9fc501fd
AB
17492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 PR python/22748
1752 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1753 special handling for inline frames.
1754 * findvar.c (value_of_register_lazy): Skip inline frames when
1755 creating lazy register values.
1756 * frame.c (frame_id_computed_p): Delete definition.
1757 * frame.h (frame_id_computed_p): Delete declaration.
1758
64cb3757
AB
17592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * NEWS: Mention additions to Python API.
1762 * python/py-arch.c (archpy_register_groups): New function.
1763 (arch_object_methods): Add 'register_groups' method.
1764 * python/py-registers.c (reggroup_iterator_object): New struct.
1765 (reggroup_object): New struct.
1766 (gdbpy_new_reggroup): New function.
1767 (gdbpy_reggroup_to_string): New function.
1768 (gdbpy_reggroup_name): New function.
1769 (gdbpy_reggroup_iter): New function.
1770 (gdbpy_reggroup_iter_next): New function.
1771 (gdbpy_new_reggroup_iterator): New function
1772 (gdbpy_initialize_registers): Register new types.
1773 (reggroup_iterator_object_type): Define new Python type.
1774 (gdbpy_reggroup_getset): New static global.
1775 (reggroup_object_type): Define new Python type.
1776 * python/python-internal.h
1777
0f767f94
AB
17782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1781 * python/py-arch.c (archpy_registers): New function.
1782 (arch_object_methods): Add 'registers' method.
1783 * python/py-registers.c: New file.
1784 * python/python-internal.h
1785 (gdbpy_new_register_descriptor_iterator): Declare.
1786 (gdbpy_initialize_registers): Declare.
1787 * python/python.c (do_start_initialization): Call
1788 gdbpy_initialize_registers.
1789 * NEWS: Mention additions to the Python API.
1790
87dbc774
AB
17912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * NEWS: Mention new Python API method.
1794 * python/py-unwind.c (pending_framepy_architecture): New function.
1795 (pending_frame_object_methods): Add architecture method.
1796
3bc98c0c
AB
17972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * gdbarch.c: Regenerate.
1800 * gdbarch.h: Regenerate.
1801 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1802 (gdbarch_data): Use internal_error for the case where
1803 deprecated_set_gdbarch_data was originally needed.
1804 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1805 and use passed in obstack.
1806 (libunwind_frame_set_descr): Should no longer get back NULL from
1807 gdbarch_data.
1808 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1809 type.
1810 * user-regs.c (user_regs_init): Update parameters, and use passed
1811 in obstack.
1812 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1813 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1814
d8cc8af6
TV
18152020-07-06 Tom de Vries <tdevries@suse.de>
1816
1817 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1818 End-Of-Sequence in lte_is_less_than.
1819 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1820 "gdb: Don't reorder line table entries too much when sorting".
1821
947f7597
TV
18222020-07-06 Tom de Vries <tdevries@suse.de>
1823
1824 PR tui/26205
1825 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1826
1e7c1b22
TV
18272020-07-05 Tom de Vries <tdevries@suse.de>
1828
1829 PR build/26187
1830 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1831 std::uncaught_exceptions instead of deprecated
1832 std::uncaught_exception.
1833
a36158ec
SM
18342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * macroexp.h (macro_stringify): Return
1837 gdb::unique_xmalloc_ptr<char>.
1838 * macroexp.c (macro_stringify): Likewise.
1839 * macrotab.c (fixup_definition): Update.
1840
14d960c8
SM
18412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1844 (lex_one_token): Update.
1845 * macroexp.c (struct macro_buffer) <release>: Return
1846 gdb::unique_xmalloc_ptr<char>.
1847 (macro_stringify): Update.
1848 (macro_expand): Update.
1849 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1850 * macroexp.h (macro_expand_next): Likewise.
1851
211d5b1c
SM
18522020-07-02 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * macroexp.h (macro_lookup_ftype): Remove.
1855 (macro_expand, macro_expand_once, macro_expand_next): Remove
1856 lookup function parameters, add scope parameter.
1857 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1858 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1859 * macroscope.h (standard_macro_lookup): Change parameter type
1860 to macro_scope.
1861 * macroscope.c (standard_macro_lookup): Likewise.
1862 * c-exp.y (lex_one_token): Update.
1863 * macrocmd.c (macro_expand_command): Likewise.
1864 (macro_expand_once_command): Likewise.
1865
b1a35af2
SM
18662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1867
1868 * inf-loop.c (inferior_event_handler): Remove client_data param.
1869 * inf-loop.h (inferior_event_handler): Likewise.
1870 * infcmd.c (step_1): Adjust.
1871 * infrun.c (proceed): Adjust.
1872 (fetch_inferior_event): Remove client_data param.
1873 (infrun_async_inferior_event_handler): Adjust.
1874 * infrun.h (fetch_inferior_event): Remove `void *` param.
1875 * linux-nat.c (handle_target_event): Adjust.
1876 * record-btrace.c (record_btrace_handle_async_inferior_event):
1877 Adjust.
1878 * record-full.c (record_full_async_inferior_event_handler):
1879 Adjust.
1880 * remote.c (remote_async_inferior_event_handler): Adjust.
1881
1cdf9e33
TT
18822020-07-01 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1885 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1886
32c1e210
TT
18872020-07-01 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1890 tui_gen_win_info.
1891 (tui_win_info::make_window): Merge with
1892 tui_gen_win_info::make_window.
1893 (tui_win_info::make_visible): Move from tui_gen_win_info.
1894 * tui/tui-win.c (tui_win_info::max_width): Move from
1895 tui_gen_win_info.
1896 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1897 type.
1898 <window_factory>: Likewise.
1899 * tui/tui-layout.c (tui_win_info::resize): Move from
1900 tui_gen_win_info.
1901 (make_standard_window): Change return type.
1902 (get_locator_window, tui_get_window_by_name): Likewise.
1903 (tui_layout_window::apply): Remove a cast.
1904 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1905 (struct tui_win_info): Merge with tui_gen_win_info.
1906 (struct tui_gen_win_info): Remove.
1907
a30cb6da
TT
19082020-07-01 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui-stack.h (struct tui_locator_window): Derive from
1911 tui_win_info.
1912 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1913 <can_box>: New method.
1914
1eb2161f
TT
19152020-07-01 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1918
7134f2eb
TT
19192020-07-01 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-regs.c (tui_data_window::display_registers_from)
1922 (tui_data_window::display_registers_from)
1923 (tui_data_window::first_data_item_displayed)
1924 (tui_data_window::delete_data_content_windows): Update.
1925 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1926 Remove.
1927 (tui_data_window::check_register_values): Update.
1928 (tui_data_item_window::rerender): Add parameters. Update.
1929 (tui_data_item_window::refresh_window): Remove.
1930 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1931 virtual.
1932 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1933 tui_gen_win_info.
1934 <refresh_window, max_height, min_height>: Remove.
1935 <rerender>: Add parameters.
1936 <x, y, visible>: New members.
1937 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1938 <m_item_width>: New member.
1939
22b7b041
TT
19402020-07-01 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-regs.c (tui_data_window::show_register_group)
1943 (tui_data_window::check_register_values): Update.
1944 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1945 from item_no.
1946
c9753adb
TT
19472020-07-01 Tom Tromey <tom@tromey.com>
1948
1949 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1950 useless "if".
1951
9ab26b4a
TT
19522020-07-01 Tom Tromey <tom@tromey.com>
1953
1954 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1955 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1956
e555083f
TT
19572020-07-01 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1960 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1961 (struct tui_line_or_address): Move from tui-data.h.
1962 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1963 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1964 (tui_cmd_window, tui_source_window_base, tui_source_window)
1965 (tui_disasm_window): Don't declare.
1966 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1967 to tui-winsource.h.
1968 (SINGLE_KEY): Move to tui-stack.c.
1969
7a02bab7
TT
19702020-07-01 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1973 std::string.
1974 * tui/tui-regs.c (class tab_expansion_file): New.
1975 (tab_expansion_file::write): New method.
1976 (tui_register_format): Change return type. Use
1977 tab_expansion_file.
1978 (tui_get_register, tui_data_window::display_registers_from)
1979 (tui_data_item_window::rerender): Update.
1980 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1981 * tui/tui-io.c (tui_expand_tabs): Remove.
1982
ea68593b
TT
19832020-07-01 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1986
a8caed5d
FS
19872020-07-01 Fangrui Song <maskray@google.com>
1988
1989 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1990
9cdf9820
AKS
19912020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1992
1993 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1994 forms for DW_AT_associated and DW_AT_allocated attributes,
1995 which is already checked in function attr_to_dynamic_prop.
1996
a1520ad8
TT
19972020-06-30 Tom Tromey <tromey@adacore.com>
1998
1999 * dwarf2/read.c (quirk_rust_enum): Correctly call
2000 alloc_rust_variant for default-less enum.
2001
5ac58899
TT
20022020-06-30 Tom Tromey <tromey@adacore.com>
2003
2004 PR build/26183:
2005 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2006 gdb::to_string.
2007
19b187a9
SM
20082020-06-29 Simon Marchi <simon.marchi@efficios.com>
2009
2010 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2011 * gdbarch.h: Re-generate.
2012
cd4c4c07
TT
20132020-06-28 Tom Tromey <tom@tromey.com>
2014
2015 * command.h (cmd_types): Remove.
2016 (cmd_type): Don't declare.
2017 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2018 typedef.
2019 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2020 * cli/cli-decode.c (cmd_type): Remove.
2021
05779d57
PA
20222020-06-27 Pedro Alves <palves@redhat.com>
2023
2024 * fork-child.c (prefork_hook): Adjust.
2025 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2026 Delete.
2027 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2028 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2029 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2030 Remove declarations.
2031 (struct inferior) <set_tty, tty>: New methods.
2032 (struct inferior) <terminal>: Rename to ...
2033 (struct inferior) <m_terminal>: ... this and make private.
2034 * main.c (captured_main_1): Adjust.
2035 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2036 (mi_cmd_inferior_tty_show): Adjust.
2037 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2038 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2039
1776e3e5
NA
20402020-06-26 Nick Alcock <nick.alcock@oracle.com>
2041
2042 * configure.ac: Add --enable-libctf: handle --disable-static
2043 properly.
2044 * acinclude.m4: sinclude ../config/enable.m4.
2045 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2046 (LIBCTF): Substitute in.
2047 (CTF_DEPS): New, likewise.
2048 (CLIBS): libctf needs symbols from libbfd: move earlier.
2049 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2050 flags.
2051 * ctfread.c: Surround in ENABLE_LIBCTF.
2052 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2053 * configure: Regenerate.
2054 * config.in: Likewise.
2055
58373b80
SM
20562020-06-25 Simon Marchi <simon.marchi@efficios.com>
2057
2058 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2059
277474ee
SM
20602020-06-25 Simon Marchi <simon.marchi@efficios.com>
2061
2062 * inferior.h (struct inferior) <terminal>: Change type to
2063 gdb::unique_xmalloc_ptr<char>.
2064 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2065 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2066 field, adjust to unique pointer.
2067 (get_inferior_io_terminal): Adjust to unique pointer.
2068
6d74da72
AB
20692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2072 registers, not just the known core set of registers.
2073
2e52d038
AB
20742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2077 fflags, frm, and fcsr registers.
2078 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2079 restore groups.
2080 (riscv_tdesc_unknown_reg): New function.
2081 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2082 tdesc_use_registers.
2083 * riscv-tdep.h (struct gdbarch_tdep): Add
2084 unknown_csrs_first_regnum, unknown_csrs_count,
2085 duplicate_fflags_regnum, duplicate_frm_regnum, and
2086 duplicate_fcsr_regnum fields.
2087
be64fd07
AB
20882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2091 callback, use the callback (when not null) to help number unknown
2092 registers.
2093 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2094 (tdesc_use_registers): Add extra parameter to declaration.
2095
3b9fce96
AB
20962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2099 in the file.
2100 (class riscv_pending_register_alias): Likewise.
2101 (riscv_register_feature::register_info): Change 'required_p' field
2102 to 'required', and change its type. Add 'check' member function.
2103 (riscv_register_feature::register_info::check): Define new member
2104 function.
2105 (riscv_xreg_feature): Change initialisation of 'required' field.
2106 (riscv_freg_feature): Likewise.
2107 (riscv_virtual_feature): Likewise.
2108 (riscv_csr_feature): Likewise.
2109 (riscv_check_tdesc_feature): Take extra parameter, the csr
2110 tdesc_feature, rewrite the function to use the new
2111 riscv_register_feature::register_info::check function.
2112 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2113
865bad26
AB
21142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * features/Makefile: Remove all references to the deleted files
2117 below.
2118 * features/riscv/32bit-csr.c: Deleted.
2119 * features/riscv/32bit-csr.xml: Deleted.
2120 * features/riscv/64bit-csr.c: Deleted.
2121 * features/riscv/64bit-csr.xml: Deleted.
2122 * features/riscv/rebuild-csr-xml.sh: Deleted.
2123
ed69cbc8
AB
21242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2127 whitespace error for declaration of names member variable.
2128 (struct riscv_register_feature): Add new prefer_first_name member
2129 variable, and fix whitespace error in declaration of registers.
2130 (riscv_xreg_feature): Initialize prefer_first_name field.
2131 (riscv_freg_feature): Likewise.
2132 (riscv_virtual_feature): Likewise.
2133 (riscv_csr_feature): Likewise.
2134 (riscv_register_name): Expand on comments. Remove register name
2135 modifications for CSR and virtual registers.
2136
4445e8f5
AB
21372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2140 errors.
2141
767a879e
AB
21422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2145 riscv-opc.h.
2146 (class riscv_pending_register_alias): New class.
2147 (riscv_check_tdesc_feature): Take vector of pending aliases and
2148 populate it as appropriate.
2149 (riscv_setup_register_aliases): Delete.
2150 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2151 to riscv_check_tdesc_feature in all cases. Use the vector to
2152 create the register aliases.
2153
bb6e55f3
RO
21542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2155
2156 * sol2-tdep.c (sol2_static_transform_name): Remove.
2157 (sol2_init_abi): Don't register it.
2158 * gdbarch.sh (static_transform_name): Remove.
2159 * gdbarch.c, gdbarch.h: Regenerate.
2160
2161 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2162 gdbarch_static_transform_name.
2163 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2164 * stabsread.c (define_symbol) <'X'>: Remove.
2165 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2166 handling.
2167 <'V'>: Likewise.
2168 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2169 <'S'>: Remove call to gdbarch_static_transform_name.
2170
c6d36836
RO
21712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2172
2173 * procfs.c (procfs_pre_trace): New function.
2174 (procfs_target::create_inferior): Pass it to fork_inferior.
2175
a7e6196b
RO
21762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2177
2178 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2179 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2180 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2181 sol2-tdep.o, sparc-sol2-tdep.o.
2182 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2183 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2184 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2185 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2186
d412e696
RO
21872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2188
2189 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2190 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2191 Call sol2_init_abi.
2192 Remove calls to set_gdbarch_skip_solib_resolver,
2193 set_gdbarch_core_pid_to_str.
2194 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2195 (i386_sol2_static_transform_name): Remove.
2196 (i386_sol2_init_abi): Call sol2_init_abi.
2197 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2198 set_gdbarch_static_transform_name,
2199 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2200 Use sol2_sigtramp_p.
2201 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2202 (sol2_sigtramp_p): New function.
2203 (sol2_static_transform_name): New function.
2204 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2205 (sol2_init_abi): New function.
2206 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2207 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2208 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2209 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2210 (sparc_sol2_static_transform_name): Remove.
2211 (sparc32_sol2_init_abi): Call sol2_init_abi.
2212 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2213 set_gdbarch_static_transform_name,
2214 set_gdbarch_skip_solib_resolver,
2215 set_gdbarch_core_pid_to_str.
2216 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2217 (sparc_sol2_static_transform_name): Remove
2218 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2219 call sol2_sigtramp_p.
2220 (sparc64_sol2_init_abi): Call sol2_init_abi.
2221 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2222 set_gdbarch_static_transform_name,
2223 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2224
a8654e7d
PW
22252020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2226
2227 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2228 * exec.c (validate_exec_file): If from_tty, set both
2229 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2230 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2231 and from_tty, unconditionally ask a confirmation.
2232
caa7fd04
AB
22332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * target-descriptions.c (tdesc_architecture_name): Protect against
2236 NULL pointer dereference.
2237 (maint_print_xml_tdesc_cmd): New function.
2238 (_initialize_target_descriptions): Register new 'maint print
2239 xml-tdesc' command and give it the filename completer.
2240 * NEWS: Mention new 'maint print xml-tdesc' command.
2241
fbf42f4e
AB
22422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2243
2244 * target-descriptions.c (class tdesc_compatible_info): New class.
2245 (struct target_desc): Change type of compatible vector.
2246 (tdesc_compatible_p): Update for change in type of
2247 target_desc::compatible.
2248 (tdesc_compatible_info_list): New function.
2249 (tdesc_compatible_info_arch_name): New function.
2250 (tdesc_add_compatible): Update for change in type of
2251 target_desc::compatible.
2252 (print_c_tdesc::visit_pre): Likewise.
2253
20821f4e
AB
22542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2257 whitespace to underscore.
2258 (maint_print_c_tdesc_cmd): Use fake filename for target
2259 descriptions that came from the target.
2260 (_initialize_target_descriptions): Add filename command completion
2261 for 'maint print c-tdesc'.
2262
1fb5ee62
SM
22632020-06-23 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2266 lines.
2267
fc3ecb3e
SM
22682020-06-23 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2271 lines.
2272 (dwarf2_find_location_expression): Likewise.
2273 (call_site_parameter_matches): Likewise.
2274 (dwarf2_compile_expr_to_ax): Likewise.
2275 (disassemble_dwarf_expression): Likewise.
2276 (loclist_describe_location): Likewise.
2277
236ef034
PA
22782020-06-23 Pedro Alves <palves@redhat.com>
2279
2280 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2281 progspace-and-thread.h. Include scoped-mock-context.h instead.
2282 (register_to_value_test): Use scoped_mock_context.
2283 * regcache.c: Include "scoped-mock-context.h".
2284 (cooked_read_test): Don't error out if a target is already pushed.
2285 Use scoped_mock_context. Adjust.
2286 * scoped-mock-context.h: New file.
2287
39e7ecca
AB
22882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2291 initializer.
2292 (ada_language::is_string_type_p): New member function.
2293 * c-lang.c (c_language_data): Delete la_is_string_type_p
2294 initializer.
2295 (cplus_language_data): Likewise.
2296 (asm_language_data): Likewise.
2297 (minimal_language_data): Likewise.
2298 * d-lang.c (d_language_data): Likewise.
2299 * f-lang.c (f_is_string_type_p): Delete function, implementation
2300 moved to f_language::is_string_type_p.
2301 (f_language_data): Delete la_is_string_type_p initializer.
2302 (f_language::is_string_type_p): New member function,
2303 implementation from f_is_string_type_p.
2304 * go-lang.c (go_is_string_type_p): Delete function, implementation
2305 moved to go_language::is_string_type_p.
2306 (go_language_data): Delete la_is_string_type_p initializer.
2307 (go_language::is_string_type_p): New member function,
2308 implementation from go_is_string_type_p.
2309 * language.c (language_defn::is_string_type_p): Define new member
2310 function.
2311 (default_is_string_type_p): Make static, add comment copied from
2312 header file.
2313 (unknown_language_data): Delete la_is_string_type_p initializer.
2314 (unknown_language::is_string_type_p): New member function.
2315 (auto_language_data): Delete la_is_string_type_p initializer.
2316 (auto_language::is_string_type_p): New member function.
2317 * language.h (language_data): Delete la_is_string_type_p field.
2318 (language_defn::is_string_type_p): Declare new function.
2319 (default_is_string_type_p): Delete desclaration, move comment to
2320 definition.
2321 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2322 moved to m2_language::is_string_type_p.
2323 (m2_language_data): Delete la_is_string_type_p initializer.
2324 (m2_language::is_string_type_p): New member function,
2325 implementation from m2_is_string_type_p.
2326 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2327 initializer.
2328 * opencl-lang.c (opencl_language_data): Likewise.
2329 * p-lang.c (pascal_is_string_type_p): Delete function,
2330 implementation moved to pascal_language::is_string_type_p.
2331 (pascal_language_data): Delete la_is_string_type_p initializer.
2332 (pascal_language::is_string_type_p): New member function,
2333 implementation from pascal_is_string_type_p.
2334 * rust-lang.c (rust_is_string_type_p): Delete function,
2335 implementation moved to rust_language::is_string_type_p.
2336 (rust_language_data): Delete la_is_string_type_p initializer.
2337 (rust_language::is_string_type_p): New member function,
2338 implementation from rust_is_string_type_p.
2339 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2340 is_string_type_p.
2341
4ffc13fb
AB
23422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * ada-lang.c (ada_language_data): Delete la_print_typedef
2345 initializer.
2346 (ada_language::print_typedef): New member function.
2347 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2348 (cplus_language_data): Likewise.
2349 (asm_language_data): Likewise.
2350 (minimal_language_data): Likewise.
2351 * d-lang.c (d_language_data): Likewise.
2352 * f-lang.c (f_language_data): Likewise.
2353 (f_language::print_typedef): New member function.
2354 * go-lang.c (go_language_data): Delete la_print_typedef
2355 initializer.
2356 * language.c (language_defn::print_typedef): Define member
2357 function.
2358 (unknown_language_data): Delete la_print_typedef initializer.
2359 (unknown_language::print_typedef): New member function.
2360 (auto_language_data): Delete la_print_typedef initializer.
2361 (auto_language::print_typedef): New member function.
2362 * language.h (language_data): Delete la_print_typedef field.
2363 (language_defn::print_typedef): Declare new member function.
2364 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2365 (default_print_typedef): Delete declaration.
2366 * m2-lang.c (m2_language_data): Delete la_print_typedef
2367 initializer.
2368 (m2_language::print_typedef): New member function.
2369 * objc-lang.c (objc_language_data): Delete la_print_typedef
2370 initializer.
2371 * opencl-lang.c (opencl_language_data): Likewise.
2372 * p-lang.c (pascal_language_data): Likewise.
2373 (pascal_language::print_typedef): New member function.
2374 * rust-lang.c (rust_print_typedef): Delete function,
2375 implementation moved to rust_language::print_typedef.
2376 (rust_language): Delete la_print_typedef initializer.
2377 (rust_language::print_typedef): New member function,
2378 implementation from rust_print_typedef.
2379 * typeprint.c (default_print_typedef): Delete.
2380
d711ee67
AB
23812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2384 (ada_language::printstr): New member function.
2385 * c-lang.c (c_language_data): Delete la_printstr initializer.
2386 (cplus_language_data): Likewise.
2387 (asm_language_data): Likewise.
2388 (minimal_language_data): Likewise.
2389 * d-lang.c (d_language_data): Likewise.
2390 * f-lang.c (f_printstr): Rename to f_language::printstr.
2391 (f_language_data): Delete la_printstr initializer.
2392 (f_language::printstr): New member function, implementation from
2393 f_printstr.
2394 * go-lang.c (go_language_data): Delete la_printstr initializer.
2395 * language.c (language_defn::printstr): Define new member
2396 function.
2397 (unk_lang_printstr): Delete.
2398 (unknown_language_data): Delete la_printstr initializer.
2399 (unknown_language::printstr): New member function.
2400 (auto_language_data): Delete la_printstr initializer.
2401 (auto_language::printstr): New member function.
2402 * language.h (language_data): Delete la_printstr field.
2403 (language_defn::printstr): Declare new member function.
2404 (LA_PRINT_STRING): Update call to printstr.
2405 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2406 (m2_language_data): Delete la_printstr initializer.
2407 (m2_language::printstr): New member function, implementation from
2408 m2_printstr.
2409 * objc-lang.c (objc_language_data): Delete la_printstr
2410 initializer.
2411 * opencl-lang.c (opencl_language_data): Likewise.
2412 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2413 (pascal_language_data): Delete la_printstr initializer.
2414 (pascal_language::printstr): New member function, implementation
2415 from pascal_printstr.
2416 * p-lang.h (pascal_printstr): Delete declaration.
2417 * rust-lang.c (rust_printstr): Update header comment.
2418 (rust_language_data): Delete la_printstr initializer.
2419 (rust_language::printstr): New member function.
2420
52b50f2c
AB
24212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2424 (ada_language::printchar): New member function.
2425 * c-lang.c (c_language_data): Delete la_printchar initializer.
2426 (cplus_language_data): Likewise.
2427 (asm_language_data): Likewise.
2428 (minimal_language_data): Likewise.
2429 * d-lang.c (d_language_data): Likewise.
2430 * f-lang.c (f_printchar): Rename to f_language::printchar.
2431 (f_language_data): Delete la_printchar initializer.
2432 (f_language::printchar): New member function, implementation from
2433 f_printchar.
2434 * go-lang.c (go_language_data): Delete la_printchar initializer.
2435 * language.c (unk_lang_printchar): Delete.
2436 (language_defn::printchar): Define new member function.
2437 (unknown_language_data): Delete la_printchar initializer.
2438 (unknown_language::printchar): New member function.
2439 (auto_language_data): Delete la_printchar initializer.
2440 (auto_language::printchar): New member function.
2441 * language.h (language_data): Delete la_printchar field.
2442 (language_defn::printchar): Declare new member function.
2443 (LA_PRINT_CHAR): Update call to printchar.
2444 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2445 (m2_language::printchar): New member function.
2446 * objc-lang.c (objc_language_data): Delete la_printchar
2447 initializer.
2448 * opencl-lang.c (opencl_language_data): Likewise.
2449 * p-lang.c (pascal_language_data): Delete la_printchar
2450 initializer.
2451 (pascal_language::printchar): New member function.
2452 * rust-lang.c (rust_printchar): Rename to
2453 rust_language::printchar.
2454 (rust_language_data): Delete la_printchar initializer.
2455 (rust_language::printchar): New member function, implementation
2456 from rust_printchar.
2457
ec8cec5b
AB
24582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2461 (ada_language_data): Delete la_emitchar initializer.
2462 (ada_language::emitchar): New member function, implementation from
2463 emit_char.
2464 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2465 (cplus_language_data): Likewise.
2466 (asm_language_data): Likewise.
2467 (minimal_language_data): Likewise.
2468 * d-lang.c (d_language_data): Likewise.
2469 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2470 (f_language_data): Delete la_emitchar initializer.
2471 (f_language::emitchar): New member function, implementation from
2472 f_emit_char.
2473 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2474 * language.c (unk_lang_emit_char): Delete.
2475 (language_defn::emitchar): New member function definition.
2476 (unknown_language_data): Delete la_emitchar initializer.
2477 (unknown_language::emitchar): New member function.
2478 (auto_language_data): Delete la_emitchar initializer.
2479 (auto_language::emitchar): New member function.
2480 * language.h (language_data): Delete la_emitchar field.
2481 (language_defn::emitchar): New member field declaration.
2482 (LA_EMIT_CHAR): Update call to emitchar.
2483 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2484 (m2_language_data): Delete la_emitchar initializer.
2485 (m2_language::emitchar): New member function, implementation from
2486 m2_emit_char.
2487 * objc-lang.c (objc_language_data): Delete la_emitchar
2488 initializer.
2489 * opencl-lang.c (opencl_language_data): Likewise.
2490 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2491 (pascal_language_data): Delete la_emitchar initializer.
2492 (pascal_language::emitchar): New member function, implementation
2493 from pascal_emit_char.
2494 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2495 (rust_language_data): Delete la_emitchar initializer.
2496 (rust_language::emitchar): New member function, implementation
2497 from rust_emitchar.
2498
1bf9c363
AB
24992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2502 (ada_language_data): Delete la_post_parser initializer.
2503 (ada_language::post_parser): New member function.
2504 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2505 (cplus_language_data): Likewise.
2506 (asm_language_data): Likewise.
2507 (minimal_language_data): Likewise.
2508 * d-lang.c (d_language_data): Likewise.
2509 * f-lang.c (f_language_data): Likewise.
2510 * go-lang.c (go_language_data): Likewise.
2511 * language.c (unknown_language_data): Likewise.
2512 (auto_language_data): Likewise.
2513 * language.h (language_data): Delete la_post_parser field.
2514 (language_defn::post_parser): New member function.
2515 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2516 * objc-lang.c (objc_language_data): Likewise.
2517 * opencl-lang.c (opencl_language_data): Likewise.
2518 * p-lang.c (pascal_language_data): Likewise.
2519 * parse.c (parse_exp_in_context): Update call to post_parser.
2520 (null_post_parser): Delete definition.
2521 * parser-defs.h (null_post_parser): Delete declaration.
2522 * rust-lang.c (rust_language_data): Delete la_post_parser
2523 initializer.
2524
87afa652
AB
25252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * ada-lang.c (parse): Rename to ada_language::parser.
2528 (ada_language_data): Delete la_parser initializer.
2529 (ada_language::parser): New member function, implementation from
2530 parse.
2531 * c-lang.c (c_language_data): Delete la_parser initializer.
2532 (cplus_language_data): Likewise.
2533 (asm_language_data): Likewise.
2534 (minimal_language_data): Likewise.
2535 * d-lang.c (d_language_data): Likewise.
2536 (d_language::parser): New member function.
2537 * f-lang.c (f_language_data): Delete la_parser initializer.
2538 (f_language::parser): New member function.
2539 * go-lang.c (go_language_data): Delete la_parser initializer.
2540 (go_language::parser): New member function.
2541 * language.c (unk_lang_parser): Delete.
2542 (language_defn::parser): Define new member function.
2543 (unknown_language_data): Delete la_parser initializer.
2544 (unknown_language::parser): New member function.
2545 (auto_language_data): Delete la_parser initializer.
2546 (auto_language::parser): New member function.
2547 * language.h (language_data): Delete la_parser field.
2548 (language_defn::parser): Declare new member function.
2549 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2550 (m2_language::parser): New member function.
2551 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2552 * opencl-lang.c (opencl_language_data): Likewise.
2553 * p-lang.c (pascal_language_data): Likewise.
2554 (pascal_language::parser): New member function.
2555 * parse.c (parse_exp_in_context): Update call to parser.
2556 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2557 (rust_language::parser): New member function.
2558
37825800
AB
25592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * top.c (print_gdb_configuration): Print --with-python-libdir
2562 configuration value.
2563
5b860c93
PW
25642020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2565
2566 * NEWS: Mention change to the alias command.
2567
cf00cd6f
PW
25682020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2569
2570 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2571 (alias_command_completer)
2572 (make_alias_options_def_group): New functions.
2573 (alias_opts, alias_option_defs): New struct and array.
2574 (alias_usage_error): Update usage.
2575 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2576 Use option framework.
2577 (_initialize_cli_cmds): Update alias command help.
2578 Update aliases command help.
2579 (show_user):
2580 Add NULL for new default_args lookup_cmd argument.
2581 (valid_command_p): Rename to validate_aliased_command.
2582 Add NULL for new default_args lookup_cmd argument. Verify that the
2583 aliased_command has no default args.
2584 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2585 (lookup_cmd_1, lookup_cmd): New argument default_args.
2586 (add_alias_cmd):
2587 Add NULL for new default_args lookup_cmd argument.
2588 (print_help_for_command): Show default args under the layout
2589 alias some_alias = some_aliased_cmd some_alias_default_arg.
2590 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2591 xfree default_args in destructor.
2592 * cli/cli-script.c (process_next_line, do_define_command):
2593 Add NULL for new default_args lookup_cmd argument.
2594 * command.h: Declare new default_args argument in lookup_cmd
2595 and lookup_cmd_1.
2596 * completer.c (complete_line_internal_1):
2597 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2598 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2599 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2600 Likewise.
2601 * infcmd.c (_initialize_infcmd): Likewise.
2602 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2603 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2604 * python/py-param.c (add_setshow_generic): Likewise.
2605 * remote.c (_initialize_remote): Likewise.
2606 * top.c (execute_command): Prepend default_args if command has some.
2607 (set_verbose):
2608 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2609 * tracepoint.c (validate_actionline, encode_actions_1):
2610 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2611
bd920864
TBA
26122020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2613
2614 * jit.c (jit_read_descriptor): Use bool as the return type.
2615 (jit_breakpoint_re_set_internal): Use bool as the return type.
2616 Invert the return value logic; return true if the jit breakpoint
2617 has been successfully initialized.
2618 (jit_inferior_init): Update the call to
2619 jit_breakpoint_re_set_internal.
2620
f8098322
PA
26212020-06-22 Pedro Alves <palves@redhat.com>
2622
2623 PR gdb/25939
2624 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2625 Use the current inferior instead. Don't return
2626 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2627 wait again.
2628 * sol-thread.c (sol_thread_target::wait): Don't reference
2629 inferior_ptid.
2630 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2631 (sol_update_thread_list_callback): Use the current inferior's pid
2632 instead of inferior_ptid.
2633
196535a6
RO
26342020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2635
2636 * procfs.c: Cleanup many comments.
2637
2638 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2639 (AFTER_WATCHFLAG): Replace by value.
2640
2641 (MAIN_PROC_NAME_FORMAT): Inline ...
2642 (create_procinfo): ... here.
2643
2644 (procfs_debug_inferior): Remove SYS_exec handling.
2645 (syscall_is_exec): Likewise.
2646 (procfs_set_exec_trap): Likewise.
2647
2648 (syscall_is_lwp_exit): Inline in callers.
2649 (syscall_is_exit): Likewise.
2650 (syscall_is_exec): Likewise.
2651 (syscall_is_lwp_create): Likewise.
2652
2653 (invalidate_cache): Remove #if 0 code.
2654
2655 (make_signal_thread_runnable): Remove.
2656 (procfs_target::resume): Remove #if 0 code.
2657
cf6f3e86
RO
26582020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2659
2660 PR gdb/25939
2661 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2662 call ...
2663 (procfs_target::create_inferior): ... here.
2664
48e9cc84
PW
26652020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2666
2667 * exec.c (validate_exec_file): Ensure the build-id is up to
2668 date by calling reopen_exec_file (that checks file timestamp
2669 to decide to re-read the file).
2670
3922b302
PA
26712020-06-18 Pedro Alves <palves@redhat.com>
2672
2673 PR gdb/25412
2674 * gdbthread.h (delete_thread, delete_thread_silent)
2675 (find_thread_ptid): Update comments.
2676 * thread.c (current_thread_): New global.
2677 (is_current_thread): Move higher, and reimplement.
2678 (inferior_thread): Reimplement.
2679 (set_thread_exited): Use bool. Add assertions.
2680 (add_thread_silent): Simplify thread-reuse handling by always
2681 calling delete_thread.
2682 (delete_thread): Remove intro comment.
2683 (find_thread_ptid): Skip exited threads.
2684 (switch_to_thread_no_regs): Write to current_thread_.
2685 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2686 INFERIOR_PTID. Clear current_thread_.
2687
6dbdab44
PA
26882020-06-18 Pedro Alves <palves@redhat.com>
2689
2690 * aix-thread.c (pd_update): Use switch_to_thread.
2691
2da4b788
PA
26922020-06-18 Pedro Alves <palves@redhat.com>
2693
2694 * ravenscar-thread.c (ravenscar_thread_target): Update.
2695 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2696 (ravenscar_thread_target::add_active_thread): ... this. Don't
2697 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2698 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2699
50838d1b
PA
27002020-06-18 Pedro Alves <palves@redhat.com>
2701
2702 * nat/windows-nat.c (current_windows_thread): Remove.
2703 * nat/windows-nat.h (current_windows_thread): Remove.
2704 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2705 Adjust.
2706 (display_selectors): Adjust to fetch the current
2707 windows_thread_info based on inferior_ptid.
2708 (fake_create_process): No longer write to current_windows_thread.
2709 (windows_nat_target::get_windows_debug_event):
2710 Don't set inferior_ptid or current_windows_thread.
2711 (windows_nat_target::wait): Adjust to not rely on
2712 current_windows_thread.
2713 (do_initial_windows_stuff): Now a method of windows_nat_target.
2714 Switch to the last_ptid thread.
2715 (windows_nat_target::attach): Adjust.
2716 (windows_nat_target::detach): Use switch_to_no_thread instead of
2717 writing to inferior_ptid directly.
2718 (windows_nat_target::create_inferior): Adjust.
2719
31ce04e9
PA
27202020-06-18 Pedro Alves <palves@redhat.com>
2721
2722 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2723
1ee1a363
PA
27242020-06-18 Pedro Alves <palves@redhat.com>
2725
2726 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2727 after creating it, instead of writing to inferior_ptid. Don't
2728 write to inferior_ptid.
2729
6d350754
PA
27302020-06-18 Pedro Alves <palves@redhat.com>
2731
2732 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2733
5d971d48
PA
27342020-06-18 Pedro Alves <palves@redhat.com>
2735
2736 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2737 it, instead of writing to inferior_ptid.
2738
86e57d1b
PA
27392020-06-18 Pedro Alves <palves@redhat.com>
2740
2741 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2742 to inferior_ptid.
2743
f2e1c129
PA
27442020-06-18 Pedro Alves <palves@redhat.com>
2745
2746 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2747 instead of writing to inferior_ptid directly.
2748
60db1b85
PA
27492020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * corelow.c (core_target::close): Use switch_to_no_thread instead
2752 of writing to inferior_ptid directly.
2753 (add_to_thread_list, core_target_open): Use switch_to_thread
2754 instead of writing to inferior_ptid directly.
2755
fe7d6a8d
PA
27562020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2759 inferior_ptid.
2760 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2761 inferior_ptid.
2762 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2763 inferior_ptid directly.
2764 (darwin_nat_target::init_thread_list): Switch to thread, instead
2765 of writing to inferior_ptid.
2766 (darwin_nat_target::attach): Don't write to inferior_ptid.
2767 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2768
975f8708
PA
27692020-06-18 Pedro Alves <palves@redhat.com>
2770
2771 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2772 thread.
2773 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2774 Instead use switch_to_thread.
2775 (gnu_nat_target::detach): Use switch_to_no_thread
2776 instead of writing to inferior_ptid directly. Used passed-in
2777 inferior instead of looking up the inferior by pid.
2778
1a204730
PA
27792020-06-18 Pedro Alves <palves@redhat.com>
2780
2781 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2782 inferior_ptid.
2783
ebe84f23
PA
27842020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2787 inferior_ptid.
2788 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2789 thread.
2790 (nto_procfs_target::detach): Avoid referencing
2791 inferior_ptid. Use switch_to_no_thread instead of writing to
2792 inferior_ptid directly.
2793 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2794 instead of writing to inferior_ptid directly.
2795 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2796 to thread.
2797
191f02e5
PA
27982020-06-18 Pedro Alves <palves@redhat.com>
2799
2800 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2801 after creating it, instead of writing to inferior_ptid.
2802 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2803 to inferior_ptid directly.
2804 (gdbsim_target::wait): Don't write to inferior_ptid.
2805
0ac55310
PA
28062020-06-18 Pedro Alves <palves@redhat.com>
2807
2808 * remote.c (remote_target::remote_notice_new_inferior): Use
2809 switch_to_thread instead of writing to inferior_ptid directly.
2810 (remote_target::add_current_inferior_and_thread): Use
2811 switch_to_no_thread instead of writing to inferior_ptid directly.
2812 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2813 and switch_to_thread instead of using set_current_inferior or
2814 writing to inferior_ptid directly.
2815
5233f39b
PA
28162020-06-18 Pedro Alves <palves@redhat.com>
2817
2818 * tracectf.c (ctf_target_open): Switch to added thread instead of
2819 writing to inferior_ptid directly.
2820 (ctf_target::close): Use switch_to_no_thread instead of writing to
2821 inferior_ptid directly.
2822
087e161b
PA
28232020-06-18 Pedro Alves <palves@redhat.com>
2824
2825 * tracefile-tfile.c (tfile_target_open): Don't write to
2826 inferior_ptid directly, instead switch to added thread.
2827 (tfile_target::close): Use switch_to_no_thread instead of writing
2828 to inferior_ptid directly.
2829
7fb43e53
PA
28302020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2833 (procfs_target::detach): Use switch_to_no_thread
2834 instead of writing to inferior_ptid directly.
2835 (do_attach): Change return type to void. Switch to the added
2836 thread.
2837 (procfs_target::create_inferior): Switch to the added thread.
2838 (procfs_do_thread_registers): Don't write to inferior_ptid.
2839
18493a00
PA
28402020-06-18 Pedro Alves <palves@redhat.com>
2841
2842 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2843 of writing to inferior_ptid.
2844 (scoped_restore_exited_inferior): Delete.
2845 (handle_vfork_child_exec_or_exit): Simplify using
2846 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2847 instead of writing to inferior_ptid.
2848 (THREAD_STOPPED_BY): Delete.
2849 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2850 (thread_stopped_by_hw_breakpoint): Delete.
2851 (save_waitstatus): Use
2852 scoped_restore_current_thread+switch_to_thread, and call
2853 target_stopped_by_watchpoint instead of
2854 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2855 instead of thread_stopped_by_sw_breakpoint, and
2856 target_stopped_by_hw_breakpoint instead of
2857 thread_stopped_by_hw_breakpoint.
2858 (handle_inferior_event)
2859 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2860 inferior_ptid directly, nor
2861 set_current_inferior/set_current_program_space. Use
2862 switch_to_thread / switch_to_inferior_no_thread instead.
2863
a0776b13
PA
28642020-06-18 Pedro Alves <palves@redhat.com>
2865
2866 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2867 instead of writing to inferior_ptid.
2868
6155c136
PA
28692020-06-18 Pedro Alves <palves@redhat.com>
2870
2871 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2872 added thread.
2873 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2874 to the added thread.
2875 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2876 instead of writing to inferior_ptid.
2877
c5316fc6
PA
28782020-06-18 Pedro Alves <palves@redhat.com>
2879
2880 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2881 (register_to_value_test): Mock a program_space too. Heap-allocate
2882 the address space. Don't write to inferior_ptid. Use
2883 switch_to_thread instead.
2884
8df01799
PA
28852020-06-18 Pedro Alves <palves@redhat.com>
2886
2887 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2888 Delete.
2889 (find_signalled_thread()): New, factored out from
2890 linux_make_corefile_notes and adjusted to handle exited threads.
2891 (linux_make_corefile_notes): Adjust to use the new
2892 find_signalled_thread.
2893
41792d68
PA
28942020-06-18 Pedro Alves <palves@redhat.com>
2895
2896 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2897 of saving/restoring inferior_ptid.
2898
612f258a
TT
28992020-06-17 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2902 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2903 declare.
2904 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2905
efb763a5
SM
29062020-06-15 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2909 of partial symtabs.
2910
2951f6c0
SM
29112020-06-17 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * regformats/reg-arm.dat: Remove.
2914 * regformats/reg-bfin.dat: Remove.
2915 * regformats/reg-cris.dat: Remove.
2916 * regformats/reg-crisv32.dat: Remove.
2917 * regformats/reg-m32r.dat: Remove.
2918 * regformats/reg-tilegx.dat: Remove.
2919 * regformats/reg-tilegx32.dat: Remove.
2920
7d458ea5
SM
29212020-06-17 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * features/Makefile (WHICH): Remove arm files.
2924 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2925 * regformats/arm/arm-with-neon.dat: Remove.
2926 * regformats/arm/arm-with-vfpv2.dat: Remove.
2927 * regformats/arm/arm-with-vfpv3.dat: Remove.
2928
3af96c0d
SM
29292020-06-17 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * features/Makefile (XMLTOC): Remove rx.xml.
2932
b25e22fd
PA
29332020-06-17 Pedro Alves <palves@redhat.com>
2934
2935 * gdbthread.h (thread_control_state) <trap_expected> Update
2936 comments.
2937
a78a19b1
AB
29382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2941 ada_language::lookup_symbol_nonlocal.
2942 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2943 (ada_language::lookup_symbol_nonlocal): New member function,
2944 implementation from ada_lookup_symbol_nonlocal.
2945 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2946 initializer.
2947 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2948 initializer.
2949 (cplus_language::lookup_symbol_nonlocal): New member function.
2950 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2951 (minimal_language_data) Likewise.
2952 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2953 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2954 initializer.
2955 (d_language::lookup_symbol_nonlocal): New member function.
2956 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2957 initializer.
2958 (f_language::lookup_symbol_nonlocal): New member function.
2959 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2960 initializer.
2961 * language.c (unknown_language_data): Likewise.
2962 (auto_language_data): Likewise.
2963 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2964 field.
2965 (language_defn::lookup_symbol_nonlocal): New member function.
2966 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2967 initializer.
2968 * objc-lang.c (objc_language_data): Likewise.
2969 * opencl-lang.c (opencl_language_data): Likewise.
2970 * p-lang.c (pascal_language_data): Likewise.
2971 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2972 rust_language::lookup_symbol_nonlocal.
2973 (rust_language_data): Delete la_lookup_symbol_nonlocal
2974 initializer.
2975 (rust_language::lookup_symbol_nonlocal): New member function,
2976 implementation from rust_lookup_symbol_nonlocal.
2977 * symtab.c (lookup_symbol_aux): Update call to
2978 lookup_symbol_nonlocal.
2979 (basic_lookup_symbol_nonlocal): Rename to...
2980 (language_defn::lookup_symbol_nonlocal): ...this, and update
2981 header comment. Remove language_defn parameter, and replace with
2982 uses of `this'.
2983 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2984
ebe2334e
AB
29852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2988 initializer.
2989 (ada_language::value_print_inner): New member function.
2990 * c-lang.c (c_language_data): Delete la_value_print_inner
2991 initializer.
2992 (cplus_language_data): Likewise.
2993 (asm_language_data): Likewise.
2994 (minimal_language_data): Likewise.
2995 * d-lang.c (d_language_data): Likewise.
2996 (d_language::value_print_inner): New member function.
2997 * f-lang.c (f_language_data): Delete la_value_print_inner
2998 initializer.
2999 (f_language::value_print_inner): New member function.
3000 * f-lang.h (f_value_print_innner): Rename to...
3001 (f_value_print_inner): ...this (note spelling of 'inner').
3002 * f-valprint.c (f_value_print_innner): Rename to...
3003 (f_value_print_inner): ...this (note spelling of 'inner').
3004 * go-lang.c (go_language_data): Delete la_value_print_inner
3005 initializer.
3006 (go_language::value_print_inner): New member function.
3007 * language.c (language_defn::value_print_inner): Define new member
3008 function.
3009 (unk_lang_value_print_inner): Delete.
3010 (unknown_language_data): Delete la_value_print_inner initializer.
3011 (unknown_language::value_print_inner): New member function.
3012 (auto_language_data): Delete la_value_print_inner initializer.
3013 (auto_language::value_print_inner): New member function.
3014 * language.h (language_data): Delete la_value_print_inner field.
3015 (language_defn::value_print_inner): Delcare new member function.
3016 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3017 initializer.
3018 (m2_language::value_print_inner): New member function.
3019 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3020 initializer.
3021 * opencl-lang.c (opencl_language_data): Likewise.
3022 * p-lang.c (pascal_language_data): Likewise.
3023 (pascal_language::value_print_inner): New member function.
3024 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3025 initializer.
3026 (rust_language::value_print_inner): New member function.
3027 * valprint.c (do_val_print): Update call to value_print_inner.
3028
a1d1fa3e
AB
30292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3030
3031 * ada-lang.c (ada_language_data): Delete la_value_print
3032 initializer.
3033 (ada_language::value_print): New member function.
3034 * c-lang.c (c_language_data): Delete la_value_print initializer.
3035 (cplus_language_data): Likewise.
3036 (asm_language_data): Likewise.
3037 (minimal_language_data): Likewise.
3038 * d-lang.c (d_language_data): Likewise.
3039 * f-lang.c (f_language_data): Likewise.
3040 * go-lang.c (go_language_data): Likewise.
3041 * language.c (unk_lang_value_print): Delete.
3042 (language_defn::value_print): Define new member function.
3043 (unknown_language_data): Delete la_value_print initializer.
3044 (unknown_language::value_print): New member function.
3045 (auto_language_data): Delete la_value_print initializer.
3046 (auto_language::value_print): New member function.
3047 * language.h (language_data): Delete la_value_print field.
3048 (language_defn::value_print): Declare new member function.
3049 (LA_VALUE_PRINT): Update call to value_print.
3050 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3051 * objc-lang.c (objc_language_data): Likewise.
3052 * opencl-lang.c (opencl_language_data): Likewise.
3053 * p-lang.c (pascal_language_data): Likewise.
3054 (pascal_language::value_print): New member function.
3055 * rust-lang.c (rust_language_data): Delete la_value_print
3056 initializer.
3057
f16a9f57
AB
30582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3059
3060 * ada-lang.c (ada_watch_location_expression): Rename to
3061 ada_language::watch_location_expression.
3062 (ada_language_data): Delete la_watch_location_expression
3063 initializer.
3064 (ada_language::watch_location_expression): New member function,
3065 implementation from ada_watch_location_expression.
3066 * breakpoint.c (watch_command_1): Update call to
3067 watch_location_expression.
3068 * c-lang.c (c_watch_location_expression): Rename to
3069 language_defn::watch_location_expression.
3070 (c_language_data): Delete la_watch_location_expression
3071 initializer.
3072 (cplus_language_data): Likewise.
3073 (asm_language_data): Likewise.
3074 (minimal_language_data): Likewise.
3075 * c-lang.h (c_watch_location_expression): Delete declaration.
3076 * d-lang.c (d_language_data): Delete la_watch_location_expression
3077 initializer.
3078 * f-lang.c (f_language_data): Likewise.
3079 * go-lang.c (go_language_data): Likewise.
3080 * language.c (language_defn::watch_location_expression): Member
3081 function implementation from c_watch_location_expression.
3082 (unknown_language_data): Delete la_watch_location_expression
3083 initializer.
3084 (auto_language_data): Likewise.
3085 * language.h (language_data): Delete la_watch_location_expression
3086 field.
3087 (language_defn::watch_location_expression): Declare new member
3088 function.
3089 * m2-lang.c (m2_language_data): Delete
3090 la_watch_location_expression initializer.
3091 * objc-lang.c (objc_language_data): Likewise.
3092 * opencl-lang.c (opencl_language_data): Likewise.
3093 * p-lang.c (pascal_language_data): Likewise.
3094 * rust-lang.c (rust_watch_location_expression): Rename to
3095 rust_language::watch_location_expression.
3096 (rust_language_data): Delete la_watch_location_expression
3097 initializer.
3098 (rust_language::watch_location_expression): New member function,
3099 implementation from rust_watch_location_expression.
3100
7e56227d
AB
31012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3104 ada_language::collect_symbol_completion_matches.
3105 (ada_language_data): Delete la_collect_symbol_completion_matches
3106 initializer.
3107 (ada_language::collect_symbol_completion_matches): New member
3108 function, implementation from
3109 ada_collect_symbol_completion_matches.
3110 * c-lang.c (c_language_data): Delete
3111 la_collect_symbol_completion_matches initializer.
3112 (cplus_language_data): Likewise.
3113 (asm_language_data): Likewise.
3114 (minimal_language_data): Likewise.
3115 * d-lang.c (d_language_data): Likewise.
3116 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3117 f_language::collect_symbol_completion_matches.
3118 (f_language_data): Delete la_collect_symbol_completion_matches
3119 initializer.
3120 (f_language::collect_symbol_completion_matches) New member
3121 function, implementation from f_collect_symbol_completion_matches.
3122 * go-lang.c (go_language_data): Delete
3123 la_collect_symbol_completion_matches initializer.
3124 * language.c (unknown_language_data): Likewise.
3125 (auto_language_data): Likewise.
3126 * language.h (language_data): Delete
3127 la_collect_symbol_completion_matches field.
3128 (language_defn::collect_symbol_completion_matches): New member
3129 function.
3130 * m2-lang.c (m2_language_data): Delete
3131 la_collect_symbol_completion_matches initializer.
3132 * objc-lang.c (objc_language_data): Likewise.
3133 * opencl-lang.c (opencl_language_data): Likewise.
3134 * p-lang.c (pascal_language_data): Likewise.
3135 * rust-lang.c (rust_language_data): Likewise.
3136 * symtab.c (default_collect_symbol_completion_matches): Delete.
3137 (collect_symbol_completion_matches): Update call to
3138 collect_symbol_completion_matches.
3139 (collect_symbol_completion_matches_type): Likewise.
3140 * symtab.h (default_collect_symbol_completion_matches): Delete
3141 declaration.
3142
53fc67f8
AB
31432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3146 (ada_language_data): Delete la_word_break_characters initializer.
3147 (ada_language::word_break_characters): New member function.
3148 * c-lang.c (c_language_data): Delete la_word_break_characters
3149 initializer.
3150 (cplus_language_data): Likewise.
3151 (asm_language_data): Likewise.
3152 (minimal_language_data): Likewise.
3153 * completer.c: Update global comment.
3154 (advance_to_expression_complete_word_point): Update call to
3155 word_break_characters.
3156 (complete_files_symbols): Likewise.
3157 (complete_line_internal_1): Likewise.
3158 (default_completer_handle_brkchars): Likewise.
3159 (skip_quoted_chars): Likewise.
3160 * d-lang.c (d_language_data): Delete la_word_break_characters
3161 initializer.
3162 * f-lang.c (f_word_break_characters): Delete.
3163 (f_language_data): Delete la_word_break_characters initializer.
3164 (f_language::word_break_characters): New member function.
3165 * go-lang.c (go_language_data): Delete la_word_break_characters
3166 initializer.
3167 * language.c (unknown_language_data): Likewise.
3168 (auto_language_data): Likewise.
3169 * language.h (default_word_break_characters): Move declaration to
3170 earlier in the file.
3171 (language_data): Delete la_word_break_characters field.
3172 (language_defn::word_break_characters): New member function.
3173 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3174 initializer.
3175 * objc-lang.c (objc_language_data): Likewise.
3176 * opencl-lang.c (opencl_language_data): Likewise.
3177 * p-lang.c (pascal_language_data): Likewise.
3178 * rust-lang.c (rust_language_data): Likewise.
3179
c9debfb9
AB
31802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3183 (ada_language_data): Delete la_get_symbol_name_matcher
3184 initializer.
3185 (language_defn::get_symbol_name_matcher_inner): New member
3186 function.
3187 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3188 initializer.
3189 (cplus_language_data): Likewise.
3190 (cplus_language::get_symbol_name_matcher_inner): New member
3191 function.
3192 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3193 (minimal_language_data): Likewise.
3194 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3195 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3196 initializer.
3197 * dictionary.c (iter_match_first_hashed): Update call to
3198 get_symbol_name_matcher.
3199 (iter_match_next_hashed): Likewise.
3200 (iter_match_next_linear): Likewise.
3201 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3202 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3203 initializer.
3204 (f_language::get_symbol_name_matcher_inner): New member function.
3205 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3206 initializer.
3207 * language.c (default_symbol_name_matcher): Update header comment,
3208 make static.
3209 (language_defn::get_symbol_name_matcher): New definition.
3210 (language_defn::get_symbol_name_matcher_inner): Likewise.
3211 (get_symbol_name_matcher): Delete.
3212 (unknown_language_data): Delete la_get_symbol_name_matcher
3213 initializer.
3214 (auto_language_data): Likewise.
3215 * language.h (language_data): Delete la_get_symbol_name_matcher
3216 field.
3217 (language_defn::get_symbol_name_matcher): New member function.
3218 (language_defn::get_symbol_name_matcher_inner): Likewise.
3219 (default_symbol_name_matcher): Delete declaration.
3220 * linespec.c (find_methods): Update call to
3221 get_symbol_name_matcher.
3222 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3223 initializer.
3224 * minsyms.c (lookup_minimal_symbol): Update call to
3225 get_symbol_name_matcher.
3226 (iterate_over_minimal_symbols): Likewise.
3227 * objc-lang.c (objc_language_data): Delete
3228 la_get_symbol_name_matcher initializer.
3229 * opencl-lang.c (opencl_language_data): Likewise.
3230 * p-lang.c (pascal_language_data): Likewise.
3231 * psymtab.c (psymbol_name_matches): Update call to
3232 get_symbol_name_matcher.
3233 * rust-lang.c (rust_language_data): Delete
3234 la_get_symbol_name_matcher initializer.
3235 * symtab.c (symbol_matches_search_name): Update call to
3236 get_symbol_name_matcher.
3237 (compare_symbol_name): Likewise.
3238
9a49ad8c
AB
32392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * ada-lang.c (ada_language_data): Delete la_compute_program
3242 initializer.
3243 * c-lang.c (c_language_data): Likewise.
3244 (c_language::compute_program): New member function.
3245 (cplus_language_data): Delete la_compute_program initializer.
3246 (cplus_language::compute_program): New member function.
3247 (asm_language_data): Delete la_compute_program initializer.
3248 (minimal_language_data): Likewise.
3249 * c-lang.h (c_compute_program): Update comment.
3250 (cplus_compute_program): Likewise.
3251 * compile/compile-c-support.c (c_compute_program): Likewise.
3252 (cplus_compute_program): Likewise.
3253 * compile/compile.c (compile_to_object): Update call to
3254 la_compute_program.
3255 * d-lang.c (d_language_data): Delete la_compute_program
3256 initializer.
3257 * f-lang.c (f_language_data): Likewise.
3258 * go-lang.c (go_language_data): Likewise.
3259 * language.c (unknown_language_data): Likewise.
3260 (auto_language_data): Likewise.
3261 * language.h (language_data): Delete la_compute_program field.
3262 (language_defn::compute_program): New member function.
3263 * m2-lang.c (m2_language_data): Delete la_compute_program
3264 initializer.
3265 * objc-lang.c (objc_language_data): Likewise.
3266 * opencl-lang.c (opencl_language_data): Likewise.
3267 * p-lang.c (pascal_language_data): Likewise.
3268 * rust-lang.c (rust_language_data): Likewise.
3269
eff93b4d
AB
32702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * ada-lang.c (ada_language_data) Delete
3273 la_class_name_from_physname initializer.
3274 * c-lang.c (c_language_data): Likewise.
3275 (cplus_language_data): Likewise.
3276 (cplus_language::class_name_from_physname): New member function.
3277 (asm_language_data): Delete la_class_name_from_physname
3278 initializer.
3279 (minimal_language_data): Likewise.
3280 * d-lang.c (d_language_data): Likewise.
3281 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3282 method on language_defn class.
3283 (guess_full_die_structure_name): Likewise.
3284 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3285 initializer.
3286 * go-lang.c (go_language_data): Likewise.
3287 * language.c (language_class_name_from_physname): Delete.
3288 (unk_lang_class_name): Delete.
3289 (unknown_language_data): Delete la_class_name_from_physname
3290 initializer.
3291 (auto_language_data): Likewise.
3292 * language.h (language_data): Delete la_class_name_from_physname
3293 field.
3294 (language_defn::class_name_from_physname): New function.
3295 (language_class_name_from_physname): Delete declaration.
3296 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3297 initializer.
3298 * objc-lang.c (objc_language_data): Likewise.
3299 * opencl-lang.c (opencl_language_data): Likewise.
3300 * p-lang.c (pascal_language_data): Likewise.
3301 * rust-lang.c (rust_language_data): Likewise.
3302
de543742
TT
33032020-06-16 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-data.h (STATUS_NAME): New macro.
3306 * tui/tui-layout.c (tui_remove_some_windows)
3307 (initialize_known_windows, tui_register_window)
3308 (tui_layout_split::remove_windows, initialize_layouts)
3309 (tui_new_layout_command): Don't use hard-coded window names.
3310
a350efd4
TT
33112020-06-16 Tom Tromey <tom@tromey.com>
3312
3313 PR tui/25348:
3314 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3315 tui_initialize_readline. Only run once. Call rl_initialize.
3316 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3317 tui_initialize_readline.
3318 * tui/tui-io.c (tui_setup_io): Call
3319 tui_ensure_readline_initialized.
3320 * tui/tui-interp.c (tui_interp::init): Update.
3321
39ec0490
TT
33222020-06-16 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3325 Also preserve the status window.
3326
d2d1ea20
TT
33272020-06-16 Tom Tromey <tom@tromey.com>
3328
3329 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3330 where m_window==nullptr.
3331
66920317
TT
33322020-06-15 Tom Tromey <tromey@adacore.com>
3333
3334 * windows-nat.c (windows_nat::handle_output_debug_string):
3335 Update.
3336 (windows_nat::handle_ms_vc_exception): Update.
3337 * target.h (target_read_string): Change API.
3338 * target.c (target_read_string): Change API.
3339 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3340 Update.
3341 * solib-frv.c (frv_current_sos): Update.
3342 * solib-dsbt.c (dsbt_current_sos): Update.
3343 * solib-darwin.c (darwin_current_sos): Update.
3344 * linux-thread-db.c (inferior_has_bug): Update.
3345 * expprint.c (print_subexp_standard): Update.
3346 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3347 (ada_exception_message_1): Update.
3348
a5d871dd
TT
33492020-06-15 Tom Tromey <tromey@adacore.com>
3350
3351 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3352
670e35fa
TT
33532020-06-15 Tom Tromey <tromey@adacore.com>
3354
3355 * valprint.c (read_string): Update comment.
3356 * target.c (MIN): Remove.
3357 (target_read_string): Rewrite.
3358
f5272a3b
TT
33592020-06-15 Tom Tromey <tromey@adacore.com>
3360
3361 * corefile.c (read_memory_string): Remove.
3362 * ada-valprint.c (ada_value_print_ptr): Update.
3363 * ada-lang.h (ada_tag_name): Change return type.
3364 * ada-lang.c (type_from_tag): Update.
3365 (ada_tag_name_from_tsd): Change return type. Use
3366 target_read_string.
3367 (ada_tag_name): Likewise.
3368 * gdbcore.h (read_memory_string): Don't declare.
3369
2c074f49
HD
33702020-06-14 Hannes Domani <ssbssa@yahoo.de>
3371
3372 * symtab.c (rbreak_command): Ignore Windows drive colon.
3373
6a17d503
SM
33742020-06-12 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * NEWS: Mention removed GDBserver host support.
3377
453c733f
NC
33782020-06-12 Nelson Chu <nelson.chu@sifive.com>
3379
3380 * features/riscv/rebuild-csr-xml.sh: Updated.
3381
2b4e6a3f
TT
33822020-06-11 Tom Tromey <tom@tromey.com>
3383
3384 PR gdb/18318:
3385 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3386
4412332f
JG
33872020-06-09 Jonny Grant <jg@jguk.org>
33882020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * main.c (captured_main_1): Don't print new line after help.
3391 (print_gdb_help): add mailing list and IRC channel information
3392 to --help. Add new lines between items in the footer. Remove
3393 quotes around bug url.
3394
2f33032a
KS
33952020-06-11 Keith Seitz <keiths@redhat.com>
3396
3397 PR gdb/21356
3398 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3399 Resolve typedefs for type length calculations.
3400
7ab96794
TV
34012020-06-10 Tom de Vries <tdevries@suse.de>
3402
3403 PR ada/24713
3404 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3405 (write_psymbols): Enable .gdb_index for ada.
3406 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3407 ada.
3408
e5f3ece2
TV
34092020-06-10 Tom de Vries <tdevries@suse.de>
3410
3411 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3412 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3413 namei" instead of "const char *name" argument.
3414 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3415 dw2_symtab_iter_init.
3416
940da03e
SM
34172020-06-08 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3420 to use type::field and field::type instead.
3421
b6cdac4b
SM
34222020-06-08 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3425 to use field::type instead.
3426
5d14b6e5
SM
34272020-06-08 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (struct field) <type, set_type>: New methods.
3430 Rename `type` field to...
3431 <m_type>: ... this. Change references throughout to use type or
3432 set_type methods.
3433 (FIELD_TYPE): Use field::type. Change call sites that modify
3434 the field's type to use field::set_type instead.
3435
3d967001
SM
34362020-06-08 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3439 to use type::index_type instead.
3440
262abc0d
SM
34412020-06-08 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3444 methods.
3445 (TYPE_INDEX_TYPE): Use type::index_type.
3446 * gdbtypes.c (create_array_type_with_stride): Likewise.
3447
82836c92
TT
34482020-06-07 Tom Tromey <tom@tromey.com>
3449
3450 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3451 parameter.
3452 (generic_value_print): Update.
3453
940dace9
AB
34542020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 Revert commit 982a38f60b0.
3457 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3458
982a38f6
AB
34592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3462 avoid use after free.
3463
82f06518
TV
34642020-06-05 Tom de Vries <tdevries@suse.de>
3465
3466 * NEWS: Fix typos.
3467
f8c41851
SM
34682020-06-04 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3471 the per_bfd object.
3472 (dwarf2_read_debug_names): Likewise.
3473 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3474 object when re-using a per_bfd object with an index.
3475
f9b5d5ea
TV
34762020-06-03 Tom de Vries <tdevries@suse.de>
3477
3478 PR symtab/26046
3479 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3480 children for C++.
3481 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3482 DW_TAG_subprogram.
3483
f6eee2d0
AB
34842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 * ada-lang.c (ada_language_data): Delete skip_trampoline
3487 initializer.
3488 * c-lang.c (c_language_data): Likewise.
3489 (cplus_language_data): Likewise.
3490 (cplus_language::skip_trampoline): New member function.
3491 (asm_language_data): Delete skip_trampoline initializer.
3492 (minimal_language_data): Likewise.
3493 * d-lang.c (d_language_data): Likewise.
3494 * f-lang.c (f_language_data): Likewise.
3495 * go-lang.c (go_language_data): Likewise.
3496 * language.c (unk_lang_trampoline): Delete function.
3497 (skip_language_trampoline): Update.
3498 (unknown_language_data): Delete skip_trampoline initializer.
3499 (auto_language_data): Likewise.
3500 * language.h (language_data): Delete skip_trampoline field.
3501 (language_defn::skip_trampoline): New function.
3502 * m2-lang.c (m2_language_data): Delete skip_trampoline
3503 initializer.
3504 * objc-lang.c (objc_skip_trampoline): Delete function, move
3505 implementation to objc_language::skip_trampoline.
3506 (objc_language_data): Delete skip_trampoline initializer.
3507 (objc_language::skip_trampoline): New member function with
3508 implementation from objc_skip_trampoline.
3509 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3510 initializer.
3511 * p-lang.c (pascal_language_data): Likewise.
3512 * rust-lang.c (rust_language_data): Likewise.
3513
0a50df5d
AB
35142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3517 (ada_language::demangle): New member function.
3518 * c-lang.c (c_language_data): Delete la_demangle initializer.
3519 (cplus_language_data): Delete la_demangle initializer.
3520 (cplus_language::demangle): New member function.
3521 (asm_language_data): Delete la_demangle initializer.
3522 (minimal_language_data): Delete la_demangle initializer.
3523 * d-lang.c (d_language_data): Delete la_demangle initializer.
3524 (d_language::demangle): New member function.
3525 * f-lang.c (f_language_data): Delete la_demangle initializer.
3526 (f_language::demangle): New member function.
3527 * go-lang.c (go_language_data): Delete la_demangle initializer.
3528 (go_language::demangle): New member function.
3529 * language.c (language_demangle): Update.
3530 (unk_lang_demangle): Delete.
3531 (unknown_language_data): Delete la_demangle initializer.
3532 (unknown_language::demangle): New member function.
3533 (auto_language_data): Delete la_demangle initializer.
3534 (auto_language::demangle): New member function.
3535 * language.h (language_data): Delete la_demangle field.
3536 (language_defn::demangle): New function.
3537 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3538 * objc-lang.c (objc_language_data): Delete la_demangle
3539 initializer.
3540 (objc_language::demangle): New member function.
3541 * opencl-lang.c (opencl_language_data): Delete la_demangle
3542 initializer.
3543 * p-lang.c (pascal_language_data): Likewise.
3544 * rust-lang.c (rust_language_data): Likewise.
3545 (rust_language::demangle): New member function.
3546
fbfb0a46
AB
35472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * ada-lang.c (ada_language_data): Delete la_print_type
3550 initializer.
3551 (ada_language::print_type): New member function.
3552 * c-lang.c (c_language_data): Delete la_print_type initializer.
3553 (c_language::print_type): New member function.
3554 (cplus_language_data): Delete la_print_type initializer.
3555 (cplus_language::print_type): New member function.
3556 (asm_language_data): Delete la_print_type initializer.
3557 (asm_language::print_type): New member function.
3558 (minimal_language_data): Delete la_print_type initializer.
3559 (minimal_language::print_type): New member function.
3560 * d-lang.c (d_language_data): Delete la_print_type initializer.
3561 (d_language::print_type): New member function.
3562 * f-lang.c (f_language_data): Delete la_print_type initializer.
3563 (f_language::print_type): New member function.
3564 * go-lang.c (go_language_data): Delete la_print_type initializer.
3565 (go_language::print_type): New member function.
3566 * language.c (unk_lang_print_type): Delete.
3567 (unknown_language_data): Delete la_print_type initializer.
3568 (unknown_language::print_type): New member function.
3569 (auto_language_data): Delete la_print_type initializer.
3570 (auto_language::print_type): New member function.
3571 * language.h (language_data): Delete la_print_type field.
3572 (language_defn::print_type): New function.
3573 (LA_PRINT_TYPE): Update.
3574 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3575 (m2_language::print_type): New member function.
3576 * objc-lang.c (objc_language_data): Delete la_print_type
3577 initializer.
3578 (objc_language::print_type): New member function.
3579 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3580 to opencl_language::print_type.
3581 (opencl_language_data): Delete la_print_type initializer.
3582 (opencl_language::print_type): New member function, implementation
3583 from opencl_print_type.
3584 * p-lang.c (pascal_language_data): Delete la_print_type
3585 initializer.
3586 (pascal_language::print_type): New member function.
3587 * rust-lang.c (rust_print_type): Delete, implementation moved to
3588 rust_language::print_type.
3589 (rust_language_data): Delete la_print_type initializer.
3590 (rust_language::print_type): New member function, implementation
3591 from rust_print_type.
3592
6f827019
AB
35932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3594
3595 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3596 implementation moves to...
3597 (ada_language::sniff_from_mangled_name): ...here. Update return
3598 type.
3599 (ada_language_data): Delete la_sniff_from_mangled_name
3600 initializer.
3601 * c-lang.c (c_language_data): Likewise.
3602 (cplus_language_data): Likewise.
3603 (cplus_language::sniff_from_mangled_name): New member function,
3604 implementation taken from gdb_sniff_from_mangled_name.
3605 (asm_language_data): Delete la_sniff_from_mangled_name
3606 initializer.
3607 (minimal_language_data): Likewise.
3608 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3609 implementation moves to cplus_language::sniff_from_mangled_name.
3610 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3611 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3612 moves to...
3613 (d_language::sniff_from_mangled_name): ...here.
3614 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3615 * f-lang.c (f_language_data): Likewise.
3616 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3617 moves to...
3618 (go_language::sniff_from_mangled_name): ...here.
3619 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3620 * language.c (language_sniff_from_mangled_name): Delete.
3621 (unknown_language_data): Delete la_sniff_from_mangled_name
3622 initializer.
3623 (auto_language_data): Likewise.
3624 * language.h (language_data): Delete la_sniff_from_mangled_name
3625 field.
3626 (language_defn::sniff_from_mangled_name): New function.
3627 (language_sniff_from_mangled_name): Delete declaration.
3628 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3629 field.
3630 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3631 implementation moves to...
3632 (objc_language::sniff_from_mangled_name): ...here.
3633 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3634 * opencl-lang.c (opencl_language_data): Likewise.
3635 * p-lang.c (pascal_language_data): Likewise.
3636 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3637 implementation moves to...
3638 (rust_language::sniff_from_mangled_name): ...here.
3639 (rust_language_data): Delete la_sniff_from_mangled_name
3640 initializer.
3641 * symtab.c (symbol_find_demangled_name): Call
3642 sniff_from_mangled_name member function.
3643
fb8006fd
AB
36442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3647 initializer.
3648 * c-lang.c (c_language_data): Likewise.
3649 (cplus_language_data): Likewise.
3650 (cplus_language::search_name_hash): New member function.
3651 (asm_language_data): Delete la_search_name_hash initializer.
3652 (minimal_language_data): Likewise.
3653 * d-lang.c (d_language_data): Likewise.
3654 * dictionary.c (default_search_name_hash): Rename to...
3655 (language_defn::search_name_hash): ...this.
3656 * f-lang.c (f_language_data): Likewise.
3657 (f_language::search_name_hash): New member function.
3658 * go-lang.c (go_language_data): Delete la_search_name_hash
3659 initializer.
3660 * language.c (unknown_language_data): Likewise.
3661 (auto_language_data): Likewise.
3662 * language.h (struct language_data): Delete la_search_name_hash
3663 field.
3664 (language_defn::search_name_hash): Declare new member function.
3665 (default_search_name_hash): Delete declaration.
3666 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3667 initializer.
3668 * objc-lang.c (objc_language_data): Likewise.
3669 * opencl-lang.c (opencl_language_data): Likewise.
3670 * p-lang.c (pascal_language_data): Likewise.
3671 * rust-lang.c (rust_language_data): Likewise.
3672 * symtab.c (search_name_hash): Update call.
3673
8e25bafe
AB
36742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3677 initializer.
3678 * c-lang.c (class compile_instance): Declare.
3679 (c_language_data): Delete la_get_compile_instance initializer.
3680 (c_language::get_compile_instance): New member function.
3681 (cplus_language_data): Delete la_get_compile_instance initializer.
3682 (cplus_language::get_compile_instance): New member function.
3683 (asm_language_data): Delete la_get_compile_instance initializer.
3684 (minimal_language_data): Likewise.
3685 * c-lang.h (c_get_compile_context): Update comment.
3686 (cplus_get_compile_context): Update comment.
3687 * compile/compile.c (compile_to_object): Update calls, don't rely
3688 on function pointer being NULL.
3689 * d-lang.c (d_language_data): Delete la_get_compile_instance
3690 initializer.
3691 * f-lang.c (f_language_data): Likewise.
3692 * go-lang.c (go_language_data): Likewise.
3693 * language.c (unknown_language_data): Likewise.
3694 (auto_language_data): Likewise.
3695 * language.h (language_data): Delete la_get_compile_instance field.
3696 (language_defn::get_compile_instance): New member function.
3697 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3698 initializer.
3699 * objc-lang.c (objc_language_data): Likewise.
3700 * opencl-lang.c (opencl_language_data): Likewise.
3701 * p-lang.c (pascal_language_data): Likewise.
3702 * rust-lang.c (rust_language_data): Likewise.
3703
4009ee92
AB
37042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * ada-lang.c (ada_add_all_symbols): Update comment.
3707 (ada_iterate_over_symbols): Delete, move implementation to...
3708 (ada_language::iterate_over_symbols): ...here, a new member
3709 function, rewrite to use range based for loop.
3710 (ada_language_data): Delete la_iterate_over_symbols initializer.
3711 * c-lang.c (c_language_data): Likewise.
3712 (cplus_language_data): Likewise.
3713 (asm_language_data): Likewise.
3714 (minimal_language_data): Likewise.
3715 * d-lang.c (d_language_data): Likewise.
3716 * f-lang.c (f_language_data): Likewise.
3717 * go-lang.c (go_language_data): Likewise.
3718 * language.c (unknown_language_data): Likewise.
3719 (auto_language_data): Likewise.
3720 * language.h (language_data): Delete la_iterate_over_symbols field.
3721 (language_defn::iterate_over_symbols): New member function.
3722 (LA_ITERATE_OVER_SYMBOLS): Update.
3723 * linespec.c (iterate_over_all_matching_symtabs): Update.
3724 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3725 initializer.
3726 * objc-lang.c (objc_language_data): Likewise.
3727 * opencl-lang.c (opencl_language_data): Likewise.
3728 * p-lang.c (pascal_language_data): Likewise.
3729 * rust-lang.c (rust_language_data): Likewise.
3730
54f4ca46
AB
37312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_language_data): Delete
3734 la_lookup_transparent_type initializer.
3735 * c-lang.c (c_language_data): Likewise.
3736 (cplus_language_data): Likewise.
3737 (cplus_language::lookup_transparent_type): New member function.
3738 (asm_language_data): Delete la_lookup_transparent_type
3739 initializer.
3740 (minimal_language_data): Likewise.
3741 * d-lang.c (d_language_data): Likewise.
3742 * f-lang.c (f_language_data): Likewise.
3743 * go-lang.c (go_language_data): Likewise.
3744 * language.c (unknown_language_data): Likewise.
3745 (auto_language_data): Likewise.
3746 * language.h (struct language_data): Delete
3747 la_lookup_transparent_type field.
3748 (language_defn::lookup_transparent_type): New member function.
3749 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3750 initializer.
3751 * objc-lang.c (objc_language_data): Likewise.
3752 * opencl-lang.c (opencl_language_data): Likewise.
3753 * p-lang.c (pascal_language_data): Likewise.
3754 * rust-lang.c (rust_language_data): Likewise.
3755 * symtab.c (symbol_matches_domain): Update call.
3756
1fb314aa
AB
37572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * ada-lang.c (ada_language_arch_info): Delete function, move
3760 implementation to...
3761 (ada_language::language_arch_info): ...here, a new member
3762 function.
3763 (ada_language_data): Delete la_language_arch_info.
3764 * c-lang.c (c_language_data): Likewise.
3765 (c_language::language_arch_info): New member function.
3766 (cplus_language_arch_info): Delete function, move
3767 implementation to...
3768 (cplus_language::language_arch_info): ...here, a new member
3769 function.
3770 (cplus_language_data): Delete la_language_arch_info.
3771 (asm_language_data): Likewise.
3772 (asm_language::language_arch_info): New member function.
3773 (minimal_language_data): Delete la_language_arch_info.
3774 (minimal_language::language_arch_info): New member function.
3775 * d-lang.c (d_language_arch_info): Delete function, move
3776 implementation to...
3777 (d_language::language_arch_info): ...here, a new member
3778 function.
3779 (d_language_data): Delete la_language_arch_info.
3780 * f-lang.c (f_language_arch_info): Delete function, move
3781 implementation to...
3782 (f_language::language_arch_info): ...here, a new member
3783 function.
3784 (f_language_data): Delete la_language_arch_info.
3785 * go-lang.c (go_language_arch_info): Delete function, move
3786 implementation to...
3787 (go_language::language_arch_info): ...here, a new member
3788 function.
3789 (go_language_data): Delete la_language_arch_info.
3790 * language.c (unknown_language_data): Likewise.
3791 (unknown_language::language_arch_info): New member function.
3792 (auto_language_data): Delete la_language_arch_info.
3793 (auto_language::language_arch_info): New member function.
3794 (language_gdbarch_post_init): Update call to
3795 la_language_arch_info.
3796 * language.h (language_data): Delete la_language_arch_info
3797 function pointer.
3798 (language_defn::language_arch_info): New function.
3799 * m2-lang.c (m2_language_arch_info): Delete function, move
3800 implementation to...
3801 (m2_language::language_arch_info): ...here, a new member
3802 function.
3803 (m2_language_data): Delete la_language_arch_info.
3804 * objc-lang.c (objc_language_arch_info): Delete function, move
3805 implementation to...
3806 (objc_language::language_arch_info): ...here, a new member
3807 function.
3808 (objc_language_data): Delete la_language_arch_info.
3809 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3810 implementation to...
3811 (opencl_language::language_arch_info): ...here, a new member
3812 function.
3813 (opencl_language_data): Delete la_language_arch_info.
3814 * p-lang.c (pascal_language_arch_info): Delete function, move
3815 implementation to...
3816 (pascal_language::language_arch_info): ...here, a new member
3817 function.
3818 (pascal_language_data): Delete la_language_arch_info.
3819 * rust-lang.c (rust_language_arch_info): Delete function, move
3820 implementation to...
3821 (rust_language::language_arch_info): ...here, a new member
3822 function.
3823 (rust_language_data): Delete la_language_arch_info.
3824
48448202
AB
38252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3828 initializer.
3829 * c-lang.c (c_language_data): Likewise.
3830 (cplus_language_data): Likewise.
3831 (cplus_language::pass_by_reference_info): New method.
3832 (asm_language_data): Delete la_pass_by_reference initializer.
3833 (minimal_language_data): Likewise.
3834 * cp-abi.c (cp_pass_by_reference): Remove use of
3835 default_pass_by_reference.
3836 * d-lang.c (d_language_data): Likewise.
3837 * f-lang.c (f_language_data): Likewise.
3838 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3839 default_pass_by_reference.
3840 * go-lang.c (go_language_data): Likewise.
3841 * language.c (language_pass_by_reference): Update.
3842 (default_pass_by_reference): Delete.
3843 (unknown_language_data): Delete la_pass_by_reference
3844 initializer.
3845 (auto_language_data): Likewise.
3846 * language.h (struct language_data): Delete la_pass_by_reference
3847 field.
3848 (language_defn::pass_by_reference_info): New member function.
3849 (default_pass_by_reference): Delete declaration.
3850 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3851 initializer.
3852 * objc-lang.c (objc_language_data): Likewise.
3853 * opencl-lang.c (opencl_language_data): Likewise.
3854 * p-lang.c (pascal_language_data): Likewise.
3855 * rust-lang.c (rust_language_data): Likewise.
3856
15e5fd35
AB
38572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_read_var_value): Delete function, move
3860 implementation to...
3861 (ada_language::read_var_value): ...here.
3862 (ada_language_data): Delete la_read_var_value initializer.
3863 * c-lang.c (c_language_data): Likewise.
3864 (cplus_language_data): Likewise.
3865 (minimal_language_data): Likewise.
3866 * d-lang.c (d_language_data): Likewise.
3867 * f-lang.c (f_language_data): Likewise.
3868 * findvar.c (default_read_var_value): Rename to...
3869 (language_defn::read_var_value): ...this.
3870 * findvar.c (read_var_value): Update header comment, and change to
3871 call member function instead of function pointer.
3872 * go-lang.c (go_language_data): Likewise.
3873 * language.c (unknown_language_data): Delete la_read_var_value
3874 initializer.
3875 (auto_language_data): Likewise.
3876 * language.h (struct language_data): Delete la_read_var_value
3877 field.
3878 (language_defn::read_var_value): New member function.
3879 (default_read_var_value): Delete declaration.
3880 * m2-lang.c (m2_language_data): Delete la_read_var_value
3881 initializer.
3882 * objc-lang.c (objc_language_data): Likewise.
3883 * opencl-lang.c (opencl_language_data): Likewise.
3884 * p-lang.c (pascal_language_data): Likewise.
3885 * rust-lang.c (rust_language_data): Likewise.
3886 * value.h (default_read_var_value): Delete declaration.
3887
5bd40f2a
AB
38882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3889
3890 * ada-lang.c (ada_print_array_index): Delete function, move
3891 implementation to...
3892 (ada_language::print_array_index): ...here.
3893 (ada_language_data): Delete la_print_array_index initializer.
3894 * c-lang.c (c_language_data): Likewise.
3895 (cplus_language_data): Likewise.
3896 (minimal_language_data): Likewise.
3897 * d-lang.c (d_language_data): Likewise.
3898 * f-lang.c (f_language_data): Likewise.
3899 * go-lang.c (go_language_data): Likewise.
3900 * language.c (default_print_array_index): Delete function, move
3901 implementation to...
3902 (language_defn::print_array_index): ...here.
3903 (unknown_language_data): Delete la_print_array_index initializer.
3904 (auto_language_data): Likewise.
3905 * language.h (struct language_data): Delete la_print_array_index
3906 field.
3907 (language_defn::print_array_index): New member function.
3908 (LA_PRINT_ARRAY_INDEX): Update.
3909 (default_print_array_index): Delete declaration.
3910 * m2-lang.c (m2_language_data): Delete la_print_array_index
3911 initializer.
3912 * objc-lang.c (objc_language_data): Likewise.
3913 * opencl-lang.c (opencl_language_data): Likewise.
3914 * p-lang.c (pascal_language_data): Likewise.
3915 * rust-lang.c (rust_language_data): Likewise.
3916
0874fd07
AB
39172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * gdb/ada-lang.c (ada_language_defn): Convert to...
3920 (ada_language_data): ...this.
3921 (class ada_language): New class.
3922 (ada_language_defn): New static global.
3923 * gdb/c-lang.c (c_language_defn): Convert to...
3924 (c_language_data): ...this.
3925 (class c_language): New class.
3926 (c_language_defn): New static global.
3927 (cplus_language_defn): Convert to...
3928 (cplus_language_data): ...this.
3929 (class cplus_language): New class.
3930 (cplus_language_defn): New static global.
3931 (asm_language_defn): Convert to...
3932 (asm_language_data): ...this.
3933 (class asm_language): New class.
3934 (asm_language_defn): New static global.
3935 (minimal_language_defn): Convert to...
3936 (minimal_language_data): ...this.
3937 (class minimal_language): New class.
3938 (minimal_language_defn): New static global.
3939 * gdb/d-lang.c (d_language_defn): Convert to...
3940 (d_language_data): ...this.
3941 (class d_language): New class.
3942 (d_language_defn): New static global.
3943 * gdb/f-lang.c (f_language_defn): Convert to...
3944 (f_language_data): ...this.
3945 (class f_language): New class.
3946 (f_language_defn): New static global.
3947 * gdb/go-lang.c (go_language_defn): Convert to...
3948 (go_language_data): ...this.
3949 (class go_language): New class.
3950 (go_language_defn): New static global.
3951 * gdb/language.c (unknown_language_defn): Remove declaration.
3952 (current_language): Initialize to nullptr, real initialization is
3953 moved to _initialize_language.
3954 (languages): Delete global.
3955 (language_defn::languages): Define.
3956 (set_language_command): Use language_defn::languages.
3957 (set_language): Likewise.
3958 (range_error): Likewise.
3959 (language_enum): Likewise.
3960 (language_def): Likewise.
3961 (add_set_language_command): Use language_def::languages for the
3962 language list, and language_def to lookup language pointers.
3963 (skip_language_trampoline): Use language_defn::languages.
3964 (unknown_language_defn): Convert to...
3965 (unknown_language_data): ...this.
3966 (class unknown_language): New class.
3967 (unknown_language_defn): New static global.
3968 (auto_language_defn): Convert to...
3969 (auto_language_data): ...this.
3970 (class auto_language): New class.
3971 (auto_language_defn): New static global.
3972 (language_gdbarch_post_init): Use language_defn::languages.
3973 (_initialize_language): Initialize current_language.
3974 * gdb/language.h (struct language_defn): Rename to...
3975 (struct language_data): ...this.
3976 (struct language_defn): New.
3977 (auto_language_defn): Delete.
3978 (unknown_language_defn): Delete.
3979 (minimal_language_defn): Delete.
3980 (ada_language_defn): Delete.
3981 (asm_language_defn): Delete.
3982 (c_language_defn): Delete.
3983 (cplus_language_defn): Delete.
3984 (d_language_defn): Delete.
3985 (f_language_defn): Delete.
3986 (go_language_defn): Delete.
3987 (m2_language_defn): Delete.
3988 (objc_language_defn): Delete.
3989 (opencl_language_defn): Delete.
3990 (pascal_language_defn): Delete.
3991 (rust_language_defn): Delete.
3992 * gdb/m2-lang.c (m2_language_defn): Convert to...
3993 (m2_language_data): ...this.
3994 (class m2_language): New class.
3995 (m2_language_defn): New static global.
3996 * gdb/objc-lang.c (objc_language_defn): Convert to...
3997 (objc_language_data): ...this.
3998 (class objc_language): New class.
3999 (objc_language_defn): New static global.
4000 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4001 (opencl_language_data): ...this.
4002 (class opencl_language): New class.
4003 (opencl_language_defn): New static global.
4004 * gdb/p-lang.c (pascal_language_defn): Convert to...
4005 (pascal_language_data): ...this.
4006 (class pascal_language): New class.
4007 (pascal_language_defn): New static global.
4008 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4009 language pointer, update comment format.
4010 * gdb/rust-lang.c (rust_language_defn): Convert to...
4011 (rust_language_data): ...this.
4012 (class rust_language): New class.
4013 (rust_language_defn): New static global.
4014
1313c56e
AB
40152020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4016
4017 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4018 member variable.
4019 <m_stmt_at_address>: New member variable.
4020 (lnp_state_machine::record_line): Don't record some lines, update
4021 tracking of is_stmt at the same address.
4022 (lnp_state_machine::lnp_state_machine): Initialise new member
4023 variables.
4024
b7ed9f3d
ST
40252020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4026
4027 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4028 "-include gnu-nat-mig.h".
4029 * gnu-nat-mig.h: New file.
4030 * gnu-nat.c: Include "gnu-nat-mig.h".
4031 (exc_server, msg_reply_server, notify_server,
4032 process_reply_server): Remove declarations.
4033
14a8ad62
ST
40342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4035
4036 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4037 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4038 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4039 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4040 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4041 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4042 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4043 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4044 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4045 to gnu_nat_target class.
4046 * gnu-nat.c: Likewise.
4047 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4048 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4049 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4050 object.
4051 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4052 instead of `gnu_target'.
4053
0af5e106
ST
40542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4055
4056 * i386-gnu-tdep.c: Include "gdbcore.h"
4057 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4058 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4059 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4060 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4061 i386_gnu_sigcontext_addr): New functions
4062 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4063 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4064 tdep.
4065
078f2fc9
ST
40662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4067
4068 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4069 before fork_inferior call. Avoid calling it if target_is_pushed returns
4070 true.
4071
53dff92c
ST
40722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4073
4074 * gnu-nat.h (gnu_target): New variable declaration.
4075 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4076 gnu_target.
4077 * gnu-nat.c (gnu_target): New variable.
4078 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4079 add_thread_silent, and add_thread calls.
4080 (gnu_nat_target::create_inferior): Pass gnu_target to
4081 add_thread_silent, thread_change_ptid call.
4082 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4083 call.
4084
5a8b8627
ST
40852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4086
4087 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4088 (gnu_nat_target::find_memory_regions): Remove unused
4089 `old_address' variable.
4090
366f550a
ST
40912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4092
4093 * gnu-nat.c: Include "gdbarch.h".
4094
f14871bf
ST
40952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4096
4097 * reply_mig_hack.awk (Error return): Cast function through
4098 void *, to bypass compiler function call check.
4099
c6887cfb
ST
41002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4101
4102 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4103 $(srcdir)/reply_mig_hack.awk.
4104
6930bffe
ST
41052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4106
4107 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4108
112c22ed
JG
41092020-05-30 Jonny Grant <jg@jguk.org>
4110
4111 * configure.ac (ACX_BUGURL): change bug URL to https.
4112
f68f85b5
PA
41132020-05-30 Pedro Alves <palves@redhat.com>
4114
4115 * cp-support.c (replace_typedefs_template): New.
4116 (replace_typedefs_qualified_name): Handle
4117 DEMANGLE_COMPONENT_TEMPLATE.
4118
976ca316
SM
41192020-05-29 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4122 dwarf2/index-cache.h, dwarf2/index-write.c,
4123 dwarf2/index-write.h, dwarf2/line-header.c,
4124 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4125 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4126 variables and fields from `dwarf2_per_objfile` to just
4127 `per_objfile` throughout.
4128
989ade05
SM
41292020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4130
4131 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4132 <push_dwarf_reg_entry_value>: Add comment.
4133
c47bae85
KB
41342020-05-28 Kevin Buettner <kevinb@redhat.com>
4135 Keith Seitz <keiths@redhat.com>
4136
4137 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4138 instead of PyEval_ReleaseLock.
4139 (class gdbpy_gil): Move to earlier in file.
4140 (finalize_python): Set gdb_python_initialized.
4141 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4142 when not initialized.
4143
44486dcf
SM
41442020-05-28 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4147 <push_dwarf_reg_entry_value>: Remove assert. Override
4148 per_objfile with caller_per_objfile.
4149
f030440d
TV
41502020-05-28 Tom de Vries <tdevries@suse.de>
4151
4152 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4153 PR gold/15646 workaround to symbol kind "type".
4154
f0fbb768
TT
41552020-05-27 Tom Tromey <tromey@adacore.com>
4156
4157 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4158
af0b2a3e
TT
41592020-05-27 Tom Tromey <tromey@adacore.com>
4160
4161 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4162 Use htab_find_with_hash.
4163 <add_abbrev>: Remove "abbrev_number" parameter.
4164 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4165 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4166 (hash_abbrev): Add comment.
4167 (abbrev_table::lookup_abbrev): Move to header file.
4168 (abbrev_table::read): Update.
4169
7d00ffec
TT
41702020-05-27 Tom Tromey <tromey@adacore.com>
4171
4172 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4173 method.
4174 <canonical_name>: New member.
4175 <raw_name>: Rename from "name".
4176 (partial_die_info): Initialize canonical_name.
4177 (scan_partial_symbols): Check raw_name.
4178 (partial_die_parent_scope, partial_die_full_name)
4179 (add_partial_symbol, add_partial_subprogram)
4180 (add_partial_enumeration, load_partial_dies): Use "name" method.
4181 (partial_die_info::name): New method.
4182 (partial_die_info::read, guess_partial_die_structure_name)
4183 (partial_die_info::fixup): Update.
4184
697bba18
TT
41852020-05-27 Tom Tromey <tromey@adacore.com>
4186
4187 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4188 <get_ref_die_offset>: Inline.
4189 <get_ref_die_offset_complaint>: New method.
4190 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4191 (attribute::get_ref_die_offset_complaint): Rename from
4192 get_ref_die_offset. Just issue complaint.
4193
c17ace43
HD
41942020-05-27 Hannes Domani <ssbssa@yahoo.de>
4195
4196 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4197
96445f0b
HD
41982020-05-27 Hannes Domani <ssbssa@yahoo.de>
4199
4200 * exec.c (exec_file_attach): Use errno value of first openp failure.
4201
ac637ec3
HD
42022020-05-27 Hannes Domani <ssbssa@yahoo.de>
4203
4204 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4205 Don't close thread handle.
4206
17ee85fc
TT
42072020-05-27 Tom Tromey <tom@tromey.com>
4208 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4211 shared_ptr.
4212 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4213 member.
4214 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4215 dwarf2_per_bfd_objfile_data_key>: New globals.
4216 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4217 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4218 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4219 shared.
4220 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4221 short-circuit when sharing.
4222 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4223 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4224
39b16f87
SM
42252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4228 to...
4229 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4230 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4231
fcf23d5b
SM
42322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4235 build_name_components, find_name_components_bounds>:
4236 Add per_objfile parameter.
4237 (struct mapped_index) <symbol_name_at>: Likewise.
4238 (struct mapped_debug_names): Remove constructor.
4239 <dwarf2_per_objfile>: Remove field.
4240 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4241 (mapped_index_base::find_name_components_bounds,
4242 mapped_index_base::build_name_components,
4243 dw2_expand_symtabs_matching_symbol): Likewise.
4244 (class mock_mapped_index) <symbol_name_at>: Likewise.
4245 (check_match): Likewise.
4246 (check_find_bounds_finds): Likewise.
4247 (test_mapped_index_find_name_component_bounds): Update.
4248 (CHECK_MATCH): Update.
4249 (dw2_expand_symtabs_matching): Update.
4250 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4251 per_objfile parameter.
4252 <find_vec_in_debug_names>: Likewise.
4253 <m_per_objfile>: New field.
4254 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4255 parameter.
4256 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4257 (dw2_debug_names_iterator::next): Update.
4258 (dw2_debug_names_lookup_symbol): Update.
4259 (dw2_debug_names_expand_symtabs_for_function): Update.
4260 (dw2_debug_names_map_matching_symbols): Update.
4261 (dw2_debug_names_expand_symtabs_matching): Update.
4262 (dwarf2_read_debug_names): Update.
4263
7188ed02
SM
42642020-05-27 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4267 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4268 move to dwarf2_per_objfile.
4269 <read_in_chain>: Remove.
4270 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4271 remove_all_cus, age_comp_units>: New methods.
4272 <m_dwarf2_cus>: New member.
4273 (struct dwarf2_per_cu_data) <cu>: Remove.
4274 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4275 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4276 moved to methods of dwarf2_per_objfile.
4277 (dwarf2_clear_marks): Remove.
4278 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4279 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4280 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4281 (dwarf2_per_objfile::remove_all_cus): New.
4282 (class free_cached_comp_units) <~free_cached_comp_units>:
4283 Update.
4284 (load_cu): Update.
4285 (dw2_do_instantiate_symtab): Adjust.
4286 (fill_in_sig_entry_from_dwo_entry): Adjust.
4287 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4288 (cutu_reader::cutu_reader): Likewise.
4289 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4290 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4291 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4292 and dwarf2_per_objfile::age_comp_units.
4293 (load_partial_comp_unit): Update.
4294 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4295 (process_queue): Likewise.
4296 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4297 backlink.
4298 (dwarf2_read_addr_index): Likewise.
4299 (follow_die_offset): Likewise.
4300 (dwarf2_fetch_die_loc_sect_off): Likewise.
4301 (dwarf2_fetch_constant_bytes): Likewise.
4302 (dwarf2_fetch_die_type_sect_off): Likewise.
4303 (follow_die_sig_1): Likewise.
4304 (load_full_type_unit): Likewise.
4305 (read_signatured_type): Likewise.
4306 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4307 (dwarf2_cu::~dwarf2_cu): Remove.
4308 (dwarf2_per_objfile::get_cu): New.
4309 (dwarf2_per_objfile::set_cu): New.
4310 (age_cached_comp_units): Rename to...
4311 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4312 to std::unordered_map.
4313 (free_one_cached_comp_unit): Rename to...
4314 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4315 to std::unordered_map.
4316 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4317 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4318 a dwarf2_per_objfile in data.
4319 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4320 (dwarf2_clear_marks): Remove.
4321
2e671100
SM
43222020-05-27 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4325 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4326 (init_tu_and_read_dwo_dies): Likewise.
4327 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4328 (cutu_reader::cutu_reader): Likewise.
4329 (load_partial_comp_unit): Likewise.
4330 (process_psymtab_comp_unit): Update.
4331 (build_type_psymtabs_1): Update.
4332 (process_skeletonless_type_unit): Update.
4333 (load_full_comp_unit): Update.
4334 (find_partial_die): Update.
4335 (dwarf2_read_addr_index): Update.
4336 (read_signatured_type): Update.
4337
2e6a9f79
SM
43382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4341 m_header_read_in>: New fields.
4342 <get_header>: New method.
4343 * dwarf2/read.c (per_cu_header_read_in): Remove.
4344 (dwarf2_per_cu_data::get_header): New.
4345 (dwarf2_per_cu_data::addr_size): Update.
4346 (dwarf2_per_cu_data::offset_size): Update.
4347 (dwarf2_per_cu_data::ref_addr_size): Update.
4348
1b555f17
SM
43492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4352 (dw2_do_instantiate_symtab): Update.
4353 (queue_and_load_all_dwo_tus): Change parameter from
4354 dwarf2_per_cu_data to dwarf2_cu.
4355 (dwarf2_fetch_die_loc_sect_off): Update.
4356 (dwarf2_fetch_constant_bytes): Update.
4357 (dwarf2_fetch_die_type_sect_off): Update.
4358
8fc0b21d
SM
43592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * dwarf2/read.c (process_full_comp_unit,
4362 process_full_type_unit): Remove per_cu, per_objfile paramters.
4363 Add dwarf2_cu parameter.
4364 (process_queue): Update.
4365
168c9250
SM
43662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * dwarf2/read.c (create_cu_from_index_list): Replace
4369 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4370 (create_cus_from_index_list): Likewise.
4371 (create_cus_from_index): Likewise.
4372 (create_signatured_type_table_from_index): Likewise.
4373 (create_cus_from_debug_names_list): Likewise.
4374 (create_cus_from_debug_names): Likewise.
4375 (dwarf2_read_gdb_index): Update.
4376 (dwarf2_read_debug_names): Update.
4377
e286671b
TT
43782020-05-27 Tom Tromey <tom@tromey.com>
4379 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * dwarf2/read.h (struct dwarf2_per_objfile)
4382 <get_type_for_signatured_type, set_type_for_signatured_type>:
4383 New methods.
4384 <m_type_map>: New member.
4385 (struct signatured_type) <type>: Remove.
4386 * dwarf2/read.c
4387 (dwarf2_per_objfile::get_type_for_signatured_type,
4388 dwarf2_per_objfile::set_type_for_signatured_type): New.
4389 (get_signatured_type): Use new methods.
4390
8adb8487
TT
43912020-05-27 Tom Tromey <tom@tromey.com>
4392 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4395 (struct dwarf2_per_objfile) <type_units>: New member.
4396 <get_type_unit_group_unshareable>: New method.
4397 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4398 num_symtabs, symtabs>: Remove; move to
4399 type_unit_group_unshareable.
4400 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4401 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4402 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4403
127bbf4b
SM
44042020-05-27 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * dwarf2/read.h (struct dwarf2_per_cu_data):
4407 <dwarf2_per_objfile>: Remove.
4408 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4409 dwarf2_per_objfile.
4410 (create_signatured_type_table_from_index): Likewise.
4411 (create_signatured_type_table_from_debug_names): Likewise.
4412 (create_debug_type_hash_table): Likewise.
4413 (fill_in_sig_entry_from_dwo_entry): Likewise.
4414 (create_type_unit_group): Likewise.
4415 (read_comp_units_from_section): Likewise.
4416 (create_cus_hash_table): Likewise.
4417
f6e649dd
SM
44182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4421 dwarf2_per_cu_data::dwarf2_per_objfile.
4422 (compute_compunit_symtab_includes): Likewise.
4423 (dwarf2_cu::start_symtab): Likewise.
4424
aa66c379
SM
44252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4426
4427 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4428 parameter.
4429 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4430 (read_namespace_alias): Update.
4431 (lookup_die_type): Update.
4432 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4433 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4434 Update.
4435 (disassemble_dwarf_expression): Update.
4436
120ce1b5
SM
44372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/read.h (struct dwarf2_queue_item): Add
4440 dwarf2_per_objfile parameter, assign new parameter.
4441 <per_objfile>: New field.
4442 * dwarf2/read.c (free_one_cached_comp_unit): Add
4443 dwarf2_per_objfile parameter.
4444 (queue_comp_unit): Likewise.
4445 (dw2_do_instantiate_symtab): Update.
4446 (process_psymtab_comp_unit): Update.
4447 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4448 (process_imported_unit_die): Update.
4449 (queue_and_load_dwo_tu): Update.
4450 (follow_die_offset): Update.
4451 (follow_die_sig_1): Update.
4452
9f47c707
SM
44532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4456 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4457 (read_call_site_scope): Assign per_objfile.
4458 (dwarf2_per_cu_data::objfile): Remove.
4459 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4460 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4461 dwarf2_per_objfile parameter.
4462 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4463 dwarf2_per_objfile parameter.
4464 (dwarf_expr_reg_to_entry_parameter): Add output
4465 dwarf2_per_objfile parameter.
4466 (locexpr_get_frame_base): Update.
4467 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4468 <push_dwarf_reg_entry_value>: Update.
4469 <call_site_to_target_addr>: Update.
4470 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4471 parameter.
4472 (value_of_dwarf_reg_entry): Update.
4473 (rw_pieced_value): Update.
4474 (indirect_synthetic_pointer): Update.
4475 (dwarf2_evaluate_property): Update.
4476 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4477 parameter.
4478 (locexpr_read_variable): Update.
4479 (locexpr_get_symbol_read_needs): Update.
4480 (loclist_read_variable): Update.
4481
14095eb3
SM
44822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4485 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4486 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4487 parameter.
4488 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4489 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4490 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4491 parameter.
4492 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4493 sect_variable_value): Add dwarf2_per_objfile parameter.
4494 (class dwarf_evaluate_loc_desc) <dwarf_call,
4495 dwarf_variable_value>: Update.
4496 (fetch_const_value_from_synthetic_pointer): Add
4497 dwarf2_per_objfile parameter.
4498 (fetch_const_value_from_synthetic_pointer): Update.
4499 (coerced_pieced_ref): Update.
4500 (class symbol_needs_eval_context) <dwarf_call,
4501 dwarf_variable_value>: Update.
4502 (dwarf2_compile_expr_to_ax): Update.
4503
3c3cd3d4
SM
45042020-05-27 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4507 parameter.
4508 (dwarf2_evaluate_loc_desc_full): Update.
4509
82ca3f51
SM
45102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4513 parameter.
4514 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4515 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4516 dwarf2_per_objfile parameter.
4517 (decode_debug_loc_dwo_addresses): Likewise.
4518 (dwarf2_find_location_expression): Update.
4519 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4520 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4521 parameter.
4522 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4523 parameter.
4524 (locexpr_describe_location_1): Likewise.
4525 (locexpr_describe_location): Update.
4526
4b167ea1
SM
45272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4530 Remove.
4531 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4532 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4533 (dwarf2_compile_property_to_c): Update.
4534 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4535 use text offset from objfile.
4536 (locexpr_tracepoint_var_ref): Update.
4537 (locexpr_generate_c_location): Update.
4538 (loclist_describe_location): Update.
4539 (loclist_tracepoint_var_ref): Update.
4540 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4541 dwarf2_per_objfile parameter.
4542 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4543 use text offset from objfile.
4544 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4545
89b07335
SM
45462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4547
4548 * dwarf2/expr.h (struct dwarf_expr_context)
4549 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4550 <offset>: Remove.
4551 <per_objfile>: New member.
4552 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4553 dwarf2_per_objfile parameter. Don't set offset, set
4554 per_objfile.
4555 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4556 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4557 a dwarf2_per_objfile object instead of an offset.
4558 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4559 constructor.
4560 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4561 to dwarf2_expr_executor constructor. Don't set offset.
4562 (dwarf2_fetch_cfa_info): Update.
4563 (struct dwarf2_frame_cache) <text_offset>: Remove.
4564 <per_objfile>: New field.
4565 (dwarf2_frame_cache): Update.
4566 (dwarf2_frame_prev_register): Update.
4567 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4568 <dwarf_evaluate_loc_desc>: Add constructor.
4569 (dwarf2_evaluate_loc_desc_full): Update.
4570 (dwarf2_locexpr_baton_eval): Update.
4571 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4572 Add constructor.
4573 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4574
293e7e51
SM
45752020-05-27 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4578 addr_sized_int_type>: Move to dwarf2_cu.
4579 <int_type>: Move to dwarf2_per_objfile.
4580 (struct dwarf2_per_objfile) <int_type>: Move here.
4581 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4582 addr_sized_int_type>: Move here.
4583 (read_func_scope): Update.
4584 (read_array_type): Update.
4585 (read_tag_string_type): Update.
4586 (attr_to_dynamic_prop): Update.
4587 (dwarf2_per_cu_data::int_type): Rename to...
4588 (dwarf2_per_objfile::int_type): ... this.
4589 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4590 (dwarf2_cu::addr_sized_int_type): ... this.
4591 (read_subrange_type): Update.
4592 (dwarf2_per_cu_data::addr_type): Rename to...
4593 (dwarf2_cu::addr_type): ... this.
4594 (set_die_type): Update.
4595
64874a40
SM
45962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4599 data through per_cu->cu.
4600
4ab09049
SM
46012020-05-27 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4604 dwarf2_per_cu_data parameter fo dwarf2_cu.
4605 (lookup_dwo_type_unit): Likewise.
4606 (read_cutu_die_from_dwo): Likewise.
4607 (lookup_dwo_unit): Likewise.
4608 (open_and_init_dwo_file): Likewise.
4609 (lookup_dwo_cutu): Likewise.
4610 (lookup_dwo_comp_unit): Likewise.
4611 (lookup_dwo_type_unit): Likewise.
4612 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4613 (cutu_reader::cutu_reader): Update.
4614
47b14e86
SM
46152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4618 parameter.
4619 (process_full_type_unit): Likewise.
4620 (process_queue): Update.
4621
43182c09
SM
46222020-05-27 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * dwarf2/read.c (recursively_compute_inclusions): Add
4625 dwarf2_per_objfile parameter.
4626 (compute_compunit_symtab_includes): Likewise.
4627 (process_cu_includes): Update.
4628
7aa104c4
SM
46292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4632 parameter.
4633 (create_type_unit_group): Update.
4634 (process_psymtab_comp_unit_reader): Update.
4635 (build_type_psymtabs_reader): Update.
4636
e3beb21d
SM
46372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4640 object through m_this_cu->cu.
4641
d460f660
SM
46422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4643
4644 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4645 the info parameter.
4646 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4647
ab432490
SM
46482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4651 per_objfile parameter.
4652 (load_full_type_unit): Add per_objfile parameter.
4653 (read_signatured_type): Likewise.
4654 (load_full_comp_unit): Likewise.
4655 (load_cu): Likewise.
4656 (dw2_do_instantiate_symtab): Likewise.
4657 (dw2_get_file_names): Likewise.
4658 (dw2_map_symtabs_matching_filename): Update.
4659 (dw_expand_symtabs_matching_file_matcher): Update.
4660 (dw2_map_symbol_filenames): Update.
4661 (process_psymtab_comp_unit): Add per_objfile parameter.
4662 (build_type_psymtabs_1): Update.
4663 (process_skeletonless_type_unit): Update.
4664 (dwarf2_build_psymtabs_hard): Update.
4665 (load_partial_comp_unit): Add per_objfile parameter.
4666 (scan_partial_symbols): Update.
4667 (load_full_comp_unit): Add per_objfile parameter.
4668 (process_imported_unit_die): Update.
4669 (create_cus_hash_table): Update.
4670 (find_partial_die): Update.
4671 (dwarf2_read_addr_index): Update.
4672 (follow_die_offset): Update.
4673 (dwarf2_fetch_die_loc_sect_off): Update.
4674 (dwarf2_fetch_constant_bytes): Update.
4675 (dwarf2_fetch_die_type_sect_off): Update.
4676 (follow_die_sig_1): Update.
4677 (load_full_type_unit): Add per_objfile parameter.
4678 (read_signatured_type): Likewise.
4679
313bad1b
SM
46802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4683 of objfile_name.
4684
c3699833
SM
46852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4686
4687 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4688 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4689 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4690 field.
4691 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4692 (create_cus_from_index): Update.
4693 (dwarf2_read_gdb_index): Update.
4694 (create_cus_from_debug_names): Update.
4695 (dwarf2_read_debug_names): Update.
4696 (get_abbrev_section_for_cu): Update.
4697 (create_all_comp_units): Update.
4698 (read_attribute_value): Update.
4699 (get_debug_line_section): Update.
4700 * dwarf2/index-cache.c (index_cache::store): Update.
4701 * dwarf2/index-write.c (save_gdb_index_command): Update.
4702 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4703
1859c670
SM
47042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4707 member.
4708 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4709 dwarf2_per_cu_data::per_bfd.
4710 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4711 (create_type_unit_group): Likewise.
4712 (queue_comp_unit): Remove reference to
4713 per_cu->dwarf2_per_objfile.
4714 (maybe_queue_comp_unit): Likewise.
4715 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4716 (create_cus_hash_table): Assign new field.
4717
5e22e966
SM
47182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * dwarf2/read.c: Replace
4721 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4722 dwarf2_cu->per_objfile throughout.
4723
97a1449a
SM
47242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4727 parameter, don't use per_cu->dwarf2_per_objfile.
4728 (dw2_instantiate_symtab): Likewise.
4729 (dw2_find_last_source_symtab): Update.
4730 (dw2_map_expand_apply): Update.
4731 (dw2_lookup_symbol): Update.
4732 (dw2_expand_symtabs_for_function): Update.
4733 (dw2_expand_all_symtabs): Update.
4734 (dw2_expand_symtabs_with_fullname): Update.
4735 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4736 don't use per_cu->dwarf2_per_objfile.
4737 (dw2_expand_marked_cus): Update.
4738 (dw2_find_pc_sect_compunit_symtab): Update.
4739 (dw2_debug_names_lookup_symbol): Update.
4740 (dw2_debug_names_expand_symtabs_for_function): Update.
4741 (dw2_debug_names_map_matching_symbols): Update.
4742 (dwarf2_psymtab::expand_psymtab): Update.
4743
9e021579
SM
47442020-05-27 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4747 <per_objfile>: New member.
4748 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4749 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4750 call to dwarf2_cu.
4751 (cutu_reader::cutu_reader): Update.
4752 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4753
ae090bdb
SM
47542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4757 struct dwarf2_per_objfile.
4758 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4759 dwarf2_per_bfd.
4760 * dwarf2/read.c (set_die_type): Update.
4761 (get_die_type_at_offset): Update.
4762
af758d11
SM
47632020-05-27 Tom Tromey <tom@tromey.com>
4764 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4767 method.
4768 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4769 get_symtab, set_symtab>: New methods.
4770 <m_symtabs>: New field.
4771 (struct dwarf2_psymtab): Derive from partial_symtab.
4772 <readin_p, get_compunit_symtab>: Declare methods.
4773 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4774 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4775 New methods.
4776 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4777 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4778 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4779 (dw2_symtab_iter_next, dw2_print_stats)
4780 (dw2_expand_symtabs_with_fullname)
4781 (dw2_expand_symtabs_matching_one)
4782 (dw_expand_symtabs_matching_file_matcher)
4783 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4784 (dw2_debug_names_iterator::next)
4785 (dw2_debug_names_map_matching_symbols)
4786 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4787 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4788 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4789 New methods.
4790 (get_compunit_symtab, process_full_comp_unit)
4791 (process_full_type_unit): Update.
4792 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4793
5989a64e
SM
47942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4797 then introduce a new dwarf2_per_objfile type.
4798 <read_line_string>: Move to the new dwarf2_per_objfile type.
4799 <objfile>: Likewise.
4800 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4801 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4802 dwarf2_per_objfile->per_bfd.
4803 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4804 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4805 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4806 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4807 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4808 (dwarf2_per_objfile::locate_sections): Rename to...
4809 (dwarf2_per_bfd::locate_sections): ... this.
4810 (dwarf2_per_objfile::get_cutu): Rename to...
4811 (dwarf2_per_bfd::get_cutu): ... this.
4812 (dwarf2_per_objfile::get_cu): Rename to...
4813 (dwarf2_per_bfd::get_cu): ... this.
4814 (dwarf2_per_objfile::get_tu): Rename to...
4815 (dwarf2_per_bfd::get_tu): ... this.
4816 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4817 (dwarf2_per_bfd::allocate_per_cu): ... this.
4818 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4819 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4820 (get_gdb_index_contents_ftype): Change parameter from
4821 dwarf2_per_objfile to dwarf2_per_bfd.
4822 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4823 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4824
a50264ba
TT
48252020-05-27 Tom Tromey <tom@tromey.com>
4826 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4829 (allocate_piece_closure): Set "per_objfile" member.
4830 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4831 (locexpr_describe_location, loclist_describe_location): Use new
4832 member.
4833 * dwarf2/read.c (read_call_site_scope)
4834 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4835 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4836 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4837 handle_data_member_location): Set per_objfile member.
4838 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4839 member.
4840 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4841
d3473f0c
TT
48422020-05-27 Tom Tromey <tom@tromey.com>
4843
4844 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4845 allocate_signatured_type>: Declare new methods.
4846 <m_num_psymtabs>: New member.
4847 (struct dwarf2_per_cu_data) <index>: New member.
4848 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4849 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4850 (create_cu_from_index_list): Use allocate_per_cu.
4851 (create_signatured_type_table_from_index)
4852 (create_signatured_type_table_from_debug_names)
4853 (create_debug_type_hash_table, add_type_unit)
4854 (read_comp_units_from_section): Use allocate_signatured_type.
4855
5717c425
TT
48562020-05-27 Tom Tromey <tom@tromey.com>
4857
4858 * psymtab.c (partial_map_expand_apply)
4859 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4860 (psym_lookup_global_symbol_language)
4861 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4862 (psym_print_stats, psym_expand_symtabs_for_function)
4863 (psym_map_symbol_filenames, psym_map_matching_symbols)
4864 (psym_expand_symtabs_matching)
4865 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4866 (maintenance_check_psymtabs): Update.
4867 * psympriv.h (struct partial_symtab) <readin_p,
4868 get_compunit_symtab>: Add objfile parameter.
4869 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4870 Likewise.
4871 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4872 get_compunit_symtab>: Likewise.
4873 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4874
45940949
TT
48752020-05-27 Tom Tromey <tom@tromey.com>
4876
4877 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4878 member.
4879 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4880 (create_cu_from_index_list)
4881 (create_signatured_type_table_from_index)
4882 (create_signatured_type_table_from_debug_names)
4883 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4884 (dwarf2_create_include_psymtab)
4885 (create_debug_type_hash_table, add_type_unit)
4886 (create_type_unit_group, read_comp_units_from_section)
4887 (dwarf2_compute_name, create_cus_hash_table)
4888 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4889 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4890 obstack.
4891 (dw2_get_real_path): Likewise. Change argument to
4892 dwarf2_per_objfile.
4893
f8c6d152
LM
48942020-05-27 Luis Machado <luis.machado@linaro.org>
4895
4896 PR tdep/26000
4897 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4898 for ldrd (immediate).
4899
e98d2e6d
PW
49002020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4901
4902 * command.h: Add comment giving the name of class_tui.
4903 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4904 create the fake command for the help for class_tui.
4905
53a47a3e
TT
49062020-05-26 Tom Tromey <tromey@adacore.com>
4907
4908 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4909 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4910 (val_atr): New function.
4911 (value_val_atr): Use it.
4912 * ada-valprint.c (print_optional_low_bound): Change low bound
4913 handling for enums.
4914 (val_print_packed_array_elements): Don't call discrete_position.
4915 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4916 discrete_position for enum types.
4917 * language.c (default_print_array_index): Change type.
4918 * language.h (struct language_defn) <la_print_array_index>: Add
4919 index_type parameter, change type of index_value.
4920 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4921 (default_print_array_index): Update.
4922 * valprint.c (maybe_print_array_index): Don't call
4923 value_from_longest. Update.
4924 (value_print_array_elements): Don't call discrete_position.
4925
0bc2354b
TT
49262020-05-26 Tom Tromey <tromey@adacore.com>
4927
4928 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4929 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4930
1218a4bf
CDA
49312020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4932
4933 PR gdb/13519
4934 * avr-tdep.c (avr_integer_to_address): Return data or code
4935 address accordingly to the second 'type' argument of the
4936 function.
4937
92651b1d
MW
49382020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4939
4940 * infcmd.c, inferior.h: (construct_inferior_arguments):
4941 Moved function from here to gdbsupport/common-inferior.{h,cc}
4942
0a4f5f8c
TT
49432020-05-23 Tom Tromey <tom@tromey.com>
4944
4945 Revert commit eca1f90c:
4946 * NEWS: Remove entry for completion styling.
4947 * completer.c (_rl_completion_prefix_display_length): Move
4948 declaration later.
4949 (gdb_fnprint): Revert.
4950 (gdb_display_match_list_1): Likewise.
4951 * cli/cli-style.c (completion_prefix_style)
4952 (completion_difference_style, completion_suffix_style): Remove.
4953 (_initialize_cli_style): Revert.
4954 * cli/cli-style.h (completion_prefix_style)
4955 (completion_difference_style, completion_suffix_style): Don't
4956 declare.
4957
e08bd6c5
PA
49582020-05-24 Pedro Alves <palves@redhat.com>
4959
4960 * symtab.c (completion_list_add_name): Return boolean indication
4961 of whether the symbol matched.
4962 (completion_list_add_symbol): Don't try to remove C++ aliases if
4963 the symbol didn't match in the first place.
4964 * symtab.h (completion_list_add_name): Return bool.
4965
ceacbf6e
SM
49662020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4969 type::field.
4970
26f16254
JB
49712020-05-23 Joel Brobecker <brobecker@adacore.com>
4972
4973 GDB 9.2 released.
4974
eca1f90c
TT
49752020-05-23 Tom Tromey <tom@tromey.com>
4976
4977 * NEWS: Add entry for completion styling.
4978 * completer.c (_rl_completion_prefix_display_length): Move
4979 declaration earlier.
4980 (gdb_fnprint): Use completion_style.
4981 (gdb_display_match_list_1): Likewise.
4982 * cli/cli-style.c (completion_prefix_style)
4983 (completion_difference_style, completion_suffix_style): New
4984 globals.
4985 (_initialize_cli_style): Register new globals.
4986 * cli/cli-style.h (completion_prefix_style)
4987 (completion_difference_style, completion_suffix_style): Declare.
4988
51e2cfa2
PA
49892020-05-23 Pedro Alves <palves@redhat.com>
4990
4991 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4992 (parse_escape): Use ISDIGIT instead of isdigit.
4993 (puts_debug): Use gdb_isprint instead of isprint.
4994 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4995 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4996 ISSPACE instead of isspace.
4997 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4998 instead of isspace.
4999 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5000 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5001 instead of isxdigit and ISDIGIT instead of isdigit.
5002
80fc5e77
SM
50032020-05-22 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * gdbtypes.h (struct type) <field>: New method.
5006 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5007 or type::field.
5008
3cabb6b0
SM
50092020-05-22 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5012 (TYPE_FIELDS): Use type::fields. Change all call sites that
5013 modify the propery to use type::set_fields instead.
5014
1f704f76
SM
50152020-05-22 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5018 type::num_fields instead.
5019
5e33d5f4
SM
50202020-05-22 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5023 methods.
5024 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5025 that modify the number of fields to use type::set_num_fields
5026 instead.
5027
9392ebb3
TT
50282020-05-22 Tom Tromey <tromey@adacore.com>
5029
5030 * compile/compile-object-load.h (munmap_list_free): Don't
5031 declare.
5032
7c13f4e8
AB
50332020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5034
5035 * annotate.c (annotate_source_line): Update return type, add call
5036 to update current symtab and line.
5037 * annotate.h (annotate_source_line): Update return type, and
5038 extend header comment.
5039 * source.c (info_line_command): Check annotation_level before
5040 calling annotate_source_line.
5041 * stack.c (print_frame_info): If calling annotate_source_line
5042 returns true, then don't print any other source line information.
5043
aa370940
SM
50442020-05-21 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5047
84d53fa9
SM
50482020-05-21 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * coffread.c (patch_type): Remove NULL check before xfree.
5051 * corefile.c (set_gnutarget): Likewise.
5052 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5053 * exec.c (build_section_table): Likewise.
5054 * remote.c (remote_target::pass_signals): Likewise.
5055 * utils.c (n_spaces): Likewise.
5056 * cli/cli-script.c (document_command): Likewise.
5057 * i386-windows-tdep.c (core_process_module_section): Likewise.
5058 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5059
9d428aae
SM
50602020-05-20 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * symfile.c (reread_symbols): Clear objfile's section_offsets
5063 vector and section indices, re-compute them by calling
5064 sym_offsets.
5065
250106a7
TT
50662020-05-20 Tom Tromey <tromey@adacore.com>
5067
5068 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5069 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5070
9a0bacfb
TV
50712020-05-20 Tom de Vries <tdevries@suse.de>
5072
5073 PR symtab/25833
5074 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5075
7b958a48
AM
50762020-05-20 Alan Modra <amodra@gmail.com>
5077
5078 PR 25993
5079 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5080 bfd_set_filename.
5081 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5082 passed to bfd_set_filename.
5083 * symfile-mem.c (add_vsyscall_page): Likewise for string
5084 passed to symbol_file_add_from_memory.
5085 (symbol_file_add_from_memory): Make name param a const char* and
5086 don't strdup.
5087
c7e97679
AM
50882020-05-20 Alan Modra <amodra@gmail.com>
5089
5090 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5091 rather than accessing bfd->filename directly.
5092 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5093 and use bfd_section_name.
5094 * dwarf2/frame.c (decode_frame_entry): Likewise.
5095 * exec.c (exec_set_section_address): Likewise.
5096 * solib-aix.c (solib_aix_bfd_open): Likewise.
5097 * stap-probe.c (get_stap_base_address): Likewise.
5098 * symfile.c (reread_symbols): Likewise.
5099
563c591b
TT
51002020-05-19 Tom Tromey <tromey@adacore.com>
5101
5102 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5103
f408d82c
SM
51042020-05-19 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5107
98c59b52
PA
51082020-05-19 Pedro Alves <palves@redhat.com>
5109
5110 * NEWS (set exec-file-mismatch): Adjust entry.
5111 * exec.c: Include "build-id.h".
5112 (validate_exec_file): Try to match build IDs instead of filenames.
5113 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5114 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5115 and pass down 'warn_if_slow'.
5116 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5117 gdb_bfd_open_closure to pass it down.
5118 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5119
4111f652
PA
51202020-05-19 Pedro Alves <palves@redhat.com>
5121
5122 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5123 * target.c (target_fileio_open_1): Rename to target_fileio_open
5124 and make extern. Use bool.
5125 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5126 (target_fileio_read_alloc_1): Adjust.
5127 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5128 (target_fileio_open_warn_if_slow): Delete declaration.
5129
ad80db5b
PA
51302020-05-19 Pedro Alves <palves@redhat.com>
5131
5132 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5133 Adjust all callers.
5134
1d6ce4d3
YS
51352020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5136
5137 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5138 whether disp is negative.
5139
9005fbbb
SM
51402020-05-19 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * symfile.h (struct symfile_segment_data)
5143 <~symfile_segment_data>: Remove.
5144 <segment_info>: Change to std::vector.
5145 * symfile.c (default_symfile_segments): Update.
5146 * elfread.c (elf_symfile_segments): Update.
5147
68b888ff
SM
51482020-05-19 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5151 <segments>: New.
5152 <segment_bases, segment_sizes>: Remove.
5153 * symfile.c (default_symfile_segments): Update.
5154 * elfread.c (elf_symfile_segments): Update.
5155 * remote.c (remote_target::get_offsets): Update.
5156 * solib-target.c (solib_target_relocate_section_addresses):
5157 Update.
5158
62982abd
SM
51592020-05-19 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * symfile.h (struct symfile_segment_data): Initialize fields.
5162 <~symfile_segment_data>: Add.
5163 (symfile_segment_data_up): New.
5164 (struct sym_fns) <sym_segments>: Return a
5165 symfile_segment_data_up.
5166 (default_symfile_segments): Return a symfile_segment_data_up.
5167 (free_symfile_segment_data): Remove.
5168 (get_symfile_segment_data): Return a symfile_segment_data_up.
5169 * symfile.c (default_symfile_segments): Likewise.
5170 (get_symfile_segment_data): Likewise.
5171 (free_symfile_segment_data): Remove.
5172 (symfile_find_segment_sections): Update.
5173 * elfread.c (elf_symfile_segments): Return a
5174 symfile_segment_data_up.
5175 * remote.c (remote_target::get_offsets): Update.
5176 * solib-target.c (solib_target_relocate_section_addresses):
5177 Update.
5178 * symfile-debug.c (debug_sym_segments): Return a
5179 symfile_segment_data_up.
5180
7f204339
RO
51812020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5182
e52a0f1b
RO
5183 PR build/25981
5184 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5185 Hardcode register numbers.
5186
7f204339
RO
5187 PR build/25981
5188 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5189 procfs_find_LDT_entry): Remove.
5190 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5191 procfs_find_LDT_entry): Remove.
5192 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5193 Remove.
5194
7f32a4d5
PA
51952020-05-17 Pedro Alves <palves@redhat.com>
5196 Andrew Burgess <andrew.burgess@embecosm.com>
5197 Keno Fischer <keno@juliacomputing.com>
5198
5199 PR gdb/25741
5200 * breakpoint.c (build_target_condition_list): Update comments.
5201 (build_target_command_list): Update comments and skip matching
5202 locations.
5203 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5204 a separate function. Simplify "set breakpoint auto-hw off"
5205 handling.
5206 (insert_breakpoints): Update comment.
5207 (tracepoint_locations_match): New parameter. For breakpoints,
5208 compare location types too, if the caller wants to.
5209 (handle_automatic_hardware_breakpoints): New functions.
5210 (bp_location_is_less_than): Also sort by location type and
5211 hardware breakpoint length.
5212 (update_global_location_list): Handle "set breakpoint auto-hw on"
5213 here.
5214 (update_breakpoint_locations): Ask breakpoint_locations_match to
5215 ignore location types.
5216
7d93a1e0
SM
52172020-05-16 Simon Marchi <simon.marchi@efficios.com>
5218
5219 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5220 type::name instead.
5221
d0e39ea2
SM
52222020-05-16 Simon Marchi <simon.marchi@efficios.com>
5223
5224 * gdbtypes.h (struct type) <name, set_name>: New methods.
5225 (TYPE_CODE): Use type::name. Change all call sites used to set
5226 the name to use type::set_name instead.
5227
2dab0c7b
TT
52282020-05-16 Tom Tromey <tom@tromey.com>
5229
5230 * top.c (quit_force): Update.
5231 * infrun.c (handle_no_resumed): Update.
5232 * top.h (all_uis): New function.
5233 (ALL_UIS): Remove.
5234
59f7bd8d
SM
52352020-05-16 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5238
9bf058f0
PA
52392020-05-16 Pedro Alves <palves@redhat.com>
5240
5241 * ia64-linux-nat.c
5242 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5243 Declare method.
5244 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5245
8f86ae1a
SM
52462020-05-15 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5249 (sparc64_adi_info): Likewise.
5250
d6bc0792
TT
52512020-05-15 Tom Tromey <tom@tromey.com>
5252
5253 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5254 block_objfile.
5255 (lookup_objfile_from_block): Remove.
5256 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5257 (lookup_global_symbol): Use block_objfile.
5258 * symtab.h (lookup_objfile_from_block): Don't declare.
5259 * printcmd.c (clear_dangling_display_expressions): Use
5260 block_objfile.
5261 * parse.c (operator_check_standard): Use block_objfile.
5262
8c14c3a3
TT
52632020-05-15 Tom Tromey <tom@tromey.com>
5264
5265 * language.c (language_alloc_type_symbol): Set
5266 SYMBOL_SECTION.
5267 * symtab.c (initialize_objfile_symbol): Remove.
5268 (allocate_symbol): Remove.
5269 (allocate_template_symbol): Remove.
5270 * dwarf2/read.c (fixup_go_packaging): Use "new".
5271 (new_symbol): Use "new".
5272 (read_variable): Don't call initialize_objfile_symbol. Use
5273 "new".
5274 (read_func_scope): Use "new".
5275 * xcoffread.c (process_xcoff_symbol): Don't call
5276 initialize_objfile_symbol.
5277 (SYMBOL_DUP): Remove.
5278 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5279 "new".
5280 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5281 (allocate_template_symbol): Don't declare.
5282 (struct symbol): Add copy constructor. Change defaults.
5283 * jit.c (finalize_symtab): Use "new".
5284 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5285 Use "new".
5286 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5287 (common_block_end): Use "new".
5288 * mdebugread.c (parse_symbol): Use "new".
5289 (new_symbol): Likewise.
5290
5b4a1a8d
PW
52912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5292
5293 * NEWS: Mention changes to help and apropos.
5294
57b4f16e
PW
52952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5296
5297 * command.h (enum command_class): Improve comments, document
5298 that class_alias is for user-defined aliases, give the class
5299 name for each class, remove unused class_xdb.
5300 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5301 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5302 by a precise class.
5303 * infcmd.c (_initialize_infcmd): Likewise.
5304 * reverse.c (_initialize_reverse): Likewise.
5305 * stack.c (_initialize_stack): Likewise.
5306 * symfile.c (_initialize_symfile): Likewise.
5307 * tracepoint.c (_initialize_tracepoint): Likewise.
5308
7c05caf7
PW
53092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5310
5311 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5312 when their aliased command is traversed.
5313 (help_cmd): Add fput_command_names_styled call to
5314 output command name and aliases when command has an alias.
5315
3b3aaacb
PW
53162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5317
5318 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5319 * cli/cli-decode.c (help_cmd_list): Declare as static,
5320 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5321 a command together with the command.
5322 (fput_command_name_styled, fput_command_names_styled): New functions.
5323 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5324 fput_command_name_styled.
5325 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5326 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5327
7aa1b46f
PW
53282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5329
5330 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5331 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5332 * command.h (cmd_show_list): Likewise.
5333 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5334 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5335
89bcba74
PW
53362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5337
5338 * unittests/command-def-selftests.c (traverse_command_structure):
5339 Verify all commands of a list have the same prefix command and
5340 that only the top cmdlist commands have a null prefix.
5341
3f4d92eb
PW
53422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5343
5344 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5345 as prefix, not one of its aliases.
5346 (set_cmd_prefix): Remove.
5347 (do_add_cmd): Centralize the setting of the prefix of a command, when
5348 command is defined after its full chain of prefix commands.
5349 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5350 (add_setshow_cmd_full): Likewise.
5351 (update_prefix_field_of_prefixed_commands): New function.
5352 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5353 update_prefix_field_of_prefixed_commands.
5354 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5355 addresses of remote_set_cmdlist and remote_show_cmdlist given
5356 as argument, not the address of an argument.
5357 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5358 * gdb/remote.c (_initialize_remote): Likewise.
5359
0605465f
PW
53602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5361
5362 * cli/cli-cmds.c (alias_command): Check for an existing alias
5363 using lookup_cmd_composition, as valid_command_p is too strict
5364 and forbids aliases that are the prefix of an existing alias
5365 or command.
5366 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5367 command is properly recognised as a valid command.
5368
58e6ac70
PW
53692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5370
5371 * unittests/help-doc-selftests.c: Rename to
5372 unittests/command-def-selftests.c
5373 * unittests/command-def-selftests.c (help_doc_tests): Update some
5374 comments.
5375 (command_structure_tests, traverse_command_structure): New namespace
5376 and function.
5377 (command_structure_invariants_tests): New function.
5378 (_initialize_command_def_selftests) Renamed from
5379 _initialize_help_doc_selftests, register command_structure_invariants
5380 selftest.
5381
a7b9ceb8
PW
53822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5383
5384 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5385 an alias of 'show'.
5386
b2188a06
JB
53872020-05-15 Joel Brobecker <brobecker@adacore.com>
5388
5389 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5390 ada_is_fixed_point_type. Update all callers.
5391 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5392 all callers.
5393 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5394 Update all callers.
5395 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5396 print_fixed_point_type. Update all callers.
5397 * ada-valprint.c (ada_value_print_num): Replace call to
5398 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5399
a51951c2
KB
54002020-05-14 Kevin Buettner <kevinb@redhat.com>
5401
5402 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5403 processors.
5404 (cpu_supports_bts): Add CV_AMD case.
5405
29d6859f
LM
54062020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5407 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * infrun.c (stop_all_threads): Collect multiple wait events at
5410 each pass.
5411
78134374
SM
54122020-05-14 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5415 type::code instead.
5416
67607e24
SM
54172020-05-14 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * gdbtypes.h (struct type) <code, set_code>: New methods.
5420 (TYPE_CODE): Use type::code. Change all call sites used to set
5421 the code to use type::set_code instead.
5422
a05575d3
TBA
54232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5424 Tom de Vries <tdevries@suse.de>
5425 Pedro Alves <palves@redhat.com>
5426
5427 PR threads/25478
5428 * infrun.c (stop_all_threads): Do NOT ignore
5429 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5430 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5431 received.
5432 (handle_no_resumed): Remove code handling a live inferior with no
5433 threads.
5434 * remote.c (has_single_non_exited_thread): New.
5435 (remote_target::update_thread_list): Do not delete a thread if is
5436 the last thread of the process.
5437 * thread.c (thread_select): Call delete_exited_threads instead of
5438 prune_threads.
5439
6ad82919
TBA
54402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5441
5442 * infrun.c (stop_all_threads): Enable/disable thread events of all
5443 targets. Move a debug message denoting the end of the function
5444 into the SCOPED_EXIT block.
5445
d890404b
TBA
54462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5447
5448 * process-stratum-target.h: Include <set>.
5449 (all_non_exited_process_targets, switch_to_target_no_thread): New
5450 function declarations.
5451 * process-stratum-target.c (all_non_exited_process_targets)
5452 (switch_to_target_no_thread): New function implementations.
5453
293b3ebc
TBA
54542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5455
5456 * infrun.c (handle_inferior_event): Extract out a piece of code
5457 into...
5458 (mark_non_executing_threads): ...this new function.
5459
7ca9b62a
TBA
54602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5461
5462 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5463 use.
5464
fc75c28b
TBA
54652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5466
5467 * regcache.c (regcache_read_pc_protected): New function
5468 implementation that returns 0 if the PC cannot read via
5469 'regcache_read_pc'.
5470 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5471 instead of 'regcache_read_pc'.
5472 (keep_going_pass_signal): Ditto.
5473
a89febbd
TT
54742020-05-13 Tom Tromey <tromey@adacore.com>
5475
5476 * ada-lang.c (align_value): Remove.
5477 (ada_template_to_fixed_record_type_1): Use align_up.
5478
f7e23710
TBA
54792020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5480
5481 * async-event.c: Update the copyright year.
5482 * async-event.h: Update the copyright year.
5483
02ff80c2
SM
54842020-05-12 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * objfiles.h (is_addr_in_objfile,
5487 shared_objfile_contains_address_p): Return bool.
5488 * objfile.c (is_addr_in_objfile,
5489 shared_objfile_contains_address_p): Return bool.
5490
4fd6c7e8
TT
54912020-05-11 Tom Tromey <tromey@adacore.com>
5492
5493 * cli/cli-cmds.c (info_command): Restore.
5494 (_initialize_cli_cmds): Use add_prefix_command for "info".
5495 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5496
5eb68a39
TT
54972020-05-11 Tom Tromey <tromey@adacore.com>
5498
5499 * ada-lang.c (ada_value_primitive_field): Now public.
5500 * ada-lang.h (ada_value_primitive_field): Declare.
5501 * ada-valprint.c (print_field_values): Use
5502 ada_value_primitive_field for wrapper fields.
5503
7666722f
TV
55042020-05-11 Tom de Vries <tdevries@suse.de>
5505
5506 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5507 MODULE_DOMAIN.
5508
3ee6bb11
TV
55092020-05-11 Tom de Vries <tdevries@suse.de>
5510
5511 PR symtab/25941
5512 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5513 with length 0, if not gdb-produced.
5514 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5515
43434996
TV
55162020-05-09 Tom de Vries <tdevries@suse.de>
5517
5518 PR gdb/25955
5519 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5520 calculation.
5521
2f78cffc
TT
55222020-05-09 Tom Tromey <tom@tromey.com>
5523
5524 * top.c (server_command): Now bool.
5525 * top.h (server_command): Now bool.
5526
4f7bc5ed
TT
55272020-05-08 Tom Tromey <tromey@adacore.com>
5528
5529 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5530 already being processed.
5531
8be4b118
TT
55322020-05-08 Tom Tromey <tom@tromey.com>
5533
5534 * printcmd.c (struct display) <next>: Remove.
5535 <display>: New constructor.
5536 <exp_string>: Now a std::string.
5537 <enabled_p>: Now a bool.
5538 (display_number): Move definition earlier.
5539 (displays): Rename from display_chain. Now a std::vector.
5540 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5541 (display_command): Update.
5542 (do_one_display, disable_display)
5543 (enable_disable_display_command, do_enable_disable_display):
5544 Update.
5545 (free_display): Remove.
5546 (clear_displays): Rewrite.
5547 (delete_display): Update.
5548 (map_display_numbers): Use function_view. Remove "data"
5549 parameter. Update.
5550 (do_delete_display): Remove.
5551 (undisplay_command): Update.
5552 (do_one_display, do_displays, disable_display)
5553 (info_display_command): Update.
5554 (do_enable_disable_display): Remove.
5555 (enable_disable_display_command)
5556 (clear_dangling_display_expressions): Update.
5557
94c93c35
TT
55582020-05-08 Tom Tromey <tom@tromey.com>
5559
5560 * symtab.c (set_symbol_cache_size)
5561 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5562 (maintenance_print_symbol_cache_statistics): Update.
5563 * symmisc.c (print_symbol_bcache_statistics)
5564 (print_objfile_statistics, maintenance_print_objfiles)
5565 (maintenance_info_symtabs, maintenance_check_symtabs)
5566 (maintenance_expand_symtabs, maintenance_info_line_tables):
5567 Update.
5568 * symfile-debug.c (set_debug_symfile): Update.
5569 * source.c (forget_cached_source_info): Update.
5570 * python/python.c (gdbpy_progspaces): Update.
5571 * psymtab.c (maintenance_info_psymtabs): Update.
5572 * probe.c (parse_probes): Update.
5573 * linespec.c (iterate_over_all_matching_symtabs)
5574 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5575 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5576 * exec.c (exec_target::close): Update.
5577 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5578 * breakpoint.c (print_one_breakpoint_location)
5579 (create_longjmp_master_breakpoint)
5580 (create_std_terminate_master_breakpoint): Update.
5581 * progspace.c (program_spaces): Now a std::vector.
5582 (maybe_new_address_space): Update.
5583 (add_program_space): Remove.
5584 (program_space::program_space): Update.
5585 (remove_program_space): Update.
5586 (number_of_program_spaces): Remove.
5587 (print_program_space, update_address_spaces): Update.
5588 * progspace.h (program_spaces): Change type.
5589 (ALL_PSPACES): Remove.
5590 (number_of_program_spaces): Don't declare.
5591 (struct program_space) <next>: Remove.
5592
a1fd1ac9
TT
55932020-05-08 Tom Tromey <tom@tromey.com>
5594
5595 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5596 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5597 (enable_break): Update.
5598 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5599 (frv_fdpic_find_canonical_descriptor): Update.
5600 (frv_fetch_objfile_link_map): Update.
5601 * progspace.c (program_space::free_all_objfiles): Update.
5602 (program_space::solibs): New method.
5603 * progspace.h (struct program_space) <solibs>: New method.
5604 * solist.h (master_so_list): Don't declare.
5605 (ALL_SO_LIBS): Remove.
5606 * solib.h (so_list_head): Remove.
5607 (update_solib_list): Update comment.
5608 * solib.c (master_so_list): Remove.
5609 (solib_used, update_solib_list, solib_add)
5610 (info_sharedlibrary_command, clear_solib)
5611 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5612
38eae084
TT
56132020-05-08 Tom Tromey <tom@tromey.com>
5614
5615 * extension.c (extension_languages): Now a std::array.
5616 (ALL_EXTENSION_LANGUAGES): Remove.
5617 (get_ext_lang_defn, get_ext_lang_of_file)
5618 (eval_ext_lang_from_control_command): Update.
5619 (finish_ext_lang_initialization)
5620 (auto_load_ext_lang_scripts_for_objfile)
5621 (ext_lang_type_printers::ext_lang_type_printers)
5622 (apply_ext_lang_type_printers)
5623 (ext_lang_type_printers::~ext_lang_type_printers)
5624 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5625 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5626 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5627 (get_matching_xmethod_workers, ext_lang_colorize)
5628 (ext_lang_before_prompt): Update.
5629 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5630
596dc4ad
TT
56312020-05-08 Tom Tromey <tom@tromey.com>
5632
5633 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5634 overload.
5635 <swap_string, m_string>: Remove.
5636 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5637 Update.
5638 * stabsread.c (define_symbol, read_type): Update.
5639 * linespec.c (find_linespec_symbols): Update.
5640 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5641 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5642 * dbxread.c (read_dbx_symtab): Update.
5643 * cp-support.h (cp_canonicalize_string_full)
5644 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5645 Return unique_xmalloc_ptr.
5646 * cp-support.c (inspect_type): Update.
5647 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5648 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5649 Likewise.
5650 * c-typeprint.c (print_name_maybe_canonical): Update.
5651 * break-catch-throw.c (check_status_exception_catchpoint):
5652 Update.
5653
bf4cb9be
TV
56542020-05-08 Tom de Vries <tdevries@suse.de>
5655
5656 * infrun.c (follow_fork): Copy current_line and current_symtab to
5657 child thread.
5658
a1b68f28
SM
56592020-05-07 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * async-event.c (struct async_signal_handler, struct
5662 async_event_handler): Reformat, remove typedef.
5663
98d48915
SM
56642020-05-07 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5667 access thistype->main_type->dyn_prop_list directly.
5668
7aa91313
SM
56692020-05-07 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5672 (remove_dyn_prop): Remove. Update all users to use
5673 type::remove_dyn_prop.
5674 * gdbtypes.c (remove_dyn_prop): Rename to...
5675 (type::remove_dyn_prop): ... this.
5676
5c54719c
SM
56772020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5678
5679 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5680 (add_dyn_prop): Remove. Update all users to use
5681 type::add_dyn_prop.
5682 * gdbtypes.c (add_dyn_prop): Rename to...
5683 (type::add_dyn_prop): ... this.
5684
24e99c6c
SM
56852020-05-07 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5688 (get_dyn_prop): Remove. Update all users to use
5689 type::dyn_prop.
5690 * gdbtypes.c (get_dyn_prop): Rename to...
5691 (type::dyn_prop): ... this.
5692
0d4bf016
SM
56932020-05-06 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5696
ac4a4f1c
SM
56972020-05-06 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5700 instruction, skip it if it's there.
5701
a3bbacc1
SM
57022020-05-05 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5705
c3236f84
SM
57062020-05-04 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5709 * gdbtypes.c (recursive_dump_type): Remove use of
5710 TYPE_INCOMPLETE.
5711
3b6acaee
TT
57122020-05-03 Tom Tromey <tom@tromey.com>
5713
5714 * breakpoint.c (catch_command, tcatch_command): Remove.
5715 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5716 add_show_prefix_cmd.
5717 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5718 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5719 Remove.
5720 (add_internal_problem_command): Use add_basic_prefix_cmd,
5721 add_show_prefix_cmd.
5722 * mips-tdep.c (set_mipsfpu_command): Remove.
5723 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5724 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5725 (_initialize_index_cache): Use add_basic_prefix_cmd.
5726 * memattr.c (dummy_cmd): Remove.
5727 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5728 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5729 (_initialize_tui_win): Use add_basic_prefix_cmd,
5730 add_show_prefix_cmd.
5731 * cli/cli-logging.c (set_logging_command): Remove.
5732 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5733 add_show_prefix_cmd.
5734 (show_logging_command): Remove.
5735 * target.c (target_command): Remove.
5736 (add_target): Use add_basic_prefix_cmd.
5737
a51119cd
HD
57382020-05-02 Hannes Domani <ssbssa@yahoo.de>
5739
5740 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5741
652fc23a 57422020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5743
652fc23a
PW
5744 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5745 info_command.
5746
117539e6
KR
57472020-04-30 Kamil Rytarowski <n54@gmx.com>
5748
5749 * nbsd-nat.c (nbsd_enable_proc_events)
5750 (nbsd_nat_target::post_startup_inferior): Add.
5751 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5752 (nbsd_nat_target::update_thread_list): Rewrite.
5753 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5754 "PTRACE_LWP_CREATE".
5755 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5756
102e38eb 57572020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5758
102e38eb
PW
5759 * stack.c (_initialize_stack): Remove duplicated creation
5760 of "frame" command and "f" alias.
5761
ee9d1e5f
HD
57622020-04-30 Hannes Domani <ssbssa@yahoo.de>
5763
5764 PR gdb/18706
5765 * gdbtypes.c (check_typedef): Calculate size of array of
5766 stubbed type.
5767
627c7fb8
HD
57682020-04-30 Hannes Domani <ssbssa@yahoo.de>
5769
5770 PR gdb/15559
5771 * i386-tdep.c (i386_push_dummy_call): Call
5772 i386_thiscall_push_dummy_call.
5773 (i386_thiscall_push_dummy_call): New function.
5774 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5775 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5776 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5777
ffc2844e
SM
57782020-04-29 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * gdbarch.sh (do_read): Add shellcheck disable directive for
5781 warning SC2162.
5782
1207375d
SM
57832020-04-29 Simon Marchi <simon.marchi@efficios.com>
5784
5785 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5786 "referenced but not assigned" warning.
5787
9fdb2916
SM
57882020-04-29 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * gdbarch.sh: Remove code that sets fallbackdefault.
5791
759cea5e
SM
57922020-04-29 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * gdbarch.sh: Use shell operators && and || instead of
5795 -a and -o.
5796
cb02ab24
SM
57972020-04-29 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * gdbarch.sh: Use $(...) instead of `...`.
5800
a6fc5ffc
SM
58012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * gdbarch.sh: Use double quotes around variables.
5804
8d113d13
SM
58052020-04-29 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbarch.sh: Use %s with printf, instead of variables in the
5808 format string.
5809
ed6acedd
TT
58102020-04-29 Tom Tromey <tromey@adacore.com>
5811
5812 PR ada/25875:
5813 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5814 type fields here.
5815 (read_enumeration_type): Call
5816 update_enumeration_type_from_children later. Update comments.
5817 (process_enumeration_scope): Don't create type fields.
5818
b68b1b58
KR
58192020-04-29 Kamil Rytarowski <n54@gmx.com>
5820
5821 * nbsd-tdep.c: Include "xml-syscall.h".
5822 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5823
f94b2e03
KR
58242020-04-29 Kamil Rytarowski <n54@gmx.com>
5825
5826 * nbsd-nat.c: Include "sys/wait.h".
5827 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5828 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5829 (nbsd_nat_target::remove_exec_catchpoint)
5830 (nbsd_nat_target::set_syscall_catchpoint): Add.
5831 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5832 (nbsd_nat_target::insert_exec_catchpoint)
5833 (nbsd_nat_target::remove_exec_catchpoint)
5834 (nbsd_nat_target::set_syscall_catchpoint): Add.
5835 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5836 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5837 `nbsd_get_syscall_number'.
5838
fc49bc72
TT
58392020-04-29 Tom Tromey <tom@tromey.com>
5840
5841 * stack.c (print_block_frame_labels): Remove.
5842
d642b692
HD
58432020-04-29 Hannes Domani <ssbssa@yahoo.de>
5844
5845 PR gdb/17320
5846 * ada-valprint.c (val_print_packed_array_elements): Move array
5847 end bracket to new line.
5848 (ada_val_print_string): Remove extra spaces before first array
5849 element.
5850 * c-valprint.c (c_value_print_array): Likewise.
5851 * m2-valprint.c (m2_print_array_contents): Likewise.
5852 (m2_value_print_inner): Likewise.
5853 * p-valprint.c (pascal_value_print_inner): Likewise.
5854 * valprint.c (generic_val_print_array): Likewise.
5855 (value_print_array_elements): Move first array element and array
5856 end bracket to new line.
5857
ea90f227
TV
58582020-04-29 Tom de Vries <tdevries@suse.de>
5859
5860 PR symtab/25889
5861 * linespec.c (find_method): Fix ix calculation.
5862
4498ef4f
KR
58632020-04-28 Kamil Rytarowski <n54@gmx.com>
5864
5865 * syscalls/update-netbsd.sh: New file.
5866 * syscalls/netbsd.xml: Regenerate.
5867 * data-directory/Makefile.in: Register `netbsd.xml' in
5868 `SYSCALLS_FILES'.
5869
a55e30b5
SM
58702020-04-28 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * syscalls/update-freebsd.sh: Add double quotes.
5873
2b2fbab8
TT
58742020-04-28 Tom Tromey <tom@tromey.com>
5875
5876 * NEWS: Update.
5877 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5878 (cmdpy_init): Allow class_tui.
5879
a65189c9
TV
58802020-04-28 Mark Williams <mark@myosotissp.com>
5881
5882 PR gdb/24480
5883 * dwarf2read.c: Add missing assingments to list_in_scope when
5884 start_symtab was already called.
5885
1b95cdb7
SM
58862020-04-28 Simon Marchi <simon.marchi@efficios.com>
5887
5888 PR gdb/25881
5889 * dwarf2/read.c (offset_map_type): Use
5890 gdb:hash_enum<sect_offset> as hash function.
5891
15cd93d0
TV
58922020-04-28 Tom de Vries <tdevries@suse.de>
5893
5894 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5895 with DW_AT_signature.
5896
1eb39914
SM
58972020-04-27 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * configure.ac: Remove check for fs_base/gs_base in
5900 user_regs_struct.
5901 * configure: Re-generate.
5902 * config.in: Re-generate.
5903 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5904 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5905 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5906
991a3e2e
LM
59072020-04-27 Luis Machado <luis.machado@linaro.org>
5908
5909 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5910 problematic inline frame unwinding situation.
5911 * frame.c (frame_id_computed_p): New function.
5912 * frame.h (frame_id_computed_p): New prototype.
5913
361ba0e8
TT
59142020-04-26 Tom Tromey <tom@tromey.com>
5915
5916 * command.h (enum command_class) <class_pseudo>: Remove.
5917
bc3609fd
PW
59182020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5919
5920 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5921 and whitespace.
5922
b9771db7
KR
59232020-04-25 Kamil Rytarowski <n54@gmx.com>
5924
ec16513e
SM
5925 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5926 `PT_GET_PROCESS_STATE' block.
b9771db7 5927
7151c1af
TT
59282020-04-24 Tom Tromey <tom@tromey.com>
5929
5930 * symtab.h (symbol_get_demangled_name): Don't declare.
5931 * symtab.c (symbol_get_demangled_name): Remove.
5932 (general_symbol_info::natural_name)
5933 (general_symbol_info::demangled_name): Update.
5934
906bb4c5
TT
59352020-04-24 Tom Tromey <tom@tromey.com>
5936
5937 PR rust/25025:
5938 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5939
bcfe6157
TT
59402020-04-24 Tom Tromey <tom@tromey.com>
5941
5942 PR symtab/12707:
5943 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5944 exists.
5945 (new_symbol): Likewise.
5946 * compile/compile-object-load.c (get_out_value_type): Use
5947 symbol_matches_search_name.
5948
f049a313
TT
59492020-04-24 Tom Tromey <tom@tromey.com>
5950
5951 * dwarf2/read.c (add_partial_symbol): Do not call
5952 compute_and_set_names.
5953
76e288d1
TT
59542020-04-24 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5957 overload.
5958
2467f4f6
TT
59592020-04-24 Tom Tromey <tom@tromey.com>
5960
5961 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5962 (add_psymbol_to_list): New overload. Make old overload call new
5963 one.
5964 * psympriv.h (add_psymbol_to_list): New overload.
5965
e61108c9
TT
59662020-04-24 Tom Tromey <tom@tromey.com>
5967
5968 * dwarf2/read.c (partial_die_info::read) <case
5969 DW_AT_linkage_name>: Use value_as_string.
5970 (dwarf2_string_attr): Use value_as_string.
5971 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5972 method.
5973 * dwarf2/attribute.c (attribute::value_as_string): New method.
5974
8c87a452
TT
59752020-04-24 Tom Tromey <tom@tromey.com>
5976
5977 * symtab.c (general_symbol_info::natural_name)
5978 (general_symbol_info::demangled_name): Check for language_rust.
5979
787de330
TT
59802020-04-24 Tom Tromey <tom@tromey.com>
5981
5982 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5983 (dwarf2_physname): ... from here.
5984 (partial_die_info::read): Add Rust "{" hack.
5985
ff985671
TT
59862020-04-24 Tom Tromey <tom@tromey.com>
5987
5988 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5989 method.
5990 (symbol_set_demangled_name): Don't declare.
5991 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5992 symbol_set_demangled_name.
5993 (general_symbol_info::set_language)
5994 (general_symbol_info::compute_and_set_names): Update.
5995 * minsyms.c (minimal_symbol_reader::install): Update.
5996 * dwarf2/read.c (new_symbol): Update.
5997
1acda803
TT
59982020-04-24 Tom Tromey <tromey@adacore.com>
5999
6000 PR python/23662:
6001 * python/py-type.c (convert_field): Handle
6002 FIELD_LOC_KIND_DWARF_BLOCK.
6003 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6004 (typy_get_dynamic): Nw function.
6005 (type_object_getset): Add "dynamic".
6006 * NEWS: Add entry.
6007
d656f129
TT
60082020-04-24 Tom Tromey <tromey@adacore.com>
6009
6010 * ada-typeprint.c (print_choices, print_variant_part)
6011 (print_record_field_types_dynamic): New functions.
6012 (print_record_field_types): Use print_record_field_types_dynamic.
6013
7d79de9a
TT
60142020-04-24 Tom Tromey <tromey@adacore.com>
6015
6016 * dwarf2/read.c (handle_data_member_location): New overload.
6017 (dwarf2_add_field): Use it.
6018 (decode_locdesc): Add "computed" parameter. Update comment.
6019 * gdbtypes.c (is_dynamic_type_internal): Also look for
6020 FIELD_LOC_KIND_DWARF_BLOCK.
6021 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6022 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6023 virtual base classes.
6024 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6025 FIELD_LOC_KIND_DWARF_BLOCK.
6026
f8e89861
TT
60272020-04-24 Tom Tromey <tromey@adacore.com>
6028
6029 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6030 * gdbtypes.c (is_dynamic_type_internal): Check
6031 TYPE_HAS_DYNAMIC_LENGTH.
6032 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6033 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6034 New macros.
6035 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6036 constant.
6037
9c6a1327
TT
60382020-04-24 Tom Tromey <tromey@adacore.com>
6039
6040 * dwarf2/read.c (struct variant_field): Rewrite.
6041 (struct variant_part_builder): New.
6042 (struct nextfield): Remove "variant" field. Add "offset".
6043 (struct field_info): Add "current_variant_part" and
6044 "variant_parts".
6045 (alloc_discriminant_info): Remove.
6046 (alloc_rust_variant): New function.
6047 (quirk_rust_enum): Update.
6048 (dwarf2_add_field): Set "offset" member. Don't handle
6049 DW_TAG_variant_part.
6050 (offset_map_type): New typedef.
6051 (convert_variant_range, create_one_variant)
6052 (create_one_variant_part, create_variant_parts)
6053 (add_variant_property): New functions.
6054 (dwarf2_attach_fields_to_type): Call add_variant_property.
6055 (read_structure_type): Don't handle DW_TAG_variant_part.
6056 (handle_variant_part, handle_variant): New functions.
6057 (handle_struct_member_die): Use them.
6058 (process_structure_scope): Don't handle variant parts.
6059 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6060 (struct discriminant_info): Remove.
6061 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6062 (struct main_type) <flag_discriminated_union>: Remove.
6063 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6064 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6065 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6066 Update.
6067 * valops.c (value_union_variant): Remove.
6068 * value.h (value_union_variant): Don't declare.
6069
b249d2c2
TT
60702020-04-24 Tom Tromey <tromey@adacore.com>
6071
6072 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6073 (ada_value_primitive_packed_val): Update.
6074 * ada-valprint.c (ada_value_print_1): Update.
6075 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6076 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6077 just an address. Use evaluate_for_locexpr_baton.
6078 (dwarf2_evaluate_property): Update.
6079 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6080 array_view.
6081 * findvar.c (default_read_var_value): Update.
6082 * gdbtypes.c (compute_variant_fields_inner)
6083 (resolve_dynamic_type_internal): Update.
6084 (resolve_dynamic_type): Change type of valaddr parameter.
6085 * gdbtypes.h (resolve_dynamic_type): Update.
6086 * valarith.c (value_subscripted_rvalue): Update.
6087 * value.c (value_from_contents_and_address): Update.
6088
61122aa9
TT
60892020-04-24 Tom Tromey <tromey@adacore.com>
6090
6091 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6092 "push_initial_value" parameter.
6093 (dwarf2_evaluate_property): Likewise.
6094 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6095
ef83a141
TT
60962020-04-24 Tom Tromey <tromey@adacore.com>
6097
6098 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6099 (variant::matches, compute_variant_fields_recurse)
6100 (compute_variant_fields_inner, compute_variant_fields): New
6101 functions.
6102 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6103 Use resolved_type after type is made.
6104 (operator==): Add new cases.
6105 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6106 (struct discriminant_range, struct variant, struct variant_part):
6107 New.
6108 (union dynamic_prop_data) <variant_parts, original_type>: New
6109 members.
6110 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6111 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6112 constants.
6113 * value.c (unpack_bits_as_long): Now public.
6114 * value.h (unpack_bits_as_long): Declare.
6115
675127ec
TT
61162020-04-24 Tom Tromey <tromey@adacore.com>
6117
6118 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6119 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6120
9852ceef
HD
61212020-04-24 Hannes Domani <ssbssa@yahoo.de>
6122
6123 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6124
7632c6ce
KR
61252020-04-24 Kamil Rytarowski <n54@gmx.com>
6126
6127 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6128 (remove_fork_catchpoint, post_startup_inferior)
6129 (post_attach): Move...
6130 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6131 (remove_fork_catchpoint, post_startup_inferior)
6132 (post_attach): ...here.
6133 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6134 (remove_fork_catchpoint, post_startup_inferior)
6135 (post_attach): Move...
6136 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6137 (remove_fork_catchpoint, post_startup_inferior)
6138 (post_attach): ...here.
6139
7be2bb4f
TT
61402020-04-24 Tom Tromey <tromey@adacore.com>
6141
6142 * nat/windows-nat.h (struct windows_thread_info)
6143 <pc_adjusted>: New member.
6144 * windows-nat.c (windows_fetch_one_register): Check
6145 pc_adjusted.
6146 (windows_nat_target::get_windows_debug_event)
6147 (windows_nat_target::wait): Set pc_adjusted.
6148
f80cb3b4
TV
61492020-04-24 Tom de Vries <tdevries@suse.de>
6150
6151 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6152 Run gdb-add-index inside temp dir.
6153
29514b87
TT
61542020-04-23 Tom Tromey <tromey@adacore.com>
6155
6156 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6157 in loop.
6158
5939967b
LM
61592020-04-23 Luis Machado <luis.machado@linaro.org>
6160
6161 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6162 get_frame_register instead of gdbarch_unwind_pc.
6163
70bc38f5
TV
61642020-04-23 Tom de Vries <tdevries@suse.de>
6165
6166 * symtab.c (lookup_global_symbol): Prefer def over decl.
6167
de82891c
TV
61682020-04-23 Tom de Vries <tdevries@suse.de>
6169
6170 PR symtab/25807
6171 * block.c (best_symbol, better_symbol): Promote to external.
6172 * block.h (best_symbol, better_symbol): Declare.
6173 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6174 decl.
6175
ecc6c606
TT
61762020-04-23 Tom Tromey <tromey@adacore.com>
6177
6178 PR ada/25837:
6179 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6180 "const char *", not a "const std::string &".
6181 <name_and_matcher::operator==>: Update.
6182 * unittests/lookup_name_info-selftests.c: Change type of
6183 "result".
6184
740480b8
TT
61852020-04-23 Tom Tromey <tom@tromey.com>
6186
6187 * inferior.h (iterate_over_inferiors): Don't declare.
6188 * inferior.c (iterate_over_inferiors): Remove.
6189 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6190 Remove.
6191 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6192 use iterate_over_inferiors.
6193 (darwin_resume_inferior_it)
6194 (struct resume_inferior_threads_param)
6195 (darwin_resume_inferior_threads_it): Remove.
6196 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6197
ae3ab1f0
TV
61982020-04-23 Tom de Vries <tdevries@suse.de>
6199
6200 * blockframe.c (find_pc_partial_function): Use
6201 find_pc_sect_compunit_symtab rather than
6202 objfile->sf->qf->find_pc_sect_compunit_symtab.
6203
317d2668
TV
62042020-04-22 Tom de Vries <tdevries@suse.de>
6205
6206 PR symtab/25764
6207 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6208 in psymtabs.
6209
eea9e357
TV
62102020-04-22 Tom de Vries <tdevries@suse.de>
6211
6212 PR symtab/25801
6213 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6214 symtabs.
6215
3d5afab3
TV
62162020-04-22 Tom de Vries <tdevries@suse.de>
6217
6218 PR symtab/25700
6219 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6220 CU if already created.
6221
d43b7a2d
TBA
62222020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6223
6224 * infrun.c (displaced_step_fixup): Switch to the event_thread
6225 before calling displaced_step_restore, not after.
6226
d89edf9b
MM
62272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6228
6229 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6230 its inferior is not recorded by us.
6231 (record_btrace_target_open): Replace call to
6232 all_non_exited_threads () with call to current_inferior
6233 ()->non_exited_threads ().
6234 (record_btrace_target::stop_recording): Likewise.
6235 (record_btrace_target::close): Likewise.
6236 (record_btrace_target::wait): Likewise.
6237 (record_btrace_target::record_stop_replaying): Likewise.
6238
5897fd49
MM
62392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6240
6241 * btrace.c (btrace_enable): Throw an error on double enables and
6242 when enabling recording fails.
6243 (btrace_disable): Throw an error if the thread is not recorded.
6244
1a476b6d
MM
62452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6246
6247 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6248 request if we do not have a thread_info.
6249
4778a5f8
TV
62502020-04-21 Tom de Vries <tdevries@suse.de>
6251
6252 PR gdb/25471
6253 * thread.c
6254 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6255 exception in get_frame_id.
6256
0fa7617d
TT
62572020-04-20 Tom Tromey <tromey@adacore.com>
6258
6259 * python/python.c (struct gdbpy_event): Mark move constructor as
6260 noexcept.
6261 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6262 constructor as noexcept.
6263 * completer.h (struct completion_result): Mark move constructor as
6264 noexcept.
6265 * completer.c (completion_result::completion_result): Use
6266 initialization style. Don't call reset_match_list.
6267
ad23bda0
MS
62682020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6269
6270 * MAINTAINERS (Write After Approval): Add myself.
6271
45e1f031
TT
62722020-04-18 Tom Tromey <tom@tromey.com>
6273
6274 * windows-tdep.c (init_w32_command_list)
6275 (w32_prefix_command_valid): Restore.
6276 (_initialize_windows_tdep): Call init_w32_command_list.
6277
08feed99
TT
62782020-04-18 Tom Tromey <tom@tromey.com>
6279
6280 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6281 * value.c (value_fn_field): Update.
6282 * valops.c (find_function_in_inferior)
6283 (value_allocate_space_in_inferior): Update.
6284 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6285 Update.
6286 * tui/tui-source.c (tui_source_window::set_contents): Update.
6287 * symtab.c (lookup_global_or_static_symbol)
6288 (find_function_start_sal_1, skip_prologue_sal)
6289 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6290 * symmisc.c (dump_msymbols, dump_symtab_1)
6291 (maintenance_print_one_line_table): Update.
6292 * symfile.c (init_entry_point_info, section_is_mapped)
6293 (list_overlays_command, simple_read_overlay_table)
6294 (simple_overlay_update_1): Update.
6295 * stap-probe.c (handle_stap_probe): Update.
6296 * stabsread.c (dbx_init_float_type, define_symbol)
6297 (read_one_struct_field, read_enum_type, read_range_type): Update.
6298 * source.c (info_line_command): Update.
6299 * python/python.c (gdbpy_source_objfile_script)
6300 (gdbpy_execute_objfile_script): Update.
6301 * python/py-type.c (save_objfile_types): Update.
6302 * python/py-objfile.c (py_free_objfile): Update.
6303 * python/py-inferior.c (python_new_objfile): Update.
6304 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6305 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6306 (maintenance_check_psymtabs): Update.
6307 * printcmd.c (info_address_command): Update.
6308 * objfiles.h (struct objfile) <arch>: New method, from
6309 get_objfile_arch.
6310 (get_objfile_arch): Don't declare.
6311 * objfiles.c (get_objfile_arch): Remove.
6312 (filter_overlapping_sections): Update.
6313 * minsyms.c (msymbol_is_function): Update.
6314 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6315 (output_nondebug_symbol): Update.
6316 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6317 (mdebug_expand_psymtab): Update.
6318 * machoread.c (macho_add_oso_symfile): Update.
6319 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6320 Update.
6321 * linux-fork.c (checkpoint_command): Update.
6322 * linespec.c (convert_linespec_to_sals): Update.
6323 * jit.c (finalize_symtab): Update.
6324 * infrun.c (insert_exception_resume_from_probe): Update.
6325 * ia64-tdep.c (ia64_find_unwind_table): Update.
6326 * hppa-tdep.c (internalize_unwinds): Update.
6327 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6328 Update.
6329 * gcore.c (call_target_sbrk): Update.
6330 * elfread.c (record_minimal_symbol, elf_symtab_read)
6331 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6332 (elf_gnu_ifunc_resolve_by_got): Update.
6333 * dwarf2/read.c (create_addrmap_from_index)
6334 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6335 (read_debug_names_from_section)
6336 (process_psymtab_comp_unit_reader, add_partial_symbol)
6337 (add_partial_subprogram, process_full_comp_unit)
6338 (read_file_scope, read_func_scope, read_lexical_block_scope)
6339 (read_call_site_scope, dwarf2_ranges_read)
6340 (dwarf2_record_block_ranges, dwarf2_add_field)
6341 (mark_common_block_symbol_computed, read_tag_pointer_type)
6342 (read_tag_string_type, dwarf2_init_float_type)
6343 (dwarf2_init_complex_target_type, read_base_type)
6344 (partial_die_info::read, partial_die_info::read)
6345 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6346 (dwarf2_fetch_die_loc_sect_off): Update.
6347 * dwarf2/loc.c (dwarf2_find_location_expression)
6348 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6349 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6350 (dwarf2_loc_desc_get_symbol_read_needs)
6351 (locexpr_describe_location_piece, locexpr_describe_location_1)
6352 (loclist_describe_location): Update.
6353 * dwarf2/index-write.c (write_debug_names): Update.
6354 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6355 * dtrace-probe.c (dtrace_process_dof): Update.
6356 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6357 (process_one_symbol): Update.
6358 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6359 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6360 (coff_read_enum_type): Update.
6361 * cli/cli-cmds.c (edit_command, list_command): Update.
6362 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6363 * breakpoint.c (create_overlay_event_breakpoint)
6364 (create_longjmp_master_breakpoint)
6365 (create_std_terminate_master_breakpoint)
6366 (create_exception_master_breakpoint, get_sal_arch): Update.
6367 * block.c (block_gdbarch): Update.
6368 * annotate.c (annotate_source_line): Update.
6369
0743fc83
TT
63702020-04-17 Tom Tromey <tromey@adacore.com>
6371
6372 * auto-load.c (show_auto_load_cmd): Remove.
6373 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6374 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6375 (maintenance_print_arc_command): Remove.
6376 * tui/tui-win.c (tui_command): Remove.
6377 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6378 * tui/tui-layout.c (tui_layout_command): Remove.
6379 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6380 * python/python.c (user_set_python, user_show_python): Remove.
6381 (_initialize_python): Use add_basic_prefix_cmd,
6382 add_show_prefix_cmd.
6383 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6384 (install_gdb_commands): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 (info_guile_command): Remove.
6387 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6388 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6389 add_show_prefix_cmd.
6390 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6391 Remove do_set and do_show parameters.
6392 * cli/cli-style.c (set_style, show_style): Remove.
6393 (_initialize_cli_style): Use add_basic_prefix_cmd,
6394 add_show_prefix_cmd.
6395 (cli_style_option::add_setshow_commands): Remove do_set and
6396 do_show parameters.
6397 (cli_style_option::add_setshow_commands): Use
6398 add_basic_prefix_cmd, add_show_prefix_cmd.
6399 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6400 (set_style_name): Remove.
6401 * cli/cli-dump.c (dump_command, append_command): Remove.
6402 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6403 (tekhex_dump_command, binary_dump_command)
6404 (binary_append_command): Remove.
6405 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6406 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6407 (init_w32_command_list): Remove; move into ...
6408 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6409 * valprint.c (set_print, show_print, set_print_raw)
6410 (show_print_raw): Remove.
6411 (_initialize_valprint): Use add_basic_prefix_cmd,
6412 add_show_prefix_cmd.
6413 * typeprint.c (set_print_type, show_print_type): Remove.
6414 (_initialize_typeprint): Use add_basic_prefix_cmd,
6415 add_show_prefix_cmd.
6416 * record.c (set_record_command, show_record_command): Remove.
6417 (_initialize_record): Use add_basic_prefix_cmd,
6418 add_show_prefix_cmd.
6419 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6420 add_show_prefix_cmd.
6421 (info_command, show_command, set_debug, show_debug): Remove.
6422 * top.h (set_history, show_history): Don't declare.
6423 * top.c (set_history, show_history): Remove.
6424 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6425 (unset_tdesc_cmd): Remove.
6426 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6427 add_show_prefix_cmd.
6428 * symtab.c (info_module_command): Remove.
6429 (_initialize_symtab): Use add_basic_prefix_cmd.
6430 * symfile.c (overlay_command): Remove.
6431 (_initialize_symfile): Use add_basic_prefix_cmd.
6432 * sparc64-tdep.c (info_adi_command): Remove.
6433 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6434 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6435 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6436 add_show_prefix_cmd.
6437 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6438 (_initialize_serial): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6441 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6442 add_show_prefix_cmd.
6443 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6444 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6445 add_show_prefix_cmd.
6446 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6447 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6448 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6449 add_show_prefix_cmd.
6450 * remote.c (remote_command, set_remote_cmd): Remove.
6451 (_initialize_remote): Use add_basic_prefix_cmd.
6452 * record-full.c (set_record_full_command)
6453 (show_record_full_command): Remove.
6454 (_initialize_record_full): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 * record-btrace.c (cmd_set_record_btrace)
6457 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6458 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6459 (cmd_show_record_btrace_pt): Remove.
6460 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6461 add_show_prefix_cmd.
6462 * ravenscar-thread.c (set_ravenscar_command)
6463 (show_ravenscar_command): Remove.
6464 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 * mips-tdep.c (show_mips_command, set_mips_command)
6467 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6468 add_show_prefix_cmd.
6469 * maint.c (maintenance_command, maintenance_info_command)
6470 (maintenance_check_command, maintenance_print_command)
6471 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6472 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6473 add_show_prefix_cmd.
6474 (show_per_command_cmd): Remove.
6475 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6476 Remove.
6477 (maintenance_show_test_settings_cmd): Remove.
6478 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6479 add_show_prefix_cmd.
6480 * maint-test-options.c (maintenance_test_options_command):
6481 Remove.
6482 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6483 * macrocmd.c (macro_command): Remove
6484 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6485 * language.c (set_check, show_check): Remove.
6486 (_initialize_language): Use add_basic_prefix_cmd,
6487 add_show_prefix_cmd.
6488 * infcmd.c (unset_command): Remove.
6489 (_initialize_infcmd): Use add_basic_prefix_cmd.
6490 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6491 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * go32-nat.c (go32_info_dos_command): Remove.
6494 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6495 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6496 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6497 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6498 (_initialize_frame): Use add_basic_prefix_cmd,
6499 add_show_prefix_cmd.
6500 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6501 (_initialize_dcache): Use add_basic_prefix_cmd,
6502 add_show_prefix_cmd.
6503 * cp-support.c (maint_cplus_command): Remove.
6504 (_initialize_cp_support): Use add_basic_prefix_cmd.
6505 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6506 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6507 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6508 add_basic_prefix_cmd, add_show_prefix_cmd.
6509 * breakpoint.c (save_command): Remove.
6510 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6511 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6512 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6513 add_show_prefix_cmd.
6514 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6515 (set_ada_command, show_ada_command): Remove.
6516 (_initialize_ada_language): Use add_basic_prefix_cmd,
6517 add_show_prefix_cmd.
6518 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6519
3557f442
KR
65202020-04-16 Kamil Rytarowski <n54@gmx.com>
6521
6522 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6523 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6524
16197208
SM
65252020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6526
6527 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6528 warning messages.
6529
00ac85d3
SM
65302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6533 import table is not at beginning of .idata section.
6534
381ce63f
PA
65352020-04-16 Pedro Alves <palves@redhat.com>
6536
6537 * inferior.c (delete_inferior): Use delete operator directly
6538 instead of delete_program_space.
6539 * progspace.c (add_program_space): New, factored out from
6540 program_space::program_space.
6541 (remove_program_space): New, factored out from
6542 delete_program_space.
6543 (program_space::program_space): Remove intro comment. Rewrite.
6544 (program_space::~program_space): Remove intro comment. Call
6545 remove_program_space.
6546 (delete_program_space): Delete.
6547 * progspace.h (program_space::program_space): Make explicit. Move
6548 intro comment here, adjusted.
6549 (program_space::~program_space): Move intro comment here,
6550 adjusted.
6551 (delete_program_space): Remove.
6552
a010605f
TT
65532020-04-16 Tom Tromey <tromey@adacore.com>
6554
6555 * windows-nat.c (windows_nat::handle_access_violation): New
6556 function.
6557 * nat/windows-nat.h (handle_access_violation): Declare.
6558 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6559 windows-nat.c. Call handle_access_violation.
6560
efba5c23
TV
65612020-04-16 Tom de Vries <tdevries@suse.de>
6562
6563 PR symtab/25791
6564 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6565 CUs without psymtab.
6566
97ed802d
KB
65672020-04-16 Kevin Buettner <kevinb@redhat.com>
6568
6569 * python/python.c (do_start_initialization): Don't call
6570 PyEval_InitThreads for Python 3.9 and beyond.
6571
c7d64809
KR
65722020-04-15 Kamil Rytarowski <n54@gmx.com>
6573
6574 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6575 thread functions.
6576 (obsd_nat_target::wait): Likewise.
6577
ce127a96
TT
65782020-04-15 Tom Tromey <tromey@adacore.com>
6579
6580 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6581 (DEBUG_EXCEPT): Use debug_printf.
6582
99f1bc6a
AB
65832020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * completer.c (class completion_tracker::completion_hash_entry)
6586 <hash_name>: New member function.
6587 (completion_tracker::discard_completions): New callback to hash a
6588 completion_hash_entry, pass this to htab_create_alloc.
6589
a0e9b532
JT
65902016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6591
6592 * windows-nat.c (windows_make_so): Warn rather than stopping with
6593 an error if realpath() fails.
6594
06ca5dd4
KR
65952020-04-14 Kamil Rytarowski <n54@gmx.com>
6596
6597 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6598 (nbsd_nat_target::info_proc): Add do_status.
6599
194d088f
TV
66002020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6601 Tom de Vries <tdevries@suse.de>
6602
6603 PR symtab/25718
6604 * psympriv.h (struct partial_symtab::read_symtab)
6605 (struct partial_symtab::expand_psymtab)
6606 (struct partial_symtab::read_dependencies): Update comments.
6607 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6608 read_symtab for includer.
6609 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6610 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6611 (struct dwarf2_include_psymtab::m_readin): Remove.
6612 (struct dwarf2_include_psymtab::includer): New member function.
6613 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6614
c1a66c06
TV
66152020-04-14 Tom de Vries <tdevries@suse.de>
6616
6617 PR symtab/25720
6618 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6619 with NULL symbol_matcher and lookup_name.
6620 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6621 and lookup_name.
6622 * dwarf2/read.c (dw2_expand_symtabs_matching)
6623 (dw2_debug_names_expand_symtabs_matching): Same.
6624 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6625 Make lookup_name a pointer. Update comment.
6626 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6627 lookup_name being a pointer.
6628 * symfile.c (expand_symtabs_matching): Same.
6629 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6630 * linespec.c (iterate_over_all_matching_symtabs): Same.
6631
400b5eca
TT
66322020-04-13 Tom Tromey <tom@tromey.com>
6633
6634 * run-on-main-thread.c: Update include.
6635 * unittests/main-thread-selftests.c: Update include.
6636 * tui/tui-win.c: Update include.
6637 * tui/tui-io.c: Update include.
6638 * tui/tui-interp.c: Update include.
6639 * tui/tui-hooks.c: Update include.
6640 * top.h: Update include.
6641 * top.c: Update include.
6642 * ser-base.c: Update include.
6643 * remote.c: Update include.
6644 * remote-notif.c: Update include.
6645 * remote-fileio.c: Update include.
6646 * record-full.c: Update include.
6647 * record-btrace.c: Update include.
6648 * python/python.c: Update include.
6649 * posix-hdep.c: Update include.
6650 * mingw-hdep.c: Update include.
6651 * mi/mi-main.c: Update include.
6652 * mi/mi-interp.c: Update include.
6653 * main.c: Update include.
6654 * linux-nat.c: Update include.
6655 * interps.c: Update include.
6656 * infrun.c: Update include.
6657 * inf-loop.c: Update include.
6658 * event-top.c: Update include.
6659 * event-loop.c: Move to ../gdbsupport/.
6660 * event-loop.h: Move to ../gdbsupport/.
6661 * async-event.h: Update include.
6662 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6663
93b54c8e
TT
66642020-04-13 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-win.c: Include async-event.h.
6667 * remote.c: Include async-event.h.
6668 * remote-notif.c: Include async-event.h.
6669 * record-full.c: Include async-event.h.
6670 * record-btrace.c: Include async-event.h.
6671 * infrun.c: Include async-event.h.
6672 * event-top.c: Include async-event.h.
6673 * event-loop.h: Move some declarations to async-event.h.
6674 * event-loop.c: Don't include ser-event.h or top.h. Move some
6675 code to async-event.c.
6676 * async-event.h: New file.
6677 * async-event.c: New file.
6678 * Makefile.in (COMMON_SFILES): Add async-event.c.
6679 (HFILES_NO_SRCDIR): Add async-event.h.
6680
c1cd3163
TT
66812020-04-13 Tom Tromey <tom@tromey.com>
6682
6683 * utils.c (flush_streams): New function.
6684 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6685
29f2bf4f
TT
66862020-04-13 Tom Tromey <tom@tromey.com>
6687
6688 * event-loop.c (handle_file_event): Use warning, not
6689 printf_unfiltered.
6690
98029d02
TT
66912020-04-13 Tom Tromey <tom@tromey.com>
6692
6693 * event-loop.c: Include <chrono>.
6694
06cc9596
TT
66952020-04-13 Tom Tromey <tom@tromey.com>
6696
6697 * gdb_select.h: Move to ../gdbsupport/.
6698 * event-loop.c: Update include path.
6699 * top.c: Update include path.
6700 * ser-base.c: Update include path.
6701 * ui-file.c: Update include path.
6702 * ser-tcp.c: Update include path.
6703 * guile/scm-ports.c: Update include path.
6704 * posix-hdep.c: Update include path.
6705 * ser-unix.c: Update include path.
6706 * gdb_usleep.c: Update include path.
6707 * mingw-hdep.c: Update include path.
6708 * inflow.c: Update include path.
6709 * infrun.c: Update include path.
6710 * event-top.c: Update include path.
6711
8ae8e197
TT
67122020-04-13 Tom Tromey <tom@tromey.com>
6713
6714 * configure: Rebuild.
6715 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6716
58cf28e8
TT
67172020-04-13 Tom Tromey <tom@tromey.com>
6718
6719 * event-loop.h (start_event_loop): Don't declare.
6720 * event-loop.c (start_event_loop): Move...
6721 * main.c (start_event_loop): ...here. Now static.
6722
b7f999ae
SDJ
67232020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6724
6725 * MAINTAINERS: Update my email address.
6726
1085dfd4
KR
67272020-04-12 Kamil Rytarowski <n54@gmx.com>
6728
6729 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6730 IP_ALL.
6731
49d1d1f5
KR
67322020-04-12 Kamil Rytarowski <n54@gmx.com>
6733
6734 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6735 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6736
b4848d2a
KR
67372020-04-12 Kamil Rytarowski <n54@gmx.com>
6738
6739 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6740 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6741
51c133d5
KR
67422020-04-12 Kamil Rytarowski <n54@gmx.com>
6743
6744 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6745
54b8cbd0
KR
67462020-04-11 Kamil Rytarowski <n54@gmx.com>
6747
6748 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6749 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6750 (nbsd_nat_target::info_proc): New functions.
6751 * nbsd-nat.c (kinfo_get_vmmap): New function.
6752 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6753 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6754 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6755 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6756 functions.
6757 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6758 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6759 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6760 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6761 (KINFO_VME_FLAG_GROWS_DOWN): New.
6762
cf83625d
AS
67632020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6764
6765 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6766 bit shift.
6767
0c4311ab
TT
67682020-04-10 Tom Tromey <tromey@adacore.com>
6769
6770 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6771
3e65b3e9
TT
67722020-04-10 Tom Tromey <tromey@adacore.com>
6773
6774 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6775 separate debug files.
6776
13302e95
HD
67772020-04-10 Hannes Domani <ssbssa@yahoo.de>
6778
6779 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6780 Move to...
6781 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6782 ... here.
6783 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6784 Check for STATUS_WX86_BREAKPOINT.
6785 (windows_nat_target::wait): Same.
6786
bdfc1e8a
TV
67872020-04-10 Tom de Vries <tdevries@suse.de>
6788
6789 PR cli/25808
6790 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6791
f4460aec
SM
67922020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6795 (Write After Approval): Remove Tom de Vries.
6796
a25198bb
BE
67972020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6798
6799 revert partially:
6800 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6801
aac66a4c
SM
6802 * buildsym.c (record_line): Fix undefined behavior and preserve
6803 lines at eof.
a25198bb 6804
206c98a6
KR
68052020-04-09 Kamil Rytarowski <n54@gmx.com>
6806
6807 * auxv.h (svr4_auxv_parse): New.
6808 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6809 and generic_auxv_parse.
6810 (svr4_auxv_parse): Add.
6811 * obsd-tdep.c: Include "auxv.h".
6812 (obsd_auxv_parse): Remove.
6813 (obsd_init_abi): Remove comment.
6814 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6815 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6816 * nbsd-tdep.c: Include "auxv.h".
6817 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6818
71fbdbaf
TT
68192020-04-08 Tom Tromey <tromey@adacore.com>
6820
6821 * nat/windows-nat.h (last_wait_event): Don't declare.
6822 (wait_for_debug_event): Update comment.
6823 * nat/windows-nat.c (last_wait_event): Now static.
6824
2c1d95e8
TT
68252020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 * windows-nat.c (wait_for_debug_event): Move to
6828 nat/windows-nat.c.
6829 * nat/windows-nat.h (wait_for_debug_event): Declare.
6830 * nat/windows-nat.c (wait_for_debug_event): Move from
6831 windows-nat.c. No longer static.
6832
d2977bc4
TT
68332020-04-08 Tom Tromey <tromey@adacore.com>
6834
6835 * windows-nat.c (get_windows_debug_event): Use
6836 fetch_pending_stop.
6837 * nat/windows-nat.h (fetch_pending_stop): Declare.
6838 * nat/windows-nat.c (fetch_pending_stop): New function.
6839
e758e19c
TT
68402020-04-08 Tom Tromey <tromey@adacore.com>
6841
6842 * windows-nat.c (windows_continue): Use matching_pending_stop and
6843 continue_last_debug_event.
6844 * nat/windows-nat.h (matching_pending_stop)
6845 (continue_last_debug_event): Declare.
6846 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6847 (matching_pending_stop, continue_last_debug_event): New
6848 functions.
6849
8d30e395
TT
68502020-04-08 Tom Tromey <tromey@adacore.com>
6851
6852 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6853 (handle_exception_result): Move to nat/windows-nat.h.
6854 (DEBUG_EXCEPTION_SIMPLE): Remove.
6855 (windows_nat::handle_ms_vc_exception): New function.
6856 (handle_exception): Move to nat/windows-nat.c.
6857 (get_windows_debug_event): Update.
6858 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6859 nat/windows-nat.c.
6860 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6861 (handle_exception_result): Move from windows-nat.c.
6862 (handle_exception): Declare.
6863 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6864 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6865 windows-nat.c.
6866
29de418d
TT
68672020-04-08 Tom Tromey <tromey@adacore.com>
6868
6869 * windows-nat.c (exception_count, event_count): Remove.
6870 (handle_exception, get_windows_debug_event)
6871 (do_initial_windows_stuff): Update.
6872
a816ba18
TT
68732020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (windows_nat::handle_load_dll)
6876 (windows_nat::handle_unload_dll): Rename. No longer static.
6877 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6878 Declare.
6879
a00caa12
TT
68802020-04-08 Tom Tromey <tromey@adacore.com>
6881
6882 * complaints.h (stop_whining): Declare at top-level.
6883 (complaint): Don't declare stop_whining.
6884
d41b524f
TT
68852020-04-08 Tom Tromey <tromey@adacore.com>
6886
6887 * windows-nat.c (windows_nat::handle_output_debug_string):
6888 Rename. No longer static.
6889 * nat/windows-nat.h (handle_output_debug_string): Declare.
6890
3c76026d
TT
68912020-04-08 Tom Tromey <tromey@adacore.com>
6892
6893 * windows-nat.c (current_process_handle, current_process_id)
6894 (main_thread_id, last_sig, current_event, last_wait_event)
6895 (current_windows_thread, desired_stop_thread_id, pending_stops)
6896 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6897 (display_selectors, fake_create_process)
6898 (get_windows_debug_event): Update.
6899 * nat/windows-nat.h (current_process_handle, current_process_id)
6900 (main_thread_id, last_sig, current_event, last_wait_event)
6901 (current_windows_thread, desired_stop_thread_id, pending_stops)
6902 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6903 * nat/windows-nat.c (current_process_handle, current_process_id)
6904 (main_thread_id, last_sig, current_event, last_wait_event)
6905 (current_windows_thread, desired_stop_thread_id, pending_stops)
6906 (siginfo_er): New globals. Move from windows-nat.c.
6907
9d8679cc
TT
69082020-04-08 Tom Tromey <tromey@adacore.com>
6909
6910 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6911 (handle_load_dll): Update.
6912 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6913
28688adf
TT
69142020-04-08 Tom Tromey <tromey@adacore.com>
6915
6916 * windows-nat.c (enum thread_disposition_type): Move to
6917 nat/windows-nat.h.
6918 (windows_nat::thread_rec): Rename from thread_rec. No longer
6919 static.
6920 (windows_add_thread, windows_nat_target::fetch_registers)
6921 (windows_nat_target::store_registers, handle_exception)
6922 (windows_nat_target::resume, get_windows_debug_event)
6923 (windows_nat_target::get_tib_address)
6924 (windows_nat_target::thread_name)
6925 (windows_nat_target::thread_alive): Update.
6926 * nat/windows-nat.h (enum thread_disposition_type): Move from
6927 windows-nat.c.
6928 (thread_rec): Declare.
6929
4834dad0
TT
69302020-04-08 Tom Tromey <tromey@adacore.com>
6931
6932 * windows-nat.c: Add "using namespace".
6933 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6934 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6935
65bafd5b
TT
69362020-04-08 Tom Tromey <tromey@adacore.com>
6937
6938 * nat/windows-nat.h (struct windows_thread_info): Declare
6939 destructor.
6940 * nat/windows-nat.c (~windows_thread_info): New.
6941
0a4afda3
TT
69422020-04-08 Tom Tromey <tromey@adacore.com>
6943
6944 PR gdb/22992
6945 * windows-nat.c (current_event): Update comment.
6946 (last_wait_event, desired_stop_thread_id): New globals.
6947 (struct pending_stop): New.
6948 (pending_stops): New global.
6949 (windows_nat_target) <stopped_by_sw_breakpoint>
6950 <supports_stopped_by_sw_breakpoint>: New methods.
6951 (windows_fetch_one_register): Add assertions. Adjust PC.
6952 (windows_continue): Handle pending stops. Suspend other threads
6953 when stepping. Use last_wait_event
6954 (wait_for_debug_event): New function.
6955 (get_windows_debug_event): Use wait_for_debug_event. Handle
6956 pending stops. Queue spurious stops.
6957 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6958 (windows_nat_target::kill): Use wait_for_debug_event.
6959 * nat/windows-nat.h (struct windows_thread_info)
6960 <stopped_at_software_breakpoint>: New field.
6961 * nat/windows-nat.c (windows_thread_info::resume): Clear
6962 stopped_at_software_breakpoint.
6963
8e61ebec
TT
69642020-04-08 Tom Tromey <tromey@adacore.com>
6965
6966 * windows-nat.c (enum thread_disposition_type): New.
6967 (thread_rec): Replace "get_context" parameter with "disposition";
6968 change type.
6969 (windows_add_thread, windows_nat_target::fetch_registers)
6970 (windows_nat_target::store_registers, handle_exception)
6971 (windows_nat_target::resume, get_windows_debug_event)
6972 (windows_nat_target::get_tib_address)
6973 (windows_nat_target::thread_name)
6974 (windows_nat_target::thread_alive): Update.
6975
98a03287
TT
69762020-04-08 Tom Tromey <tromey@adacore.com>
6977
6978 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6979 (windows_continue): Use windows_continue::resume.
6980 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6981 resume>: Declare new methods.
6982 * nat/windows-nat.c: New file.
6983 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6984
7c7411bc
TT
69852020-04-08 Tom Tromey <tromey@adacore.com>
6986
6987 * windows-nat.c (windows_add_thread, windows_delete_thread)
6988 (windows_nat_target::fetch_registers)
6989 (windows_nat_target::store_registers, fake_create_process)
6990 (windows_nat_target::resume, windows_nat_target::resume)
6991 (get_windows_debug_event, windows_nat_target::wait)
6992 (windows_nat_target::pid_to_str)
6993 (windows_nat_target::get_tib_address)
6994 (windows_nat_target::get_ada_task_ptid)
6995 (windows_nat_target::thread_name)
6996 (windows_nat_target::thread_alive): Use lwp, not tid.
6997
2950fdf7
TT
69982020-04-08 Tom Tromey <tromey@adacore.com>
6999
7000 * windows-nat.c (handle_exception)
7001 (windows_nat_target::thread_name): Update.
7002 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7003 <name>: Now unique_xmalloc_ptr.
7004
62fe396b
TT
70052020-04-08 Tom Tromey <tromey@adacore.com>
7006
7007 * windows-nat.c (thread_rec)
7008 (windows_nat_target::fetch_registers): Update.
7009 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7010 Update comment.
7011 <debug_registers_changed, reload_context>: Now bool.
7012
e9534bd2
TT
70132020-04-08 Tom Tromey <tromey@adacore.com>
7014
7015 * windows-nat.c (windows_add_thread): Use new.
7016 (windows_init_thread_list, windows_delete_thread): Use delete.
7017 (get_windows_debug_event): Update.
7018 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7019 destructor, and initializers.
7020
ae1f8880
TT
70212020-04-08 Tom Tromey <tromey@adacore.com>
7022
7023 * windows-nat.c (struct windows_thread_info): Remove.
7024 * nat/windows-nat.h: New file.
7025
55a1e039
TT
70262020-04-08 Tom Tromey <tromey@adacore.com>
7027
7028 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7029 (thread_rec, windows_add_thread, windows_delete_thread)
7030 (windows_continue): Update.
7031
93366324
TT
70322020-04-08 Tom Tromey <tromey@adacore.com>
7033
7034 * windows-nat.c (struct windows_thread_info): Remove typedef.
7035 (thread_head): Remove.
7036 (thread_list): New global.
7037 (thread_rec, windows_add_thread, windows_init_thread_list)
7038 (windows_delete_thread, windows_continue): Update.
7039
0f2265e2
SM
70402020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7041
7042 * windows-tdep.h (windows_init_abi): Add comment.
7043 (cygwin_init_abi): New declaration.
7044 * windows-tdep.c: Split signal enumeration in two, one for
7045 Windows and one for Cygwin.
7046 (windows_gdb_signal_to_target): Only deal with signal of the
7047 Windows OS ABI.
7048 (cygwin_gdb_signal_to_target): New function.
7049 (windows_init_abi): Rename to windows_init_abi_common, don't set
7050 gdb_signal_to_target gdbarch method. Add new new function with
7051 this name.
7052 (cygwin_init_abi): New function.
7053 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7054 comment. Don't call windows_init_abi.
7055 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7056 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7057 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7058 i386_windows_init_abi_common, don't call windows_init_abi. Add
7059 a new function of this name.
7060 (i386_cygwin_init_abi): New function.
7061 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7062 OS ABI Cygwin.
7063
3810f182
SM
70642020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7065
7066 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7067 parameter.c.
7068 (dwarf2_read_gdb_index): Update.
7069
063f8e80
KR
70702020-04-07 Kamil Rytarowski <n54@gmx.com>
7071
7072 * nbsd-tdep.c: Include "objfiles.h".
7073 (nbsd_skip_solib_resolver): New.
7074 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7075
85a9510c 70762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7077
7078 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7079 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7080 with DW_LLE_base_addressx are being emitted in DWARFv5.
7081 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7082 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7083 unsigned integer.
7084
9fc3eaae 70852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7086
7087 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7088 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7089 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7090 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7091 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7092 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7093 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7094
7095
41144253 70962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7097
7098 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7099 (read_loclist_index): New function definition.
7100 (lookup_loclist_base): New function definition.
7101 (read_loclist_header): New function definition.
7102 (dwarf2_cu): Add loclist_base and loclist_header field.
7103 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7104 (read_full_die_1): Read the value of DW_AT_loclists_base.
7105 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7106 (read_attribute_value): Handle DW_FORM_loclistx.
7107 (skip_one_die): Handle DW_FORM_loclistx.
7108 (loclist_header): New structure declaration.
7109 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7110
9f4e76a4
SM
71112020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7112
7113 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7114 constructor. Remove `addr` parameter from other constructor and
7115 add `per_cu` parameter.
7116 * dwarf2/read.c (create_partial_symtab): Update.
7117
25c11aca
TV
71182020-04-07 Tom de Vries <tdevries@suse.de>
7119
7120 PR symtab/25796
7121 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7122 (partial_die_info::fixup): Inherit has_const_value.
7123
5707e24b
TV
71242020-04-07 Tom de Vries <tdevries@suse.de>
7125
7126 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7127 symbols without address.
7128
05f00e22
KR
71292020-04-06 Kamil Rytarowski <n54@gmx.com>
7130
7131 * nbsd-nat.h (struct thread_info): Add forward declaration.
7132 (nbsd_nat_target::thread_alive): Add.
7133 (nbsd_nat_target::thread_name): Likewise.
7134 (nbsd_nat_target::update_thread_list): Likewise.
7135 (update_thread_list::post_attach): Likewise.
7136 (post_attach::pid_to_str): Likewise.
7137 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7138 (nbsd_thread_lister): Add.
7139 (nbsd_nat_target::thread_alive): Likewise.
7140 (nbsd_nat_target::thread_name): Likewise.
7141 (nbsd_add_threads): Likewise.
7142 (update_thread_list::post_attach): Likewise.
7143 (nbsd_nat_target::update_thread_list): Likewise.
7144 (post_attach::pid_to_str): Likewise.
7145
6ee448cc
TT
71462020-04-06 Tom Tromey <tromey@adacore.com>
7147
7148 * ada-valprint.c (print_variant_part): Extract the variant field.
7149 (print_field_values): Use the field as the outer value when
7150 recursing.
7151
dea34e8c
TT
71522020-04-06 Tom Tromey <tromey@adacore.com>
7153
7154 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7155 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7156 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7157 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7158 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7159
93689ce9
TT
71602020-04-06 Tom Tromey <tromey@adacore.com>
7161
7162 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7163 TYPE_CODE_ERROR.
7164
79743962
KR
71652020-04-06 Kamil Rytarowski <n54@gmx.com>
7166
7167 * nbsd-tdep.c: Include "gdbarch.h".
7168 Define enum with NetBSD signal numbers.
7169 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7170 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7171 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7172 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7173 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7174 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7175 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7176 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7177 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7178 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7179 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7180 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7181
9e7c9a03
HD
71822020-04-03 Hannes Domani <ssbssa@yahoo.de>
7183
7184 PR gdb/25325
7185 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7186
d9e49b61
TT
71872020-04-03 Tom Tromey <tromey@adacore.com>
7188
7189 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7190 Read constant block.
7191
e0fc5c3f
SM
71922020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7195 (gdb_bfd_get_full_section_contents): New declaration.
7196 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7197 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7198 gdb_bfd_get_full_section_contents.
7199
e2ff18a0
SM
72002020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * exec.c (build_section_table): Replace internal_error with
7203 gdb_assert.
7204 (section_table_xfer_memory_partial): Likewise.
7205 * mdebugread.c (parse_partial_symbols): Likewise.
7206 * psymtab.c (lookup_partial_symbol): Likewise.
7207 * utils.c (wrap_here): Likewise.
7208
0830d301
TT
72092020-04-02 Tom Tromey <tromey@adacore.com>
7210
7211 * f-lang.c (build_fortran_types): Use arch_type to initialize
7212 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7213
e7da7f8f
TT
72142020-04-02 Tom Tromey <tromey@adacore.com>
7215
7216 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7217 of attributes.
7218
c90d28ac
AB
72192020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7220 Bernd Edlinger <bernd.edlinger@hotmail.de>
7221 Tom Tromey <tromey@adacore.com>
7222
7223 * buildsym.c (buildsym_compunit::record_line): Remove
7224 deduplication code.
7225
1aa98955
TV
72262020-04-02 Tom de Vries <tdevries@suse.de>
7227
7228 PR ada/24671
7229 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7230
d3214198
TV
72312020-04-02 Tom de Vries <tdevries@suse.de>
7232
7233 * dwarf2/read.c (dwarf2_gdb_index_functions,
7234 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7235 NULL.
7236 * psymtab.c (psym_lookup_global_symbol_language): New function.
7237 (psym_functions): Init psym_lookup_global_symbol_language with
7238 psym_lookup_global_symbol_language.
7239 * symfile-debug.c (debug_sym_quick_functions): Init
7240 lookup_global_symbol_language with NULL.
7241 * symfile.c (set_initial_language): Remove fixme comment.
7242 * symfile.h (struct quick_symbol_functions): Add
7243 lookup_global_symbol_language.
7244 * symtab.c (find_quick_global_symbol_language): New function.
7245 (find_main_name): Use find_quick_global_symbol_language.
7246
2836752f
SM
72472020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7250
64dc2d4b
BE
72512020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7252
7253 * buildsym.c (record_line): Fix undefined behavior and preserve
7254 lines at eof.
7255
bbe3dc41
BE
72562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7257
7258 * buildsym.c (record_line): Fix the resizing condition.
7259
6b4a335b
TT
72602020-04-01 Tom Tromey <tom@tromey.com>
7261
7262 * value.h (value_literal_complex): Add comment.
7263 * valops.c (value_literal_complex): Refer to value.h.
7264
3638a098
TT
72652020-04-01 Tom Tromey <tom@tromey.com>
7266
7267 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7268 (scalar_type): New rule, from typebase.
7269 (typebase): Use scalar_type. Recognize complex types.
7270 (field_name): Handle FLOAT_KEYWORD.
7271 (ident_tokens): Add _Complex and __complex__.
7272
c34e8714
TT
72732020-04-01 Tom Tromey <tom@tromey.com>
7274
7275 PR exp/25299:
7276 * valarith.c (promotion_type, complex_binop): New functions.
7277 (scalar_binop): Handle complex numbers. Use promotion_type.
7278 (value_pos, value_neg, value_complement): Handle complex numbers.
7279
fa649bb7
TT
72802020-04-01 Tom Tromey <tom@tromey.com>
7281
7282 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7283 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7284 (parse_number): Handle complex numbers.
7285
981c08ce
TT
72862020-04-01 Tom Tromey <tom@tromey.com>
7287
7288 * c-valprint.c (c_decorations): Change complex suffix to "i".
7289
4c99290d
TT
72902020-04-01 Tom Tromey <tom@tromey.com>
7291
7292 * valprint.c (generic_value_print_complex): Use accessors.
7293 * value.h (value_real_part, value_imaginary_part): Declare.
7294 * valops.c (value_real_part, value_imaginary_part): New
7295 functions.
7296 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7297
5b930b45
TT
72982020-04-01 Tom Tromey <tom@tromey.com>
7299
7300 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7301 (read_range_type): Update.
7302 * mdebugread.c (basic_type): Update.
7303 * go-lang.c (build_go_types): Use init_complex_type.
7304 * gdbtypes.h (struct main_type) <complex_type>: New member.
7305 (init_complex_type): Update.
7306 (arch_complex_type): Don't declare.
7307 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7308 Make name if none given. Use alloc_type_copy. Look for cached
7309 complex type.
7310 (arch_complex_type): Remove.
7311 (gdbtypes_post_init): Use init_complex_type.
7312 * f-lang.c (build_fortran_types): Use init_complex_type.
7313 * dwarf2/read.c (read_base_type): Update.
7314 * d-lang.c (build_d_types): Use init_complex_type.
7315 * ctfread.c (read_base_type): Update.
7316
53cccef1
TBA
73172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7318
7319 * infrun.c (stop_all_threads): Update assertion, plus when
7320 stopping threads, take into account that we might be trying
7321 to stop an all-stop target.
7322 (stop_waiting): Call 'stop_all_threads' if there exists a
7323 non-stop target.
7324
a0714d30
TBA
73252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7326
7327 * target.h (exists_non_stop_target): New function declaration.
7328 * target.c (exists_non_stop_target): New function.
7329
60e22c1e
HD
73302020-04-01 Hannes Domani <ssbssa@yahoo.de>
7331
7332 PR gdb/24789
7333 * eval.c (is_integral_or_integral_reference): New function.
7334 (evaluate_subexp_standard): Allow integer references in
7335 pointer arithmetic.
7336
e139a727
TBA
73372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7338
7339 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7340 check for no ptid in the stop reply when the target is non-stop.
7341
e0802d59
TT
73422020-04-01 Tom Tromey <tromey@adacore.com>
7343
7344 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7345 "name" parameter to rvalue reference. Initialize m_name_holder.
7346 <lookup_name_info>: New overloads.
7347 <name>: Return gdb::string_view.
7348 <c_str>: New method.
7349 <make_ignore_params>: Update.
7350 <search_name_hash>: Update.
7351 <language_lookup_name>: Return const char *.
7352 <m_name>: Change type.
7353 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7354 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7355 (lookup_name_info::match_any): Update.
7356 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7357 Update.
7358 * minsyms.c (linkage_name_str): Update.
7359 * language.c (default_symbol_name_matcher): Update.
7360 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7361 Update.
7362 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7363 (ada_lookup_name_info::ada_lookup_name_info): Update.
7364 (literal_symbol_name_matcher): Update.
7365
8c072cb6
TT
73662020-04-01 Tom Tromey <tromey@adacore.com>
7367
7368 * psymtab.c (psymtab_search_name): Remove function.
7369 (psym_lookup_symbol): Create search name and lookup name here.
7370 (lookup_partial_symbol): Remove "name" parameter; add
7371 lookup_name.
7372 (psym_expand_symtabs_for_function): Update.
7373
6f29a534
TT
73742020-03-31 Joel Jones <joelkevinjones@gmail.com>
7375
7376 PR tui/25597:
7377 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7378
af62665e
TT
73792020-03-31 Tom Tromey <tromey@adacore.com>
7380
7381 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7382 memcpy.
7383
d1a89da5
NC
73842020-03-30 Nelson Chu <nelson.chu@sifive.com>
7385
7386 * features/riscv/32bit-csr.xml: Regenerated.
7387 * features/riscv/64bit-csr.xml: Regenerated.
7388
d8af9068
TT
73892020-03-30 Tom Tromey <tromey@adacore.com>
7390
7391 * ada-valprint.c (print_variant_part): Update.
7392 * ada-lang.h (ada_which_variant_applies): Update.
7393 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7394 outer_valaddr parameters; replace with "outer" value parameter.
7395 (to_fixed_variant_branch_type): Update.
7396
227c0bf4
PFC
73972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7398
7399 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7400 <list>. Remove inclusion of observable.h.
7401 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7402 (struct arch_lwp_info): New struct.
7403 (class ppc_linux_dreg_interface): New class.
7404 (struct ppc_linux_process_info): New struct.
7405 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7406 <low_new_clone, low_forget_process, low_prepare_to_resume>
7407 <copy_thread_dreg_state, mark_thread_stale>
7408 <mark_debug_registers_changed, register_hw_breakpoint>
7409 <clear_hw_breakpoint, register_wp, clear_wp>
7410 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7411 <num_memory_accesses, get_trigger_type>
7412 <create_watchpoint_request, hwdebug_point_cmp>
7413 <init_arch_lwp_info, get_arch_lwp_info>
7414 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7415 methods.
7416 <struct ptid_hash>: New inner struct.
7417 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7418 members.
7419 (saved_dabr_value, hwdebug_info, max_slots_number)
7420 (struct hw_break_tuple, struct thread_points, ppc_threads)
7421 (have_ptrace_hwdebug_interface)
7422 (hwdebug_find_thread_points_by_tid)
7423 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7424 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7425 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7426 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7427 use m_dreg_interface.
7428 (hwdebug_point_cmp): Change to...
7429 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7430 reference arguments instead of pointers.
7431 (ppc_linux_nat_target::ranged_break_num_registers): Use
7432 m_dreg_interface.
7433 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7434 m_dreg_interface. Call register_hw_breakpoint.
7435 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7436 m_dreg_interface. Call clear_hw_breakpoint.
7437 (get_trigger_type): Change to...
7438 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7439 comment.
7440 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7441 use m_dreg_interface. Call register_hw_breakpoint.
7442 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7443 use m_dreg_interface. Call clear_hw_breakpoint.
7444 (can_use_watchpoint_cond_accel): Change to...
7445 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7446 method. Update comment, use m_dreg_interface and
7447 m_process_info.
7448 (calculate_dvc): Change to...
7449 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7450 m_dreg_interface.
7451 (num_memory_accesses): Change to...
7452 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7453 (check_condition): Change to...
7454 (ppc_linux_nat_target::check_condition): ...this method.
7455 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7456 comment, use m_dreg_interface.
7457 (create_watchpoint_request): Change to...
7458 (ppc_linux_nat_target::create_watchpoint_request): ...this
7459 method. Use m_dreg_interface.
7460 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7461 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7462 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7463 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7464 (ppc_linux_nat_target::low_forget_process)
7465 (ppc_linux_nat_target::low_new_fork)
7466 (ppc_linux_nat_target::low_new_clone)
7467 (ppc_linux_nat_target::low_delete_thread)
7468 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7469 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7470 only call mark_thread_stale.
7471 (ppc_linux_thread_exit): Remove.
7472 (ppc_linux_nat_target::stopped_data_address): Change to...
7473 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7474 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7475 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7476 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7477 comment. Call low_stopped_data_address.
7478 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7479 m_dreg_interface.
7480 (ppc_linux_nat_target::masked_watch_num_registers): Use
7481 m_dreg_interface.
7482 (ppc_linux_nat_target::copy_thread_dreg_state)
7483 (ppc_linux_nat_target::mark_thread_stale)
7484 (ppc_linux_nat_target::mark_debug_registers_changed)
7485 (ppc_linux_nat_target::register_hw_breakpoint)
7486 (ppc_linux_nat_target::clear_hw_breakpoint)
7487 (ppc_linux_nat_target::register_wp)
7488 (ppc_linux_nat_target::clear_wp)
7489 (ppc_linux_nat_target::init_arch_lwp_info)
7490 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7491 (_initialize_ppc_linux_nat): Remove observer callback.
7492
4db10d8f
PFC
74932020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7494
7495 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7496 (ppc_linux_nat_target::auxv_parse)
7497 (ppc_linux_nat_target::read_description)
7498 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7499 Move up.
7500
1310c1b0
PFC
75012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7502
7503 * linux-nat.h (low_new_clone): New method.
7504 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7505
69b037c3
SM
75062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7507
7508 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7509 (dbx_expand_psymtab): ... this.
7510 (start_psymtab): Update.
7511 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7512 (mdebug_expand_psymtab): ... this.
7513 (parse_partial_symbols): Update.
7514 (new_psymtab): Update.
7515 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7516 (xcoff_expand_psymtab): ... this.
7517 (xcoff_start_psymtab): Update.
7518
48993951
SM
75192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7522 <expand_dependencies>: ... this.
7523 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7524 (partial_symtab::expand_dependencies): ... this.
7525 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7526 Update.
7527 (dwarf2_psymtab::expand_psymtab): Update.
7528 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7529 * mdebugread.c (psymtab_to_symtab_1): Update.
7530 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7531
3ad83046
SM
75322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7533
7534 * psympriv.h (discard_psymtab): Remove.
7535 * dbxread.c (dbx_end_psymtab): Update.
7536 * xcoffread.c (xcoff_end_psymtab): Update.
7537
4d1b9ab6
TT
75382020-03-28 Tom Tromey <tom@tromey.com>
7539
7540 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7541 comment.
7542
f1749218
TT
75432020-03-28 Tom Tromey <tom@tromey.com>
7544
7545 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7546
ebea7626
HD
75472020-03-27 Hannes Domani <ssbssa@yahoo.de>
7548
7549 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7550
a879b4d5
JB
75512020-03-26 John Baldwin <jhb@FreeBSD.org>
7552
7553 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7554
0826b30a
TT
75552020-03-26 Tom Tromey <tom@tromey.com>
7556
7557 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7558 (mark_common_block_symbol_computed, read_tag_string_type)
7559 (attr_to_dynamic_prop, read_subrange_type): Update.
7560 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7561 to be methods on struct attribute.
7562 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7563 (read_call_site_scope, partial_die_info::read)
7564 (partial_die_info::read, lookup_die_type, follow_die_ref):
7565 Update.
7566 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7567 from dwarf2_get_ref_die_offset.
7568 (attribute::constant_value): New method, from
7569 dwarf2_get_attr_constant_value.
7570 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7571 Declare method.
7572 <constant_value>: New method.
7573
2b2558bf
TT
75742020-03-26 Tom Tromey <tom@tromey.com>
7575
7576 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7577 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7578 (dwarf_type_encoding_name): Move to stringify.c.
7579 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7580 * dwarf2/stringify.c: New file.
7581 * dwarf2/stringify.h: New file.
7582
eeb64781
TT
75832020-03-26 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7586 Rewrite.
7587
a39fdb41
TT
75882020-03-26 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7591 methods.
7592 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7593 (lookup_ranges_base): Likewise.
7594 (read_cutu_die_from_dwo, read_full_die_1): Update.
7595
436c571c
TT
75962020-03-26 Tom Tromey <tom@tromey.com>
7597
7598 * dwarf2/read.c (read_import_statement, read_file_scope)
7599 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7600 (read_lexical_block_scope, read_call_site_scope)
7601 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7602 (handle_struct_member_die, process_structure_scope)
7603 (update_enumeration_type_from_children)
7604 (process_enumeration_scope, read_array_type, read_common_block)
7605 (read_namespace, read_module, read_subroutine_type): Update.
7606 (sibling_die): Remove.
7607
052c8bb8
TT
76082020-03-26 Tom Tromey <tom@tromey.com>
7609
7610 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7611 (build_type_psymtabs_reader, read_structure_type)
7612 (read_enumeration_type, read_full_die_1): Update.
7613 (dwarf2_attr_no_follow): Move to die.h.
7614 * dwarf2/die.h (struct die_info) <attr>: New method.
7615
2b24b6e4
TT
76162020-03-26 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7619 <base_address>: Now an optional.
7620 (dwarf2_find_base_address, dwarf2_rnglists_process)
7621 (dwarf2_ranges_process, fill_in_loclist_baton)
7622 (dwarf2_symbol_mark_computed): Update.
7623
c2d50fd0
TT
76242020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.c (struct die_info): Move to die.h.
7627 * dwarf2/die.h: New file.
7628
0df7ad3a
TT
76292020-03-26 Tom Tromey <tom@tromey.com>
7630
7631 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7632 * dwarf2/read.c
7633 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7634 Move to line-header.c.
7635 (read_checked_initial_length_and_offset, read_formatted_entries):
7636 Likewise.
7637 (dwarf_decode_line_header): Split into two.
7638 * dwarf2/line-header.c
7639 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7640 Move from read.c.
7641 (read_checked_initial_length_and_offset, read_formatted_entries):
7642 Likewise.
7643 (dwarf_decode_line_header): New function, split from read.c.
7644
86c0bb4c
TT
76452020-03-26 Tom Tromey <tom@tromey.com>
7646
7647 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7648 Declare method.
7649 * dwarf2/read.c (read_attribute_value): Update.
7650 (dwarf2_per_objfile::read_line_string): Rename from
7651 read_indirect_line_string.
7652 (read_formatted_entries): Update.
7653
2ef46c2f
TT
76542020-03-26 Tom Tromey <tom@tromey.com>
7655
7656 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7657 variable.
7658
4f9c1eda
TT
76592020-03-26 Tom Tromey <tom@tromey.com>
7660
7661 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7662 const.
7663 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7664 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7665 parameter const.
7666
5a0e026f
TT
76672020-03-26 Tom Tromey <tom@tromey.com>
7668
7669 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7670 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7671 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7672 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7673
8844c11b
TT
76742020-03-26 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7677 file_names_size, file_full_name, file_file_name>: Use const.
7678 <file_name_at, file_names>: Add const overload.
7679 * dwarf2/line-header.c (line_header::file_file_name)
7680 (line_header::file_full_name): Update.
7681
c90ec28a
TT
76822020-03-26 Tom Tromey <tom@tromey.com>
7683
7684 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7685 (macro_start_file, consume_improper_spaces)
7686 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7687 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7688 (dwarf_decode_macros): Move to macro.c.
7689 * dwarf2/macro.c: New file.
7690 * dwarf2/macro.h: New file.
7691 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7692
4f44ae6c
TT
76932020-03-26 Tom Tromey <tom@tromey.com>
7694
7695 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7696 method.
7697 * dwarf2/section.c: New method. From
7698 read_indirect_string_at_offset_from.
7699 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7700 (read_indirect_string_at_offset_from): Move to section.c.
7701 (read_indirect_string_at_offset): Rewrite.
7702 (read_indirect_line_string_at_offset): Remove.
7703 (read_indirect_string, read_indirect_line_string)
7704 (dwarf_decode_macro_bytes): Update.
7705
a0194fa8
TT
77062020-03-26 Tom Tromey <tom@tromey.com>
7707
7708 * dwarf2/section.h (struct dwarf2_section_info)
7709 <overload_complaint>: Declare.
7710 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7711 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7712 Rename from dwarf2_section_buffer_overflow_complaint.
7713 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7714 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7715
3d27bbdb
TT
77162020-03-26 Tom Tromey <tom@tromey.com>
7717
7718 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7719 Declare.
7720 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7721 Move from read.c.
7722 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7723 to section.c.
7724
9eac9650
TT
77252020-03-26 Tom Tromey <tom@tromey.com>
7726
7727 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7728
bf80d710
TT
77292020-03-26 Tom Tromey <tom@tromey.com>
7730
7731 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7732 "builder".
7733 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7734 parameter.
7735 (dwarf_decode_macros): Update.
7736
0314b390
TT
77372020-03-26 Tom Tromey <tom@tromey.com>
7738
7739 * dwarf2/read.c (read_attribute_value): Update.
7740 (read_indirect_string_from_dwz): Move to dwz.c; change into
7741 method.
7742 (dwarf_decode_macro_bytes): Update.
7743 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7744 * dwarf2/dwz.c: New file.
7745 * Makefile.in (COMMON_SFILES): Add dwz.c.
7746
9fda78b6
TT
77472020-03-26 Tom Tromey <tom@tromey.com>
7748
7749 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7750 * dwarf2/read.c: Add include.
7751 * dwarf2/index-write.c: Add include.
7752 * dwarf2/index-cache.c: Add include.
7753 * dwarf2/dwz.h: New file.
7754
33aa3c10
TT
77552020-03-25 Tom Tromey <tom@tromey.com>
7756
7757 * compile/compile-object-load.c (get_out_value_type): Mention
7758 correct symbol name in error message.
7759
d503b685
HD
77602020-03-25 Hannes Domani <ssbssa@yahoo.de>
7761
7762 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7763
7b1eff95
TV
77642020-03-25 Tom de Vries <tdevries@suse.de>
7765
7766 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7767 * symmisc.c (dump_symtab_1): Print user and includes fields.
7768 (maintenance_info_symtabs): Same.
7769
dd895392
AB
77702020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 PR gdb/25534
7773 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7774 (riscv_regcache_cooked_write): New function.
7775 (riscv_push_dummy_call): Use new function.
7776 (riscv_return_value): Likewise.
7777
5ab2fbf1
SM
77782020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7781 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7782 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7783 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7784 * infrun.c (follow_fork): Likewise.
7785 (follow_fork_inferior): Likewise.
7786 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7787 * linux-nat.h (class linux_nat_target): Likewise.
7788 * remote.c (class remote_target) <follow_fork>: Likewise.
7789 (remote_target::follow_fork): Likewise.
7790 * target-delegates.c: Re-generate.
7791 * target.c (default_follow_fork): Likewise.
7792 (target_follow_fork): Likewise.
7793 * target.h (struct target_ops) <follow_fork>: Likewise.
7794 (target_follow_fork): Likewise.
7795
a64fafb5
TV
77962020-03-24 Tom de Vries <tdevries@suse.de>
7797
7798 * psymtab.c (maintenance_info_psymtabs): Print user field.
7799
fe26d3a3
TT
78002020-03-20 Tom Tromey <tromey@adacore.com>
7801
7802 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7803 const.
7804 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7805 const.
7806
c884cc46
SM
78072020-03-20 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * ptrace.m4: Don't check for ptrace declaration.
7810 * config.in: Re-generate.
7811 * configure: Re-generate.
7812 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7813 not defined.
7814
1ff700c2
KR
78152020-03-20 Kamil Rytarowski <n54@gmx.com>
7816
7817 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7818 `PTRACE_TYPE_RET'.
7819 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7820 * sparc-nat.c (gdb_ptrace): Likewise.
7821 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7822
f7d4f0b1
TT
78232020-03-20 Tom Tromey <tromey@adacore.com>
7824
7825 * c-exp.y (lex_one_token): Fix assert.
7826
f67210ff
TT
78272020-03-20 Tom Tromey <tromey@adacore.com>
7828
7829 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7830 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7831 strncpy call.
7832
1773be9e
TT
78332020-03-20 Tom Tromey <tromey@adacore.com>
7834
7835 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7836
70304be9
TT
78372020-03-20 Tom Tromey <tromey@adacore.com>
7838
7839 * ada-valprint.c (print_variant_part): Remove parameters; switch
7840 to value-based API.
7841 (print_field_values): Likewise.
7842 (ada_val_print_struct_union): Likewise.
7843 (ada_value_print_1): Update.
7844
9faa006d
KR
78452020-03-20 Kamil Rytarowski <n54@gmx.com>
7846
7847 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7848 nbsd_nat_target instead of inf_ptrace_target.
7849 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7850 nbsd_nat_target.
7851
4a90f062
KR
78522020-03-20 Kamil Rytarowski <n54@gmx.com>
7853
7854 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7855 it to the ptrace call.
7856 * (store_registers): Likewise.
7857
78582020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7859
7860 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7861 it to the ptrace call.
7862 * (store_registers): Likewise.
7863
2d07da27
LM
78642020-03-19 Luis Machado <luis.machado@linaro.org>
7865
7866 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7867 valid, fetch vg value from ptrace.
7868
f09db380
KR
78692020-03-19 Kamil Rytarowski <n54@gmx.com>
7870 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7871 * inf-ptrace.c: Likewise.
7872 * (gdb_ptrace): Add.
7873 * (inf_ptrace_target::resume): Update.
7874 * (inf_ptrace_target::xfer_partial): Likewise.
7875 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7876 * (inf_ptrace_peek_poke): Update.
7877
fcc7376e
KR
78782020-03-19 Kamil Rytarowski <n54@gmx.com>
7879
7880 * x86-bsd-nat.c (gdb_ptrace): New.
7881 * (x86bsd_dr_set): Add new argument `ptid'.
7882 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7883 x86bsd_dr_set_addr): Update.
7884
cada5fc9
AB
78852020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * remote.c (remote_target::process_stop_reply): Handle events for
7888 all threads differently.
7889
19a2740f
AB
78902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * completer.c (completion_tracker::remove_completion): Define new
7893 function.
7894 * completer.h (completion_tracker::remove_completion): Declare new
7895 function.
7896 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7897 when adding a C++ function symbol.
7898
724fd9ba
AB
78992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7900
7901 * completer.c (completion_tracker::completion_hash_entry): Define
7902 new class.
7903 (advance_to_filename_complete_word_point): Call
7904 recompute_lowest_common_denominator.
7905 (completion_tracker::completion_tracker): Call discard_completions
7906 to setup the hash table.
7907 (completion_tracker::discard_completions): Allow for being called
7908 from the constructor, pass new equal function, and element deleter
7909 when constructing the hash table. Initialise new class member
7910 variables.
7911 (completion_tracker::maybe_add_completion): Remove use of
7912 m_entries_vec, and store more information into m_entries_hash.
7913 (completion_tracker::recompute_lcd_visitor): New function, most
7914 content taken from...
7915 (completion_tracker::recompute_lowest_common_denominator):
7916 ...here, this now just visits each item in the hash calling the
7917 above visitor.
7918 (completion_tracker::build_completion_result): Remove use of
7919 m_entries_vec, call recompute_lowest_common_denominator.
7920 * completer.h (completion_tracker::have_completions): Remove use
7921 of m_entries_vec.
7922 (completion_tracker::completion_hash_entry): Declare new class.
7923 (completion_tracker::recompute_lowest_common_denominator): Change
7924 function signature.
7925 (completion_tracker::recompute_lcd_visitor): Declare new function.
7926 (completion_tracker::m_entries_vec): Delete.
7927 (completion_tracker::m_entries_hash): Initialize to NULL.
7928 (completion_tracker::m_lowest_common_denominator_valid): New
7929 member variable.
7930 (completion_tracker::m_lowest_common_denominator_max_length): New
7931 member variable.
7932
5a82b8a1
KR
79332020-03-17 Kamil Rytarowski <n54@gmx.com>
7934
7935 * regformats/regdef.h: Put reg in gdb namespace.
7936
fb516a69
KR
79372020-03-17 Kamil Rytarowski <n54@gmx.com>
7938
7939 * i386-bsd-nat.c (gdb_ptrace): New.
7940 * (i386bsd_fetch_inferior_registers,
7941 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7942 * (i386bsd_fetch_inferior_registers,
7943 i386bsd_store_inferior_registers) Use gdb_ptrace.
7944
1c0aa1fb
KR
79452020-03-17 Kamil Rytarowski <n54@gmx.com>
7946
7947 * amd64-bsd-nat.c (gdb_ptrace): New.
7948 * (amd64bsd_fetch_inferior_registers,
7949 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7950 * (amd64bsd_fetch_inferior_registers,
7951 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7952
5ccd2fb7
KR
79532020-03-17 Kamil Rytarowski <n54@gmx.com>
7954
7955 * user-regs.c (user_reg::read): Rename to...
7956 (user_reg::xread): ...this.
7957 * (append_user_reg): Rename argument `read' to `xread'.
7958 * (user_reg_add_builtin): Likewise.
7959 * (user_reg_add): Likewise.
7960 * (value_of_user_reg): Likewise.
7961
2108a63a
KR
79622020-03-17 Kamil Rytarowski <n54@gmx.com>
7963
7964 * sparc-nat.c (gdb_ptrace): New.
7965 * sparc-nat.c (sparc_fetch_inferior_registers)
7966 (sparc_store_inferior_registers) Remove obsolete comment.
7967 * sparc-nat.c (sparc_fetch_inferior_registers)
7968 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7969 * sparc-nat.c (sparc_fetch_inferior_registers)
7970 (sparc_store_inferior_registers) Use gdb_ptrace.
7971
a225c9a8
KR
79722020-03-17 Kamil Rytarowski <n54@gmx.com>
7973
7974 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7975 it to the ptrace call.
7976 * sh-nbsd-nat.c (store_registers): Likewise.
7977
98097623
KR
79782020-03-17 Kamil Rytarowski <n54@gmx.com>
7979
7980 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7981 nbsd_nat_target instead of inf_ptrace_target.
7982 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7983 nbsd_nat_target.
7984
9e38d619
KR
79852020-03-17 Kamil Rytarowski <n54@gmx.com>
7986
7987 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7988
a2ecbe9f
KR
79892020-03-17 Kamil Rytarowski <n54@gmx.com>
7990
7991 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7992 <sys/sysctl.h>.
7993 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7994
58990295
TV
79952020-03-17 Tom de Vries <tdevries@suse.de>
7996
7997 PR gdb/23710
7998 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7999 fields.
8000 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8001 fields.
8002 (process_imported_unit_die): Skip import of c++ CUs.
8003
771dd3a8
TT
80042020-03-16 Tom Tromey <tom@tromey.com>
8005
8006 * p-valprint.c (pascal_object_print_value): Initialize
8007 base_value.
8008
817a7585
AK
80092020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8010 Shahab Vahedi <shahab@synopsys.com>
8011
8012 * Makefile.in: Add arch/arc.o
8013 * configure.tgt: Likewise.
8014 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8015 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8016 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8017 * arc-tdep.h (arc_read_description): Add proto type.
8018 * arch/arc.c: New file.
8019 * arch/arc.h: Likewise.
8020 * features/Makefile: Replace old target descriptions with new.
8021 * features/arc-arcompact.c: Remove.
8022 * features/arc-arcompact.xml: Likewise.
8023 * features/arc-v2.c: Likewise
8024 * features/arc-v2.xml: Likewise
8025 * features/arc/aux-arcompact.xml: New file.
8026 * features/arc/aux-v2.xml: Likewise.
8027 * features/arc/core-arcompact.xml: Likewise.
8028 * features/arc/core-v2.xml: Likewise.
8029 * features/arc/aux-arcompact.c: Generate.
8030 * features/arc/aux-v2.c: Likewise.
8031 * features/arc/core-arcompact.c: Likewise.
8032 * features/arc/core-v2.c: Likewise.
8033 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8034
67430cd0
TT
80352020-03-16 Tom Tromey <tromey@adacore.com>
8036
8037 PR gdb/25663:
8038 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8039 putting value into bcache.
8040
30efb6c7
SM
80412020-03-16 Simon Marchi <simon.marchi@efficios.com>
8042
8043 PR gdb/21500
8044 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8045 to...
8046 (amd64_windows_init_abi_common): ... this. Don't set size of
8047 long type.
8048 (amd64_windows_init_abi): New function.
8049 (amd64_cygwin_init_abi): New function.
8050 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8051 the Cygwin OS ABI.
8052 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8053 comment.
8054
8db52437
SM
80552020-03-16 Simon Marchi <simon.marchi@efficios.com>
8056
8057 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8058 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8059 (pe_import_directory_entry): New struct type.
8060 (is_linked_with_cygwin_dll): New function.
8061 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8062 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8063 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8064
5982a56a
SM
80652020-03-16 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8068 i386_cygwin_core_osabi_sniffer.
8069
7a1998df
SM
80702020-03-16 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * i386-cygwin-tdep.c: Rename to...
8073 * i386-windows-tdep.c: ... this.
8074 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8075 i386-windows-tdep.c.
8076 * configure.tgt: Likewise.
8077
053205cc
SM
80782020-03-16 Simon Marchi <simon.marchi@efficios.com>
8079
8080 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8081 * osabi.c (gdb_osabi_names): Add "Windows".
8082 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8083 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8084 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8085 i386_cygwin_osabi_sniffer.
8086 (_initialize_i386_cygwin_tdep): Register OS ABI
8087 GDB_OSABI_WINDOWS for i386.
8088 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8089 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8090 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8091 for x86-64.
8092 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8093 when the target matches '*-*-mingw*'.
8094
fe4b2ee6
SM
80952020-03-16 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * defs.h (enum gdb_osabi): Move to...
8098 * osabi.h (enum gdb_osabi): ... here.
8099 * gdbarch.sh: Include osabi.h in gdbarch.h.
8100 * gdbarch.h: Re-generate.
8101
cb9b645d
SM
81022020-03-16 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8105 function.
8106 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8107
3293bbaf
TT
81082020-03-14 Tom Tromey <tom@tromey.com>
8109
8110 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8111 for C++.
8112 (c_type_print_modifier): Likewise. Add "language" parameter.
8113 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8114 (c_type_print_base_1): Update.
8115 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8116 constants.
8117 * type-stack.c (type_stack::insert): Handle tp_atomic and
8118 tp_restrict.
8119 (type_stack::follow_type_instance_flags): Likewise.
8120 (type_stack::follow_types): Likewise. Merge type-following code.
8121 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8122 (space_identifier, cv_with_space_id)
8123 (const_or_volatile_or_space_identifier_noopt)
8124 (const_or_volatile_or_space_identifier): Remove.
8125 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8126 rules.
8127 (ptr_operator, typebase): Update.
8128 (enum token_flag) <FLAG_C>: New constant.
8129 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8130 "_Atomic".
8131 (lex_one_token): Handle FLAG_C.
8132
154151a6
KR
81332020-03-14 Kamil Rytarowski <n54@gmx.com>
8134
8135 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8136 it to the ptrace call.
8137 * m68k-bsd-nat.c (store_registers): Likewise.
8138
bc107784
KR
81392020-03-14 Kamil Rytarowski <n54@gmx.com>
8140
8141 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8142 gdb_byte *.
8143 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8144 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8145 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8146
01a80117
KR
81472020-03-14 Kamil Rytarowski <n54@gmx.com>
8148
8149 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8150 nbsd_nat_target instead of inf_ptrace_target.
8151 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8152 nbsd_nat_target.
8153
f90280ca
KR
81542020-03-14 Kamil Rytarowski <n54@gmx.com>
8155
8156 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8157 register_t.
8158
6def66f1
KR
81592020-03-14 Kamil Rytarowski <n54@gmx.com>
8160
8161 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8162 it to the ptrace call.
8163 * alpha-bsd-nat.c (store_registers): Likewise.
8164
66eaca97
KR
81652020-03-14 Kamil Rytarowski <n54@gmx.com>
8166
8167 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8168 includes.
8169 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8170 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8171 fill_fpregset): Likewise.
8172
4fed520b
KR
81732020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8176 nbsd_nat_target instead of inf_ptrace_target.
8177 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8178 nbsd_nat_target.
8179
2190cf06
KR
81802020-03-14 Kamil Rytarowski <n54@gmx.com>
8181
8182 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8183 register_t.
8184
75c56d3d
KR
81852020-03-14 Kamil Rytarowski <n54@gmx.com>
8186
8187 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8188 it to the ptrace call.
8189 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8190 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8191 * arm-nbsd-nat.c (store_register): Likewise.
8192 * arm-nbsd-nat.c (store_regs): Likewise.
8193 * arm-nbsd-nat.c (store_fp_register): Likewise.
8194 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8195
6018d381
KR
81962020-03-14 Kamil Rytarowski <n54@gmx.com>
8197
8198 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8199 nbsd_nat_target instead of inf_ptrace_target.
8200 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8201 nbsd_nat_target.
8202
013f99f0
KR
82032020-03-14 Kamil Rytarowski <n54@gmx.com>
8204
8205 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8206 it to the ptrace call.
8207 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8208
12753073
KR
82092020-03-14 Kamil Rytarowski <n54@gmx.com>
8210
6227b330
KR
8211 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8212 it to the ptrace call.
8213 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8214
82152020-03-14 Kamil Rytarowski <n54@gmx.com>
8216
8217 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8218 gdb_byte *.
12753073
KR
8219 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8220
d5be5fa4
KR
82212020-03-14 Kamil Rytarowski <n54@gmx.com>
8222
8223 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8224 instead of inf_ptrace_target.
8225 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8226 nbsd_nat_target.
8227
8110f842
KR
82282020-03-14 Kamil Rytarowski <n54@gmx.com>
8229
8230 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8231 register_t.
8232
52feded7
KR
82332020-03-14 Kamil Rytarowski <n54@gmx.com>
8234
8235 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8236 register_t.
8237
25567eee
KR
82382020-03-14 Kamil Rytarowski <n54@gmx.com>
8239
8240 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8241 register_t.
8242
426a9c18
TT
82432020-03-13 Tom Tromey <tom@tromey.com>
8244
8245 * value.h (val_print): Don't declare.
8246 * valprint.h (val_print_array_elements)
8247 (val_print_scalar_formatted, generic_val_print): Don't declare.
8248 * valprint.c (generic_val_print_array): Take a struct value.
8249 (generic_val_print_ptr, generic_val_print_memberptr)
8250 (generic_val_print_bool, generic_val_print_int)
8251 (generic_val_print_char, generic_val_print_complex)
8252 (generic_val_print): Remove.
8253 (generic_value_print): Update.
8254 (do_val_print): Remove unused parameters. Don't call
8255 la_val_print.
8256 (val_print): Remove.
8257 (common_val_print): Update. Don't call value_check_printable.
8258 (val_print_scalar_formatted, val_print_array_elements): Remove.
8259 * rust-lang.c (rust_val_print): Remove.
8260 (rust_language_defn): Update.
8261 * p-valprint.c (pascal_val_print): Remove.
8262 (pascal_value_print_inner): Update.
8263 (pascal_object_print_val_fields, pascal_object_print_val):
8264 Remove.
8265 (pascal_object_print_static_field): Update.
8266 * p-lang.h (pascal_val_print): Don't declare.
8267 * p-lang.c (pascal_language_defn): Update.
8268 * opencl-lang.c (opencl_language_defn): Update.
8269 * objc-lang.c (objc_language_defn): Update.
8270 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8271 * m2-lang.h (m2_val_print): Don't declare.
8272 * m2-lang.c (m2_language_defn): Update.
8273 * language.h (struct language_defn) <la_val_print>: Remove.
8274 * language.c (unk_lang_value_print_inner): Rename. Change
8275 argument types.
8276 (unknown_language_defn, auto_language_defn): Update.
8277 * go-valprint.c (go_val_print): Remove.
8278 * go-lang.h (go_val_print): Don't declare.
8279 * go-lang.c (go_language_defn): Update.
8280 * f-valprint.c (f_val_print): Remove.
8281 * f-lang.h (f_value_print): Don't declare.
8282 * f-lang.c (f_language_defn): Update.
8283 * d-valprint.c (d_val_print): Remove.
8284 * d-lang.h (d_value_print): Don't declare.
8285 * d-lang.c (d_language_defn): Update.
8286 * cp-valprint.c (cp_print_value_fields)
8287 (cp_print_value_fields_rtti, cp_print_value): Remove.
8288 (cp_print_static_field): Update.
8289 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8290 (c_val_print_struct, c_val_print_union, c_val_print_int)
8291 (c_val_print_memberptr, c_val_print): Remove.
8292 * c-lang.h (c_val_print_array, cp_print_value_fields)
8293 (cp_print_value_fields_rtti): Don't declare.
8294 * c-lang.c (c_language_defn, cplus_language_defn)
8295 (asm_language_defn, minimal_language_defn): Update.
8296 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8297 (ada_val_print_enum): Take a struct value.
8298 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8299 (ada_val_print): Remove.
8300 (ada_value_print_1): Update.
8301 (printable_val_type): Remove.
8302 * ada-lang.h (ada_val_print): Don't declare.
8303 * ada-lang.c (ada_language_defn): Update.
8304
42331a1e
TT
83052020-03-13 Tom Tromey <tom@tromey.com>
8306
8307 * valprint.c (do_val_print): Update.
8308 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8309 a struct value.
8310 (value_to_value_object_no_release): Declare.
8311 * python/py-value.c (value_to_value_object_no_release): New
8312 function.
8313 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8314 struct value.
8315 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8316 function.
8317 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8318 a struct value.
8319 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8320 Declare.
8321 (gdbscm_apply_val_pretty_printer): Take a struct value.
8322 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8323 value.
8324 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8325 value.
8326 * extension-priv.h (struct extension_language_ops)
8327 <apply_val_pretty_printer>: Take a struct value.
8328 * cp-valprint.c (cp_print_value): Create a struct value.
8329 (cp_print_value): Update.
8330
3a916a97
TT
83312020-03-13 Tom Tromey <tom@tromey.com>
8332
8333 * ada-valprint.c (print_field_values): Call common_val_print.
8334
b59eac37
TT
83352020-03-13 Tom Tromey <tom@tromey.com>
8336
8337 * ada-valprint.c (val_print_packed_array_elements): Remove
8338 bitoffset and val parameters. Call common_val_print.
8339 (ada_val_print_string): Remove offset, address, and original_value
8340 parameters.
8341 (ada_val_print_array): Update.
8342 (ada_value_print_array): New function.
8343 (ada_value_print_1): Call it.
8344
03371129
TT
83452020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * ada-valprint.c (ada_value_print): Use common_val_print.
8348
2e088f8b
TT
83492020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8352
39ef85a8
TT
83532020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * ada-valprint.c (ada_value_print_num): New function.
8356 (ada_value_print_1): Use it.
8357
b9fa6e07
TT
83582020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8361
416595d6
TT
83622020-03-13 Tom Tromey <tom@tromey.com>
8363
8364 * ada-valprint.c (ada_value_print_ptr): New function.
8365 (ada_value_print_1): Use it.
8366
5b5e15ec
TT
83672020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8370 call common_val_print.
8371 (ada_val_print_1): Update.
8372 (ada_value_print_1): New function.
8373 (ada_value_print_inner): Rewrite.
8374
fbf54e75
TT
83752020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * cp-valprint.c (cp_print_value_fields): Update.
8378 (cp_print_value): New function.
8379
64b653ca
TT
83802020-03-13 Tom Tromey <tom@tromey.com>
8381
8382 * m2-valprint.c (m2_value_print_inner): Use
8383 cp_print_value_fields.
8384 * cp-valprint.c (cp_print_value_fields): New function.
8385 * c-valprint.c (c_value_print_struct): New function.
8386 (c_value_print_inner): Use c_value_print_struct.
8387 * c-lang.h (cp_print_value_fields): Declare.
8388
6999f067
TT
83892020-03-13 Tom Tromey <tom@tromey.com>
8390
8391 * c-valprint.c (c_value_print_array): New function.
8392 (c_value_print_inner): Use it.
8393
ce80b8bd
TT
83942020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * c-valprint.c (c_value_print_memberptr): New function.
8397 (c_value_print_inner): Use it.
8398
2faac269
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * c-valprint.c (c_value_print_int): New function.
8402 (c_value_print_inner): Use it.
8403
da3e2c29
TT
84042020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * c-valprint.c (c_value_print_ptr): New function.
8407 (c_value_print_inner): Use it.
8408
50836231
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * c-valprint.c (c_value_print_inner): Rewrite.
8412
4f412b6e
TT
84132020-03-13 Tom Tromey <tom@tromey.com>
8414
8415 * valprint.c (generic_value_print_complex): New function.
8416 (generic_value_print): Use it.
8417
f5354008
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * valprint.c (generic_val_print_float): Don't call
8421 val_print_scalar_formatted.
8422 (generic_val_print, generic_value_print): Update.
8423
3eec3b05
TT
84242020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * valprint.c (generic_value_print_char): New function
8427 (generic_value_print): Use it.
8428
fdddfccb
TT
84292020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * valprint.c (generic_value_print_int): New function.
8432 (generic_value_print): Use it.
8433
6dde7521
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * valprint.c (generic_value_print_bool): New function.
8437 (generic_value_print): Use it.
8438
4112d2e6
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * valprint.c (generic_val_print_func): Simplify.
8442 (generic_val_print, generic_value_print): Update.
8443
65786af6
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * valprint.c (generic_val_print_flags): Remove.
8447 (generic_val_print, generic_value_print): Update.
8448 (val_print_type_code_flags): Add original_value parameter.
8449
40f3ce18
TT
84502020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * valprint.c (generic_val_print): Update.
8453 (generic_value_print): Update.
8454 * valprint.c (generic_val_print_enum): Don't call
8455 val_print_scalar_formatted.
8456
2a5b130b
TT
84572020-03-13 Tom Tromey <tom@tromey.com>
8458
8459 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8460 * valprint.c (generic_value_print_ptr): New function.
8461
abc66ce9
TT
84622020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * valprint.c (generic_value_print): Rewrite.
8465
07a32858
TT
84662020-03-13 Tom Tromey <tom@tromey.com>
8467
8468 * p-valprint.c (pascal_object_print_value_fields)
8469 (pascal_object_print_value): New functions.
8470
64d64d3a
TT
84712020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * p-valprint.c (pascal_value_print_inner): Rewrite.
8474
6a95a1f5
TT
84752020-03-13 Tom Tromey <tom@tromey.com>
8476
8477 * f-valprint.c (f_value_print_innner): Rewrite.
8478
59fcdac6
TT
84792020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * m2-valprint.c (m2_print_unbounded_array): New overload.
8482 (m2_print_unbounded_array): Update.
8483 (m2_print_array_contents): Take a struct value.
8484 (m2_value_print_inner): Rewrite.
8485
d133c3e1
TT
84862020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8489 (d_value_print_inner): New function.
8490 * d-lang.h (d_value_print_inner): Declare.
8491 * d-lang.c (d_language_defn): Use d_value_print_inner.
8492
23b0f06b
TT
84932020-03-13 Tom Tromey <tom@tromey.com>
8494
8495 * go-valprint.c (go_value_print_inner): New function.
8496 * go-lang.h (go_value_print_inner): Declare.
8497 * go-lang.c (go_language_defn): Use go_value_print_inner.
8498
5f56f7cb
TT
84992020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8502 API.
8503 (rust_val_print): Rewrite.
8504 (rust_value_print_inner): New function, from rust_val_print.
8505 (rust_language_defn): Use rust_value_print_inner.
8506
26792ee0
TT
85072020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * ada-valprint.c (ada_value_print_inner): New function.
8510 * ada-lang.h (ada_value_print_inner): Declare.
8511 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8512
24051bbe
TT
85132020-03-13 Tom Tromey <tom@tromey.com>
8514
8515 * f-valprint.c (f_value_print_innner): New function.
8516 * f-lang.h (f_value_print_innner): Declare.
8517 * f-lang.c (f_language_defn): Use f_value_print_innner.
8518
c0941be6
TT
85192020-03-13 Tom Tromey <tom@tromey.com>
8520
8521 * p-valprint.c (pascal_value_print_inner): New function.
8522 * p-lang.h (pascal_value_print_inner): Declare.
8523 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8524
62c4663d
TT
85252020-03-13 Tom Tromey <tom@tromey.com>
8526
8527 * m2-valprint.c (m2_value_print_inner): New function.
8528 * m2-lang.h (m2_value_print_inner): Declare.
8529 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8530
62182190
TT
85312020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8534 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8535 * c-valprint.c (c_value_print_inner): New function.
8536 * c-lang.h (c_value_print_inner): Declare.
8537 * c-lang.c (c_language_defn, cplus_language_defn)
8538 (asm_language_defn, minimal_language_defn): Use
8539 c_value_print_inner.
8540
1e592a8a
TT
85412020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * p-valprint.c (pascal_object_print_value_fields): Now static.
8544 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8545
7fe471e9
TT
85462020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * c-valprint.c (c_val_print_array): Simplify.
8549
d121c6ce
TT
85502020-03-13 Tom Tromey <tom@tromey.com>
8551
8552 * valprint.c (value_print_array_elements): New function.
8553 * valprint.h (value_print_array_elements): Declare.
8554
4dba70ee
TT
85552020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8558 * mips-tdep.c (mips_print_register): Use
8559 value_print_scalar_formatted.
8560
4f9ae810
TT
85612020-03-13 Tom Tromey <tom@tromey.com>
8562
8563 * valprint.h (value_print_scalar_formatted): Declare.
8564 * valprint.c (value_print_scalar_formatted): New function.
8565
156bfec9
TT
85662020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * valprint.h (generic_value_print): Declare.
8569 * valprint.c (generic_value_print): New function.
8570
2b4e573d
TT
85712020-03-13 Tom Tromey <tom@tromey.com>
8572
8573 * valprint.c (do_val_print): Call la_value_print_inner, if
8574 available.
8575 * rust-lang.c (rust_language_defn): Update.
8576 * p-lang.c (pascal_language_defn): Update.
8577 * opencl-lang.c (opencl_language_defn): Update.
8578 * objc-lang.c (objc_language_defn): Update.
8579 * m2-lang.c (m2_language_defn): Update.
8580 * language.h (struct language_defn) <la_value_print_inner>: New
8581 member.
8582 * language.c (unknown_language_defn, auto_language_defn): Update.
8583 * go-lang.c (go_language_defn): Update.
8584 * f-lang.c (f_language_defn): Update.
8585 * d-lang.c (d_language_defn): Update.
8586 * c-lang.c (c_language_defn, cplus_language_defn)
8587 (asm_language_defn, minimal_language_defn): Update.
8588 * ada-lang.c (ada_language_defn): Update.
8589
a1f6a07c
TT
85902020-03-13 Tom Tromey <tom@tromey.com>
8591
8592 * c-valprint.c (c_value_print): Use common_val_print.
8593
410cf315
TT
85942020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8597
72a45c93
TT
85982020-03-13 Tom Tromey <tom@tromey.com>
8599
8600 * f-valprint.c (f77_print_array_1, f_val_print): Use
8601 common_val_print.
8602
040f66bd
TT
86032020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * riscv-tdep.c (riscv_print_one_register_info): Use
8606 common_val_print.
8607
a6e05a6c
TT
86082020-03-13 Tom Tromey <tom@tromey.com>
8609
8610 * mi/mi-main.c (output_register): Use common_val_print.
8611
3444c526
TT
86122020-03-13 Tom Tromey <tom@tromey.com>
8613
8614 * infcmd.c (default_print_one_register_info): Use
8615 common_val_print.
8616
c2a44efe
TT
86172020-03-13 Tom Tromey <tom@tromey.com>
8618
8619 * valprint.h (common_val_print_checked): Declare.
8620 * valprint.c (common_val_print_checked): New function.
8621 * stack.c (print_frame_arg): Use common_val_print_checked.
8622
b0c26e99
TT
86232020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * valprint.c (do_val_print): New function, from val_print.
8626 (val_print): Use do_val_print.
8627 (common_val_print): Use do_val_print.
8628
ce3acbe9
TT
86292020-03-13 Tom Tromey <tom@tromey.com>
8630
8631 * valprint.c (value_print): Use scoped_value_mark.
8632
96c7f873
TV
86332020-03-13 Tom de Vries <tdevries@suse.de>
8634
8635 PR symtab/25646
8636 * psymtab.c (partial_symtab::partial_symtab): Don't set
8637 globals_offset and statics_offset. Push element onto
8638 current_global_psymbols and current_static_psymbols stacks.
8639 (concat): New function.
8640 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8641 element from current_global_psymbols and current_static_psymbols
8642 stacks. Concat popped elements to global_psymbols and
8643 static_symbols.
8644 (add_psymbol_to_list): Use current_global_psymbols and
8645 current_static_psymbols stacks.
8646 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8647 current_static_psymbols fields.
8648
6ba0a321
CB
86492020-03-12 Christian Biesinger <cbiesinger@google.com>
8650
8651 * corelow.c (sniff_core_bfd): Remove.
8652 (class core_target) <m_core_vec>: Remove.
8653 (core_target::core_target): Update.
8654 (core_file_fns): Remove.
8655 (deprecated_add_core_fns): Remove.
8656 (default_core_sniffer): Remove.
8657 (sniff_core_bfd): Remove.
8658 (default_check_format): Remove.
8659 (gdb_check_format): Remove.
8660 (core_target_open): Update.
8661 (core_target::get_core_register_section): Update.
8662 (get_core_registers_cb): Update.
8663 (core_target::fetch_registers): Update.
8664 * gdbcore.h (struct core_fns): Remove.
8665 (deprecated_add_core_fns): Remove.
8666 (default_core_sniffer): Remove.
8667 (default_check_format): Remove.
8668
227031b2
TT
86692020-03-12 Tom Tromey <tom@tromey.com>
8670
8671 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8672 CORE_ADDR.
8673 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8674
53807e9f
TT
86752020-03-12 Tom Tromey <tom@tromey.com>
8676
8677 * remote.c (remote_target::download_tracepoint)
8678 (remote_target::enable_tracepoint)
8679 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8680 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8681 sprintf_vma.
8682
64f25102
TT
86832020-03-12 Tom Tromey <tom@tromey.com>
8684
8685 * symfile-mem.c: Update CORE_ADDR size assert.
8686
272cd5a3
SM
86872020-03-12 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * selftest.m4: Move to gdbsupport/.
8690 * acinclude.m4: Update path to selftest.m4.
8691
74cd3f9d
SM
86922020-03-12 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8695 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8696 gdbarch-selfselftests.c and selftest-arch.c.
8697 (SUBDIR_UNITTESTS_OBS): Rename to...
8698 (SELFTESTS_OBS): ... this.
8699 (COMMON_SFILES): Remove disasm-selftests.c and
8700 gdbarch-selftests.c.
8701 * configure.ac: Don't add selftest-arch.{c,o} to
8702 CONFIG_{SRCS,OBS}.
8703 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8704 preprocessor conditions.
8705
db6878ac
SM
87062020-03-12 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * configure.ac: Don't source bfd/development.sh.
8709 * selftest.m4: Modify comment.
8710 * configure: Re-generate.
8711
4d696a5c
SM
87122020-03-12 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8715 not "true" or "false".
8716 * configure: Re-generate.
8717
8dd8e1c7
CB
87182020-03-12 Christian Biesinger <cbiesinger@google.com>
8719
8720 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8721 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8722 renamed to arm_nbsd_supply_gregset.
8723 (fetch_register): Update to call arm_nbsd_supply_gregset.
8724 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8725 (arm_netbsd_nat_target::fetch_registers): Update.
8726 (fetch_elfcore_registers): Removed.
8727 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8728 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8729 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8730 not require NetBSD system headers.
8731 (arm_nbsd_regset): New struct.
8732 (arm_nbsd_iterate_over_regset_sections): New function.
8733 (arm_netbsd_init_abi_common): Updated to call
8734 set_gdbarch_iterate_over_regset_sections.
8735 * arm-nbsd-tdep.h: New file.
8736
dd69bf7a
KB
87372020-03-11 Kevin Buettner <kevinb@redhat.com>
8738
8739 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8740 recursion.
8741
a0761e34
SM
87422020-03-11 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * configure: Re-generate.
8745
e7a82140
TT
87462020-03-11 Tom Tromey <tromey@adacore.com>
8747
8748 * ada-typeprint.c (print_choices): Fix comment.
8749
dcc050c8
AB
87502020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8751
8752 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8753 previous item in the list, when the list has no items.
8754
1c33af77
TV
87552020-03-11 Tom de Vries <tdevries@suse.de>
8756
8757 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8758 PROP_LOCLIST handling code.
8759
8c95582d
AB
87602020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * buildsym-legacy.c (record_line): Pass extra parameter to
8763 record_line.
8764 * buildsym.c (buildsym_compunit::record_line): Take an extra
8765 parameter, reduce duplication in the line table, and record the
8766 is_stmt flag in the line table.
8767 * buildsym.h (buildsym_compunit::record_line): Add extra
8768 parameter.
8769 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8770 non-statement lines.
8771 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8772 this to the symtab builder.
8773 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8774 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8775 through to dwarf_record_line_1.
8776 * infrun.c (process_event_stop_test): When stepping, don't stop at
8777 a non-statement instruction, and only refresh the step info when
8778 we land in the middle of a line's range. Also add an extra
8779 comment.
8780 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8781 field.
8782 * record-btrace.c (btrace_find_line_range): Only record lines
8783 marked as is-statement.
8784 * stack.c (frame_show_address): Show the frame address if we are
8785 in a non-statement sal.
8786 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8787 (maintenance_print_one_line_table): Print a header for the is_stmt
8788 column, and include is_stmt information in the output.
8789 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8790 preference to non-statements.
8791 (find_pcs_for_symtab_line): Prefer is-statement entries.
8792 (find_line_common): Likewise.
8793 * symtab.h (struct linetable_entry): Add is_stmt field.
8794 (struct symtab_and_line): Likewise.
8795 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8796 arranging the line table.
8797
e4003a34
TV
87982020-03-07 Tom de Vries <tdevries@suse.de>
8799
8800 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8801 DIE.
8802
e8932576
TT
88032020-03-07 Tom Tromey <tom@tromey.com>
8804
8805 * valops.c (value_literal_complex): Remove obsolete comment.
8806 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8807 comment.
8808
29734269
SM
88092020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8810
8811 * infrun.h: Forward-declare thread_info.
8812 (set_step_info): Add thread_info parameter, add doc.
8813 * infrun.c (set_step_info): Add thread_info parameter, move doc
8814 to header.
8815 * infrun.c (process_event_stop_test): Pass thread to
8816 set_step_info call.
8817 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8818 set_step_info.
8819 (prepare_one_step): Add thread_info parameter, pass it to
8820 set_step_frame and prepare_one_step (recursive) call.
8821 (step_1): Pass thread to prepare_one_step call.
8822 (step_command_fsm::should_stop): Pass thread to
8823 prepare_one_step.
8824 (until_next_fsm): Pass thread to set_step_frame call.
8825 (finish_command): Pass thread to set_step_info call.
8826
b7d64b29
HD
88272020-03-06 Hannes Domani <ssbssa@yahoo.de>
8828
8829 * windows-tdep.c (windows_solib_create_inferior_hook):
8830 Check if inferior is running.
8831
09f2921c
TV
88322020-03-06 Tom de Vries <tdevries@suse.de>
8833
8834 * NEWS: Fix "the the".
8835 * ctfread.c: Same.
8836
fd760e79
TV
88372020-03-06 Tom de Vries <tdevries@suse.de>
8838
8839 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8840
20ea4a60
AB
88412020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * .dir-locals.el: Add a comment referencing the other copies of
8844 this file.
8845
0afbabf0
JB
88462020-03-05 John Baldwin <jhb@FreeBSD.org>
8847
8848 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8849 psargs.
8850
842806cb
TBA
88512020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8852
8853 * .gitattributes: New file.
8854
be1e3d3e
TT
88552020-03-04 Tom Tromey <tom@tromey.com>
8856
8857 * symmisc.c (print_symbol_bcache_statistics)
8858 (print_objfile_statistics): Update.
8859 * symfile.c (allocate_symtab): Use intern.
8860 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8861 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8862 macro_cache>: Remove.
8863 <string_cache>: New member.
8864 (struct objfile) <intern>: New methods.
8865 * elfread.c (elf_symtab_read): Use intern.
8866 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8867 (dwarf2_compute_name, dwarf2_physname)
8868 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8869 names.
8870 (guess_partial_die_structure_name): Update.
8871 (partial_die_info::fixup): Intern name.
8872 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8873 name.
8874 (dwarf2_name): Intern name. Update.
8875 * buildsym.c (buildsym_compunit::get_macro_table): Use
8876 string_cache.
8877
4e7625fd
TT
88782020-03-04 Tom Tromey <tom@tromey.com>
8879
8880 * jit.c (bfd_open_from_target_memory): Make "target" const.
8881 * corefile.c (gnutarget): Now const.
8882 * gdbcore.h (gnutarget): Now const.
8883
46f9f931
HD
88842020-03-04 Hannes Domani <ssbssa@yahoo.de>
8885
8886 * NEWS: Mention support for WOW64 processes.
8887 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8888 (amd64_windows_segment_register_p): Remove static.
8889 (_initialize_amd64_windows_nat): Update.
8890 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8891 * i386-windows-nat.c (context_offset): Update.
8892 (i386_mappings): Rename and remove static.
8893 (i386_windows_segment_register_p): Remove static.
8894 (_initialize_i386_windows_nat): Update.
8895 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8896 (STATUS_WX86_SINGLE_STEP): New macro.
8897 (EnumProcessModulesEx): New macro.
8898 (Wow64SuspendThread): New macro.
8899 (Wow64GetThreadContext): New macro.
8900 (Wow64SetThreadContext): New macro.
8901 (Wow64GetThreadSelectorEntry): New macro.
8902 (windows_set_context_register_offsets): Add static.
8903 (windows_set_segment_register_p): Likewise.
8904 (windows_add_thread): Adapt for WOW64 processes.
8905 (windows_fetch_one_register): Likewise.
8906 (windows_nat_target::fetch_registers): Likewise.
8907 (windows_store_one_register): Likewise.
8908 (display_selector): Likewise.
8909 (display_selectors): Likewise.
8910 (handle_exception): Likewise.
8911 (windows_continue): Likewise.
8912 (windows_nat_target::resume): Likewise.
8913 (windows_add_all_dlls): Likewise.
8914 (do_initial_windows_stuff): Likewise.
8915 (windows_nat_target::attach): Likewise.
8916 (windows_get_exec_module_filename): Likewise.
8917 (windows_nat_target::create_inferior): Likewise.
8918 (windows_xfer_siginfo): Likewise.
8919 (_initialize_loadable): Initialize Wow64SuspendThread,
8920 Wow64GetThreadContext, Wow64SetThreadContext,
8921 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8922 * windows-nat.h (windows_set_context_register_offsets):
8923 Remove declaration.
8924 (windows_set_segment_register_p): Likewise.
8925 (i386_windows_segment_register_p): Add declaration.
8926 (amd64_windows_segment_register_p): Likewise.
8927
440cf44e
LM
89282020-03-04 Luis Machado <luis.machado@linaro.org>
8929
8930 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8931 in "info registers" for AArch64/ARM.
8932
8933 The change caused "info registers" to not print GPR's.
8934
8935 gdb/ChangeLog:
8936
8937 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8938
8939 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8940 when reg->group is empty and reggroup is not.
8941
1009d92f
TT
89422020-03-03 Tom Tromey <tromey@adacore.com>
8943
8944 * dwarf2/frame.c (struct dwarf2_frame_cache)
8945 <checked_tailcall_bottom, entry_cfa_sp_offset,
8946 entry_cfa_sp_offset_p>: Remove members.
8947 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8948 (dwarf2_frame_prev_register): Don't call
8949 dwarf2_tailcall_sniffer_first.
8950 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8951 * frame-unwind.c (add_unwinder): New fuction.
8952 (frame_unwind_init): Use it. Add tailcall unwinder.
8953
5e5d66b6
AB
89542020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8955 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8956
8957 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8958 value should be printed as true.
8959
584cf46d
HD
89602020-03-03 Hannes Domani <ssbssa@yahoo.de>
8961
8962 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8963 (windows_init_abi): Set and use windows_so_ops.
8964
7b973adc
SDJ
89652020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8966
8967 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8968 when verifying if dealing with a convenience variable.
8969
bb7b70ab
LM
89702020-03-03 Luis Machado <luis.machado@linaro.org>
8971
8972 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8973
9822cb57
SM
89742020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8975
8976 * infrun.c (gdbarch_supports_displaced_stepping): New.
8977 (use_displaced_stepping): Break up conditions in smaller pieces.
8978 Use gdbarch_supports_displaced_stepping.
8979 (displaced_step_prepare_throw): Use
8980 gdbarch_supports_displaced_stepping.
8981
63e163f2
AB
89822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8983
8984 * NEWS: Mention new behaviour of the history filename.
8985 * top.c (write_history_p): Add comment.
8986 (show_write_history_p): Add header comment, give a different
8987 message when history writing is on, but the history filename is
8988 empty.
8989 (history_filename): Add comment.
8990 (history_filename_empty): New function.
8991 (show_history_filename): Add header comment, give a different
8992 message when the filename is empty.
8993 (init_history): Compare history_filename against nullptr, and only
8994 read history if the filename is not empty.
8995 (set_history_filename): Add header comment, and only make
8996 non-empty filenames absolute.
8997 (init_main): Make the filename argument to 'set history filename'
8998 optional.
8999
81b86b97
CB
90002020-03-02 Christian Biesinger <cbiesinger@google.com>
9001
9002 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9003 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9004 (fetch_fp_register): Update.
9005 (fetch_fp_regs): Update.
9006 (store_fp_register): Update.
9007 (store_fp_regs): Update.
9008 (arm_netbsd_nat_target::read_description): New function.
9009 (fetch_elfcore_registers): Update.
9010
24ed6739
AB
90112020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9014 general_thread if the stop reply is missing a thread-id.
9015 (remote_target::process_stop_reply): Use the first non-exited
9016 thread if the target didn't pass a thread-id.
9017 * infrun.c (do_target_wait): Move call to
9018 switch_to_inferior_no_thread to ....
9019 (do_target_wait_1): ... here.
9020
a84bb2a0
JT
90212020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9022
9023 * debuginfod-support.c: Include defs.h first.
9024
658dadf0
TV
90252020-02-28 Tom de Vries <tdevries@suse.de>
9026
9027 * symfile.c (set_initial_language): Use default language for lookup.
9028
4ebe4877
SM
90292020-02-28 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9032 reader variable, pass `this` to read_cutu_die_from_dwo.
9033
e5da1139
AM
90342020-02-27 Aaron Merey <amerey@redhat.com>
9035
9036 * source.c (open_source_file): Check for nullptr when computing
9037 srcpath.
9038
317f7127
TT
90392020-02-27 Tom Tromey <tromey@adacore.com>
9040
9041 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9042 member.
9043 (dwarf2_add_field): Don't update nfields.
9044 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9045
3104d9ee
AB
90462020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9049 abs.
9050
b83470bf
TT
90512020-02-26 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9054 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9055 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9056 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9057 per_cu_data.
9058
edfe0a0c
TT
90592020-02-26 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/index-write.c (psym_index_map): Change type.
9062 (add_address_entry_worker, write_one_signatured_type)
9063 (recursively_count_psymbols, recursively_write_psymbols)
9064 (class debug_names, psyms_seen_size, write_gdbindex)
9065 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9066
0d79cdc4
AM
90672020-02-26 Aaron Merey <amerey@redhat.com>
9068
9069 * Makefile.in: Handle optional debuginfod support.
9070 * NEWS: Update.
9071 * README: Add --with-debuginfod summary.
9072 * config.in: Regenerate.
9073 * configure: Regenerate.
9074 * configure.ac: Handle optional debuginfod support.
9075 * debuginfod-support.c: debuginfod helper functions.
9076 * debuginfod-support.h: Ditto.
9077 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9078 summary.
9079 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9080 when a dwz file cannot be found.
9081 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9082 debuginfo file cannot be found.
9083 * source.c (open_source_file): Query debuginfod servers when a
9084 source file cannot be found.
9085 * top.c (print_gdb_configuration): Include
9086 --{with,without}-debuginfod in the output.
9087
b65ce565
JG
90882020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9089
9090 * thread.c (thr_try_catch_cmd): Print thread name.
9091
d4c9a4f8
SM
90922020-02-26 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9095 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9096 dwarf2_fetch_die_type_sect_off): Move to...
9097 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9099 dwarf2_fetch_die_type_sect_off): ... here.
9100 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9101 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9102 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9103
0dce4280
TV
91042020-02-26 Tom de Vries <tdevries@suse.de>
9105
9106 PR gdb/25603
9107 * symfile.c (set_initial_language): Exit-early if
9108 language_mode == language_mode_manual.
9109
450a1bfc
SM
91102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9111
9112 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9113 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9114 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9115
9e80cfa1
AB
91162020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * gdbtypes.c (create_array_type_with_stride): Handle negative
9119 array strides.
9120 * valarith.c (value_subscripted_rvalue): Likewise.
9121
09624f1f
LM
91222020-02-25 Luis Machado <luis.machado@linaro.org>
9123
9124 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9125
8cb5117c
SM
91262020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9127
9128 * loc.h (dwarf2_get_die_type): Move to...
9129 * read.h (dwarf2_get_die_type): ... here.
9130 * read.c (dwarf2_get_die_type): Move doc to header.
9131
c325c44e
JB
91322020-02-25 Joel Brobecker <brobecker@adacore.com>
9133
9134 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9135 'gnulib/Makefile.in' to the list.
9136
4ac93832
TT
91372020-02-24 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9140 Remove.
9141 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9142 XOBNEWVEC.
9143
197400e8
TT
91442020-02-24 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9147 New method.
9148 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9149 (dw2_do_instantiate_symtab, dw2_get_file_names)
9150 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9151
76935768
TT
91522020-02-24 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9155 make_scoped_restore.
9156 (dwarf2_psymtab::read_symtab): Don't clear
9157 reading_partial_symbols.
9158
a88ef40d
TV
91592020-02-24 Tom de Vries <tdevries@suse.de>
9160
9161 PR gdb/25592
9162 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9163
c9af6521
TV
91642020-02-24 Tom de Vries <tdevries@suse.de>
9165
9166 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9167 commands layout next/prev/regs.
9168
5707a07a
TT
91692020-02-22 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9172 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9173
3b0fb49e
TT
91742020-02-22 Tom Tromey <tom@tromey.com>
9175
9176 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9177
283be8bf
TT
91782020-02-22 Tom Tromey <tom@tromey.com>
9179
9180 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9181 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9182 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9183 * tui/tui.c (_initialize_tui): Add usage text.
9184
ca793b96
TT
91852020-02-22 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-win.c (tui_set_focus_command)
9188 (tui_set_win_height_command): Use error_no_arg.
9189 (_initialize_tui_win): Update help text.
9190 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9191
432b5c40
TT
91922020-02-22 Tom Tromey <tom@tromey.com>
9193
9194 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9195 * tui/tui-disasm.h (struct tui_disasm_window)
9196 <display_start_addr>: Declare.
9197 * tui/tui-source.h (struct tui_source_window)
9198 <display_start_addr>: Declare.
9199 * tui/tui-winsource.h (struct tui_source_window_base)
9200 <show_source_line, display_start_addr>: New methods.
9201 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9202 Rename and move to protected section.
9203 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9204 (tui_source_window_base::do_erase_source_content): Update.
9205 (tui_source_window_base::show_source_line): Now a method.
9206 (tui_source_window_base::show_source_content)
9207 (tui_source_window_base::tui_source_window_base)
9208 (tui_source_window_base::rerender)
9209 (tui_source_window_base::refill)
9210 (tui_source_window_base::do_scroll_horizontal)
9211 (tui_source_window_base::set_is_exec_point_at)
9212 (tui_source_window_base::update_breakpoint_info)
9213 (tui_source_window_base::update_exec_info): Update.
9214 * tui/tui-source.c (tui_source_window::set_contents)
9215 (tui_source_window::showing_source_p)
9216 (tui_source_window::do_scroll_vertical)
9217 (tui_source_window::location_matches_p)
9218 (tui_source_window::line_is_displayed): Update.
9219 (tui_source_window::display_start_addr): New method.
9220 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9221 (tui_disasm_window::do_scroll_vertical)
9222 (tui_disasm_window::location_matches_p): Update.
9223 (tui_disasm_window::display_start_addr): New method.
9224
01b1af32
TT
92252020-02-22 Tom Tromey <tom@tromey.com>
9226
9227 * NEWS: Add entry for gdb.register_window_type.
9228 * tui/tui-layout.h (window_factory): New typedef.
9229 (tui_register_window): Declare.
9230 * tui/tui-layout.c (saved_tui_windows): New global.
9231 (tui_apply_current_layout): Use it.
9232 (tui_register_window): New function.
9233 * python/python.c (do_start_initialization): Call
9234 gdbpy_initialize_tui.
9235 (python_GdbMethods): Add "register_window_type" function.
9236 * python/python-internal.h (gdbpy_register_tui_window)
9237 (gdbpy_initialize_tui): Declare.
9238 * python/py-tui.c: New file.
9239 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9240
fc96d20b
TT
92412020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9244
935c78c0
TT
92452020-02-22 Tom Tromey <tom@tromey.com>
9246
9247 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9248 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9249 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9250 (tui_set_win_focus_to): Move from tui-win.c.
9251
0240c8f1
TT
92522020-02-22 Tom Tromey <tom@tromey.com>
9253
9254 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9255 functions.
9256 (known_window_types): New global.
9257 (tui_get_window_by_name): Reimplement.
9258 (initialize_known_windows): New function.
9259 (validate_window_name): Rewrite.
9260 (_initialize_tui_layout): Call initialize_known_windows.
9261
fdb01f0c
TT
92622020-02-22 Tom Tromey <tom@tromey.com>
9263
9264 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9265 Remove constants.
9266 * tui/tui-winsource.h (struct tui_source_window_base)
9267 <tui_source_window_base>: Remove parameter.
9268 * tui/tui-winsource.c
9269 (tui_source_window_base::tui_source_window_base): Remove
9270 parameter.
9271 (tui_source_window_base::refill): Update.
9272 * tui/tui-stack.h (struct tui_locator_window)
9273 <tui_locator_window>: Update.
9274 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9275 Default the constructor.
9276 * tui/tui-regs.h (struct tui_data_item_window)
9277 <tui_data_item_window>: Default the constructor.
9278 (struct tui_data_window) <tui_data_window>: Likewise.
9279 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9280 Default the constructor.
9281 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9282 Default the constructor.
9283 <type>: Remove.
9284 (struct tui_win_info) <tui_win_info>: Default the constructor.
9285 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9286 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9287 Default the constructor.
9288
865a5aec
TT
92892020-02-22 Tom Tromey <tom@tromey.com>
9290
9291 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9292 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9293 * tui/tui-win.c (tui_resize_all): Don't call
9294 tui_delete_invisible_windows.
9295 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9296 done.
9297 (tui_set_layout): Update.
9298 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9299 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9300 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9301
e098d18c
TT
93022020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9305 correctly.
9306
eb9c8874
TT
93072020-02-22 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9310
7eed1a8e
TT
93112020-02-22 Tom Tromey <tom@tromey.com>
9312
9313 * tui/tui-winsource.h (struct tui_source_window_iterator)
9314 <inner_iterator>: New etytypedef.
9315 <tui_source_window_iterator>: Take "end" parameter.
9316 <tui_source_window_iterator>: Take iterator.
9317 <operator*, advance>: Update.
9318 <m_iter>: Change type.
9319 <m_end>: New field.
9320 (struct tui_source_windows) <begin, end>: Update.
9321 * tui/tui-layout.c (tui_windows): New global.
9322 (tui_apply_current_layout): Clear tui_windows.
9323 (tui_layout_window::apply): Update tui_windows.
9324 * tui/tui-data.h (tui_windows): Declare.
9325 (all_tui_windows): Now inline function.
9326 (class tui_window_iterator, struct all_tui_windows): Remove.
9327
7c043ba6
TT
93282020-02-22 Tom Tromey <tom@tromey.com>
9329
9330 PR tui/17850:
9331 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9332 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9333 "height" argument.
9334 (class tui_layout_window) <get_sizes>: Likewise.
9335 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9336 argument.
9337 <get_sizes>: Add "height" argument.
9338 <m_vertical>: New field.
9339 * tui/tui-layout.c (tui_layout_split::clone): Update.
9340 (tui_layout_split::get_sizes): Add "height" argument.
9341 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9342 (tui_new_layout_command): Parse "-horizontal".
9343 (_initialize_tui_layout): Update help string.
9344 (tui_layout_split::specification): Add "-horizontal" when needed.
9345 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9346 argument.
9347 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9348 New methods.
9349
6bc56648
TT
93502020-02-22 Tom Tromey <tom@tromey.com>
9351
9352 * tui/tui-layout.h (enum tui_adjust_result): New.
9353 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9354 (class tui_layout_window) <adjust_size>: Return
9355 tui_adjust_result. Rewrite.
9356 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9357 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9358
c22fef7e
TT
93592020-02-22 Tom Tromey <tom@tromey.com>
9360
9361 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9362 parameter and return types.
9363 (class tui_layout_base) <specification>: Add "depth".
9364 (class tui_layout_window) <specification>: Add "depth".
9365 (class tui_layout_split) <specification>: Add "depth".
9366 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9367 and return types.
9368 (tui_new_layout_command): Parse sub-layouts.
9369 (_initialize_tui_layout): Update help string.
9370 (tui_layout_window::specification): Add "depth".
9371 (add_layout_command): Update.
9372
ee325b61
TT
93732020-02-22 Tom Tromey <tom@tromey.com>
9374
9375 * NEWS: Add "tui new-layout" item.
9376 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9377 Add new-layout command to help text.
9378 (validate_window_name): New function.
9379 (tui_new_layout_command): New function.
9380 (_initialize_tui_layout): Register "new-layout".
9381 (tui_layout_window::specification): New method.
9382 (tui_layout_window::specification): New method.
9383 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9384 method.
9385 (class tui_layout_window) <specification>: New method.
9386 (class tui_layout_split) <specification>: New method.
9387
416eb92d
TT
93882020-02-22 Tom Tromey <tom@tromey.com>
9389
9390 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9391 * tui/tui-win.c (window_name_completer): Update comment.
9392 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9393 Declare method.
9394 (class tui_layout_window) <replace_window>: Likewise.
9395 (class tui_layout_split) <replace_window>: Likewise.
9396 (tui_set_layout): Don't declare.
9397 (tui_set_initial_layout): Declare function.
9398 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9399 (asm_regs_layout): New globals.
9400 (tui_current_layout, show_layout): Remove.
9401 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9402 (find_layout, tui_apply_layout): New function.
9403 (layout_completer): Remove.
9404 (tui_next_layout): Reimplement.
9405 (tui_next_layout_command): New function.
9406 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9407 (tui_regs_layout): Reimplement.
9408 (tui_regs_layout_command): New function.
9409 (extract_display_start_addr): Rewrite.
9410 (next_layout, prev_layout): Remove.
9411 (tui_layout_window::replace_window): New method.
9412 (tui_layout_split::replace_window): New method.
9413 (destroy_layout): New function.
9414 (layout_list): New global.
9415 (add_layout_command): New function.
9416 (initialize_layouts): Update.
9417 (tui_layout_command): New function.
9418 (_initialize_tui_layout): Install "layout" commands.
9419 * tui/tui-data.h (enum tui_layout_type): Remove.
9420 (tui_current_layout): Don't declare.
9421
0dbc2fc7
TT
94222020-02-22 Tom Tromey <tom@tromey.com>
9423
9424 * tui/tui-regs.c (tui_reg_layout): Remove.
9425 (tui_reg_command): Use tui_regs_layout.
9426 * tui/tui-layout.h (tui_reg_command): Declare.
9427 * tui/tui-layout.c (tui_reg_command): New function.
9428
5afe342e
TT
94292020-02-22 Tom Tromey <tom@tromey.com>
9430
9431 * tui/tui.c (tui_rl_delete_other_windows): Call
9432 tui_remove_some_windows.
9433 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9434 Declare method.
9435 (class tui_layout_window) <remove_windows>: New method.
9436 (class tui_layout_split) <remove_windows>: Declare.
9437 (tui_remove_some_windows): Declare.
9438 * tui/tui-layout.c (tui_remove_some_windows): New function.
9439 (tui_layout_split::remove_windows): New method.
9440
427326a8
TT
94412020-02-22 Tom Tromey <tom@tromey.com>
9442
9443 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9444 * tui/tui-layout.h (tui_next_layout): Declare.
9445 * tui/tui-layout.c (tui_next_layout): New function.
9446
3fe12b6d
TT
94472020-02-22 Tom Tromey <tom@tromey.com>
9448
9449 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9450 correct coordinates.
9451
59b8b5d2
TT
94522020-02-22 Tom Tromey <tom@tromey.com>
9453
9454 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9455 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9456 DATA_WIN case.
9457
2a3d458b
TT
94582020-02-22 Tom Tromey <tom@tromey.com>
9459
9460 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9461 TUI_DISASM_WIN, not tui_win_list.
9462
3f0cbb04
TT
94632020-02-22 Tom Tromey <tom@tromey.com>
9464
9465 * valprint.c (generic_val_print_enum_1)
9466 (val_print_type_code_flags): Style member names.
9467 * rust-lang.c (val_print_struct, rust_print_enum)
9468 (rust_print_struct_def, rust_internal_print_type): Style member
9469 names.
9470 * p-valprint.c (pascal_object_print_value_fields): Style member
9471 names. Only call fprintf_symbol_filtered for static members.
9472 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9473 * f-valprint.c (f_val_print): Style member names.
9474 * f-typeprint.c (f_type_print_base): Style member names.
9475 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9476 call fprintf_symbol_filtered for static members.
9477 (cp_print_class_member): Style member names.
9478 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9479 member names.
9480 * ada-valprint.c (ada_print_scalar): Style enum names.
9481 (ada_val_print_enum): Likewise.
9482 * ada-typeprint.c (print_enum_type): Style enum names.
9483
d4d947ae
TT
94842020-02-21 Tom Tromey <tom@tromey.com>
9485
9486 * psympriv.h (struct partial_symtab): Update comment.
9487
e94e944b
TT
94882020-02-21 Tom Tromey <tromey@adacore.com>
9489
9490 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9491 type is CORE_ADDR.
9492
1eb73179
TV
94932020-02-21 Tom de Vries <tdevries@suse.de>
9494
9495 PR gdb/25534
9496 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9497 if dependencies[i]->user != NULL.
9498
4f180d53
AT
94992020-02-21 Ali Tamur <tamur@google.com>
9500
9501 * dwarf2/read.c (dwarf2_name): Add null check.
9502
22b6cd70
TT
95032020-02-20 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9506 ">=", in binary search.
9507 (dwarf2_find_containing_comp_unit): New overload.
9508 (run_test): New self-test.
9509 (_initialize_dwarf2_read): Register new test.
9510
bd0cf5a6
NC
95112020-02-20 Nelson Chu <nelson.chu@sifive.com>
9512
9513 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9514 * riscv-tdep.h: Likewise.
9515 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9516 rv32-only CSR.
9517 * features/riscv/64bit-csr.xml: Regenerated.
9518
3f702acd
SDJ
95192020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9520 Tom Tromey <tom@tromey.com>
9521
9522 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9523 of 'fputc_unfiltered'.
9524 (putchar_unfiltered): Call 'fputc_unfiltered'.
9525 (fputc_unfiltered): Call 'fputs_unfiltered'.
9526
d13c7322
AB
95272020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9528
9529 * config.in: Regenerate.
9530 * configure: Regenerate.
9531 * configure.ac: Add --with-python-libdir option.
9532 * main.c: Use WITH_PYTHON_LIBDIR.
9533
869d8950
TT
95342020-02-19 Tom Tromey <tom@tromey.com>
9535
9536 * symtab.c (general_symbol_info::compute_and_set_names): Use
9537 obstack_strndup. Simplify call to symbol_set_demangled_name.
9538
298e9637
SM
95392020-02-19 Simon Marchi <simon.marchi@efficios.com>
9540
9541 * dwarf2/read.c (allocate_signatured_type_table,
9542 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9543 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9544 Remove objfile parameter, update all callers.
9545
08410482
DE
95462020-02-19 Doug Evans <dje@google.com>
9547
9548 PR rust/25535
9549 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9550 rust_enum_variant calculation.
9551
dfdeeca1
TT
95522020-02-19 Tom Tromey <tromey@adacore.com>
9553
9554 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9555
2ef5453b
TT
95562020-02-19 Tom Tromey <tromey@adacore.com>
9557
9558 * ada-lang.c (cache_symbol): Use obstack_strdup.
9559
9f1528a1
AB
95602020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * configure: Regenerate.
9563
d3c22fa8
TT
95642020-02-19 Tom Tromey <tromey@adacore.com>
9565
9566 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9567 NULL check.
9568
bf84f706
MR
95692020-02-19 Maciej W. Rozycki <macro@wdc.com>
9570
9571 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9572
d1c9b20f
AB
95732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9576 if GDBSERVER is not defined.
9577 (riscv_tdesc_cache): Likewise, also store const target_desc.
9578 (STATIC_IN_GDB): Define.
9579 (riscv_create_target_description): Update declaration with
9580 STATIC_IN_GDB.
9581 (riscv_lookup_target_description): New function, only define if
9582 GDBSERVER is not defined.
9583 * arch/riscv.h (riscv_create_target_description): Declare only
9584 when GDBSERVER is defined.
9585 (riscv_lookup_target_description): New declaration when GDBSERVER
9586 is not defined.
9587 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9588 (riscv_linux_read_features): ...this, and return
9589 riscv_gdbarch_features instead of target_desc.
9590 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9591 (riscv_linux_read_description): Rename to...
9592 (riscv_linux_read_features): ...this.
9593 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9594 Update to use riscv_gdbarch_features and
9595 riscv_lookup_target_description.
9596 * riscv-tdep.c (riscv_find_default_target_description): Use
9597 riscv_lookup_target_description instead of
9598 riscv_create_target_description.
9599
373d7ac0
SM
96002020-02-18 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * valprint.c (generic_val_print_enum_1): When printing a flag
9603 enum with value 0 and there is no enumerator with value 0, print
9604 just "0" instead of "(unknown: 0x0)".
9605
b29a2df0
SM
96062020-02-18 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * valprint.c (generic_val_print_enum_1): Print unknown part of
9609 flag enum in hex.
9610
6740f0cc
SM
96112020-02-18 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9614 flag enums to contain duplicate enumerators.
9615 * valprint.c (generic_val_print_enum_1): Update comment.
9616
edd45eb0
SM
96172020-02-18 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * dwarf2/read.c: Include "count-one-bits.h".
9620 (update_enumeration_type_from_children): If an enumerator has
9621 multiple bits set, don't treat the enumeration as a "flag enum".
9622 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9623 of flag enums have 0 or 1 bit set.
9624
6d0cf446
BE
96252020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9626
9627 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9628 conversion.
9629 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9630 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9631 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9632 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9633 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9634
7001c1b7
SM
96352020-02-18 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9638
fdb61c6c
SM
96392020-02-14 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9642 displaced_step_closure_up.
9643 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9644 (struct displaced_step_closure_up):
9645 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9646 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9647 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9648 Likewise.
9649 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9650 * gdbarch.c, gdbarch.h: Re-generate.
9651 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9652 displaced_step_closure_up.
9653 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9654 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9655 * infrun.h (displaced_step_closure_up): New type alias.
9656 (struct displaced_step_inferior_state) <step_closure>: Change
9657 type to displaced_step_closure_up.
9658 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9659 displaced_step_closure_up.
9660 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9661
a4a38eb4
TT
96622020-02-14 Tom Tromey <tom@tromey.com>
9663
9664 * minidebug.c (gnu_debug_key): New global.
9665 (find_separate_debug_file_in_section): Use it.
9666
e8217e61
SM
96672020-02-14 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9670 std::unique_ptr.
9671 * gdbarch.c: Re-generate.
9672 * gdbarch.h: Re-generate.
9673 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9674 change.
9675 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9676 type to std::unique_ptr.
9677 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9678 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9679 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9680 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9681 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9682 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9683 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9684 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9685 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9686
d8d83535
SM
96872020-02-14 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9690 std::unique_ptr.
9691 (displaced_step_clear): Rename to...
9692 (displaced_step_reset): ... this. Just call displaced->reset ().
9693 (displaced_step_clear_cleanup): Rename to...
9694 (displaced_step_reset_cleanup): ... this.
9695 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9696 (displaced_step_fixup): Likewise.
9697 (resume_1): Likewise.
9698 (handle_inferior_event): Restore child's memory before calling
9699 displaced_step_fixup on the parent.
9700 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9701 to std::unique_ptr.
9702 <step_closure>: Change type to std::unique_ptr.
9703
5f661e03
SM
97042020-02-14 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * arm-tdep.c: Include count-one-bits.h.
9707 (cleanup_block_store_pc): Use count_one_bits.
9708 (cleanup_block_load_pc): Use count_one_bits.
9709 (arm_copy_block_xfer): Use count_one_bits.
9710 (thumb2_copy_block_xfer): Use count_one_bits.
9711 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9712 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9713 (thumb_get_next_pcs_raw): Use count_one_bits.
9714 (arm_get_next_pcs_raw): Use count_one_bits_l.
9715 * arch/arm.c (bitcount): Remove.
9716 * arch/arm.h (bitcount): Remove.
9717
8084e579
TT
97182020-02-14 Tom Tromey <tromey@adacore.com>
9719
9720 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9721 Update.
9722 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9723 * dwarf2/loc.c (call_site_find_chain_1): Return
9724 unique_xmalloc_ptr.
9725 (call_site_find_chain): Likewise.
9726
258bf0ee
RB
97272020-02-14 Richard Biener <rguenther@suse.de>
9728
9729 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9730 on expression with division operators.
9731
f98a8458
AKS
97322020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9733
9734 * MAINTAINERS (Write After Approval): Adding myself.
9735
d1437c0e
TT
97362020-02-12 Tom Tromey <tom@tromey.com>
9737
9738 * event-loop.c (event_data, gdb_event, event_handler_func):
9739 Remove.
9740
3d4560f7
TT
97412020-02-12 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9744 (dwarf2_frame_objfile_data): Add comment.
9745 (find_comp_unit, set_comp_unit): New functions.
9746 (dwarf2_frame_find_fde): Use find_comp_unit.
9747 (dwarf2_build_frame_info): Use set_comp_unit.
9748
21982304
TT
97492020-02-12 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9752 (comp_unit): Don't initialize objfile.
9753 (execute_cfa_program): Add text_offset parameter.
9754 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9755 (dwarf2_frame_cache): Update.
9756 (dwarf2_build_frame_info): Don't set "objfile" member.
9757
4debb237
TT
97582020-02-12 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9761 (decode_frame_entry): Likewise.
9762 (dwarf2_build_frame_info): Update.
9763
0d404d44
TT
97642020-02-12 Tom Tromey <tom@tromey.com>
9765
9766 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9767 (decode_frame_entry_1): Use the comp_unit obstack.
9768
a7a3ae5c
TT
97692020-02-12 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/frame.c (struct comp_unit): Add initializers and
9772 constructor.
9773 (dwarf2_frame_objfile_data): Store a comp_unit.
9774 (dwarf2_frame_find_fde): Update.
9775 (dwarf2_build_frame_info): Use "new".
9776
a9d65418
TT
97772020-02-12 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9780 (dwarf2_fde_table): Typedef for std::vector.
9781 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9782 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9783 (decode_frame_entry): Update.
9784 (dwarf2_build_frame_info): Use "new".
9785
7559c217
CB
97862020-02-12 Christian Biesinger <cbiesinger@google.com>
9787
9788 * arm-tdep.c (arm_gdbarch_init): Update.
9789 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9790 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9791 have_neon, is_m>: Change to bool.
9792
aeefc73c
CB
97932020-02-12 Christian Biesinger <cbiesinger@google.com>
9794
9795 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9796
d27b8e5f
TT
97972020-02-12 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9800
cd5900f3
HD
98012020-02-12 Hannes Domani <ssbssa@yahoo.de>
9802
9803 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9804 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9805
f056b22b
TT
98062020-02-11 Tom Tromey <tom@tromey.com>
9807
9808 * psymtab.h: Update comment.
9809
f92ff6b5
TT
98102020-02-11 Tom Tromey <tom@tromey.com>
9811
9812 * gdb_obstack.h (struct auto_obstack): Use
9813 DISABLE_COPY_AND_ASSIGN.
9814
3fd6912b
TT
98152020-02-11 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/frame.h (struct objfile): Don't forward declare.
9818
69ed9b74
CB
98192020-02-11 Christian Biesinger <cbiesinger@google.com>
9820
9821 * cris-tdep.c (cris_supply_gregset): Change signature to match
9822 what struct regset expects.
9823 (cris_regset): New struct.
9824 (fetch_core_registers): Remove.
9825 (cris_iterate_over_regset_sections): New function.
9826 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9827 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9828
bda874f6
CB
98292020-02-11 Christian Biesinger <cbiesinger@google.com>
9830
9831 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9832 registers.
9833
754e1564
CB
98342020-02-11 Christian Biesinger <cbiesinger@google.com>
9835
9836 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9837
8ddd8e0e
SM
98382020-02-11 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * configure: Re-generate.
9841
898e7f60
SM
98422020-02-11 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * configure: Re-generate.
9845
58df732b
SM
98462020-02-11 Simon Marchi <simon.marchi@efficios.com>
9847
9848 * acinclude: Update warning.m4 path.
9849 * warning.m4: Move to gdbsupport.
9850
da5bd37e
TT
98512020-02-11 Tom Tromey <tromey@adacore.com>
9852
9853 * remote.c (remote_console_output): Update.
9854 * printcmd.c (printf_command): Update.
9855 * event-loop.c (gdb_wait_for_event): Update.
9856 * linux-nat.c (sigchld_handler): Update.
9857 * remote-sim.c (gdb_os_write_stdout): Update.
9858 (gdb_os_flush_stdout): Update.
9859 (gdb_os_flush_stderr): Update.
9860 (gdb_os_write_stderr): Update.
9861 * exceptions.c (print_exception): Update.
9862 * remote-fileio.c (remote_fileio_func_read): Update.
9863 (remote_fileio_func_write): Update.
9864 * tui/tui.c (tui_enable): Update.
9865 * tui/tui-interp.c (tui_interp::init): Update.
9866 * utils.c (init_page_info): Update.
9867 (putchar_unfiltered, fputc_unfiltered): Update.
9868 (gdb_flush): Update.
9869 (emit_style_escape): Update.
9870 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9871 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9872 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9873 (stderr_file::write): Update.
9874 (stderr_file::puts): Update.
9875 * ui-file.h (ui_file_isatty, ui_file_write)
9876 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9877 (ui_file_puts): Don't declare.
9878
85f0dd3c
TV
98792020-02-10 Tom de Vries <tdevries@suse.de>
9880
9881 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9882 sentinel to char *.
9883
2e927613
TV
98842020-02-09 Tom de Vries <tdevries@suse.de>
9885
9886 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9887 filename if it matches "<artificial>".
9888
6bafc845
HD
98892020-02-09 Hannes Domani <ssbssa@yahoo.de>
9890
9891 * windows-tdep.c (struct enum_value_name): New struct.
9892 (create_enum): New function.
9893 (windows_get_siginfo_type): Create and use enum types.
9894
7928d571
HD
98952020-02-09 Hannes Domani <ssbssa@yahoo.de>
9896
9897 * NEWS: Mention $_siginfo support for Windows.
9898 * windows-nat.c (handle_exception): Set siginfo_er.
9899 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9900 (windows_xfer_siginfo): New function.
9901 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9902 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9903 (init_windows_gdbarch_data): New function.
9904 (get_windows_gdbarch_data): New function.
9905 (windows_get_siginfo_type): New function.
9906 (windows_init_abi): Register windows_get_siginfo_type.
9907 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9908
6751ebae
TT
99092020-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9912 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9913 <keep>: Declare method.
9914 <m_keep>: Remove member.
9915 <~cutu_reader>: Remove.
9916 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9917 (cutu_reader::cutu_reader): Update.
9918 (cutu_reader::keep): Rename from ~cutu_reader.
9919 (process_psymtab_comp_unit, build_type_psymtabs_1)
9920 (process_skeletonless_type_unit, load_partial_comp_unit)
9921 (load_full_comp_unit, dwarf2_read_addr_index)
9922 (read_signatured_type): Update.
9923
135f5437
TT
99242020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9927 "want_partial_unit" parameter.
9928 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9929 Inline check for DW_TAG_partial_unit.
9930 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9931
9f66ff1c
TT
99322020-02-08 Tom Tromey <tom@tromey.com>
9933
9934 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9935 read.c.
9936 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9937 read.c.
9938
c8a7a66f
TT
99392020-02-08 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/read.c (read_address): Move to comp-unit.c.
9942 (dwarf2_rnglists_process, dwarf2_ranges_process)
9943 (read_attribute_value, dwarf_decode_lines_1)
9944 (var_decode_location, decode_locdesc): Update.
9945 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9946 read.c. Remove "cu" parameter.
9947 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9948 method.
9949
8266302d
TT
99502020-02-08 Tom Tromey <tom@tromey.com>
9951
9952 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9953 (read_indirect_line_string): Update.
9954 * dwarf2/comp-unit.c (read_offset): Remove.
9955 (read_comp_unit_head): Update.
9956 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9957 method.
9958 (read_offset): Don't declare.
9959
4057dfde
TT
99602020-02-08 Tom Tromey <tom@tromey.com>
9961
9962 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9963 * dwarf2/read.c (struct comp_unit_head): Move to
9964 dwarf2/comp-unit.h.
9965 (enum class rcuh_kind): Move to comp-unit.h.
9966 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9967 (read_comp_unit_head, error_check_comp_unit_head)
9968 (read_and_check_comp_unit_head): Move to comp-unit.c.
9969 (read_offset, dwarf_unit_type_name): Likewise.
9970 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9971 (cutu_reader::cutu_reader, read_call_site_scope)
9972 (find_partial_die, follow_die_offset): Update.
9973 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9974
24aa364d
TT
99752020-02-08 Tom Tromey <tom@tromey.com>
9976
9977 * dwarf2/read.c (read_offset_1): Move to leb.c.
9978 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9979 (dwarf_decode_macro_bytes): Update.
9980 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9981 * dwarf2/leb.h (read_offset): Declare.
9982
2c7d5afc
TT
99832020-02-08 Tom Tromey <tom@tromey.com>
9984
9985 * dwarf2/read.c (dwarf2_section_size): Remove.
9986 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9987 Update.
9988 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9989
4075cb26
TT
99902020-02-08 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2/read.c (read_initial_length): Move to leb.c.
9993 * dwarf2/leb.h (read_initial_length): Declare.
9994 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9995 handle_nonstd parameter.
9996 * dwarf2/frame.c (read_initial_length): Remove.
9997 (decode_frame_entry_1): Update.
9998
09ba997f
TT
99992020-02-08 Tom Tromey <tom@tromey.com>
10000
10001 * dwarf2/loc.c (dwarf2_find_location_expression)
10002 (dwarf_evaluate_loc_desc::get_tls_address)
10003 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10004 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10005 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10006 (dwarf2_compile_property_to_c)
10007 (dwarf2_loc_desc_get_symbol_read_needs)
10008 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10009 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10010 (loclist_describe_location, loclist_tracepoint_var_ref)
10011 (loclist_generate_c_location): Update.
10012 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10013 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10014 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10015 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10016 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10017 (dwarf2_per_cu_data::addr_size)
10018 (dwarf2_per_cu_data::ref_addr_size)
10019 (dwarf2_per_cu_data::text_offset)
10020 (dwarf2_per_cu_data::addr_type): Now methods.
10021 (per_cu_header_read_in): Make per_cu "const".
10022 (dwarf2_version): Remove.
10023 (dwarf2_per_cu_data::int_type): Now a method.
10024 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10025 (set_die_type, read_array_type, read_subrange_index_type)
10026 (read_tag_string_type, read_subrange_type): Update.
10027 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10028 offset_size, ref_addr_size, text_offset, addr_type, version,
10029 objfile, int_type, addr_sized_int_type>: Declare methods.
10030
96c738c0
TT
100312020-02-08 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10034 Move earlier.
10035
8fdd972c
TT
100362020-02-08 Tom Tromey <tom@tromey.com>
10037
10038 * dwarf2/read.h (dwarf_line_debug): Declare.
10039 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10040 * dwarf2/read.c: Move line_header code to new files.
10041 (dwarf_line_debug): No longer static.
10042 * dwarf2/line-header.c: New file.
10043 * dwarf2/line-header.h: New file.
10044
03075812
TT
100452020-02-08 Tom Tromey <tom@tromey.com>
10046
10047 * dwarf2/read.c (struct line_header) <file_full_name,
10048 file_file_name>: Return unique_xmalloc_ptr.
10049 (line_header::file_file_name): Update.
10050 (line_header::file_full_name): Update.
10051 (dw2_get_file_names_reader): Update.
10052 (macro_start_file): Update.
10053
bb822404
TT
100542020-02-08 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/read.c (struct line_header) <file_full_name,
10057 file_file_name>: Declare methods.
10058 (dw2_get_file_names_reader): Update.
10059 (file_file_name): Now a method.
10060 (file_full_name): Likewise.
10061 (macro_start_file): Update.
10062
009b64fc
TT
100632020-02-08 Tom Tromey <tom@tromey.com>
10064
10065 * dwarf2/read.c (dwarf_always_disassemble)
10066 (show_dwarf_always_disassemble): Move to loc.c.
10067 (_initialize_dwarf2_read): Move "always-disassemble" registration
10068 to loc.c.
10069 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10070 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10071 static.
10072 (show_dwarf_always_disassemble): Move from read.c.
10073 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10074
5895093f
TT
100752020-02-08 Tom Tromey <tom@tromey.com>
10076
10077 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10078 (create_quick_file_names_table): Return htab_up.
10079 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10080 Update.
10081 * dwarf2/read.h (struct dwarf2_per_objfile)
10082 <quick_file_names_table>: Now htab_up.
10083
b3b32279
TT
100842020-02-08 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10087
1d33d811
TT
100882020-02-08 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10091 Rewrite.
10092 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10093 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10094 (abbrev_table::abbrev_table): No longer inline.
10095 (ABBREV_HASH_SIZE): Remove.
10096 (abbrev_table::m_abbrevs): Now an htab_up.
10097
86de1d91
TT
100982020-02-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10101 (cutu_reader): Update.
10102 (build_type_psymtabs_1): Update.
10103 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10104 (abbrev_table::alloc_abbrev): Update.
10105 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10106 (abbrev_table::read): New static method, renamed from
10107 abbrev_table_read_table.
10108 (abbrev_table::alloc_abbrev)
10109 (abbrev_table::add_abbrev): Now private.
10110 (abbrev_table::abbrev_table): Now private.
10111 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10112
0335378b
TT
101132020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10116 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10117 htab_up.
10118
48b490f2
TT
101192020-02-08 Tom Tromey <tom@tromey.com>
10120
10121 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10122 htab_up.
10123 (lookup_dwo_unit_in_dwp): Update.
10124 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10125 on obstack.
10126
bc68fb19
TT
101272020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10130 obstack.
10131
d15acc42
TT
101322020-02-08 Tom Tromey <tom@tromey.com>
10133
10134 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10135 line_header_hash.
10136 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10137 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10138 Change type to htab_up.
10139
eaa5fa8b
TT
101402020-02-08 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10143 htab_up. Don't allocate on obstack.
10144 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10145 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10146 Change type to htab_up.
10147
b0b6a987
TT
101482020-02-08 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10151 Change type to htab_up.
10152 * dwarf2/read.c (create_signatured_type_table_from_index)
10153 (create_signatured_type_table_from_debug_names)
10154 (create_all_type_units, add_type_unit)
10155 (lookup_dwo_signatured_type, lookup_signatured_type)
10156 (process_skeletonless_type_unit): Update.
10157 (create_debug_type_hash_table, create_debug_types_hash_table):
10158 Change type of types_htab.
10159 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10160 htab_up. Don't allocate on obstack.
10161 (create_cus_hash_table): Change type of cus_htab parameter.
10162 (struct dwo_file) <cus, tus>: Now htab_up.
10163 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10164 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10165 (queue_and_load_all_dwo_tus): Update.
10166 * dwarf2/index-write.c (write_gdbindex): Update.
10167 (write_debug_names): Update.
10168
39856def
TT
101692020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10172 dwarf2/read.c. Remove "next" member. Add constructor ntad
10173 destructor.
10174 (struct dwarf2_per_objfile) <queue>: New member.
10175 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10176 dwarf2/read.h.
10177 (dwarf2_queue, dwarf2_queue_tail): Remove.
10178 (class dwarf2_queue_guard): Add parameter to constructor. Use
10179 DISABLE_COPY_AND_ASSIGN.
10180 <m_per_objfile>: New member.
10181 <~dwarf2_queue_guard>: Rewrite.
10182 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10183 Update.
10184 (~dwarf2_queue_item): New.
10185
3e225074
TT
101862020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2/read.c (struct die_info) <has_children>: New member.
10189 (dw2_get_file_names_reader): Remove has_children.
10190 (dw2_get_file_names): Update.
10191 (read_cutu_die_from_dwo): Remove has_children.
10192 (cutu_reader::init_tu_and_read_dwo_dies)
10193 (cutu_reader::cutu_reader): Update.
10194 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10195 Remove has_children.
10196 (build_type_psymtabs_1, process_skeletonless_type_unit)
10197 (load_partial_comp_unit, load_full_comp_unit): Update.
10198 (create_dwo_cu_reader): Remove has_children.
10199 (create_cus_hash_table, read_die_and_children): Update.
10200 (read_full_die_1,read_full_die): Remove has_children.
10201 (read_signatured_type): Update.
10202 (class cutu_reader) <has_children>: Remove.
10203
82ca8957
TT
102042020-02-08 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2/expr.c: Rename from dwarf2expr.c.
10207 * dwarf2/expr.h: Rename from dwarf2expr.h.
10208 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10209 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10210 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10211 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10212 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10213 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10214 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10215 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10216 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10217 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10218 * dwarf2/loc.c: Rename from dwarf2loc.c.
10219 * dwarf2/loc.h: Rename from dwarf2loc.h.
10220 * dwarf2/read.c: Rename from dwarf2read.c.
10221 * dwarf2/read.h: Rename from dwarf2read.h.
10222 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10223 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10224 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10225 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10226 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10227 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10228 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10229 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10230 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10231 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10232 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10233 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10234 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10235 Update.
10236 * Makefile.in (COMMON_SFILES): Update.
10237 (HFILES_NO_SRCDIR): Update.
10238
9e35d499
TT
102392020-02-08 Tom Tromey <tom@tromey.com>
10240
10241 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10242 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10243
1eba2311
TT
102442020-02-08 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2read.h (struct die_info): Don't declare.
10247
e41c2da2
TT
102482020-02-08 Tom Tromey <tom@tromey.com>
10249
10250 * dwarf2read.h (die_info_ptr): Remove typedef.
10251
4fc6c0d5
TT
102522020-02-08 Tom Tromey <tom@tromey.com>
10253
10254 * dwarf2read.c (read_call_site_scope)
10255 (handle_data_member_location, dwarf2_add_member_fn)
10256 (mark_common_block_symbol_computed, read_common_block)
10257 (attr_to_dynamic_prop, partial_die_info::read)
10258 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10259 (dwarf2_symbol_mark_computed, set_die_type): Update.
10260 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10261 method.
10262 (attr_form_is_block): Don't declare.
10263 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10264
cd6c91b4
TT
102652020-02-08 Tom Tromey <tom@tromey.com>
10266
10267 * dwarf2read.c (dwarf2_find_base_address, )
10268 (read_call_site_scope, rust_containing_type)
10269 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10270 (handle_data_member_location, dwarf2_add_member_fn)
10271 (get_alignment, read_structure_type, process_structure_scope)
10272 (mark_common_block_symbol_computed, read_common_block)
10273 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10274 (partial_die_info::read, read_attribute_value, new_symbol)
10275 (lookup_die_type, dwarf2_get_ref_die_offset)
10276 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10277 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10278 (dwarf2_symbol_mark_computed): Update.
10279 * dwarf2/attribute.h (struct attribute) <value_as_address,
10280 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10281 methods.
10282 (value_as_address, attr_form_is_section_offset)
10283 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10284 * dwarf2/attribute.c (attribute::value_as_address)
10285 (attribute::form_is_section_offset, attribute::form_is_constant)
10286 (attribute::form_is_ref): Now methods.
10287
162dce55
TT
102882020-02-08 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2read.c (struct attribute, DW_STRING)
10291 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10292 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10293 (attr_form_is_block, attr_form_is_section_offset)
10294 (attr_form_is_constant, attr_form_is_ref): Move.
10295 * dwarf2/attribute.h: New file.
10296 * dwarf2/attribute.c: New file, from dwarf2read.c.
10297 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10298
3054dd54
TT
102992020-02-08 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10302 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10303 Move.
10304 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10305 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10306 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10307 abbrev.c.
10308 * dwarf2/abbrev.h: New file.
10309 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10310 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10311
96b79293
TT
103122020-02-08 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10315 (dwarf2_section_size, dwarf2_get_section_info)
10316 (create_signatured_type_table_from_debug_names)
10317 (create_addrmap_from_aranges, read_debug_names_from_section)
10318 (get_gdb_index_contents_from_section, read_comp_unit_head)
10319 (error_check_comp_unit_head, read_abbrev_offset)
10320 (create_debug_type_hash_table, init_cu_die_reader)
10321 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10322 (read_comp_units_from_section, create_cus_hash_table)
10323 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10324 (create_dwp_v2_section, dwarf2_rnglists_process)
10325 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10326 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10327 (read_indirect_string_from_dwz, read_addr_index_1)
10328 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10329 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10330 (fill_in_loclist_baton): Update.
10331 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10332 get_containing_section, get_bfd_owner, get_bfd_section,
10333 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10334 (dwarf2_read_section, get_section_name, get_section_file_name)
10335 (get_containing_section, get_section_bfd_owner)
10336 (get_section_bfd_section, get_section_name, get_section_file_name)
10337 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10338 declare.
10339 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10340 (dwarf2_section_info::get_bfd_owner)
10341 (dwarf2_section_info::get_bfd_section)
10342 (dwarf2_section_info::get_name)
10343 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10344 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10345 (dwarf2_section_info::read): Now methods.
10346 * dwarf-index-write.c (class debug_names): Update.
10347
2c86cff9
TT
103482020-02-08 Tom Tromey <tom@tromey.com>
10349
10350 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10351 Move to dwarf2/section.h.
10352 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10353 (get_section_bfd_section, get_section_name)
10354 (get_section_file_name, get_section_id, get_section_flags)
10355 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10356 dwarf2/section.c.
10357 * dwarf2/section.h: New file.
10358 * dwarf2/section.c: New file, from dwarf2read.c.
10359 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10360
f4382c45
TT
103612020-02-08 Tom Tromey <tom@tromey.com>
10362
10363 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10364 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10365 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10366 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10367 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10368 * dwarf2/leb.h: New file, from dwarf2read.c.
10369 * dwarf2/leb.c: New file, from dwarf2read.c.
10370 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10371 Remove.
10372 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10373 (COMMON_SFILES): Add dwarf2/leb.c.
10374
01840b7a
JB
103752020-02-08 Joel Brobecker <brobecker@adacore.com>
10376
10377 GDB 9.1 released.
10378
dfcb27e4
IB
103792020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10380
10381 PR gdb/25190:
aac66a4c
SM
10382 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10383 * gdb/remote.c (remote_console_output): Update.
10384 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10385 (ui_file_puts): ...this.
10386 * gdb/ui-file.h (ui_file_puts): Add declaration.
10387 * gdb/utils.c (emit_style_escape): Update.
10388 (flush_wrap_buffer): Update.
10389 (fputs_maybe_filtered): Update.
10390 (fputs_unfiltered): Add function.
dfcb27e4 10391
faa17681
IB
103922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10393
aac66a4c
SM
10394 * gdb/event-loop.c (gdb_wait_for_event): Update.
10395 * gdb/printcmd.c (printf_command): Update.
10396 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10397 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10398 (gdb_os_flush_stderr): Update.
10399 * gdb/remote.c (remote_console_output): Update.
10400 * gdb/ui-file.c (gdb_flush): Rename to...
10401 (ui_file_flush): ...this.
10402 (stderr_file::write): Update.
10403 (stderr_file::puts): Update.
10404 * gdb/ui-file.h (gdb_flush): Rename to...
10405 (ui_file_flush): ...this.
10406 * gdb/utils.c (gdb_flush): Add function.
10407 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10408
5abbbe1d
TT
104092020-02-07 Tom Tromey <tromey@adacore.com>
10410
10411 PR breakpoints/24915:
10412 * source.c (find_and_open_source): Do not check basenames_may_differ.
10413
919adfe8
TT
104142020-02-07 Tom Tromey <tom@tromey.com>
10415
10416 * README: Update gdbserver documentation.
10417 * gdbserver: Move to top level.
10418 * configure.tgt (build_gdbserver): Remove.
10419 * configure.ac: Remove --enable-gdbserver.
10420 * configure: Rebuild.
10421 * Makefile.in (distclean): Don't mention gdbserver.
10422
1d5d29e7
SV
104232020-02-06 Shahab Vahedi <shahab@synopsys.com>
10424
10425 * source-cache.c (source_cache::ensure): Surround
10426 get_plain_source_lines with a try/catch.
10427 (source_cache::get_line_charpos): Get rid of try/catch
10428 and only check for the return value of "ensure".
10429 * tui/tui-source.c (tui_source_window::set_contents):
10430 Simplify "nlines" calculation.
10431
6eb1129c
SV
104322020-02-06 Shahab Vahedi <shahab@synopsys.com>
10433
10434 * MAINTAINERS (Write After Approval): Add myself.
10435
c6a42d11
CB
104362020-02-05 Christian Biesinger <cbiesinger@google.com>
10437
10438 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10439 function call.
10440
c8ecdda6
CB
104412020-02-05 Christian Biesinger <cbiesinger@google.com>
10442
10443 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10444
f6480e70
MR
104452020-02-05 Maciej W. Rozycki <macro@wdc.com>
10446
10447 * nat/riscv-linux-tdesc.h: New file.
10448 * nat/riscv-linux-tdesc.c: New file, taking code from...
10449 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10450 ... here.
10451 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10452 NATDEPFILES.
10453
dcc9fbc6
AB
104542020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10457 we don't set the fake simulator ptid to the null_ptid.
10458
719546c4
SM
104592020-02-03 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10462 * gdbthread.h (class thread_info) <resumed>: Likewise.
10463 * infrun.c (resume_1): Likewise.
10464 (proceed): Likewise.
10465 (infrun_thread_stop_requested): Likewise.
10466 (stop_all_threads): Likewise.
10467 (handle_inferior_event): Likewise.
10468 (restart_threads): Likewise.
10469 (finish_step_over): Likewise.
10470 (keep_going_stepped_thread): Likewise.
10471 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10472 (linux_handle_extended_wait): Likewise.
10473 * record-btrace.c (get_thread_current_frame_id): Likewise.
10474 * record-full.c (record_full_wait_1): Likewise.
10475 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10476 * target.c (target_resume): Likewise.
10477 * thread.c (set_running_thread): Likewise.
10478
e409c542
AKS
104792020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10480
10481 * f-valprint.c (f77_print_array_1): Changed datatype of index
10482 variable to LONGEST from int to enable it to contain bound
10483 values correctly.
10484
ee98c0da
MR
104852020-02-03 Maciej W. Rozycki <macro@wdc.com>
10486
10487 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10488 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10489 offsets according to FLEN determined.
10490 (riscv_linux_nat_target::read_description): Determine FLEN
10491 dynamically.
10492 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10493 according to FLEN determined.
10494 (riscv_linux_nat_target::store_registers): Likewise.
10495
aa66aac4
SV
104962020-02-01 Shahab Vahedi <shahab@synopsys.com>
10497
10498 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10499 when reg->group is empty and reggroup is not.
10500
fd9faca8
TT
105012020-01-31 Tom Tromey <tromey@adacore.com>
10502
10503 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10504 Call beneath target's mourn_inferior after unpushing.
10505
42330a68
AB
105062020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10507
10508 PR tui/9765
10509 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10510 have enough lines to fill the screen, still return the lowest
10511 address we found.
10512
7a27a45b
AB
105132020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10514
10515 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10516 '-', '<', and '>' commands.
10517
c47f70e2
PA
105182020-01-29 Pedro Alves <palves@redhat.com>
10519 Sergio Durigan Junior <sergiodj@redhat.com>
10520
10521 * infcmd.c (construct_inferior_arguments): Assert that
10522 'argc' is greater than 0.
10523
5133a315
LM
105242020-01-29 Luis Machado <luis.machado@linaro.org>
10525
10526 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10527 (BRK_INSN_MASK): Define to 0xd4200000.
10528 (aarch64_program_breakpoint_here_p): New function.
10529 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10530 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10531 breakpoint.c.
10532 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10533 breakpoint.h
10534 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10535 call gdbarch_program_breakpoint_here_p.
10536 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10537 default_program_breakpoint_here_p, changed return type to bool and
10538 simplified.
10539 * breakpoint.h (program_breakpoint_here): Moved prototype to
10540 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10541 return type to bool.
10542 * gdbarch.c: Regenerate.
10543 * gdbarch.h: Regenerate.
10544 * gdbarch.sh (program_breakpoint_here_p): New method.
10545 * infrun.c (handle_signal_stop): Call
10546 gdbarch_program_breakpoint_here_p.
10547
168f8c6b
TT
105482020-01-26 Tom Tromey <tom@tromey.com>
10549
10550 * ctfread.c (struct ctf_fp_info): Reindent.
10551 (_initialize_ctfread): Remove.
10552
128a391f
TT
105532020-01-26 Tom Tromey <tom@tromey.com>
10554
10555 * psymtab.c (partial_map_expand_apply)
10556 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10557 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10558 (psym_print_stats, psym_expand_symtabs_for_function)
10559 (psym_map_symbol_filenames, psym_map_matching_symbols)
10560 (psym_expand_symtabs_matching)
10561 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10562 (maintenance_check_psymtabs): Use new methods.
10563 * psympriv.h (struct partial_symtab) <readin_p,
10564 get_compunit_symtab>: New methods.
10565 <readin, compunit_symtab>: Remove members.
10566 (struct standard_psymtab): New.
10567 (struct legacy_psymtab): Derive from standard_psymtab.
10568 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10569 standard_psymtab.
10570 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10571
0494dbec
TT
105722020-01-26 Tom Tromey <tom@tromey.com>
10573
10574 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10575 read_dependencies. Add assert.
10576 * psymtab.c (partial_symtab::read_dependencies): New method.
10577 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10578 method.
10579 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10580 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10581 read_dependencies.
10582 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10583 Add assert.
10584
8566b89b
TT
105852020-01-26 Tom Tromey <tom@tromey.com>
10586
10587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10588 Call expand_psymtab.
10589 (xcoff_read_symtab): Call expand_psymtab.
10590 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10591 legacy_expand_psymtab.
10592 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10593 method.
10594 (struct legacy_psymtab) <expand_psymtab>: Implement.
10595 <legacy_expand_psymtab>: New member.
10596 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10597 (parse_partial_symbols): Set legacy_expand_psymtab.
10598 (psymtab_to_symtab_1): Change argument order. Call
10599 expand_psymtab.
10600 (new_psymtab): Set legacy_expand_psymtab.
10601 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10602 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10603 expand_psymtab.
10604 (dwarf2_psymtab::expand_psymtab): Rename from
10605 psymtab_to_symtab_1. Call expand_psymtab.
10606 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10607 (dbx_end_psymtab): Likewise.
10608 (dbx_psymtab_to_symtab_1): Change argument order. Call
10609 expand_psymtab.
10610 (dbx_read_symtab): Call expand_psymtab.
10611 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10612 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10613 (ctf_psymtab::read_symtab): Call expand_psymtab.
10614
077cbab2
TT
106152020-01-26 Tom Tromey <tom@tromey.com>
10616
10617 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10618 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10619 messages.
10620 * mdebugread.c (mdebug_read_symtab): Remove prints.
10621 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10622 assert.
10623 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10624
891813be
TT
106252020-01-26 Tom Tromey <tom@tromey.com>
10626
10627 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10628 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10629 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10630 legacy_symtab.
10631 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10632 * psymtab.c (psymtab_to_symtab): Call method.
10633 (dump_psymtab): Update.
10634 * psympriv.h (struct partial_symtab): Add virtual destructor.
10635 <read_symtab>: New method.
10636 (struct legacy_symtab): New.
10637 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10638 (struct pst_map) <pst>: Now a legacy_psymtab.
10639 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10640 (new_psymtab): Use legacy_psymtab.
10641 * dwarf2read.h (struct dwarf2_psymtab): New.
10642 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10643 * dwarf2read.c (dwarf2_create_include_psymtab)
10644 (dwarf2_build_include_psymtabs, create_type_unit_group)
10645 (create_partial_symtab, process_psymtab_comp_unit_reader)
10646 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10647 (set_partial_user): Use dwarf2_psymtab.
10648 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10649 (psymtab_to_symtab_1, process_full_comp_unit)
10650 (process_full_type_unit, dwarf2_ranges_read)
10651 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10652 (dwarf_decode_lines): Use dwarf2_psymtab.
10653 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10654 (add_address_entry_worker, write_one_signatured_type)
10655 (recursively_count_psymbols, recursively_write_psymbols)
10656 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10657 (write_debug_names): Likewise.
10658 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10659 <pst>: Now a legacy_psymtab.
10660 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10661 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10662 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10663 * ctfread.c (struct ctf_psymtab): New.
10664 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10665 ctf_psymtab.
10666 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10667 (create_partial_symtab): Return a ctf_psymtab.
10668 (scan_partial_symbols): Update.
10669
c3693a1d
TT
106702020-01-26 Tom Tromey <tom@tromey.com>
10671
10672 * xcoffread.c (xcoff_start_psymtab): Use new.
10673 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10674 renamed from start_psymtab_common.
10675 * psympriv.h (struct partial_symtab): Add new constructor.
10676 (start_psymtab_common): Don't declare.
10677 * mdebugread.c (parse_partial_symbols): Use new.
10678 * dwarf2read.c (create_partial_symtab): Use new.
10679 * dbxread.c (start_psymtab): Use new.
10680 * ctfread.c (create_partial_symtab): Use new.
10681
32caafd0
TT
106822020-01-26 Tom Tromey <tom@tromey.com>
10683
10684 * xcoffread.c (xcoff_end_psymtab): Use new.
10685 * psymtab.c (start_psymtab_common): Use new.
10686 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10687 Update.
10688 * psympriv.h (struct partial_symtab): Add parameters to
10689 constructor. Don't inline.
10690 (allocate_psymtab): Don't declare.
10691 * mdebugread.c (new_psymtab): Use new.
10692 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10693 * dbxread.c (dbx_end_psymtab): Use new.
10694
abaa2f23
TT
106952020-01-26 Tom Tromey <tom@tromey.com>
10696
10697 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10698 allocate_psymtab. Update documentation.
10699 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10700 allocate_psymtab. Do not use new.
10701 (allocate_psymtab): Use new. Update.
10702
6d94535f
TT
107032020-01-26 Tom Tromey <tom@tromey.com>
10704
10705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10706 * psymtab.c (psym_print_stats): Update.
10707 * psympriv.h (struct partial_symtab) <readin,
10708 psymtabs_addrmap_supported, anonymous>: Now bool.
10709 * mdebugread.c (psymtab_to_symtab_1): Update.
10710 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10711 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10712 (process_full_comp_unit, process_full_type_unit): Update.
10713 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10714 * ctfread.c (psymtab_to_symtab): Update.
10715
6f17252b
TT
107162020-01-26 Tom Tromey <tom@tromey.com>
10717
10718 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10719 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10720 * psymtab.c (psymtab_storage): Delete psymtabs.
10721 (psymtab_storage::allocate_psymtab): Use new.
10722 (psymtab_storage::discard_psymtab): Use delete.
10723 * psympriv.h (struct partial_symtab): Add constructor and
10724 initializers.
10725
f6f1cebc
TT
107262020-01-26 Tom Tromey <tom@tromey.com>
10727
10728 * machoread.c: Do not include psympriv.h.
10729
e47e48f6
PW
107302020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10731
10732 * NEWS: Mention the new option and the set/show commands.
10733
a2fedca9
PW
107342020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10735
10736 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10737 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10738 (validate_exec_file): New variables, enums, functions.
10739 (exec_file_locate_attach, print_section_info): Style the filenames.
10740 (_initialize_exec): Install show_exec_file_mismatch_command and
10741 set_exec_file_mismatch_command.
10742 * gdbcore.h (validate_exec_file): Declare.
10743 * infcmd.c (attach_command): Call validate_exec_file.
10744 * remote.c ( remote_target::remote_add_inferior): Likewise.
10745
7ffa82e1
AB
107462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10747
10748 * frame.c (find_frame_sal): Move call to get_next_frame into more
10749 inner scope.
10750 * inline-frame.c (inilne_state) <inline_state>: Update argument
10751 types.
10752 (inilne_state) <skipped_symbol>: Rename to...
10753 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10754 (skip_inline_frames): Build vector of skipped symbols and use this
10755 to reate the inline_state.
10756 (inline_skipped_symbol): Add a comment and some assertions, fetch
10757 skipped symbol from the list.
10758
3d92a3e3
AB
107592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * buildsym.c (lte_is_less_than): Delete.
10762 (buildsym_compunit::end_symtab_with_blockvector): Create local
10763 lambda function to sort line table entries, and use
10764 std::stable_sort instead of std::sort.
10765 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10766 markers when looking for a previous line.
10767
94a72be7
AB
107682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * dwarf2read.c (lnp_state_machine::record_line): Include
10771 end_sequence parameter in debug print out. Record the line if we
10772 are at an end_sequence marker even if it's not the start of a
10773 statement.
10774 * symmisc.c (maintenance_print_one_line_table): Print end of
10775 sequence markers with 'END' not '0'.
10776
53af73bf
PA
107772020-01-24 Pedro Alves <palves@redhat.com>
10778
10779 PR gdb/25410
10780 * thread.c (scoped_restore_current_thread::restore): Use
10781 switch_to_inferior_no_thread.
10782 * exec.c: Include "progspace-and-thread.h".
10783 (add_target_sections, remove_target_sections):
10784 scoped_restore_current_pspace_and_thread instead of
10785 scoped_restore_current_thread.
10786 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10787 and aspace to the inferior before calling clone_program_space.
10788 Remove stale comment.
10789
3050c6f4
CB
107902020-01-24 Christian Biesinger <cbiesinger@google.com>
10791
10792 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10793 (arm_netbsd_nat_target::fetch_registers): ...this.
10794 (arm_nbsd_nat_target::store_registers): Rename to...
10795 (arm_netbsd_nat_target::store_registers): ...this.
10796
73685c7e
CB
107972020-01-24 Christian Biesinger <cbiesinger@google.com>
10798
10799 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10800 register_t.
10801
89203d40
CB
108022020-01-24 Christian Biesinger <cbiesinger@google.com>
10803
10804 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10805 Update comment.
10806 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10807 Likewise.
10808 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10809 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10810 the correct replacement (iterate_over_regset_sections).
10811 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10812 Update comment.
10813
1ba1ac88
AB
108142020-01-24 Graham Markall <graham.markall@embecosm.com>
10815
10816 PR gdb/23718
10817 * gdb/python/python.c (execute_gdb_command): Call
10818 async_enable_stdin in catch block.
10819
f3364a6d
AB
108202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10823 SWITCH_THRU_ALL_UIS.
10824
733d0a67
AB
108252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 PR tui/9765
10828 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10829 comment, add extra parameter, and update to store previous symbol
10830 when appropriate.
10831 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10832 add extra parameter.
10833 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10834 remove unneeded parameter, add try/catch around gdb_print_insn,
10835 rewrite to add items to asm_lines vector.
10836 (tui_find_backward_disassembly_start_address): New function.
10837 (tui_find_disassembly_address): Updated throughout.
10838 (tui_disasm_window::set_contents): Update for changes to
10839 tui_disassemble.
10840 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10841 number of lines to scroll.
10842
b3b3bada
SM
108432020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10844
10845 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10846 (SECT_OFF_DATA): Likewise.
10847 (SECT_OFF_RODATA): Likewise.
10848 (SECT_OFF_TEXT): Likewise.
10849 (SECT_OFF_BSS): Likewise.
10850 (struct objfile) <text_section_offset, data_section_offset>: New
10851 methods.
10852 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10853 objfile::text_section_offset.
10854 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10855 * coffread.c (coff_symtab_read): Likewise.
10856 (enter_linenos): Likewise.
10857 (process_coff_symbol): Likewise.
10858 * ctfread.c (get_objfile_text_range): Likewise.
10859 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10860 Use objfile::data_section_offset.
10861 * dwarf2-frame.c (execute_cfa_program): Use
10862 objfile::text_section_offset.
10863 (dwarf2_frame_find_fde): Likewise.
10864 * dwarf2read.c (create_addrmap_from_index): Likewise.
10865 (create_addrmap_from_aranges): Likewise.
10866 (dw2_find_pc_sect_compunit_symtab): Likewise.
10867 (process_psymtab_comp_unit_reader): Likewise.
10868 (add_partial_symbol): Likewise.
10869 (add_partial_subprogram): Likewise.
10870 (process_full_comp_unit): Likewise.
10871 (read_file_scope): Likewise.
10872 (read_func_scope): Likewise.
10873 (read_lexical_block_scope): Likewise.
10874 (read_call_site_scope): Likewise.
10875 (dwarf2_rnglists_process): Likewise.
10876 (dwarf2_ranges_process): Likewise.
10877 (dwarf2_ranges_read): Likewise.
10878 (dwarf_decode_lines_1): Likewise.
10879 (new_symbol): Likewise.
10880 (dwarf2_fetch_die_loc_sect_off): Likewise.
10881 (dwarf2_per_cu_text_offset): Likewise.
10882 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10883 * hppa-tdep.c (read_unwind_info): Likewise.
10884 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10885 * psympriv.h (struct partial_symtab): Likewise.
10886 * psymtab.c (find_pc_sect_psymtab): Likewise.
10887 * solib-svr4.c (enable_break): Likewise.
10888 * stap-probe.c (relocate_address): Use
10889 objfile::data_section_offset.
10890 * xcoffread.c (enter_line_range): Use
10891 objfile::text_section_offset.
10892 (read_xcoff_symtab): Likewise.
10893
ab53f382
SM
108942020-01-23 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10897 declaration to narrower scopes.
10898
e7eee665
SM
108992020-01-23 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * darwin-nat.h (struct darwin_exception_msg, enum
10902 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10903 Move up.
10904 (class darwin_nat_target) <wait_1, check_new_threads,
10905 decode_exception_message, decode_message, stop_inferior,
10906 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10907 * darwin-nat.c (darwin_check_new_threads): Rename to...
10908 (darwin_nat_target::check_new_threads): ... this.
10909 (darwin_suspend_inferior_it): Remove.
10910 (darwin_decode_exception_message): Rename to...
10911 (darwin_nat_target::decode_exception_message): ... this.
10912 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10913 (darwin_decode_message): Rename to...
10914 (darwin_nat_target::decode_message): ... this.
10915 (cancel_breakpoint): Rename to...
10916 (darwin_nat_target::cancel_breakpoint): ... this.
10917 (darwin_wait): Rename to...
10918 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10919 instead of iterate_over_inferiors.
10920 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10921 (darwin_stop_inferior): Rename to...
10922 (darwin_nat_target::stop_inferior): ... this.
10923 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10924 (darwin_init_thread_list): Rename to...
10925 (darwin_nat_target::init_thread_list): ... this.
10926 (darwin_ptrace_him): Rename to...
10927 (darwin_nat_target::ptrace_him): ... this.
10928 (darwin_nat_target::create_inferior): Pass lambda function to
10929 fork_inferior.
10930 (darwin_nat_target::detach): Call stop_inferior instead of
10931 darwin_stop_inferior.
10932 * fork-inferior.h (fork_inferior): Change init_trace_fun
10933 parameter to gdb::function_view.
10934 * fork-inferior.c (fork_inferior): Likewise.
10935
c162ed3e
HD
109362020-01-23 Hannes Domani <ssbssa@yahoo.de>
10937
10938 * i386-cygwin-tdep.c (core_process_module_section): Update.
10939 * windows-nat.c (struct lm_info_windows): Add text_offset.
10940 (windows_xfer_shared_libraries): Update.
10941 * windows-tdep.c (windows_xfer_shared_library):
10942 Add text_offset_cached argument.
10943 * windows-tdep.h (windows_xfer_shared_library): Update.
10944
a1237872
SM
109452020-01-21 Simon Marchi <simon.marchi@efficios.com>
10946
10947 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10948
b3ee6dd9
SM
109492020-01-21 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10952 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10953 replace with range-based for.
10954 (gdbsim_interrupt_inferior): Remove.
10955 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10956 with a range-based for. Inline code from
10957 gdbsim_interrupt_inferior.
10958
f9fac3c8
SM
109592020-01-21 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * infrun.c (proceed): Fix indentation.
10962
f6474de9
TT
109632020-01-21 Tom Tromey <tromey@adacore.com>
10964
10965 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10966 * python/python.c (python_extension_ops): Update.
10967 (gdbpy_colorize): New function.
10968 * python/lib/gdb/__init__.py (colorize): New function.
10969 * extension.h (ext_lang_colorize): Declare.
10970 * extension.c (ext_lang_colorize): New function.
10971 * extension-priv.h (struct extension_language_ops) <colorize>: New
10972 member.
10973 * cli/cli-style.c (_initialize_cli_style): Update help text.
10974
f0c702d4
LM
109752020-01-21 Luis Machado <luis.machado@linaro.org>
10976
10977 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10978 <cond>: Change type to bool.
10979 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10980 (aarch64_displaced_step_cb): Likewise.
10981 (aarch64_displaced_step_tb): Likewise.
10982
1ab139e5
LM
109832020-01-21 Luis Machado <luis.machado@linaro.org>
10984
10985 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10986 output.
10987
0c271889
LM
109882020-01-21 Luis Machado <luis.machado@linaro.org>
10989
10990 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10991 <pc_adjust>: Adjust the documentation.
10992 (aarch64_displaced_step_fixup): Check if PC really moved before
10993 adjusting it.
10994
4d89c1c7
TT
109952020-01-19 Tom Tromey <tom@tromey.com>
10996
10997 * disasm.c (~gdb_disassembler): New destructor.
10998 (gdb_buffered_insn_length): Call disassemble_free_target.
10999 * disasm.h (class gdb_disassembler): Declare destructor. Use
11000 DISABLE_COPY_AND_ASSIGN.
11001
c0ab21c2
TT
110022020-01-19 Tom Tromey <tom@tromey.com>
11003
11004 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11005 (die_reader_func_ftype): Remove.
11006 (cutu_reader): New class.
11007 (dw2_get_file_names_reader): Remove "data" parameter.
11008 (dw2_get_file_names): Use cutu_reader.
11009 (create_debug_type_hash_table): Update.
11010 (read_cutu_die_from_dwo): Update comment.
11011 (lookup_dwo_unit): Add dwo_name parameter.
11012 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11013 die_reader_func_ftype and data parameters.
11014 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11015 Remove die_reader_func_ftype and data parameters.
11016 (~cutu_reader): New; from init_cutu_and_read_dies.
11017 (cutu_reader::cutu_reader): Rename from
11018 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11019 and data parameters.
11020 (init_cutu_and_read_dies_simple): Remove.
11021 (struct process_psymtab_comp_unit_data): Remove.
11022 (process_psymtab_comp_unit_reader): Remove data parameter; add
11023 want_partial_unit and pretend_language parameters.
11024 (process_psymtab_comp_unit): Use cutu_reader.
11025 (build_type_psymtabs_reader): Remove data parameter.
11026 (build_type_psymtabs_1): Use cutu_reader.
11027 (process_skeletonless_type_unit): Likewise.
11028 (load_partial_comp_unit_reader): Remove.
11029 (load_partial_comp_unit): Use cutu_reader.
11030 (load_full_comp_unit_reader): Remove.
11031 (load_full_comp_unit): Use cutu_reader.
11032 (struct create_dwo_cu_data): Remove.
11033 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11034 dwo_unit parameters.
11035 (create_cus_hash_table): Use cutu_reader.
11036 (struct dwarf2_read_addr_index_data): Remove.
11037 (dwarf2_read_addr_index_reader): Remove.
11038 (dwarf2_read_addr_index): Use cutu_reader.
11039 (read_signatured_type_reader): Remove.
11040 (read_signatured_type): Use cutu_reader.
11041
45bbae5c
TT
110422020-01-19 Tom Tromey <tom@tromey.com>
11043
11044 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11045 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11046 (tui_wrefresh): Declare.
11047 * tui/tui-wingeneral.c (suppress_output): New global.
11048 (tui_suppress_output, ~tui_suppress_output): New constructor and
11049 destructor.
11050 (tui_wrefresh): New function.
11051 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11052 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11053 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11054 method.
11055 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11056 tui_wrefresh.
11057 (tui_data_window::no_refresh): New method.
11058 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11059 (tui_reg_command): Use tui_suppress_output
11060 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11061 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11062 method.
11063 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11064
4f13c1c0
TT
110652020-01-19 Tom Tromey <tom@tromey.com>
11066
11067 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11068 Handle case where symtab is null.
11069
fa47e446
SM
110702020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11071
11072 * linux-fork.c (one_fork_p): Simplify.
11073
26f42329
SM
110742020-01-17 Simon Marchi <simon.marchi@efficios.com>
11075
11076 * top.c (struct qt_args): Remove.
11077 (kill_or_detach): Change return type to void, replace `void *`
11078 parameter with a proper one.
11079 (print_inferior_quit_action): Likewise.
11080 (quit_confirm): Use range-based for loop to iterate over inferiors.
11081 (quit_force): Likewise.
11082
a9ac81b1
SM
110832020-01-17 Simon Marchi <simon.marchi@efficios.com>
11084
11085 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11086 `void *` parameter with proper parameters.
11087 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11088 (print_one_inferior): Change return type to void, replace `void *`
11089 parameter with proper parameters.
11090 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11091 inferiors.
11092 (get_other_inferior): Remove.
11093 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11094 inferiors.
11095
788eca49
SM
110962020-01-17 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * mi/mi-interp.c (report_initial_inferior): Remove.
11099 (mi_interp::init): Use range-based for to iterate over inferiors.
11100
d9bc85b6
SM
111012020-01-17 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * python/py-inferior.c (build_inferior_list): Remove.
11104 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11105
40c94099
CB
111062020-01-16 Christian Biesinger <cbiesinger@google.com>
11107
11108 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11109 (btrace_stitch_trace): Likewise.
11110 * charset.c (intermediate_encoding): Likewise (vaild).
11111 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11112 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11113 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11114
e0cdfe3c
HD
111152020-01-16 Hannes Domani <ssbssa@yahoo.de>
11116
11117 * windows-tdep.c (windows_get_tlb_type):
11118 Add rtl_user_process_parameters type.
11119
790f1718 111202020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11121 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11122
11123 PR build/24805
11124 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11125 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11126 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11127 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11128 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11129 (ps_plog): Redeclare exported functions with default visibility.
11130
3112ed97
NA
111312020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11132
11133 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11134 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11135
8dc3273e
SM
111362020-01-15 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * infcmd.c (post_create_inferior): Use get_thread_regcache
11139 instead of get_current_regcache.
11140
ff47f4f0
TT
111412020-01-14 Tom Tromey <tom@tromey.com>
11142
11143 PR symtab/12535:
11144 * python/python.c (gdbpy_decode_line): Treat empty string the same
11145 as no argument.
11146
975f45b7
TT
111472020-01-14 Tom Tromey <tom@tromey.com>
11148
11149 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11150
25e57356
TT
111512020-01-14 Tom Tromey <tom@tromey.com>
11152
11153 * nat/linux-btrace.c: Don't include <config.h>.
11154 * nat/linux-ptrace.c: Don't include <config.h>.
11155 * nat/x86-linux-dregs.c: Don't include <config.h>.
11156
05ea2a05
TT
111572020-01-14 Tom Tromey <tom@tromey.com>
11158
11159 * configure: Rebuild.
11160 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11161
01027315
TT
111622020-01-14 Tom Tromey <tom@tromey.com>
11163
11164 * nat/x86-linux-dregs.c: Include configh.h.
11165 * nat/linux-ptrace.c: Include configh.h.
11166 * nat/linux-btrace.c: Include configh.h.
11167 * defs.h: Include config.h, bfd.h.
11168 * configure.ac: Don't source common.host.
11169 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11170 * configure: Rebuild.
11171 * acinclude.m4: Update path.
11172 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11173 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11174 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11175 (CLIBS): Add LIBSUPPORT.
11176 (CDEPS): Likewise.
11177 (COMMON_SFILES): Remove gdbsupport files.
11178 (HFILES_NO_SRCDIR): Likewise.
11179 (stamp-version): Update path to create-version.sh.
11180 (ALLDEPFILES): Remove gdbsupport files.
11181
b2ceabe8
TT
111822020-01-14 Tom Tromey <tom@tromey.com>
11183
11184 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11185 USE_WIN32API when needed.
11186 * configure.ac (USE_WIN32API): Don't define.
11187 (WIN32LIBS): Use WIN32APILIBS.
11188 * configure: Rebuild.
11189
25c51f71
TT
111902020-01-14 Tom Tromey <tom@tromey.com>
11191
11192 * configure: Rebuild.
11193 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11194
717c684d
BE
111952020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11196
11197 * skip.c (skip_function_command): Make skip w/o arguments use the
11198 name of the inlined function if pc is inside any inlined function.
11199
7da6a5b9
LM
112002020-01-14 Luis Machado <luis.machado@linaro.org>
11201
11202 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11203 * infrun.c (resume_1): Likewise.
11204 (handle_inferior_event): Remove stale comment.
11205 * linux-nat.c (linux_nat_target::resume): Update comments.
11206 (save_stop_reason): Likewise.
11207 (linux_nat_filter_event): Likewise.
11208 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11209
44e4c775
AB
112102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11211
11212 * elfread.c (record_minimal_symbol): Set section index to 0 for
11213 non-allocatable sections.
11214
18a8505e
AT
11215
112162020-01-13 Ali Tamur <tamur@google.com>
11217
11218 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11219 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11220 to gdb::optional. Update comments.
11221 (dwo_file): Update comments.
11222 (read_attribute): Update API to take an additional out parameter,
11223 need_reprocess. This is used to mark attributes that need other
11224 attributes (e.g. str_offsets_base) for correct computation which may not
11225 have been read yet.
11226 (read_attribute_reprocess): New function declaration.
11227 (read_addr_index): Likewise.
11228 (read_dwo_str_index): Likewise.
11229 (read_stub_str_index): Likewise.
11230 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11231 (lookup_addr_base): New function definition.
11232 (lookup_ranges_base): Likewise.
11233 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11234 lookup_ranges_base.
11235 (init_cutu_and_read_dies): Update comments.
11236 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11237 unit. This is used to inherit parent's str_offsets_base and addr_base.
11238 Update comments.
11239 (init_cutu_and_read_dies_simple): Reflect API changes.
11240 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11241 (create_cus_hash_table): Change API to take parent compile unit.
11242 Reflect API changes.
11243 (open_and_init_dwo_file): Reflect API changes.
11244 (dwarf2_get_pc_bounds): Update comments.
11245 (dwarf2_record_block_ranges): Likewise.
11246 (read_full_die_1): Change implementation to reprocess attributes that
11247 need str_offsets_base and addr_base.
11248 (partial_die_info::read): Likewise.
11249 (read_attribute_reprocess): New function definition.
11250 (read_attribute_value): Change API to take an additional out parameter,
11251 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11252 when a non-dwo compile unit has index based attributes.
11253 (read_attribute): Reflect API changes.
11254 (read_addr_index_1): Reflect API changes. Update comments.
11255 (dwarf2_read_addr_index_data): Reflect API changes.
11256 (dwarf2_read_addr_index): Likewise.
11257 (read_str_index): Change API and implementation. This becomes a helper
11258 to be used by the new string index related methods. Update error
11259 message and comments.
11260 (read_dwo_str_index): New function definition.
11261 (read_stub_str_index): Likewise.
11262 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11263 * symfile.h (dwarf2_debug_sections): Likewise.
11264 * xcoffread.c (dwarf2_debug_sections): Likewise.
11265
0cac9354
SM
112662020-01-13 Simon Marchi <simon.marchi@efficios.com>
11267
11268 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11269 core_reg_sect type to gdb_byte *.
11270 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11271 * cris-tdep.c (fetch_core_registers): Likewise.
11272 * corelow.c (core_target::get_core_register_section): Change
11273 type of `contents` to gdb::byte_vector.
11274
9a6d629c
AB
112752020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * tui/tui-wingeneral.c (box_win): Position the title in the center
11278 of the border.
11279
d8b2f9e3
SM
112802020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11281
11282 * corelow.c (core_target::get_core_register_section): Use
11283 std::vector instead of alloca.
11284
bb564c58
SM
112852020-01-13 Simon Marchi <simon.marchi@efficios.com>
11286
11287 * warning.m4: Add -Wmissing-declarations to build_warnings.
11288 * configure: Re-generate.
11289
6b366111
SM
112902020-01-13 Simon Marchi <simon.marchi@efficios.com>
11291
11292 * python/python.c (init__gdb_module): Add declaration.
11293
6c265988
SM
112942020-01-13 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11297 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11298 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11299 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11300 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11301 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11302 * ada-exp.y (_initialize_ada_exp): Add declaration.
11303 * ada-lang.c (_initialize_ada_language): Add declaration.
11304 * ada-tasks.c (_initialize_tasks): Add declaration.
11305 * agent.c (_initialize_agent): Add declaration.
11306 * aix-thread.c (_initialize_aix_thread): Add declaration.
11307 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11308 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11309 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11310 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11311 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11312 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11313 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11314 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11315 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11316 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11317 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11318 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11319 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11320 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11321 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11322 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11323 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11324 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11325 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11326 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11327 * annotate.c (_initialize_annotate): Add declaration.
11328 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11329 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11330 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11331 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11332 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11333 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11334 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11335 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11336 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11337 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11338 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11339 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11340 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11341 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11342 * auto-load.c (_initialize_auto_load): Add declaration.
11343 * auxv.c (_initialize_auxv): Add declaration.
11344 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11345 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11346 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11347 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11348 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11349 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11350 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11351 * breakpoint.c (_initialize_breakpoint): Add declaration.
11352 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11353 * btrace.c (_initialize_btrace): Add declaration.
11354 * charset.c (_initialize_charset): Add declaration.
11355 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11356 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11357 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11358 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11359 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11360 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11361 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11362 * coffread.c (_initialize_coffread): Add declaration.
11363 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11364 * compile/compile.c (_initialize_compile): Add declaration.
11365 * complaints.c (_initialize_complaints): Add declaration.
11366 * completer.c (_initialize_completer): Add declaration.
11367 * copying.c (_initialize_copying): Add declaration.
11368 * corefile.c (_initialize_core): Add declaration.
11369 * corelow.c (_initialize_corelow): Add declaration.
11370 * cp-abi.c (_initialize_cp_abi): Add declaration.
11371 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11372 * cp-support.c (_initialize_cp_support): Add declaration.
11373 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11374 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11375 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11376 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11377 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11378 * ctfread.c (_initialize_ctfread): Add declaration.
11379 * d-lang.c (_initialize_d_language): Add declaration.
11380 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11381 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11382 * dbxread.c (_initialize_dbxread): Add declaration.
11383 * dcache.c (_initialize_dcache): Add declaration.
11384 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11385 * disasm.c (_initialize_disasm): Add declaration.
11386 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11387 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11388 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11389 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11390 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11391 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11392 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11393 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11394 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11395 * elfread.c (_initialize_elfread): Add declaration.
11396 * exec.c (_initialize_exec): Add declaration.
11397 * extension.c (_initialize_extension): Add declaration.
11398 * f-lang.c (_initialize_f_language): Add declaration.
11399 * f-valprint.c (_initialize_f_valprint): Add declaration.
11400 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11401 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11402 * filesystem.c (_initialize_filesystem): Add declaration.
11403 * findcmd.c (_initialize_mem_search): Add declaration.
11404 * findvar.c (_initialize_findvar): Add declaration.
11405 * fork-child.c (_initialize_fork_child): Add declaration.
11406 * frame-base.c (_initialize_frame_base): Add declaration.
11407 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11408 * frame.c (_initialize_frame): Add declaration.
11409 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11410 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11411 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11412 * gcore.c (_initialize_gcore): Add declaration.
11413 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11414 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11415 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11416 * gdbarch.c (_initialize_gdbarch): Add declaration.
11417 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11418 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11419 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11420 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11421 * go-lang.c (_initialize_go_language): Add declaration.
11422 * go32-nat.c (_initialize_go32_nat): Add declaration.
11423 * guile/guile.c (_initialize_guile): Add declaration.
11424 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11425 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11426 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11427 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11428 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11429 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11430 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11431 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11432 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11433 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11434 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11435 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11436 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11437 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11438 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11439 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11440 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11441 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11442 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11443 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11444 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11445 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11446 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11447 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11448 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11449 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11450 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11451 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11452 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11453 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11454 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11455 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11456 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11457 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11458 * infcall.c (_initialize_infcall): Add declaration.
11459 * infcmd.c (_initialize_infcmd): Add declaration.
11460 * inflow.c (_initialize_inflow): Add declaration.
11461 * infrun.c (_initialize_infrun): Add declaration.
11462 * interps.c (_initialize_interpreter): Add declaration.
11463 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11464 * jit.c (_initialize_jit): Add declaration.
11465 * language.c (_initialize_language): Add declaration.
11466 * linux-fork.c (_initialize_linux_fork): Add declaration.
11467 * linux-nat.c (_initialize_linux_nat): Add declaration.
11468 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11469 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11470 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11471 * m2-lang.c (_initialize_m2_language): Add declaration.
11472 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11473 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11474 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11475 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11476 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11477 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11478 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11479 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11480 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11481 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11482 * machoread.c (_initialize_machoread): Add declaration.
11483 * macrocmd.c (_initialize_macrocmd): Add declaration.
11484 * macroscope.c (_initialize_macroscope): Add declaration.
11485 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11486 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11487 * maint.c (_initialize_maint_cmds): Add declaration.
11488 * mdebugread.c (_initialize_mdebugread): Add declaration.
11489 * memattr.c (_initialize_mem): Add declaration.
11490 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11491 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11492 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11493 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11494 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11495 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11496 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11497 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11498 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11499 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11500 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11501 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11502 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11503 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11504 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11505 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11506 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11507 * mipsread.c (_initialize_mipsread): Add declaration.
11508 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11509 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11510 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11511 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11512 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11513 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11514 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11515 * nto-procfs.c (_initialize_procfs): Add declaration.
11516 * objc-lang.c (_initialize_objc_language): Add declaration.
11517 * observable.c (_initialize_observer): Add declaration.
11518 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11519 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11520 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11521 * osabi.c (_initialize_gdb_osabi): Add declaration.
11522 * osdata.c (_initialize_osdata): Add declaration.
11523 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11524 * parse.c (_initialize_parse): Add declaration.
11525 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11526 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11527 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11528 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11529 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11530 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11531 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11532 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11533 * printcmd.c (_initialize_printcmd): Add declaration.
11534 * probe.c (_initialize_probe): Add declaration.
11535 * proc-api.c (_initialize_proc_api): Add declaration.
11536 * proc-events.c (_initialize_proc_events): Add declaration.
11537 * proc-service.c (_initialize_proc_service): Add declaration.
11538 * procfs.c (_initialize_procfs): Add declaration.
11539 * producer.c (_initialize_producer): Add declaration.
11540 * psymtab.c (_initialize_psymtab): Add declaration.
11541 * python/python.c (_initialize_python): Add declaration.
11542 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11543 * record-btrace.c (_initialize_record_btrace): Add declaration.
11544 * record-full.c (_initialize_record_full): Add declaration.
11545 * record.c (_initialize_record): Add declaration.
11546 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11547 * regcache.c (_initialize_regcache): Add declaration.
11548 * reggroups.c (_initialize_reggroup): Add declaration.
11549 * remote-notif.c (_initialize_notif): Add declaration.
11550 * remote-sim.c (_initialize_remote_sim): Add declaration.
11551 * remote.c (_initialize_remote): Add declaration.
11552 * reverse.c (_initialize_reverse): Add declaration.
11553 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11554 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11555 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11556 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11557 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11558 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11559 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11560 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11561 Add declaration.
11562 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11563 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11564 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11565 * rust-exp.y (_initialize_rust_exp): Add declaration.
11566 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11567 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11568 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11569 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11570 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11571 * score-tdep.c (_initialize_score_tdep): Add declaration.
11572 * ser-go32.c (_initialize_ser_dos): Add declaration.
11573 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11574 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11575 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11576 * ser-uds.c (_initialize_ser_socket): Add declaration.
11577 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11578 * serial.c (_initialize_serial): Add declaration.
11579 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11580 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11581 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11582 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11583 * skip.c (_initialize_step_skip): Add declaration.
11584 * sol-thread.c (_initialize_sol_thread): Add declaration.
11585 * solib-aix.c (_initialize_solib_aix): Add declaration.
11586 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11587 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11588 * solib-frv.c (_initialize_frv_solib): Add declaration.
11589 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11590 * solib-target.c (_initialize_solib_target): Add declaration.
11591 * solib.c (_initialize_solib): Add declaration.
11592 * source-cache.c (_initialize_source_cache): Add declaration.
11593 * source.c (_initialize_source): Add declaration.
11594 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11595 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11596 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11597 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11598 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11599 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11600 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11601 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11602 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11603 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11604 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11605 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11606 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11607 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11608 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11609 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11610 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11611 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11612 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11613 * stabsread.c (_initialize_stabsread): Add declaration.
11614 * stack.c (_initialize_stack): Add declaration.
11615 * stap-probe.c (_initialize_stap_probe): Add declaration.
11616 * std-regs.c (_initialize_frame_reg): Add declaration.
11617 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11618 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11619 * symfile.c (_initialize_symfile): Add declaration.
11620 * symmisc.c (_initialize_symmisc): Add declaration.
11621 * symtab.c (_initialize_symtab): Add declaration.
11622 * target.c (_initialize_target): Add declaration.
11623 * target-connection.c (_initialize_target_connection): Add
11624 declaration.
11625 * target-dcache.c (_initialize_target_dcache): Add declaration.
11626 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11627 * thread.c (_initialize_thread): Add declaration.
11628 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11629 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11630 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11631 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11632 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11633 * tracectf.c (_initialize_ctf): Add declaration.
11634 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11635 * tracefile.c (_initialize_tracefile): Add declaration.
11636 * tracepoint.c (_initialize_tracepoint): Add declaration.
11637 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11638 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11639 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11640 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11641 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11642 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11643 * tui/tui.c (_initialize_tui): Add declaration.
11644 * typeprint.c (_initialize_typeprint): Add declaration.
11645 * ui-style.c (_initialize_ui_style): Add declaration.
11646 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11647 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11648 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11649 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11650 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11651 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11652 * unittests/filtered_iterator-selftests.c
11653 (_initialize_filtered_iterator_selftests): Add declaration.
11654 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11655 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11656 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11657 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11658 * unittests/main-thread-selftests.c
11659 (_initialize_main_thread_selftests): Add declaration.
11660 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11661 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11662 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11663 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11664 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11665 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11666 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11667 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11668 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11669 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11670 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11671 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11672 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11673 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11674 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11675 declaration.
11676 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11677 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11678 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11679 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11680 * user-regs.c (_initialize_user_regs): Add declaration.
11681 * utils.c (_initialize_utils): Add declaration.
11682 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11683 * valops.c (_initialize_valops): Add declaration.
11684 * valprint.c (_initialize_valprint): Add declaration.
11685 * value.c (_initialize_values): Add declaration.
11686 * varobj.c (_initialize_varobj): Add declaration.
11687 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11688 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11689 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11690 * windows-nat.c (_initialize_windows_nat): Add declaration.
11691 (_initialize_check_for_gdb_ini): Add declaration.
11692 (_initialize_loadable): Add declaration.
11693 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11694 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11695 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11696 * xcoffread.c (_initialize_xcoffread): Add declaration.
11697 * xml-support.c (_initialize_xml_support): Add declaration.
11698 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11699 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11700 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11701 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11702
e2de1eec
SM
117032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11704
11705 * regformats/regdat.sh: Generate declaration for init function.
11706
e0037b4c
SM
117072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11708
11709 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11710 up.
11711 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11712 close_one_inferior>: New methods.
11713 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11714 pass down target to find_inferior_pid.
11715 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11716 Pass down target to find_inferior_ptid.
11717 (gdbsim_target::create_inferior): Pass down target to
11718 add_thread_silent.
11719 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11720 target down to find_inferior_ptid and switch_to_thread.
11721 (gdbsim_target::close): Update to call close_one_inferior.
11722 (struct resume_data): Remove.
11723 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11724 directly, rather than through a void pointer.
11725 (gdbsim_target::resume): Update to call resume_one_inferior.
11726
58920b5b
SM
117272020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11728
11729 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11730
4ec89149
PA
117312020-01-12 Pedro Alves <palves@redhat.com>
11732
11733 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11734 directly for the current inferior instead of
11735 discard_all_inferiors.
11736 (discard_all_inferiors): Delete.
11737
7c392d1d
TT
117382020-01-11 Tom Tromey <tom@tromey.com>
11739
11740 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11741 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11742 deprecated_safe_get_selected_frame.
11743
d9ebdab7
TBA
117442020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11745
11746 * inferior.c (print_inferior): Switch inferior before printing it.
11747
f3c469b9
PA
117482020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11749 Pedro Alves <palves@redhat.com>
11750
11751 * progspace-and-thread.c (switch_to_program_space_and_thread):
11752 Assert there's an inferior for PSPACE. Use
11753 switch_to_inferior_no_thread to switch the inferior too.
11754 * progspace.c (program_space::~program_space): Call
11755 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11756 (program_space::free_all_objfiles): Don't call clear_symtab_users
11757 here.
11758 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11759
65c574f6
PA
117602020-01-10 Pedro Alves <palves@redhat.com>
11761
11762 * NEWS: Mention multi-target debugging, "info connections", and
11763 "add-inferior -no-connection".
11764
2f4fcf00
PA
117652020-01-10 Pedro Alves <palves@redhat.com>
11766
11767 * infrun.c: Include "target-connection.h".
11768 (check_multi_target_resumption): New.
11769 (proceed): Call it.
11770 * target-connection.c (make_target_connection_string): Make
11771 extern.
11772 * target-connection.h (make_target_connection_string): Declare.
11773
121b3efd
PA
117742020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11777 * inferior.c (uiout_field_connection): New function.
11778 (print_inferior): Add new "connection-id" column.
11779 (add_inferior_command): Show connection number/string of added
11780 inferior.
11781 * process-stratum-target.h
11782 (process_stratum_target::connection_string): New virtual method.
11783 (process_stratum_target::connection_number): New field.
11784 * remote.c (remote_target::connection_string): New override.
11785 * target-connection.c: New file.
11786 * target-connection.h: New file.
11787 * target.c (decref_target): Remove process_stratum targets from
11788 the connection list.
11789 (target_stack::push): Add process_stratum targets to the
11790 connection list.
11791
4f837581
PA
117922020-01-10 Pedro Alves <palves@redhat.com>
11793
11794 Revert:
11795 2016-04-12 Pedro Alves <palves@redhat.com>
11796 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11797 Remove references to name.
11798 * serial.h (struct serial) <name>: Delete.
11799
f4ec508e
PA
118002020-01-10 Pedro Alves <palves@redhat.com>
11801
11802 * gdbarch-selftests.c (register_to_value_test): Remove "target
11803 already pushed" check.
11804
5b6d1e4f
PA
118052020-01-10 Pedro Alves <palves@redhat.com>
11806 John Baldwin <jhb@FreeBSD.org>
11807
11808 * aarch64-linux-nat.c
11809 (aarch64_linux_nat_target::thread_architecture): Adjust.
11810 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11811 (task_command_1): Likewise.
11812 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11813 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11814 (aix_thread_target::store_registers)
11815 (aix_thread_target::thread_alive): Adjust.
11816 * amd64-fbsd-tdep.c: Include "inferior.h".
11817 (amd64fbsd_get_thread_local_address): Pass down target.
11818 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11819 thread's gdbarch instead of target_gdbarch.
11820 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11821 get_last_target_status.
11822 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11823 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11824 inferiors.
11825 (update_inserted_breakpoint_locations): Skip if inferiors with no
11826 execution.
11827 (update_global_location_list): When handling moribund locations,
11828 find representative inferior for location's pspace, and use thread
11829 count of its process_stratum target.
11830 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11831 * bsd-uthread.c (bsd_uthread_target::wait): Use
11832 as_process_stratum_target and adjust thread_change_ptid and
11833 add_thread calls.
11834 (bsd_uthread_target::update_thread_list): Use
11835 as_process_stratum_target and adjust find_thread_ptid,
11836 thread_change_ptid and add_thread calls.
11837 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11838 find_thread_ptid call.
11839 * corelow.c (add_to_thread_list): Adjust add_thread call.
11840 (core_target_open): Adjust add_thread_silent and thread_count
11841 calls.
11842 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11843 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11844 * event-top.c (async_disconnect): Pop targets from all inferiors.
11845 * exec.c (add_target_sections): Push exec target on all inferiors
11846 sharing the program space.
11847 (remove_target_sections): Remove the exec target from all
11848 inferiors sharing the program space.
11849 (exec_on_vfork): New.
11850 * exec.h (exec_on_vfork): Declare.
11851 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11852 Pass it down.
11853 (fbsd_nat_target::update_thread_list): Adjust.
11854 (fbsd_nat_target::resume): Adjust.
11855 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11856 down.
11857 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11858 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11859 get_thread_arch_regcache call.
11860 * fork-child.c (gdb_startup_inferior): Pass target down to
11861 startup_inferior and set_executing.
11862 * gdbthread.h (struct process_stratum_target): Forward declare.
11863 (add_thread, add_thread_silent, add_thread_with_info)
11864 (in_thread_list): Add process_stratum_target parameter.
11865 (find_thread_ptid(inferior*, ptid_t)): New overload.
11866 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11867 parameter.
11868 (all_threads()): Delete overload.
11869 (all_threads, all_non_exited_threads): Add process_stratum_target
11870 parameter.
11871 (all_threads_safe): Use brace initialization.
11872 (thread_count): Add process_stratum_target parameter.
11873 (set_resumed, set_running, set_stop_requested, set_executing)
11874 (threads_are_executing, finish_thread_state): Add
11875 process_stratum_target parameter.
11876 (switch_to_thread): Use is_current_thread.
11877 * i386-fbsd-tdep.c: Include "inferior.h".
11878 (i386fbsd_get_thread_local_address): Pass down target.
11879 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11880 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11881 have_inferiors check.
11882 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11883 (inf_ptrace_target::attach): Adjust.
11884 * infcall.c (run_inferior_call): Adjust.
11885 * infcmd.c (run_command_1): Pass target to
11886 scoped_finish_thread_state.
11887 (proceed_thread_callback): Skip inferiors with no execution.
11888 (continue_command): Rename 'all_threads' local to avoid hiding
11889 'all_threads' function. Adjust get_last_target_status call.
11890 (prepare_one_step): Adjust set_running call.
11891 (signal_command): Use user_visible_resume_target. Compare thread
11892 pointers instead of inferior_ptid.
11893 (info_program_command): Adjust to pass down target.
11894 (attach_command): Mark target's 'thread_executing' flag.
11895 (stop_current_target_threads_ns): New, factored out from ...
11896 (interrupt_target_1): ... this. Switch inferior before making
11897 target calls.
11898 * inferior-iter.h
11899 (struct all_inferiors_iterator, struct all_inferiors_range)
11900 (struct all_inferiors_safe_range)
11901 (struct all_non_exited_inferiors_range): Filter on
11902 process_stratum_target too. Remove explicit.
11903 * inferior.c (inferior::inferior): Push dummy target on target
11904 stack.
11905 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11906 Add process_stratum_target parameter, and pass it down.
11907 (have_live_inferiors): Adjust.
11908 (switch_to_inferior_and_push_target): New.
11909 (add_inferior_command, clone_inferior_command): Handle
11910 "-no-connection" parameter. Use
11911 switch_to_inferior_and_push_target.
11912 (_initialize_inferior): Mention "-no-connection" option in
11913 the help of "add-inferior" and "clone-inferior" commands.
11914 * inferior.h: Include "process-stratum-target.h".
11915 (interrupt_target_1): Use bool.
11916 (struct inferior) <push_target, unpush_target, target_is_pushed,
11917 find_target_beneath, top_target, process_target, target_at,
11918 m_stack>: New.
11919 (discard_all_inferiors): Delete.
11920 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11921 (all_inferiors, all_non_exited_inferiors): Add
11922 process_stratum_target parameter.
11923 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11924 (target_last_proc_target): New global.
11925 (follow_fork_inferior): Push target on new inferior. Pass target
11926 to add_thread_silent. Call exec_on_vfork. Handle target's
11927 reference count.
11928 (follow_fork): Adjust get_last_target_status call. Also consider
11929 target.
11930 (follow_exec): Push target on new inferior.
11931 (struct execution_control_state) <target>: New field.
11932 (user_visible_resume_target): New.
11933 (do_target_resume): Call target_async.
11934 (resume_1): Set target's threads_executing flag. Consider resume
11935 target.
11936 (commit_resume_all_targets): New.
11937 (proceed): Also consider resume target. Skip threads of inferiors
11938 with no execution. Commit resumtion in all targets.
11939 (start_remote): Pass current inferior to wait_for_inferior.
11940 (infrun_thread_stop_requested): Consider target as well. Pass
11941 thread_info pointer to clear_inline_frame_state instead of ptid.
11942 (infrun_thread_thread_exit): Consider target as well.
11943 (random_pending_event_thread): New inferior parameter. Use it.
11944 (do_target_wait): Rename to ...
11945 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11946 down.
11947 (threads_are_resumed_pending_p, do_target_wait): New.
11948 (prepare_for_detach): Adjust calls.
11949 (wait_for_inferior): New inferior parameter. Handle it. Use
11950 do_target_wait_1 instead of do_target_wait.
11951 (fetch_inferior_event): Adjust. Switch to representative
11952 inferior. Pass target down.
11953 (set_last_target_status): Add process_stratum_target parameter.
11954 Save target in global.
11955 (get_last_target_status): Add process_stratum_target parameter and
11956 handle it.
11957 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11958 (context_switch): Check inferior_ptid == null_ptid before calling
11959 inferior_thread().
11960 (get_inferior_stop_soon): Pass down target.
11961 (wait_one): Rename to ...
11962 (poll_one_curr_target): ... this.
11963 (struct wait_one_event): New.
11964 (wait_one): New.
11965 (stop_all_threads): Adjust.
11966 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11967 event's target.
11968 (switch_back_to_stepped_thread): Also consider target.
11969 (print_stop_event): Update.
11970 (normal_stop): Update. Also consider the resume target.
11971 * infrun.h (wait_for_inferior): Remove declaration.
11972 (user_visible_resume_target): New declaration.
11973 (get_last_target_status, set_last_target_status): New
11974 process_stratum_target parameter.
11975 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11976 process_stratum_target parameter, and use it.
11977 (clear_inline_frame_state (thread_info*)): New.
11978 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11979 process_stratum_target parameter.
11980 (clear_inline_frame_state (thread_info*)): Declare.
11981 * linux-fork.c (delete_checkpoint_command): Pass target down to
11982 find_thread_ptid.
11983 (checkpoint_command): Adjust.
11984 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11985 instead of just tweaking inferior_ptid.
11986 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11987 (exit_lwp): Pass target down to find_thread_ptid.
11988 (attach_proc_task_lwp_callback): Pass target down to
11989 add_thread/set_running/set_executing.
11990 (linux_nat_target::attach): Pass target down to
11991 thread_change_ptid.
11992 (get_detach_signal): Pass target down to find_thread_ptid.
11993 Consider last target status's target.
11994 (linux_resume_one_lwp_throw, resume_lwp)
11995 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11996 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11997 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11998 (linux_nat_target::async_wait_fd): New.
11999 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12000 target down.
12001 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12002 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12003 * linux-thread-db.c (struct thread_db_info::process_target): New
12004 field.
12005 (add_thread_db_info): Save target.
12006 (get_thread_db_info): New process_stratum_target parameter. Also
12007 match target.
12008 (delete_thread_db_info): New process_stratum_target parameter.
12009 Also match target.
12010 (thread_from_lwp): Adjust to pass down target.
12011 (thread_db_notice_clone): Pass down target.
12012 (check_thread_db_callback): Pass down target.
12013 (try_thread_db_load_1): Always push the thread_db target.
12014 (try_thread_db_load, record_thread): Pass target down.
12015 (thread_db_target::detach): Pass target down. Always unpush the
12016 thread_db target.
12017 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12018 target down. Always unpush the thread_db target.
12019 (find_new_threads_callback, thread_db_find_new_threads_2)
12020 (thread_db_target::update_thread_list): Pass target down.
12021 (thread_db_target::pid_to_str): Pass current inferior down.
12022 (thread_db_target::get_thread_local_address): Pass target down.
12023 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12024 target down.
12025 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12026 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12027 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12028 (procfs_init_inferior): Rename to ...
12029 (procfs_target::procfs_init_inferior): ... this and adjust.
12030 (procfs_target::create_inferior, procfs_notice_thread)
12031 (procfs_do_thread_registers): Adjust.
12032 * ppc-fbsd-tdep.c: Include "inferior.h".
12033 (ppcfbsd_get_thread_local_address): Pass down target.
12034 * proc-service.c (ps_xfer_memory): Switch current inferior and
12035 program space as well.
12036 (get_ps_regcache): Pass target down.
12037 * process-stratum-target.c
12038 (process_stratum_target::thread_address_space)
12039 (process_stratum_target::thread_architecture): Pass target down.
12040 * process-stratum-target.h
12041 (process_stratum_target::threads_executing): New field.
12042 (as_process_stratum_target): New.
12043 * ravenscar-thread.c
12044 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12045 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12046 down.
12047 * record-btrace.c (record_btrace_target::info_record): Adjust.
12048 (record_btrace_target::record_method)
12049 (record_btrace_target::record_is_replaying)
12050 (record_btrace_target::fetch_registers)
12051 (get_thread_current_frame_id, record_btrace_target::resume)
12052 (record_btrace_target::wait, record_btrace_target::stop): Pass
12053 target down.
12054 * record-full.c (record_full_wait_1): Switch to event thread.
12055 Pass target down.
12056 * regcache.c (regcache::regcache)
12057 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12058 process_stratum_target parameter and handle it.
12059 (current_thread_target): New global.
12060 (get_thread_regcache): Add process_stratum_target parameter and
12061 handle it. Switch inferior before calling target method.
12062 (get_thread_regcache): Pass target down.
12063 (get_thread_regcache_for_ptid): Pass target down.
12064 (registers_changed_ptid): Add process_stratum_target parameter and
12065 handle it.
12066 (registers_changed_thread, registers_changed): Pass target down.
12067 (test_get_thread_arch_aspace_regcache): New.
12068 (current_regcache_test): Define a couple local test_target_ops
12069 instances and use them for testing.
12070 (readwrite_regcache): Pass process_stratum_target parameter.
12071 (cooked_read_test, cooked_write_test): Pass mock_target down.
12072 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12073 (get_thread_arch_aspace_regcache): Add process_stratum_target
12074 parameter.
12075 (regcache::target): New method.
12076 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12077 (regcache::registers_changed_ptid): Add process_stratum_target
12078 parameter.
12079 (regcache::m_target): New field.
12080 (registers_changed_ptid): Add process_stratum_target parameter.
12081 * remote.c (remote_state::supports_vCont_probed): New field.
12082 (remote_target::async_wait_fd): New method.
12083 (remote_unpush_and_throw): Add remote_target parameter.
12084 (get_current_remote_target): Adjust.
12085 (remote_target::remote_add_inferior): Push target.
12086 (remote_target::remote_add_thread)
12087 (remote_target::remote_notice_new_inferior)
12088 (get_remote_thread_info): Pass target down.
12089 (remote_target::update_thread_list): Skip threads of inferiors
12090 bound to other targets. (remote_target::close): Don't discard
12091 inferiors. (remote_target::add_current_inferior_and_thread)
12092 (remote_target::process_initial_stop_replies)
12093 (remote_target::start_remote)
12094 (remote_target::remote_serial_quit_handler): Pass down target.
12095 (remote_target::remote_unpush_target): New remote_target
12096 parameter. Unpush the target from all inferiors.
12097 (remote_target::remote_unpush_and_throw): New remote_target
12098 parameter. Pass it down.
12099 (remote_target::open_1): Check whether the current inferior has
12100 execution instead of checking whether any inferior is live. Pass
12101 target down.
12102 (remote_target::remote_detach_1): Pass down target. Use
12103 remote_unpush_target.
12104 (extended_remote_target::attach): Pass down target.
12105 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12106 (remote_target::append_resumption): Pass down target.
12107 (remote_target::append_pending_thread_resumptions)
12108 (remote_target::remote_resume_with_hc, remote_target::resume)
12109 (remote_target::commit_resume): Pass down target.
12110 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12111 (remote_target::interrupt_query)
12112 (remote_target::remove_new_fork_children)
12113 (remote_target::check_pending_events_prevent_wildcard_vcont)
12114 (remote_target::remote_parse_stop_reply)
12115 (remote_target::process_stop_reply): Pass down target.
12116 (first_remote_resumed_thread): New remote_target parameter. Pass
12117 it down.
12118 (remote_target::wait_as): Pass down target.
12119 (unpush_and_perror): New remote_target parameter. Pass it down.
12120 (remote_target::readchar, remote_target::remote_serial_write)
12121 (remote_target::getpkt_or_notif_sane_1)
12122 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12123 down target.
12124 (remote_target::mourn_inferior): Pass down target. Use
12125 remote_unpush_target.
12126 (remote_target::core_of_thread)
12127 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12128 (remote_target::pid_to_exec_file)
12129 (remote_target::thread_handle_to_thread_info): Pass down target.
12130 (remote_target::async_wait_fd): New.
12131 * riscv-fbsd-tdep.c: Include "inferior.h".
12132 (riscv_fbsd_get_thread_local_address): Pass down target.
12133 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12134 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12135 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12136 Adjust.
12137 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12138 * solib-svr4.c (enable_break): Pass down target.
12139 * spu-multiarch.c (parse_spufs_run): Pass down target.
12140 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12141 * target-delegates.c: Regenerate.
12142 * target.c (g_target_stack): Delete.
12143 (current_top_target): Return the current inferior's top target.
12144 (target_has_execution_1): Refer to the passed-in inferior's top
12145 target.
12146 (target_supports_terminal_ours): Check whether the initial
12147 inferior was already created.
12148 (decref_target): New.
12149 (target_stack::push): Incref/decref the target.
12150 (push_target, push_target, unpush_target): Adjust.
12151 (target_stack::unpush): Defref target.
12152 (target_is_pushed): Return bool. Adjust to refer to the current
12153 inferior's target stack.
12154 (dispose_inferior): Delete, and inline parts ...
12155 (target_preopen): ... here. Only dispose of the current inferior.
12156 (target_detach): Hold strong target reference while detaching.
12157 Pass target down.
12158 (target_thread_name): Add assertion.
12159 (target_resume): Pass down target.
12160 (target_ops::beneath, find_target_at): Adjust to refer to the
12161 current inferior's target stack.
12162 (get_dummy_target): New.
12163 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12164 has a thread running.
12165 (initialize_targets): Rename to ...
12166 (_initialize_target): ... this.
12167 * target.h: Include "gdbsupport/refcounted-object.h".
12168 (struct target_ops): Inherit refcounted_object.
12169 (target_ops::shortname, target_ops::longname): Make const.
12170 (target_ops::async_wait_fd): New method.
12171 (decref_target): Declare.
12172 (struct target_ops_ref_policy): New.
12173 (target_ops_ref): New typedef.
12174 (get_dummy_target): Declare function.
12175 (target_is_pushed): Return bool.
12176 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12177 (all_matching_threads_iterator::all_matching_threads_iterator):
12178 Handle filter target.
12179 * thread-iter.h (struct all_matching_threads_iterator, struct
12180 all_matching_threads_range, class all_non_exited_threads_range):
12181 Filter by target too. Remove explicit.
12182 * thread.c (threads_executing): Delete.
12183 (inferior_thread): Pass down current inferior.
12184 (clear_thread_inferior_resources): Pass down thread pointer
12185 instead of ptid_t.
12186 (add_thread_silent, add_thread_with_info, add_thread): Add
12187 process_stratum_target parameter. Use it for thread and inferior
12188 searches.
12189 (is_current_thread): New.
12190 (thread_info::deletable): Use it.
12191 (find_thread_ptid, thread_count, in_thread_list)
12192 (thread_change_ptid, set_resumed, set_running): New
12193 process_stratum_target parameter. Pass it down.
12194 (set_executing): New process_stratum_target parameter. Pass it
12195 down. Adjust reference to 'threads_executing'.
12196 (threads_are_executing): New process_stratum_target parameter.
12197 Adjust reference to 'threads_executing'.
12198 (set_stop_requested, finish_thread_state): New
12199 process_stratum_target parameter. Pass it down.
12200 (switch_to_thread): Also match inferior.
12201 (switch_to_thread): New process_stratum_target parameter. Pass it
12202 down.
12203 (update_threads_executing): Reimplement.
12204 * top.c (quit_force): Pop targets from all inferior.
12205 (gdb_init): Don't call initialize_targets.
12206 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12207 Declare.
12208 (windows_add_thread, windows_delete_thread): Adjust.
12209 (get_windows_debug_event): Rename to ...
12210 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12211 * tracefile-tfile.c (tfile_target_open): Pass down target.
12212 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12213 Forward declare.
12214 (switch_to_thread): Add process_stratum_target parameter.
12215 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12216 parameter. Use it.
12217 (mi_on_resume): Pass target down.
12218 * nat/fork-inferior.c (startup_inferior): Add
12219 process_stratum_target parameter. Pass it down.
12220 * nat/fork-inferior.h (startup_inferior): Add
12221 process_stratum_target parameter.
12222 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12223
75c6c844
PA
122242020-01-10 Pedro Alves <palves@redhat.com>
12225
12226 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12227 directly. Instead find the first thread in the thread list and
12228 use switch_to_thread.
12229
78f2c40a
PA
122302020-01-10 Pedro Alves <palves@redhat.com>
12231
12232 * remote.c (remote_target::remote_add_inferior): Don't bind a
12233 process to the current inferior if the current inferior is already
12234 bound to a process.
12235
e7af6c70
TBA
122362020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12237 Pedro Alves <palves@redhat.com>
12238
12239 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12240 If no process is specified, return null_ptid instead of
12241 inferior_ptid.
12242 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12243 TARGET_WAITKIND_SIGNALLED with no pid.
12244
31ba933e
PA
122452020-01-10 Pedro Alves <palves@redhat.com>
12246
12247 * remote.c (first_remote_resumed_thread): New.
12248 (remote_target::wait_as): Use it as default event_ptid instead of
12249 inferior_ptid.
12250
735fc2ca
PA
122512020-01-10 Pedro Alves <palves@redhat.com>
12252
12253 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12254
c17e02e1
PA
122552020-01-10 Pedro Alves <palves@redhat.com>
12256
12257 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12258 not -1.
12259
ab1ddbcf
PA
122602020-01-10 Pedro Alves <palves@redhat.com>
12261
12262 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12263 ptid to get_last_target_status.
12264 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12265 ptid to get_last_target_status.
12266 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12267 get_last_target_status.
12268 (info_program_command): Don't pass a target_waitstatus to
12269 get_last_target_status.
12270 * infrun.c (init_wait_for_inferior): Use
12271 nullify_last_target_wait_ptid.
12272 (get_last_target_status): Handle nullptr arguments.
12273 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12274 (print_stop_event): Don't pass a ptid to get_last_target_status.
12275 (normal_stop): Don't pass a ptid to get_last_target_status.
12276 * infrun.h (get_last_target_status, set_last_target_status): Move
12277 comments here and update.
12278 (nullify_last_target_wait_ptid): Declare.
12279 * linux-fork.c (fork_load_infrun_state): Remove local extern
12280 declaration of nullify_last_target_wait_ptid.
12281 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12282 to get_last_target_status.
12283
f3f8ece4
PA
122842020-01-10 Pedro Alves <palves@redhat.com>
12285
12286 * gdbthread.h (scoped_restore_current_thread)
12287 <dont_restore, restore, m_dont_restore>: Declare.
12288 * thread.c (thread_alive): Add assertion. Return bool.
12289 (switch_to_thread_if_alive): New.
12290 (prune_threads): Switch inferior/thread.
12291 (print_thread_info_1): Switch thread before calling target methods.
12292 (scoped_restore_current_thread::restore): New, factored out from
12293 ...
12294 (scoped_restore_current_thread::~scoped_restore_current_thread):
12295 ... this.
12296 (scoped_restore_current_thread::scoped_restore_current_thread):
12297 Add assertion.
12298 (thread_apply_all_command, thread_select): Use
12299 switch_to_thread_if_alive.
12300 * infrun.c (proceed, restart_threads, handle_signal_stop)
12301 (switch_back_to_stepped_thread): Switch current thread before
12302 calling target methods.
12303
db2d40f7
PA
123042020-01-10 Pedro Alves <palves@redhat.com>
12305
12306 * inferior.c (switch_to_inferior_no_thread): New function,
12307 factored out from ...
12308 (inferior_command): ... here.
12309 * inferior.h (switch_to_inferior_no_thread): Declare.
12310 * mi/mi-main.c (run_one_inferior): Use
12311 switch_to_inferior_no_thread.
12312
bd420a2d
PA
123132020-01-10 Pedro Alves <palves@redhat.com>
12314
12315 * infcmd.c (kill_command): Remove dead code.
12316
ddf5db90
PA
123172020-01-10 Pedro Alves <palves@redhat.com>
12318
12319 * remote.c (remote_target::mourn_inferior): No longer check
12320 whether the target is running.
12321
5018ce90
PA
123222020-01-10 Pedro Alves <palves@redhat.com>
12323
12324 * corelow.c (core_target::has_execution): Change parameter type to
12325 inferior pointer.
12326 * inferior.c (number_of_live_inferiors): Use
12327 inferior::has_execution instead of target_has_execution_1.
12328 * inferior.h (inferior::has_execution): New.
12329 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12330 inferior::has_execution instead of target_has_execution_1.
12331 * process-stratum-target.c
12332 (process_stratum_target::has_execution): Change parameter type to
12333 inferior pointer. Check the inferior's PID instead of
12334 inferior_ptid.
12335 * process-stratum-target.h
12336 (process_stratum_target::has_execution): Change parameter type to
12337 inferior pointer.
12338 * record-full.c (record_full_core_target::has_execution): Change
12339 parameter type to inferior pointer.
12340 * target.c (target_has_execution_1): Change parameter type to
12341 inferior pointer.
12342 (target_has_execution_current): Adjust.
12343 * target.h (target_ops::has_execution): Change parameter type to
12344 inferior pointer.
12345 (target_has_execution_1): Change parameter type to inferior
12346 pointer. Change return type to bool.
12347 * tracefile.h (tracefile_target::has_execution): Change parameter
12348 type to inferior pointer.
12349
74375d18
PA
123502020-01-10 Pedro Alves <palves@redhat.com>
12351
12352 * exceptions.c (print_flush): Remove current_top_target() check.
12353
acdf84a6
PA
123542020-01-10 Pedro Alves <palves@redhat.com>
12355
12356 * remote.c (show_remote_exec_file): Show the current inferior's
12357 exec-file instead of the command variable's value.
12358
ec506636
PA
123592020-01-10 Pedro Alves <palves@redhat.com>
12360
12361 * record-full.c (record_full_resume_ptid): New global.
12362 (record_full_target::resume): Set it.
12363 (record_full_wait_1): Use record_full_resume_ptid instead of
12364 inferior_ptid.
12365
873657b9
PA
123662020-01-10 Pedro Alves <palves@redhat.com>
12367
12368 * gdbthread.h (scoped_restore_current_thread)
12369 <dont_restore, restore, m_dont_restore>: Declare.
12370 * thread.c (thread_alive): Add assertion. Return bool.
12371 (switch_to_thread_if_alive): New.
12372 (prune_threads): Switch inferior/thread.
12373 (print_thread_info_1): Switch thread before calling target methods.
12374 (scoped_restore_current_thread::restore): New, factored out from
12375 ...
12376 (scoped_restore_current_thread::~scoped_restore_current_thread):
12377 ... this.
12378 (scoped_restore_current_thread::scoped_restore_current_thread):
12379 Add assertion.
12380 (thread_apply_all_command, thread_select): Use
12381 switch_to_thread_if_alive.
12382
7f0ae84c
GB
123832020-01-10 George Barrett <bob@bob131.so>
12384
12385 * stap-probe.c (stap_modify_semaphore): Don't check for null
12386 semaphores.
12387 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12388 for null semaphores.
12389
f5a7c406
AB
123902020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12393 all source windows, and maintain horizontal scroll status while
12394 doing so.
12395
9ae6bf64
TT
123962020-01-09 Tom Tromey <tom@tromey.com>
12397
12398 PR tui/18932:
12399 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12400 update_source_window, not print_source_lines.
12401
b2efe70c
AB
124022020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12403
12404 * tui/tui.c (tui_enable): Register tui hooks after calling
12405 tui_display_main.
12406
5f23a082
CB
124072020-01-09 Christian Biesinger <cbiesinger@google.com>
12408
12409 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12410
3061113b
SM
124112020-01-08 Simon Marchi <simon.marchi@efficios.com>
12412
12413 * thread.c (print_thread_info_1): Fix indentation.
12414
57d75002
CB
124152020-01-09 Christian Biesinger <cbiesinger@google.com>
12416
12417 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12418 unique_xmalloc_ptr outside the if to always free the demangled name.
12419
6a053cb1
TT
124202020-01-08 Tom Tromey <tromey@adacore.com>
12421
12422 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12423 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12424 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12425 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12426 Remove.
12427 (section_offsets): New typedef.
12428 * symtab.c (fixup_section, get_msymbol_address): Update.
12429 * symmisc.c (dump_msymbols): Update.
12430 * symfile.h (relative_addr_info_to_section_offsets)
12431 (symfile_map_offsets_to_segments): Update.
12432 * symfile.c (build_section_addr_info_from_objfile)
12433 (init_objfile_sect_indices): Update.
12434 (struct place_section_arg): Change type of "offsets".
12435 (place_section): Update.
12436 (relative_addr_info_to_section_offsets): Change type of
12437 "section_offsets". Remove "num_sections" parameter.
12438 (default_symfile_offsets, syms_from_objfile_1)
12439 (set_objfile_default_section_offset): Update.
12440 (reread_symbols): No need to preserve section offsets by hand.
12441 (symfile_map_offsets_to_segments): Change type of "offsets".
12442 * stap-probe.c (relocate_address): Update.
12443 * stabsread.h (process_one_symbol): Update.
12444 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12445 (solib_target_relocate_section_addresses): Update.
12446 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12447 Update.
12448 * solib-frv.c (frv_relocate_main_executable): Update.
12449 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12450 * solib-aix.c (solib_aix_get_section_offsets): Change return
12451 type.
12452 (solib_aix_solib_create_inferior_hook): Update.
12453 * remote.c (remote_target::get_offsets): Update.
12454 * psymtab.c (find_pc_sect_psymtab): Update.
12455 * psympriv.h (struct partial_symbol) <address, text_low,
12456 text_high>: Update.
12457 * objfiles.h (obj_section_offset): Update.
12458 (struct objfile) <section_offsets>: Change type.
12459 <num_sections>: Remove.
12460 (objfile_relocate): Update.
12461 * objfiles.c (entry_point_address_query): Update
12462 (relocate_one_symbol): Change type of "section_offsets".
12463 (objfile_relocate1, objfile_relocate1): Change type of
12464 "new_offsets".
12465 (objfile_rebase1): Update.
12466 * mipsread.c (mipscoff_symfile_read): Update.
12467 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12468 parameter.
12469 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12470 (parse_external, psymtab_to_symtab_1): Update.
12471 * machoread.c (macho_symfile_offsets): Update.
12472 * ia64-tdep.c (ia64_find_unwind_table): Update.
12473 * hppa-tdep.c (read_unwind_info): Update.
12474 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12475 * dwarf2read.c (create_addrmap_from_index)
12476 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12477 (process_psymtab_comp_unit_reader, add_partial_symbol)
12478 (add_partial_subprogram, process_full_comp_unit)
12479 (read_file_scope, read_func_scope, read_lexical_block_scope)
12480 (read_call_site_scope, dwarf2_rnglists_process)
12481 (dwarf2_ranges_process, dwarf2_ranges_read)
12482 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12483 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12484 Update.
12485 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12486 Update.
12487 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12488 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12489 (process_one_symbol): Change type of "section_offsets".
12490 * ctfread.c (get_objfile_text_range): Update.
12491 * coffread.c (coff_symtab_read, enter_linenos)
12492 (process_coff_symbol): Update.
12493 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12494 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12495
456e800a
TT
124962020-01-08 Tom Tromey <tromey@adacore.com>
12497
12498 * dwarf2read.c (parse_macro_definition): Use std::string.
12499 (parse_macro_definition): Likewise.
12500
6dfa2fc2
TT
125012020-01-08 Tom Tromey <tromey@adacore.com>
12502
12503 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12504 (ATTR_ALLOC_CHUNK): Remove.
12505
421d1616
TT
125062020-01-08 Tom Tromey <tromey@adacore.com>
12507
12508 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12509
43816ebc
TT
125102020-01-08 Tom Tromey <tromey@adacore.com>
12511
12512 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12513 (dwarf2_compute_name, open_dwo_file): Likewise.
12514 (process_enumeration_scope): Use std::vector.
12515 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12516 (partial_die_info::fixup, dwarf2_start_subfile)
12517 (guess_full_die_structure_name, dwarf2_name): Likewise.
12518 (determine_prefix): Update.
12519 (guess_full_die_structure_name): Make return type const.
12520 (partial_die_full_name): Return unique_xmalloc_ptr.
12521 (DW_FIELD_ALLOC_CHUNK): Remove.
12522
4212d509
TT
125232020-01-07 Tom Tromey <tromey@adacore.com>
12524
12525 PR build/24937:
12526 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12527
06a6207a
JT
125282020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12529
12530 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12531
153d79c4
AB
125322020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12533
12534 * stack.c (print_frame_info): Move disassemble_next_line code
12535 inside source_print block.
12536
66182876
EZ
125372020-01-06 Eli Zaretskii <eliz@gnu.org>
12538
12539 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12540 gdb/signals.h, as we are now using native signal symbols.
12541
cbfa8581
SV
125422020-01-06 Shahab Vahedi <shahab@synopsys.com>
12543
12544 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12545 overflow by an early check of content vs threshold.
aac66a4c 12546 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12547 Likewise.
12548
3f602821
EZ
125492020-01-06 Eli Zaretskii <eliz@gnu.org>
12550
12551 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12552
a08c904d
JT
125532020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12554
12555 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12556 export table if no section contains it's RVA.
12557
89a65580
EZ
125582020-01-06 Eli Zaretskii <eliz@gnu.org>
12559
12560 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12561
8b7fcda2
HD
125622020-01-06 Hannes Domani <ssbssa@yahoo.de>
12563
12564 * source.c (print_source_lines_base): Set last_line_listed.
12565
a61b4f69
SV
125662020-01-06 Shahab Vahedi <shahab@synopsys.com>
12567
12568 * tui/tui-disasm.c: Remove trailing spaces.
12569
559e7e50
EZ
125702020-01-06 Eli Zaretskii <eliz@gnu.org>
12571 Pedro Alves <palves@redhat.com>
12572
12573 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12574 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12575 (windows_gdb_signal_to_target): New function, uses the above
12576 enumeration to convert GDB internal signal codes to equivalent
12577 Windows codes.
12578 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12579 * windows-nat.c: Include "gdb_wait.h".
12580 (get_windows_debug_event): Extract the fatal exception from the
12581 exit status and convert to the equivalent Posix signal number.
12582 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12583 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12584 * gdbsupport/gdb_wait.c: New file, implements
12585 windows_status_to_termsig.
12586 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12587 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12588
f2302a34
AB
125892020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12590
12591 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12592 show_layout.
12593
6a5206eb
LM
125942020-01-05 Luis Machado <luis.machado@linaro.org>
12595
12596 * aarch64-linux-nat.c
12597 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12598 and bfd_mach_aarch64.
12599
6ec1d75e
PW
126002020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12601
12602 * ui-file.c (stdio_file::can_emit_style_escape)
12603 (tee_file::can_emit_style_escape): Ensure style is used also on
12604 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12605 to gdb_stdout.
12606 * main.c (set_gdb_data_directory): Use file style to output the
12607 warning that the given pathname is not a directory.
12608 * top.c (show_history_filename, gdb_safe_append_history)
12609 (show_gdb_datadir): Use file style.
12610
44f81a76
HD
126112020-01-03 Hannes Domani <ssbssa@yahoo.de>
12612
12613 * solib-target.c (struct lm_info_target):
12614 Change offsets to be a unique_xmalloc_ptr.
12615 (solib_target_relocate_section_addresses): Update.
12616
25057eb0
HD
126172020-01-03 Hannes Domani <ssbssa@yahoo.de>
12618
12619 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12620
6e2118f5
BE
126212020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12622
12623 * MAINTAINERS (Write After Approval): Add myself.
12624
8133c7dc
LM
126252020-01-02 Luis Machado <luis.machado@linaro.org>
12626
12627 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12628 Cell BE architecture.
12629 * target.h (struct target_ops) <thread_architecture>: Likewise.
12630
48189bec
HD
126312020-01-01 Hannes Domani <ssbssa@yahoo.de>
12632
12633 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12634
ead1063b
HD
126352020-01-01 Hannes Domani <ssbssa@yahoo.de>
12636
12637 * MAINTAINERS (Write After Approval): Add myself.
12638
e5d78223
JB
126392020-01-01 Joel Brobecker <brobecker@adacore.com>
12640
12641 * gdbarch.sh: Update copyright year range of generated files.
12642
b811d2c2
JB
126432020-01-01 Joel Brobecker <brobecker@adacore.com>
12644
12645 Update copyright year range in all GDB files.
12646
5f4def5c
JB
126472020-01-01 Joel Brobecker <brobecker@adacore.com>
12648
12649 * copyright.py: Convert to Python 3.
12650
51fd4002
JB
126512020-01-01 Joel Brobecker <brobecker@adacore.com>
12652
12653 * copyright.py: Adapt after move of gnulib directory from gdb
12654 directory to toplevel directory.
12655
5fb651f2
JB
126562020-01-01 Joel Brobecker <brobecker@adacore.com>
12657
12658 * copyright.py (main): Exit if run from the wrong directory.
12659
5dd8bf88
JB
126602020-01-01 Joel Brobecker <brobecker@adacore.com>
12661
12662 * top.c (print_gdb_version): Change copyright year to 2020.
12663
9f71dacb 126642020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12665
9f71dacb 12666 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12667
9f71dacb 12668For older changes see ChangeLog-2019.
c906108c
SS
12669\f
12670Local Variables:
12671mode: change-log
12672left-margin: 8
12673fill-column: 74
12674version-control: never
57da7796 12675coding: utf-8
c906108c 12676End:
This page took 4.010779 seconds and 4 git commands to generate.