]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_TARGET_STUB
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d2183968
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4 uses with type::target_is_stub.
5
8f53807e
SM
62020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
9 New methods.
10 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
11 sites to use type::set_target_is_stub.
12
e46d3488
SM
132020-09-14 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_STUB): Remove, replace all
16 uses with type::is_stub.
17
b4b73759
SM
182020-09-14 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
21 (TYPE_STUB): Use type::is_stub, change all write call sites to
22 use type::set_is_stub.
23
20ce4123
SM
242020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
27 type::has_no_signedness.
28
15152a54
SM
292020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (struct type) <has_no_signedness,
32 set_has_no_signedness>: New methods.
33 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
34 call sites to use type::set_has_no_signedness.
35
c6d940a9
SM
362020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
39 type::is_unsigned.
40
653223d3
SM
412020-09-14 Simon Marchi <simon.marchi@efficios.com>
42
43 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
44 methods.
45 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
46 sites to use type::set_is_unsigned.
47
55ea94da
FH
482020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
49 Adam Renquinha <arenquinha@cimeq.qc.ca>
50
51 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
52 pointer and stack frame offset when unwinding.
53
6791b117
PA
542020-09-13 Pedro Alves <pedro@palves.net>
55
56 * NEWS: Document "-break-insert --qualified".
57 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
58
77f2120b
PA
592020-09-13 Pedro Alves <pedro@palves.net>
60
61 * linespec.c (classify_mtype, compare_msyms): Delete.
62 (search_minsyms_for_name): Remove classification logic. Instead
63 filter out trampoline symbols if we also found an external
64 function of the same name.
65
ed6a896c
JB
662020-09-13 Joel Brobecker <brobecker@adacore.com>
67
68 * NEWS: Create a new section for the next release branch.
69 Rename the section of the current branch, now that it has
70 been cut.
71
32aea73e
JB
722020-09-13 Joel Brobecker <brobecker@adacore.com>
73
74 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
75 * version.in: Bump version to 11.0.50.DATE-git.
76
8087c3fa
JB
772020-09-12 Joel Brobecker <brobecker@adacore.com>
78
79 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
80
2a67f09d
FW
812020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
82 Felix Willgerodt <Felix.Willgerodt@intel.com>
83
84 * gdbarch.sh: Added bfloat16 type.
85 * gdbarch.c: Regenerated.
86 * gdbarch.h: Regenerated.
87 * gdbtypes.c (floatformats_bfloat16): New struct.
88 (gdbtypes_post_init): Add builtin_bfloat16.
89 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
90 (floatformats_bfloat16): New struct.
91 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
92 (i386_ymm_type): Add field "v16_bfloat16"
93 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
94 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
95 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
96 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
97 * features/i386/64bit-avx512.xml: Add bfloat16 type.
98 * features/i386/64bit-avx512.c: Regenerated.
99 * features/i386/64bit-sse.xml: Add bfloat16 type.
100 * features/i386/64bit-sse.c: Regenerated.
101
1347d111
FW
1022020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
103
104 * i386-tdep.c (i386_zmm_type): Fix field names.
105 (i386_ymm_type): Fix field names.
106
7a4e8e7d
TBA
1072020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
108
109 * breakpoint.c: Fix typo in the help message of the
110 "set breakpoint condition-evaluation" command.
111
cf4ac4be
KR
1122020-09-10 Kamil Rytarowski <n54@gmx.com>
113
114 * nbsd-nat.c: Include "nat/netbsd-nat.h".
115 * (nbsd_nat_target::pid_to_exec_file)
116 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
117 (nbsd_nat_target::post_startup_inferior)
118 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
119 (nbsd_add_threads): Switch local code to common gdb/nat functions.
120 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
121 * (nbsd_thread_lister): Remove.
122
f404573e
KR
1232020-09-10 Kamil Rytarowski <n54@gmx.com>
124
125 * fork-inferior.c (startup_inferior): Avoid double free.
126
1ccb2c17
KR
1272020-09-10 Kamil Rytarowski <n54@gmx.com>
128
129 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
130 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
131
feedfcc7
KR
1322020-09-10 Kamil Rytarowski <n54@gmx.com>
133
134 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
135 * netbsd-nat.c: Include <sys/ptrace.h>.
136 * (netbsd_nat::enable_proc_events): Add.
137
c489f8c6
KR
1382020-09-10 Kamil Rytarowski <n54@gmx.com>
139
140 * netbsd-nat.h: Include "gdbsupport/function-view.h".
141 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
142 (netbsd_nat::for_each_thread): Add.
143 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
144 "gdbsupport/common-debug.h".
145 * (netbsd_nat::netbsd_thread_lister)
146 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
147 (netbsd_nat::for_each_thread): Add.
148
330662f6
KR
1492020-09-10 Kamil Rytarowski <n54@gmx.com>
150
151 * netbsd-nat.h: Include <unistd.h>.
152 * (netbsd_nat::pid_to_exec_file): Add.
153 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
154 * (netbsd_nat::pid_to_exec_file) Add.
155
70b67307
KR
1562020-09-10 Kamil Rytarowski <n54@gmx.com>
157
158 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
159
99cf6da6
KR
1602020-09-10 Kamil Rytarowski <n54@gmx.com>
161
162 * netbsd-nat.h: New file.
163 * netbsd-nat.c: Likewise.
164
1b788fb6
TT
1652020-09-09 Tom Tromey <tromey@adacore.com>
166
167 * ada-lang.c (remove_extra_symbols): Do not increment when
168 removing an element
169
03b0a45f
TT
1702020-09-08 Tom Tromey <tromey@adacore.com>
171
172 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
173
3cae4447
TT
1742020-09-08 Tom Tromey <tromey@adacore.com>
175
176 PR win32/25302:
177 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
178 (gdb_bfd_init_data): New function.
179 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
180
7f08fd51
TBA
1812020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
182
183 * infrun.c (fetch_inferior_event): Use
184 `switch_to_target_no_thread` to switch the target.
185
3e6ff933
TT
1862020-09-06 Tom Tromey <tom@tromey.com>
187
188 * symfile.h (dwarf2_free_objfile): Don't declare.
189
e56798df
AKS
1902020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
191
192 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
193 to match 16 byte real/complex type generated by Flang compiler.
194
8f5c6526
TV
1952020-09-03 Tom de Vries <tdevries@suse.de>
196
197 PR breakpoint/26546
198 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
199 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
200
c5065df0
SM
2012020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * maint.c (index_digits): New function.
204 (struct maint_print_section_data): Remove.
205 (print_bfd_section_info): Remove print_data parameter, add arg
206 and index_digits.
207 (print_objfile_section_info): Likewise.
208 (print_bfd_section_info_maybe_relocated): Likewise (plus
209 objfile).
210 (maintenance_info_sections): Adjust calls.
211
02c6f3f1
TT
2122020-09-02 Tom Tromey <tromey@adacore.com>
213
214 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
215 for null pointers.
216 (ada_varobj_adjust_for_child_access): Special-case null pointers.
217
ef5e5b0b
SM
2182020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * bcache.h (struct bcache) <insert>: Change type of `added` to
221 pointer to bool.
222 * bcache.c (bcache::insert): Likewise.
223 * gdbtypes.c (check_types_worklist): Adjust.
224 * psymtab.c (add_psymbol_to_bcache): Adjust.
225
973695d6
KB
2262020-08-31 Kevin Buettner <kevinb@redhat.com>
227
228 * corelow.c (unordered_set): Include.
229 (class core_target): Add field 'm_core_unavailable_mappings'.
230 (core_target::build_file_mappings): Print only one warning
231 per inaccessible file. Add unavailable/broken mappings
232 to m_core_unavailable_mappings.
233 (core_target::xfer_partial): Call...
234 (core_target::xfer_memory_via_mappings): New method.
235
264fc0e2
SM
2362020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
239 type to bool.
240
2de01bdb
SM
2412020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * dwarf2/read.c (struct field_info): Fix indentation.
244
f3bd50f1
SM
2452020-08-31 Simon Marchi <simon.marchi@efficios.com>
246
247 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
248 ordering in comment.
249 * frame.c (frame_id_eq): Fix indentation.
250
22b9b4b0
SL
2512020-08-31 Scott Linder <scott@scottlinder.com>
252 Simon Marchi <simon.marchi@efficios.com>
253
254 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
255 inline frame ids in outer frame.
256
84154d16
SM
2572020-08-31 Simon Marchi <simon.marchi@efficios.com>
258
259 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
260 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
261 (outer_frame_id): Use FID_STACK_OUTER instead of
262 FID_STACK_INVALID.
263 (frame_id_p): Don't check for outer_frame_id.
264
8efaf6b3
SM
2652020-08-31 Simon Marchi <simon.marchi@efficios.com>
266
267 * frame-unwind.c (frame_unwind_got_optimized): Don't set
268 regnum/frame in value. Call allocate_value_lazy.
269 * frame.c (frame_unwind_register_value): Use
270 val_print_not_saved.
271
fe1fe7ea
SM
2722020-08-31 Simon Marchi <simon.marchi@efficios.com>
273
274 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
275
f7c7700d
PA
2762020-08-29 Pedro Alves <pedro@palves.net>
277
278 * progspace.c (print_program_space): Use all_inferiors. Switch to
279 the inferior before calling target_pid_to_str.
280
e0814aae
TT
2812020-08-28 Tom Tromey <tom@tromey.com>
282
283 * xcoffread.c (xcoff_end_psymtab): Update comment.
284 * dbxread.c (dbx_end_psymtab): Update comment.
285
626d2320
TV
2862020-08-28 Tom de Vries <tdevries@suse.de>
287
288 PR breakpoint/26544
289 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
290 event_location.
291 (create_breakpoint): Same.
292 (base_breakpoint_decode_location): Same.
293 (bkpt_create_sals_from_location): Same.
294 (bkpt_decode_location): Same.
295 (bkpt_probe_create_sals_from_location): Same.
296 (bkpt_probe_decode_location): Same.
297 (tracepoint_create_sals_from_location): Same.
298 (tracepoint_decode_location): Same.
299 (tracepoint_probe_decode_location): Same.
300 (strace_marker_create_sals_from_location): Same.
301 (strace_marker_decode_location): Same.
302 (create_sals_from_location_default): Same.
303 (decode_location_default): Same.
304 * breakpoint.h (struct breakpoint_ops): Same.
305 (create_breakpoint): Same.
306 * linespec.h (decode_line_full): Same.
307 * linespec.c (decode_line_full): Same. Throw error if
308 result.size () == 0.
309
df631783
PA
3102020-08-27 Pedro Alves <pedro@palves.net>
311
312 PR gdb/26524
313 * breakpoint.c (until_break_fsm) <location_breakpoint,
314 caller_breakpoint>: Delete fields.
315 <breakpoints>: New field.
316 <until_break_fsm>: Adjust to save a breakpoint vector instead of
317 two individual breakpoints.
318 (until_break_fsm::should_stop): Loop over breakpoints in the
319 breakpoint vector.
320 (until_break_fsm::clean_up): Adjust to clear the breakpoints
321 vector.
322 (until_break_command): Handle location expanding into multiple
323 sals.
324
b2b38aa4
PA
3252020-08-27 Pedro Alves <pedro@palves.net>
326
327 PR gdb/26523
328 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
329 bp_until breakpoints user-specified locations. Update intro
330 comment.
331
b886559f
SM
3322020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
335 gdb_bfd_sections): New.
336 * maint.c (print_bfd_section_info): Change param type to
337 maint_print_section_data.
338 (print_objfile_section_info): Likewise.
339 (print_bfd_section_info_maybe_relocated): Likewise.
340 (maintenance_info_sections): Use gdb_bfd_sections.
341
4c6e63bf
SV
3422020-08-25 Shahab Vahedi <shahab@synopsys.com>
343
344 * MAINTAINERS: Add ARC target and maintainer.
345
8d7f0635
AK
3462020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
347
348 * configure.tgt: ARC support for GNU/Linux.
349 * Makefile.in (ALL_TARGET_OBJS): Likewise.
350 * arc-linux-tdep.c: New file.
351 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
352 * arc-tdep.c (arc_write_pc): Use it.
353
fdd8731b
SV
3542020-08-25 Shahab Vahedi <shahab@synopsys.com>
355
356 * arc-tdep.c (arc_check_for_hardware_loop): New.
357 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
358
22459524
SV
3592020-08-25 Shahab Vahedi <shahab@synopsys.com>
360
361 * arc-tdep.h: Include "gdbarch.h".
362
995d3a19
SV
3632020-08-25 Shahab Vahedi <shahab@synopsys.com>
364
365 * arch/arc.h
366 (arc_gdbarch_features): New class to stir the selection of target XML.
367 (arc_create_target_description): Use FEATURES to choose XML target.
368 (arc_lookup_target_description): Use arc_create_target_description
369 to create _new_ target descriptions or return the already created
370 ones if the FEATURES is the same.
371 * arch/arc.c: Implementation of prototypes described above.
372 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
373 (arc_gdbarch_features_init): Initialize the FEATURES struct.
374 * arc-tdep.c (*_feature_name): Make feature names consistent.
375 (arc_register_feature): A new struct to hold information about
376 registers of a particular target/feature.
377 (arc_check_tdesc_feature): Check if XML provides registers in
378 compliance with ARC_REGISTER_FEATURE structs.
379 (arc_update_acc_reg_names): Add aliases for r58 and r59.
380 (determine_*_reg_feature_set): Which feature name to look for.
381 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
382 (mach_type_to_arc_isa): Convert from a set of binutils machine types
383 to expected ISA enums to be used in arc_gdbarch_features structs.
384 * features/Makefile (FEATURE_XMLFILES): Add new files.
385 * gdb/features/arc/v1-aux.c: New file.
386 * gdb/features/arc/v1-aux.xml: Likewise.
387 * gdb/features/arc/v1-core.c: Likewise.
388 * gdb/features/arc/v1-core.xml: Likewise.
389 * gdb/features/arc/v2-aux.c: Likewise.
390 * gdb/features/arc/v2-aux.xml: Likewise.
391 * gdb/features/arc/v2-core.c: Likewise.
392 * gdb/features/arc/v2-core.xml: Likewise.
393 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
394
3945d2d7
GM
3952020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
396 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 PR m2/26372
fc5d6901 399 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
400 an assert. Remove single element array indexing pattern as the
401 MULTI_SUBSCRIPT support will handle this case too.
402
2677f2d3
SM
4032020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * value.h (valprint_check_validity): Move declaration from
406 here...
407 * valprint.h (valprint_check_validity): ... to here.
408
c426fddb
SM
4092020-08-24 Simon Marchi <simon.marchi@efficios.com>
410
411 * debug.h: New file.
412 * debug.c (debug_prefixed_vprintf): New function.
413 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
414 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
415
1eb8556f
SM
4162020-08-24 Simon Marchi <simon.marchi@efficios.com>
417
418 * infrun.h (infrun_debug_printf_1): New function declaration.
419 (infrun_debug_printf): New macro.
420 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
421 throughout.
422 (infrun_debug_printf): New function.
423 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
424 (handle_jit_event): Likewise.
425
b8fff44e
MW
4262020-08-21 Mark Wielaard <mark@klomp.org>
427
428 * ada-lex.l: Extend register warnings diagnostics comment for g++.
429
d19c3068
SM
4302020-08-22 Simon Marchi <simon.marchi@efficios.com>
431
432 * frame.c (enum class frame_id_status): New.
433 (struct frame_info) <this_id::p>: Change type to frame_id_status.
434 (fprintf_frame): Update.
435 (compute_frame_id): Set frame id status to "computing" on entry.
436 Set it back to "not_computed" on failure and to "computed" on
437 success.
438 (get_frame_id): Assert the frame id is not being computed.
439 (create_sentinel_frame): Use frame_id_status::COMPUTED.
440 (create_new_frame): Likewise.
441 (frame_cleanup_after_sniffer): Update assert.
442
b70e516e
SM
4432020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
444
445 * regcache.c (pid_ptid_regcache_map): New type.
446 (target_ptid_regcache_map): Remove.
447 (target_pid_ptid_regcache_map): New type.
448 (regcaches): Change type to target_pid_ptid_regcache_map.
449 (get_thread_arch_aspace_regcache): Update.
450 (regcache_thread_ptid_changed): Update, handle pid-like ptid
451 case.
452 (regcaches_size): Update.
453 (regcache_count): Update.
454 (registers_changed_ptid_target_pid_test): New.
455 (_initialize_regcache): Register new test.
456
cdd9148a
SM
4572020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * regcache.c (regcache_count): New.
460 (struct regcache_test_data): New.
461 (regcache_test_data_up): New.
462 (populate_regcaches_for_test): New.
463 (regcaches_test): Remove.
464 (get_thread_arch_aspace_regcache_test): New.
465 (registers_changed_ptid_all_test): New.
466 (registers_changed_ptid_target_test): New.
467 (registers_changed_ptid_target_ptid_test): New.
468 (regcache_thread_ptid_changed): Remove regcache_count lambda.
469 (_initialize_regcache): Register new tests.
470
dd125343
SM
4712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
474 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
475 gdbarch and aspace parameter. Use current inferior's aspace.
476 Validate regcache's arch value.
477 (regcaches_test): Update.
478
3ee93972
SM
4792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * regcache.c (regcaches_test): Call registers_changed.
482
33bf4c5c
TBA
4832020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
484
485 * infrun.c (process_event_stop_test): Fix typo "breapoint".
486
c2fd7fae
AKS
4872020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
488
489 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
490 to find the end of prologue for flang compiled binaries.
491 * arm-tdep.c (arm_skip_prologue): Likewise.
492 * i386-tdep.c (i386_skip_prologue): Likewise.
493 * producer.c (producer_is_llvm): New function.
494 (producer_parsing_tests): Added new tests for clang/flang.
495 * producer.h (producer_is_llvm): New declaration.
496
9327494e
SM
4972020-08-18 Simon Marchi <simon.marchi@efficios.com>
498
499 * linux-nat.c (linux_nat_debug_printf): New function.
500 (linux_nat_debug_printf_1): New macro. Use throughout the file.
501
d138725a
AM
5022020-08-18 Aaron Merey <amerey@redhat.com>
503
504 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
505 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
506 (CLIBS): Add DEBUGINFOD_LIBS.
507
f9b11e6b
ST
5082020-08-17 Sergei Trofimovich <siarheit@google.com>
509
510 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
511 'gdbarch_num_regs'.
512
3ae7ab99
TT
5132020-08-17 Tom Tromey <tromey@adacore.com>
514
515 * ada-varobj.c (ada_varobj_decode_var): Handle case where
516 ada_get_decoded_value returns NULL.
517
b017825f
TT
5182020-08-17 Tom Tromey <tromey@adacore.com>
519
520 * python/py-inferior.c (infpy_search_memory): Use
521 gdb_py_object_from_ulongest.
522 * python/py-infevents.c (create_inferior_call_event_object)
523 (create_memory_changed_event_object): Use
524 gdb_py_object_from_ulongest.
525 * python/py-linetable.c (ltpy_entry_get_pc): Use
526 gdb_py_object_from_ulongest.
527
7635cf79
SM
5282020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * loc.c (class symbol_needs_eval_context): Fix indentation.
531
f54be24b
SM
5322020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
535 bool.
536
53d5a2a5
TV
5372020-08-17 Tom de Vries <tdevries@suse.de>
538
539 PR gdb/26393
540 * gdbtypes.c (dump_dynamic_prop): New function.
541 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
542
547ce8f0
TV
5432020-08-15 Tom de Vries <tdevries@suse.de>
544
545 PR backtrace/26390
546 * stack.c (print_frame_args): Temporarily set the selected
547 frame to FRAME while printing the frame's arguments.
548
6ea815e7
PFC
5492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
550
551 PR breakpoints/26385
552 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
553 Always clear watchpoint with PTRACE_SET_DEBUGREG.
554
6e562fa3
PFC
5552020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
556
557 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
558 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
559 and >= to check return value instead of == -1 and != -1.
560
d369b608
SM
5612020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * utils.h (class gdb_argv) <as_array_view>: New method.
564 * utils.c (gdb_argv_as_array_view_test): New.
565 (_initialize_utils): Register selftest.
566 * maint.c (maintenance_selftest): Use the new method.
567
b31488a3
KR
5682020-08-13 Kamil Rytarowski <n54@gmx.com>
569
570 * target.h (supports_dumpcore, dumpcore): New
571 function declarations.
572 * target.c (supports_dumpcore, dumpcore): New
573 functions.
574 * target-delegates.c: Rebuild.
575 * gcore.c (gcore_command): Use target_supports_dumpcore ()
576 and target_dumpcore ().
577
002a3166
AM
5782020-08-13 Aaron Merey <amerey@redhat.com>
579
580 * debuginfod-support.c: Replace global variables with user_data.
581
ece5bc8a
SM
5822020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * maint.c (maintenance_selftest): Split args and pass array_view
585 to run_tests.
586
6d8a0a5e
LM
5872020-08-12 Luis Machado <luis.machado@linaro.org>
588
589 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
590 type's length.
591 Use %s and pulongest to print the length.
592
7cf663a9
PA
5932020-08-12 Pedro Alves <palves@redhat.com>
594
595 * NEWS: Move "Multi-target debugging support" item to the
596 "Changes since GDB 9" section.
597
27c7b875
PA
5982020-08-12 Pedro Alves <palves@redhat.com>
599
600 PR gdb/26336
601 * progspace.c (program_space::remove_objfile): Invalidate the
602 frame cache.
603
1796a2a1
TV
6042020-08-11 Tom de Vries <tdevries@suse.de>
605
606 * MAINTAINERS: Mark ms1 as deleted.
607
f8e3fe0d
LM
6082020-08-10 Luis Machado <luis.machado@linaro.org>
609
610 PR gdb/26310
611
612 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
613 act accordingly.
614 (aarch64_analyze_prologue_test): Add more unit tests to exercise
615 movz/str/stur/stp skipping behavior.
616
cc308722
LM
6172020-08-10 Luis Machado <luis.machado@linaro.org>
618
619 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
620 struct user_sve_header instead of struct sve_context.
621
041d9819
SM
6222020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * read.h (dwarf2_fetch_die_loc_sect_off,
625 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
626 `void *` parameter with function_view.
627 * read.c (dwarf2_fetch_die_loc_sect_off,
628 dwarf2_fetch_die_loc_cu_off): Likewise.
629 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
630 (per_cu_dwarf_call): Adjust.
631 (get_frame_address_in_block_wrapper): Remove.
632 (indirect_synthetic_pointer): Adjust.
633 (get_ax_pc): Remove.
634 (dwarf2_compile_expr_to_ax): Adjust.
635
38f8aa06
TV
6362020-08-08 Tom de Vries <tdevries@suse.de>
637
638 PR build/26344
639 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
640 constructor.
641 * regcache.c (get_thread_arch_aspace_regcache): Same.
642
a52b3ae2
TT
6432020-08-07 Tom Tromey <tromey@adacore.com>
644
645 * ravenscar-thread.c
646 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
647 New method.
648 (ravenscar_thread_target::wait): Check
649 runtime_initialized.
650 (ravenscar_thread_target::prepare_to_store)
651 (ravenscar_thread_target::stopped_by_sw_breakpoint)
652 (ravenscar_thread_target::stopped_by_hw_breakpoint)
653 (ravenscar_thread_target::stopped_by_watchpoint)
654 (ravenscar_thread_target::stopped_data_address)
655 (ravenscar_thread_target::core_of_thread): Use
656 scoped_restore_current_thread and
657 set_base_thread_from_ravenscar_task.
658
0e29517d
TT
6592020-08-07 Tom Tromey <tromey@adacore.com>
660
661 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
662
592f9bd7
TT
6632020-08-07 Tom Tromey <tromey@adacore.com>
664
665 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
666 update_inferior_ptid before update_thread_list.
667 (temporarily_change_regcache_ptid): New class.
668 (ravenscar_thread_target::fetch_registers)
669 (ravenscar_thread_target::store_registers)
670 (ravenscar_thread_target::prepare_to_store): Use base thread when
671 forwarding operation.
672
39e2018a
TT
6732020-08-07 Tom Tromey <tromey@adacore.com>
674
675 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
676 "is_pid" case.
677
2080266b
TT
6782020-08-07 Tom Tromey <tromey@adacore.com>
679
680 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
681 New methods.
682 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
683 first.
684 (ravenscar_thread_target::add_thread): Rename from
685 ravenscar_add_thread.
686 (ravenscar_thread_target::update_thread_list): Use a lambda.
687 (ravenscar_thread_target::xfer_partial): New method.
688
78c02f21
TT
6892020-08-07 Tom Tromey <tromey@adacore.com>
690
691 * ada-lang.h (ada_task_list_iterator_ftype): Now a
692 gdb::function_view.
693 (iterate_over_live_ada_tasks): Change type of argument.
694 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
695 of argument.
696
d5d833af
TT
6972020-08-07 Tom Tromey <tromey@adacore.com>
698
699 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
700 Remove.
701 (ravenscar_thread_target::extra_thread_info): Remove.
702 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
703 defer to target beneath for non-Ravenscar threads.
704
a8ac85bb
TT
7052020-08-07 Tom Tromey <tromey@adacore.com>
706
707 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
708 get_base_thread_from_ravenscar_task>: Now methods.
709 <m_cpu_map>: New member.
710 (ravenscar_thread_target::get_thread_base_cpu): Rename from
711 ravenscar_get_thread_base_cpu. Check m_cpu_map.
712 (ravenscar_thread_target::task_is_currently_active): Update.
713 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
714 Now a method.
715 (ravenscar_thread_target::add_active_thread): Put initial thread
716 into the m_cpu_map.
717
550ab58d
TT
7182020-08-07 Tom Tromey <tromey@adacore.com>
719
720 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
721 event_ptid.
722
e9546579
TT
7232020-08-07 Tom Tromey <tromey@adacore.com>
724
725 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
726 runtime_initialized.
727
3d4470e5
TT
7282020-08-07 Tom Tromey <tromey@adacore.com>
729
730 * ravenscar-thread.c (ravenscar_thread_target): Don't call
731 add_active_thread.
732 (ravenscar_thread_target::add_active_thread): Now public.
733 (ravenscar_inferior_created): Call add_active_thread after pushing
734 the target.
735
888bdb2b
SM
7362020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * regcache.c (ptid_regcache_map): New type.
739 (target_ptid_regcache_map): New type.
740 (regcaches): Change type to target_ptid_regcache_map.
741 (get_thread_arch_aspace_regcache): Update to regcaches' new
742 type.
743 (regcache_thread_ptid_changed): Likewise.
744 (registers_changed_ptid): Likewise.
745 (regcaches_size): Likewise.
746 (regcaches_test): Update.
747 (regcache_thread_ptid_changed): Update.
748 * regcache.h (regcache_up): New type.
749 * gdbsupport/ptid.h (hash_ptid): New struct.
750
b161a60d
SM
7512020-08-07 Simon Marchi <simon.marchi@efficios.com>
752
753 * observable.h (thread_ptid_changed): Add parameter
754 `process_stratum_target *`.
755 * infrun.c (infrun_thread_ptid_changed): Add parameter
756 `process_stratum_target *` and use it.
757 (selftests): New namespace.
758 (infrun_thread_ptid_changed): New function.
759 (_initialize_infrun): Register selftest.
760 * regcache.c (regcache_thread_ptid_changed): Add parameter
761 `process_stratum_target *` and use it.
762 (regcache_thread_ptid_changed): New function.
763 (_initialize_regcache): Register selftest.
764 * thread.c (thread_change_ptid): Pass target to
765 thread_ptid_changed observable.
766
d2854d8d
CT
7672020-08-06 Caroline Tice <cmtice@google.com>
768
fe4c3d43
SM
769 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
770 (struct dwp_sections): Update field comments. Add loclists and
771 rnglists fields.
772 (struct virtual_v2_dwo_sections): Rename struct to
773 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
774 size & offset fields for loclists and rnglists.
775 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
776 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
777 skipping dummy type units.
778 (create_dwp_hash_table): Update the large comment above the function to
779 discuss Version 5 DWP files as well, with references. Update all the
780 version checks in the function to check for version 5 as well. Add new
781 section at the end to create dwp hash table for version 5.
782 (create_dwp_v2_section): Rename function to
783 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
784 Add V5 to error message text.
785 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
786 into calls to create_dwp_v2_or_v5_section.
787 (create_dwo_unit_in_dwp_v5): New function.
788 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
789 check for version2; add else clause to handle version 5.
790 (open_and_init_dwo_file): Add code to check dwarf version & only call
791 create_debug_types_hash_table (with sections.types) if version is not 5;
792 else call create_debug_type_hash_table, with sections.info.
793 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
794 version 5.
795 (dwarf2_locate_v5_dwp_sections): New function.
796 (open_and_init_dwp_file): Add else-if clause for version 5 to call
797 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 798
159ed7d9
SM
7992020-08-06 Simon Marchi <simon.marchi@efficios.com>
800
801 * regcache.h (class regcache): Remove friend
802 registers_changed_ptid.
803 <regcache_thread_ptid_changed>: Remove.
804 <regcaches>: Remove.
805 * regcache.c (regcache::regcaches): Rename to...
806 (regcaches): ... this. Make static.
807 (get_thread_arch_aspace_regcache): Update.
808 (regcache::regcache_thread_ptid_changed): Rename to...
809 (regcache_thread_ptid_changed): ... this. Update.
810 (class regcache_access): Remove.
811 (regcaches_test): Update.
812 (_initialize_regcache): Update.
813 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
814 <forward_list>.
815
174981ae
SM
8162020-08-06 Simon Marchi <simon.marchi@efficios.com>
817
818 * regcache.h (class regcache) <current_regcache>: Rename to...
819 <regcaches>: ... this. Move doc here.
820 * regcache.c (regcache::current_regcache) Rename to...
821 (regcache::regcaches): ... this. Move doc to header.
822 (get_thread_arch_aspace_regcache): Update.
823 (regcache::regcache_thread_ptid_changed): Update.
824 (registers_changed_ptid): Update.
825 (class regcache_access) <current_regcache_size>: Rename to...
826 <regcaches_size>: ... this.
827 (current_regcache_test): Rename to...
828 (regcaches_test): ... this.
829 (_initialize_regcache): Update.
830
ed908db6
VC
8312020-08-06 Victor Collod <vcollod@nvidia.com>
832
833 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
834
b5582ab7
KB
8352020-08-05 Kevin Buettner <kevinb@redhat.com>
836
837 * corelow.c (core_target::build_file_mappings): Don't output
838 null pathname in warning.
839
ea946b86
SM
8402020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
843 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
844 gdb.dwarf2/dw2-single-line-discriminators.exp,
845 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
846
57d02173
TT
8472020-08-05 Tom Tromey <tromey@adacore.com>
848
849 PR rust/26197:
850 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
851 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
852 Fix off-by-one and type size errors in ordinary case.
853
5555c86d
TV
8542020-08-05 Tom de Vries <tdevries@suse.de>
855
856 * gdbtypes.c (type_not_allocated, type_not_associated): Use
857 "prop->const_val () == 0" instead of "prop->const_val () != 0".
858
97916bfe
SM
8592020-08-04 Simon Marchi <simon.marchi@efficios.com>
860
861 * frame.h (frame_id_p): Return bool.
862 (frame_id_artificial_p): Return bool.
863 (frame_id_eq): Return bool.
864 (has_stack_frames): Return bool.
865 (get_selected_frame): Fix typo in comment.
866 (get_frame_pc_if_available): Return bool.
867 (get_frame_address_in_block_if_available): Return bool.
868 (get_frame_func_if_available): Return bool.
869 (read_frame_register_unsigned): Return bool.
870 (get_frame_register_bytes): Return bool.
871 (safe_frame_unwind_memory): Return bool.
872 (deprecated_frame_register_read): Return bool.
873 (frame_unwinder_is): Return bool.
874 * frame.c (struct frame_info) <prev_arch::p>: Change type to
875 bool.
876 <this_id::p>: Likewise.
877 <prev_p>: Likewise.
878 (frame_stash_add): Return bool.
879 (get_frame_id): Use bool.
880 (frame_id_build_special) Use bool.
881 (frame_id_build_unavailable_stack): Use bool.
882 (frame_id_build): Use bool.
883 (frame_id_p): Return bool, use true/false instead of 1/0.
884 (frame_id_artificial_p): Likewise.
885 (frame_id_eq): Likewise.
886 (frame_id_inner): Likewise.
887 (get_frame_func_if_available): Likewise.
888 (read_frame_register_unsigned): Likewise.
889 (deprecated_frame_register_read): Likewise.
890 (get_frame_register_bytes): Likewise.
891 (has_stack_frames): Likewise.
892 (inside_main_func): Likewise.
893 (inside_entry_func): Likewise.
894 (get_frame_pc_if_available): Likewise.
895 (get_frame_address_in_block_if_available): Likewise.
896 (frame_unwinder_is): Likewise.
897 (safe_frame_unwind_memory): Likewise.
898 (frame_unwind_arch): Likewise.
899
fedfee88
SM
9002020-08-04 Simon Marchi <simon.marchi@efficios.com>
901
902 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
903 type to cached_copy_status.
904 (fprintf_frame): Adjust.
905 (get_frame_func_if_available): Adjust.
906 (frame_cleanup_after_sniffer): Adjust.
907
6cfa9b59
MW
9082020-08-04 Mark Wielaard <mark@klomp.org>
909
910 * MAINTAINERS (Write After Approval): Update email address.
911
66d6346b
SM
9122020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
915 dynamic_prop::const_val.
916
8a6d5e35
SM
9172020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
920 dynamic_prop::kind.
921
51d6067d
SM
9222020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
925
b26e2ae7
JM
9262020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
927
928 * configure.tgt: Set gdb_sim for bpf-*-* targets.
929
39791af2
JM
9302020-08-04 Weimin Pan <weimin.pan@oracle.com>
931 Jose E. Marchesi <jose.marchesi@oracle.com>
932
933 * configure.tgt: Add entry for bpf-*-*.
934 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
935 (ALLDEPFILES): Add bpf-tdep.c.
936 * bpf-tdep.c: New file.
937 * MAINTAINERS: Add bpf target and maintainer.
938 * NEWS: Mention the support for the new target.
939
521894aa
TV
9402020-08-04 Tom de Vries <tdevries@suse.de>
941
942 PR symtab/23270
943 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
944 Error.
945
5d6356e9
JB
9462020-08-03 John Baldwin <jhb@FreeBSD.org>
947
948 * syscalls/freebsd.xml: Regenerate.
949
0cf82b81
JB
9502020-08-03 John Baldwin <jhb@FreeBSD.org>
951
952 * syscalls/update-freebsd.sh: Fix usage and year range.
953
8f34b746
TV
9542020-08-03 Tom de Vries <tdevries@suse.de>
955
956 PR symtab/26333
957 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
958 DW_LNE_lo_user/DW_LNE_hi_user range.
959
5e500d33
SM
9602020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
961
962 PR ada/26318
963 * ada-lang.c (ada_modulus): Return 0 if property is not of const
964 kind.
965
78319c15
TBA
9662020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967
968 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
969
4c55e970
TBA
9702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
971
972 * breakpoint.c (set_breakpoint_condition): Update the condition
973 expressions after checking that the input condition string parses
974 successfully and does not contain junk at the end.
975
1e620590
TBA
9762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 * breakpoint.c (set_breakpoint_condition): Update the
979 condition string after parsing the new condition successfully.
980
c8693053
RO
9812020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
982
983 * proc-api.c (_STRUCTURED_PROC): Don't define.
984 * proc-events.c: Likewise.
985 * proc-flags.c: Likewise.
986 * proc-why.c: Likewise.
987 * procfs.c: Likewise.
988
989 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
990 * configure, config.in: Regenerate.
991
5a99adb8
TV
9922020-07-30 Tom de Vries <tdevries@suse.de>
993
994 PR build/26320
995 * ui-style.h (struct ui_file_style::color): Wrap m_value and
996 m_red/m_green/m_blue in a union.
997
8ba83e91
TV
9982020-07-29 Tom de Vries <tdevries@suse.de>
999
1000 PR tdep/26280
1001 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1002
f75a0693
AB
10032020-07-28 Tom Tromey <tromey@adacore.com>
1004
1005 PR symtab/26270:
1006 * symtab.h (find_pc_partial_function_sym): Declare.
1007 * cli/cli-cmds.c (disassemble_command): Use
1008 find_pc_partial_function_sym. Check asm_demangle.
1009 * blockframe.c (cache_pc_function_sym): New global.
1010 (cache_pc_function_name): Remove.
1011 (clear_pc_function_cache): Update.
1012 (find_pc_partial_function_sym): New function, from
1013 find_pc_partial_function.
1014 (find_pc_partial_function): Rewrite using
1015 find_pc_partial_function_sym.
1016
16f3242c
TT
10172020-07-28 Tom Tromey <tromey@adacore.com>
1018
1019 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1020 help. Add usage.
1021
4888741a
TT
10222020-07-28 Tom Tromey <tromey@adacore.com>
1023
1024 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1025 <DW_OP_GNU_variable_value>: Cast to address type.
1026
4d46f402
KR
10272020-07-28 Kamil Rytarowski <n54@gmx.com>
1028
1029 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1030 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1031 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1032 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1033 (nbsd_get_siginfo_type): New.
1034 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1035 (_initialize_nbsd_tdep): New.
1036
d70f978b
L
10372020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1038
1039 PR binutils/26301
1040 * configure: Regenerated.
1041
377170fa
L
10422020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 PR binutils/26301
1045 * configure: Regenerated.
1046
43d5901d
AB
10472020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1048
1049 * python/py-frame.c: Remove 'user-regs.h' include.
1050 (frapy_read_register): Rewrite to make use of
1051 gdbpy_parse_register_id.
1052 * python/py-registers.c (gdbpy_parse_register_id): New function,
1053 moved here from python/py-unwind.c. Updated the return type, and
1054 also accepts register descriptor objects.
1055 * python/py-unwind.c: Remove 'user-regs.h' include.
1056 (pyuw_parse_register_id): Moved to python/py-registers.c.
1057 (unwind_infopy_add_saved_register): Update to use
1058 gdbpy_parse_register_id.
1059 (pending_framepy_read_register): Likewise.
1060 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1061
14fa8fb3
AB
10622020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * python/py-registers.c: Add 'user-regs.h' include.
1065 (register_descriptor_iter_find): New function.
1066 (register_descriptor_iterator_object_methods): New static global
1067 methods array.
1068 (register_descriptor_iterator_object_type): Add pointer to methods
1069 array.
1070
ddce1758
JB
10712020-07-27 John Baldwin <jhb@FreeBSD.org>
1072
1073 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1074 for all architectures on FreeBSD 11.3 and later.
1075
a4089f52
TT
10762020-07-27 Tom Tromey <tromey@adacore.com>
1077
1078 * gcore.h (load_corefile): Don't declare.
1079
95420d30
TV
10802020-07-27 Tom de Vries <tdevries@suse.de>
1081
1082 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1083 * config.in: Regenerate.
1084 * configure: Regenerate.
1085
05a6b8c2
EZ
10862020-07-26 Eli Zaretskii <eliz@gnu.org>
1087
1088 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1089 ws2tcpip.h. When checking whether socklen_t type is defined, use
1090 ws2tcpip.h if it is available and sys/socket.h isn't.
1091 * configure: Regenerate.
1092 * config.in: Regenerate.
1093
e79eb02f
AB
10942020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 PR fortran/23051
1097 PR fortran/26139
1098 * valops.c (value_ind): Pass address to
1099 readjust_indirect_value_type.
1100 * value.c (readjust_indirect_value_type): Make parameter
1101 non-const, and add extra address parameter. Resolve original type
1102 before using it.
1103 * value.h (readjust_indirect_value_type): Update function
1104 signature and comment.
1105
876518dd
TV
11062020-07-25 Tom de Vries <tdevries@suse.de>
1107
1108 PR symtab/26243
1109 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1110 entries.
1111
f6720b1c
AM
11122020-07-24 Aaron Merey <amerey@redhat.com>
1113
1114 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1115 * configure: Rebuild.
1116
513487e1
KB
11172020-07-23 Kevin Buettner <kevinb@redhat.com>
1118
1119 PR corefiles/26294
1120 * corelow.c (_initialize_corelow): Add period to help text
1121 for "maintenance print core-file-backed-mappings".
1122
e7bc9db8
PA
11232020-07-23 Pedro Alves <pedro@palves.net>
1124
1125 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1126 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1127 meanwhile.
1128 * frame.c (frame_cache_generation, get_frame_cache_generation):
1129 New.
1130 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1131 (get_prev_frame_if_no_cycle): On exception, don't touch
1132 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1133 * frame.h (get_frame_cache_generation): Declare.
1134
90fcc466
TV
11352020-07-23 Tom de Vries <tdevries@suse.de>
1136
1137 PR tui/26282
1138 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1139 New default constructor.
1140
78344df7
AB
11412020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1144 exclude non-statement entries.
1145
b089853a
KB
11462020-07-22 Kevin Buettner <kevinb@redhat.com>
1147
1148 * NEWS (New commands): Mention new command
1149 "maintenance print core-file-backed-mappings".
1150
09c2f5d4
KB
11512020-07-22 Kevin Buettner <kevinb@redhat.com>
1152
1153 * corelow.c (gdbcmd.h): Include.
1154 (core_target::info_proc_mappings): New method.
1155 (get_current_core_target): New function.
1156 (maintenance_print_core_file_backed_mappings): New function.
1157 (_initialize_corelow): Add core-file-backed-mappings to
1158 "maint print" commands.
1159
9c5ec5c2 11602020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1161
9c5ec5c2
KB
1162 * linux-tdep.c (dump_note_entry_p): New function.
1163 (linux_dump_mapping_p_ftype): New typedef.
1164 (linux_find_memory_regions_full): Add new parameter,
1165 should_dump_mapping_p.
1166 (linux_find_memory_regions): Adjust call to
1167 linux_find_memory_regions_full.
1168 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1169 call to linux_find_memory_regions_full.
1170
db082f59
KB
11712020-07-22 Kevin Buettner <kevinb@redhat.com>
1172
1173 * corelow.c (solist.h, unordered_map): Include.
1174 (class core_target): Add field m_core_file_mappings and
1175 method build_file_mappings.
1176 (core_target::core_target): Call build_file_mappings.
1177 (core_target::~core_target): Free memory associated with
1178 m_core_file_mappings.
1179 (core_target::build_file_mappings): New method.
1180 (core_target::xfer_partial): Use m_core_file_mappings
1181 for memory transfers.
1182 * linux-tdep.c (linux_read_core_file_mappings): New
1183 function.
1184 (linux_core_info_proc_mappings): Rewrite to use
1185 linux_read_core_file_mappings.
1186 (linux_init_abi): Register linux_read_core_file_mappings.
1187
7e183d27
KB
11882020-07-22 Kevin Buettner <kevinb@redhat.com>
1189
1190 * arch-utils.c (default_read_core_file_mappings): New function.
1191 * arch-utils.c (default_read_core_file_mappings): Declare.
1192 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1193 * gdbarch.h, gdbarch.c: Regenerate.
1194
2735d421
KB
11952020-07-22 Kevin Buettner <kevinb@redhat.com>
1196
1197 PR corefiles/25631
1198 * corelow.c (core_target:xfer_partial): Revise
1199 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1200 case after first checking the stratum beneath the core
1201 target.
1202 (has_all_memory): Return true.
1203 * target.c (raw_memory_xfer_partial): Revise comment
1204 regarding use of has_all_memory.
1205
e56cb451
KB
12062020-07-22 Kevin Buettner <kevinb@redhat.com>
1207
1208 * exec.h (section_table_xfer_memory): Revise declaration,
1209 replacing section name parameter with an optional callback
1210 predicate.
1211 * exec.c (section_table_xfer_memory): Likewise.
1212 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1213 of section_table_xfer_memory.
1214
32fa152e
TT
12152020-07-22 Tom Tromey <tromey@adacore.com>
1216
1217 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1218 lookup_symbol_search_name.
1219
a67a1c41
AB
12202020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1223 redundant local variable.
1224 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1225 reference, not pointer, update code accordingly.
1226
a7b4ff4f
SM
12272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1228 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1229
1230 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1231 * jit.c (jit_breakpoint_re_set_internal): Use the
1232 `skip_jit_symbol_lookup` field.
1233
2340e834
SM
12342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1235 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1236
1237 * jit.c (jit_read_descriptor): Define the descriptor address once,
1238 use twice.
1239 (jit_breakpoint_deleted): Move the declaration of the loop variable
1240 `iter` into the loop header.
1241 (jit_breakpoint_re_set_internal): Move the declaration of the local
1242 variable `objf_data` to the first point of definition.
1243 (jit_event_handler): Move the declaration of local variables
1244 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1245 Rename `objf` to `jited`.
1246
c1072906
SM
12472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1250 Remove.
1251 * jit.c (get_jiter_objfile_data): Update.
1252
c8474dc3
TBA
12532020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1254 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * jit.c (struct jit_program_space_data): Remove.
1257 (jit_program_space_key): Remove.
1258 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1259 stuff.
1260 (get_jit_program_space_data): Remove.
1261 (jit_breakpoint_deleted): Iterate on all of the program space's
1262 objfiles.
1263 (jit_inferior_init): Likewise.
1264 (jit_breakpoint_re_set_internal): Likewise. Also change return
1265 type to void.
1266 (jit_breakpoint_re_set): Pass current_program_space to
1267 jit_breakpoint_re_set_internal.
1268
77208eb7
SM
12692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * jit.h (struct jiter_objfile_data) <cached_code_address,
1272 jit_breakpoint>: Move to here from ...
1273 * jit.c (jit_program_space_data): ... here.
1274 (jiter_objfile_data::~jiter_objfile_data): Update.
1275 (jit_breakpoint_deleted): Update.
1276 (jit_breakpoint_re_set_internal): Update.
1277
8c1c720f
SM
12782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1281 checks.
1282 (jit_read_descriptor): Remove NULL check.
1283 (jit_event_handler): Add an assertion.
1284
0e74a041
SM
12852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * jit.h (struct jit_objfile_data): Split into...
1288 (struct jiter_objfile_data): ... this ...
1289 (struct jited_objfile_data): ... and this.
1290 * objfiles.h (struct objfile) <jit_data>: Remove.
1291 <jiter_data, jited_data>: New fields.
1292 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1293 (jiter_objfile_data::~jiter_objfile_data): ... this.
1294 (get_jit_objfile_data): Rename to ...
1295 (get_jiter_objfile_data): ... this.
1296 (add_objfile_entry): Update.
1297 (jit_read_descriptor): Use get_jiter_objfile_data.
1298 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1299 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1300 (jit_inferior_exit_hook): Use objfile's jited_data field.
1301
238b5c9f
SM
13022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * jit.h: Forward-declare `struct minimal_symbol`.
1305 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1306 constructor, destructor, and an objfile* field.
1307 * jit.c (jit_objfile_data): Remove.
1308 (struct jit_objfile_data): Migrate from here to jit.h.
1309 (jit_objfile_data::~jit_objfile_data): New destructor
1310 implementation with code moved from free_objfile_data.
1311 (free_objfile_data): Delete.
1312 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1313 (jit_find_objf_with_entry_addr): Ditto.
1314 (jit_inferior_exit_hook): Ditto.
1315 (_initialize_jit): Remove the call to
1316 register_objfile_data_with_cleanup.
1317 * objfiles.h (struct objfile) <jit_data>: New field.
1318
fe053b9e
TBA
13192020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320
1321 * jit.h: Forward-declare `struct objfile`.
1322 (jit_event_handler): Add a second parameter, the JITer objfile.
1323 * jit.c (jit_read_descriptor): Change the signature to take the
1324 JITer objfile as an argument instead of the jit_program_space_data.
1325 (jit_inferior_init): Update the call to jit_read_descriptor.
1326 (jit_event_handler): Use the new JITer objfile argument when calling
1327 jit_read_descriptor.
1328 * breakpoint.c (handle_jit_event): Update the call to
1329 jit_event_handler to pass the JITer objfile.
1330
4cec0c66
JB
13312020-07-21 John Baldwin <jhb@FreeBSD.org>
1332
1333 * gdbarch.c: Regenerate.
1334 * gdbarch.h: Regenerate.
1335 * gdbarch.sh (handle_segmentation_fault): Remove method.
1336 * infrun.c (handle_segmentation_fault): Remove.
1337 (print_signal_received_reason): Remove call to
1338 handle_segmentation_fault.
1339
0e42f66a
JB
13402020-07-21 John Baldwin <jhb@FreeBSD.org>
1341
1342 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1343 Rename to sparc64_linux_report_signal_info and add siggnal
1344 argument.
1345 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1346 instead of sparc64_linux_handle_segmentation_fault.
1347
77bdfeb2
JB
13482020-07-21 John Baldwin <jhb@FreeBSD.org>
1349
1350 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1351 i386_linux_report_signal_info instead of
1352 i386_linux_handle_segmentation_fault.
1353 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1354 to i386_linux_report_signal_info and add siggnal argument.
1355 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1356 of i386_linux_handle_segmentation_fault.
1357 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1358 to i386_linux_report_signal_info and add siggnal argument.
1359
ad97bfc5
JB
13602020-07-21 John Baldwin <jhb@FreeBSD.org>
1361
1362 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1363 hook if present.
1364
272bb05c
JB
13652020-07-21 John Baldwin <jhb@FreeBSD.org>
1366
1367 * gdbarch.c: Regenerate.
1368 * gdbarch.h: Regenerate.
1369 * gdbarch.sh (report_signal_info): New method.
1370 * infrun.c (print_signal_received_reason): Invoke gdbarch
1371 report_signal_info hook if present.
1372
baf8791e
AB
13732020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * python/py-registers.c : Add 'unordered_map' include.
1376 (gdbpy_new_reggroup): Renamed to...
1377 (gdbpy_get_reggroup): ...this. Update to only create register
1378 group descriptors when needed.
1379 (gdbpy_reggroup_iter_next): Update.
1380
f7306dac
AB
13812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1382
1383 * python/py-registers.c (gdbpy_register_object_data): New static
1384 global.
1385 (gdbpy_register_object_data_init): New function.
1386 (gdbpy_new_register_descriptor): Renamed to...
1387 (gdbpy_get_register_descriptor): ...this, and update to reuse
1388 existing register descriptors where possible.
1389 (gdbpy_register_descriptor_iter_next): Update.
1390 (gdbpy_initialize_registers): Register new gdbarch data.
1391
05c309a8
SM
13922020-07-21 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * linux-nat.c (stopped_pids): Make static.
1395
d1fd641e
SM
13962020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 PR ada/26235
1399 * gdbtypes.c (ada_discrete_type_low_bound,
1400 ada_discrete_type_high_bound): Handle undefined bounds.
1401
1de14d77
KR
14022020-07-21 Kamil Rytarowski <n54@gmx.com>
1403
1404 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1405 declaration.
1406 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1407 function.
1408
ed810cc7
JB
14092020-07-20 John Baldwin <jhb@FreeBSD.org>
1410
1411 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1412 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1413 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1414 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1415 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1416 method.
1417
ae5369e7
LC
14182020-07-20 Ludovic Courtès <ludo@gnu.org>
1419
1420 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1421 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1422 which are deprecated in Guile 3.0.
1423 * configure.ac (try_guile_versions): Add "guile-3.0".
1424 * configure (try_guile_versions): Regenerate.
1425 * NEWS: Update entry.
1426
68cf161c
LC
14272020-07-20 Ludovic Courtès <ludo@gnu.org>
1428 Doug Evans <dje@google.com>
1429
1430 PR gdb/21104
1431 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1432 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1433 USING_GUILE_BEFORE_2_2.
1434 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1435 Change type to 'scm_t_port_type *'.
1436 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1437 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1438 parameter and honor it. Update callers.
1439 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1440 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1441 functions.
1442 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1443 USING_GUILE_BEFORE_2_2.
1444 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1445 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1446 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1447 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1448 and 'SCM_PORT_TYPE'.
1449 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1450 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1451 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1452 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1453 [!USING_GUILE_BEFORE_2_2]: New functions.
1454 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1455 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1456 'gdbscm_memory_port_read'.
1457 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1458 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1459 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1460 function.
1461 (ioscm_init_memory_port): Remove.
1462 (ioscm_init_memory_port_stream): New function
1463 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1464 function.
1465 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1466 Return scm_from_uint (0).
1467 (gdbscm_set_memory_port_read_buffer_size_x)
1468 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1469 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1470 Return scm_from_uint (0).
1471 (gdbscm_set_memory_port_write_buffer_size_x)
1472 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1473 * configure.ac (try_guile_versions): Add "guile-2.2".
1474 * configure: Regenerate.
1475 * NEWS: Add entry.
1476
aee91db3
TT
14772020-07-18 Tom Tromey <tom@tromey.com>
1478
1479 * linux-nat.c (linux_multi_process): Remove.
1480 (linux_nat_target::supports_multi_process): Return true.
1481
0e267416
AB
14822020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1485 (riscv_lookup_target_description): Return pointer out of
1486 unique_ptr.
1487 * target-descriptions.c (allocate_target_description): Add
1488 comment.
1489 (target_desc_deleter::operator()): Likewise.
1490 * target-descriptions.h (struct target_desc_deleter): Moved to
1491 gdbsupport/tdesc.h.
1492 (target_desc_up): Likewise.
1493
f80c8ec4
TT
14942020-07-17 Tom Tromey <tromey@adacore.com>
1495
1496 * linux-nat.c (linux_nat_target::supports_non_stop)
1497 (linux_nat_target::always_non_stop_p): Use "true".
1498 (linux_nat_target::supports_disable_randomization): Use "true" and
1499 "false".
1500
d0ce17d8
CT
15012020-07-16 Caroline Tice <cmtice@google.com>
1502
1503 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1504 (RNGLIST_HEADER_SIZE64): New constant definition.
1505 (struct dwop_section_names): Add rnglists_dwo.
1506 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1507 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1508 (struct dwo_sections): Add rnglists field.
1509 (read_attribut_reprocess): Add tag parameter.
1510 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1511 (cu_debug_rnglists_section): New function (decl & definition).
1512 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1513 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1514 die whose range is being checked; get rnglist section from
1515 cu_debug_rnglists_section, to get from either objfile or dwo file as
1516 appropriate. Add cases for DW_RLE_base_addressx,
1517 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1518 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1519 test inside if-condition and updating complaint message.
1520 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1521 dwarf2_rnglists_process.
1522 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1523 dwarf2_ranges_process.
1524 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1525 need_ranges_base and update comment appropriately. Also pass die tag
1526 to dwarf2_ranges_read.
1527 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1528 need_ranges_base and update comment appropriately. Also pass die tag
1529 to dwarf2_ranges_process.
1530 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1531 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1532 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1533 need_ranges_base and update comment appropriately. Also pass die tag
1534 to read_attribute_reprocess and dwarf2_ranges_read.
1535 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1536 and update function comment appropriately.
1537 (read_loclist_index): Call read_loclists_rnglists_header instead of
1538 read_loclist_header.
1539 (read_rnglist_index): New function.
1540 (read_attribute_reprocess): Add tag parameter. Add code for
1541 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1542 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1543
3dcc261c
AB
15442020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1547 being resolved.
1548
ccb9eba6
AB
15492020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * arch-utils.c (show_architecture): Update formatting of messages.
1552
cf88be68
SM
15532020-07-12 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * gdbtypes.h (struct type) <bounds>: Handle array and string
1556 types.
1557 * ada-lang.c (assign_aggregate): Use type::bounds on
1558 array/string type.
1559 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1560 * c-varobj.c (c_number_of_children): Likewise.
1561 (c_describe_child): Likewise.
1562 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1563 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1564 (f_type_print_base): Likewise.
1565 * f-valprint.c (f77_array_offset_tbl): Likewise.
1566 (f77_get_upperbound): Likewise.
1567 (f77_print_array_1): Likewise.
1568 * guile/scm-type.c (gdbscm_type_range): Likewise.
1569 * m2-typeprint.c (m2_array): Likewise.
1570 (m2_is_long_set_of_type): Likewise.
1571 * m2-valprint.c (get_long_set_bounds): Likewise.
1572 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1573 * python/py-type.c (typy_range): Likewise.
1574 * rust-lang.c (rust_internal_print_type): Likewise.
1575 * type-stack.c (type_stack::follow_types): Likewise.
1576 * valarith.c (value_subscripted_rvalue): Likewise.
1577 * valops.c (value_cast): Likewise.
1578
509971ae
SM
15792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1582 callers to use the equivalent accessor methods.
1583
107406b7
SM
15842020-07-12 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1587 (struct type) <bit_stride>: New method.
1588 (TYPE_BIT_STRIDE): Remove.
1589 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1590
bb789949
SM
15912020-07-12 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1594 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1595 callers to use the equivalent accessor methods instead.
1596
39498edb
SM
15972020-07-12 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1600 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1601 callers to use the equivalent accessor methods instead.
1602
3b606f38
SM
16032020-07-12 Simon Marchi <simon.marchi@efficios.com>
1604
1605 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1606 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1607 to use dynamic_prop::kind.
1608
064d9cb9
SM
16092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1612 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1613 to get the bound property's kind and check against
1614 PROP_UNDEFINED.
1615
5537ddd0
SM
16162020-07-12 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1619 all callers to use type::range_bounds followed by
1620 dynamic_prop::{low,high}.
1621
8c2e4e06
SM
16222020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1623
1624 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1625 const_val, set_const_val, baton, set_locexpr, set_loclist,
1626 set_addr_offset, variant_parts, set_variant_parts,
1627 original_type, set_original_type>: New methods.
1628 <kind>: Rename to...
1629 <m_kind>: ... this. Update all users to use the new methods
1630 instead.
1631 <data>: Rename to...
1632 <m_data>: ... this. Update all users to use the new methods
1633 instead.
1634
7c6f2712
SM
16352020-07-12 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.c (get_discrete_bounds): Return failure if
1638 the range type's bounds are not both defined and constant
1639 values.
1640 (get_array_bounds): Update comment. Remove undefined bound check.
1641
599088e3
SM
16422020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1643
1644 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1645 the type::bounds method directly.
1646
c4dfcb36
SM
16472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1650 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1651 are used to set the range type's bounds to use set_bounds.
1652
0a278aa7
PW
16532020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1654
1655 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1656
cce20f10
PA
16572020-07-10 Pedro Alves <pedro@palves.net>
1658
1659 * gdbthread.h (inferior_ref): Define.
1660 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1661 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1662 * thread.c
1663 (scoped_restore_current_thread::restore):
1664 Adjust to gdb::ref_ptr.
1665 (scoped_restore_current_thread::~scoped_restore_current_thread):
1666 Remove manual decref handling.
1667 (scoped_restore_current_thread::scoped_restore_current_thread):
1668 Adjust to use
1669 inferior_ref::new_reference/thread_info_ref::new_reference.
1670 Incref the thread before calling get_frame_id instead of after.
1671 Let TARGET_CLOSE_ERROR propagate.
1672
6d7aa592
PA
16732020-07-10 Pedro Alves <pedro@palves.net>
1674
1675 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1676 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1677 NOT_AVAILABLE_ERROR.
1678 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1679 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1680
b3e3a4c1
SM
16812020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1682 Pedro Alves <pedro@palves.net>
1683
1684 PR gdb/26199
1685 * infrun.c (threads_are_resumed_pending_p): Delete.
1686 (do_target_wait): Remove threads_are_executing and
1687 threads_are_resumed_pending_p checks from the inferior_matches
1688 lambda. Update comments.
1689
d6cc5d98
PA
16902020-07-10 Pedro Alves <pedro@palves.net>
1691
1692 PR gdb/26199
1693 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1694 executing threads.
1695
7d3badc6
PA
16962020-07-10 Pedro Alves <pedro@palves.net>
1697
1698 PR gdb/26199
1699 * infrun.c (handle_no_resumed): Handle multiple targets.
1700
42bd97a6
PA
17012020-07-10 Pedro Alves <pedro@palves.net>
1702
1703 PR gdb/26199
1704 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1705 target_is_async_p.
1706
43667cc6
PA
17072020-07-10 Pedro Alves <pedro@palves.net>
1708
1709 PR gdb/26199
1710 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1711 threads, not all threads.
1712
96118d11
PA
17132020-07-10 Pedro Alves <pedro@palves.net>
1714
1715 PR gdb/26199
1716 * remote.c (remote_target::open_1): Pass remote target pointer as
1717 data to create_async_event_handler.
1718 (remote_async_inferior_event_handler): Mark async event handler
1719 before returning if the remote target still has either pending
1720 events or unacknowledged notifications.
1721
54904d81
JB
17222020-07-10 John Baldwin <jhb@FreeBSD.org>
1723
1724 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1725 declaration.
1726 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1727 function.
1728
f37e5866
JB
17292020-07-09 John Baldwin <jhb@FreeBSD.org>
1730
1731 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1732 inferior_ptid.
1733
fc238d4a
JB
17342020-07-09 John Baldwin <jhb@FreeBSD.org>
1735
1736 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1737 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1738 AT_FREEBSD_PS_STRINGS.
1739
6e2469ff
HD
17402020-07-08 Hannes Domani <ssbssa@yahoo.de>
1741
1742 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1743 of debugfile path on Windows.
1744
d1076c41
JB
17452020-07-08 John Baldwin <jhb@FreeBSD.org>
1746
1747 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1748 argument to 'data'.
1749
15f3b077
TT
17502020-07-08 Tom Tromey <tromey@adacore.com>
1751
1752 * ada-lang.c (ada_exception_message_1): Use read_memory.
1753
9fc501fd
AB
17542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 PR python/22748
1757 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1758 special handling for inline frames.
1759 * findvar.c (value_of_register_lazy): Skip inline frames when
1760 creating lazy register values.
1761 * frame.c (frame_id_computed_p): Delete definition.
1762 * frame.h (frame_id_computed_p): Delete declaration.
1763
64cb3757
AB
17642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * NEWS: Mention additions to Python API.
1767 * python/py-arch.c (archpy_register_groups): New function.
1768 (arch_object_methods): Add 'register_groups' method.
1769 * python/py-registers.c (reggroup_iterator_object): New struct.
1770 (reggroup_object): New struct.
1771 (gdbpy_new_reggroup): New function.
1772 (gdbpy_reggroup_to_string): New function.
1773 (gdbpy_reggroup_name): New function.
1774 (gdbpy_reggroup_iter): New function.
1775 (gdbpy_reggroup_iter_next): New function.
1776 (gdbpy_new_reggroup_iterator): New function
1777 (gdbpy_initialize_registers): Register new types.
1778 (reggroup_iterator_object_type): Define new Python type.
1779 (gdbpy_reggroup_getset): New static global.
1780 (reggroup_object_type): Define new Python type.
1781 * python/python-internal.h
1782
0f767f94
AB
17832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1784
1785 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1786 * python/py-arch.c (archpy_registers): New function.
1787 (arch_object_methods): Add 'registers' method.
1788 * python/py-registers.c: New file.
1789 * python/python-internal.h
1790 (gdbpy_new_register_descriptor_iterator): Declare.
1791 (gdbpy_initialize_registers): Declare.
1792 * python/python.c (do_start_initialization): Call
1793 gdbpy_initialize_registers.
1794 * NEWS: Mention additions to the Python API.
1795
87dbc774
AB
17962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * NEWS: Mention new Python API method.
1799 * python/py-unwind.c (pending_framepy_architecture): New function.
1800 (pending_frame_object_methods): Add architecture method.
1801
3bc98c0c
AB
18022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * gdbarch.c: Regenerate.
1805 * gdbarch.h: Regenerate.
1806 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1807 (gdbarch_data): Use internal_error for the case where
1808 deprecated_set_gdbarch_data was originally needed.
1809 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1810 and use passed in obstack.
1811 (libunwind_frame_set_descr): Should no longer get back NULL from
1812 gdbarch_data.
1813 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1814 type.
1815 * user-regs.c (user_regs_init): Update parameters, and use passed
1816 in obstack.
1817 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1818 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1819
d8cc8af6
TV
18202020-07-06 Tom de Vries <tdevries@suse.de>
1821
1822 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1823 End-Of-Sequence in lte_is_less_than.
1824 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1825 "gdb: Don't reorder line table entries too much when sorting".
1826
947f7597
TV
18272020-07-06 Tom de Vries <tdevries@suse.de>
1828
1829 PR tui/26205
1830 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1831
1e7c1b22
TV
18322020-07-05 Tom de Vries <tdevries@suse.de>
1833
1834 PR build/26187
1835 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1836 std::uncaught_exceptions instead of deprecated
1837 std::uncaught_exception.
1838
a36158ec
SM
18392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1840
1841 * macroexp.h (macro_stringify): Return
1842 gdb::unique_xmalloc_ptr<char>.
1843 * macroexp.c (macro_stringify): Likewise.
1844 * macrotab.c (fixup_definition): Update.
1845
14d960c8
SM
18462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1849 (lex_one_token): Update.
1850 * macroexp.c (struct macro_buffer) <release>: Return
1851 gdb::unique_xmalloc_ptr<char>.
1852 (macro_stringify): Update.
1853 (macro_expand): Update.
1854 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1855 * macroexp.h (macro_expand_next): Likewise.
1856
211d5b1c
SM
18572020-07-02 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * macroexp.h (macro_lookup_ftype): Remove.
1860 (macro_expand, macro_expand_once, macro_expand_next): Remove
1861 lookup function parameters, add scope parameter.
1862 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1863 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1864 * macroscope.h (standard_macro_lookup): Change parameter type
1865 to macro_scope.
1866 * macroscope.c (standard_macro_lookup): Likewise.
1867 * c-exp.y (lex_one_token): Update.
1868 * macrocmd.c (macro_expand_command): Likewise.
1869 (macro_expand_once_command): Likewise.
1870
b1a35af2
SM
18712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * inf-loop.c (inferior_event_handler): Remove client_data param.
1874 * inf-loop.h (inferior_event_handler): Likewise.
1875 * infcmd.c (step_1): Adjust.
1876 * infrun.c (proceed): Adjust.
1877 (fetch_inferior_event): Remove client_data param.
1878 (infrun_async_inferior_event_handler): Adjust.
1879 * infrun.h (fetch_inferior_event): Remove `void *` param.
1880 * linux-nat.c (handle_target_event): Adjust.
1881 * record-btrace.c (record_btrace_handle_async_inferior_event):
1882 Adjust.
1883 * record-full.c (record_full_async_inferior_event_handler):
1884 Adjust.
1885 * remote.c (remote_async_inferior_event_handler): Adjust.
1886
1cdf9e33
TT
18872020-07-01 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1890 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1891
32c1e210
TT
18922020-07-01 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1895 tui_gen_win_info.
1896 (tui_win_info::make_window): Merge with
1897 tui_gen_win_info::make_window.
1898 (tui_win_info::make_visible): Move from tui_gen_win_info.
1899 * tui/tui-win.c (tui_win_info::max_width): Move from
1900 tui_gen_win_info.
1901 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1902 type.
1903 <window_factory>: Likewise.
1904 * tui/tui-layout.c (tui_win_info::resize): Move from
1905 tui_gen_win_info.
1906 (make_standard_window): Change return type.
1907 (get_locator_window, tui_get_window_by_name): Likewise.
1908 (tui_layout_window::apply): Remove a cast.
1909 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1910 (struct tui_win_info): Merge with tui_gen_win_info.
1911 (struct tui_gen_win_info): Remove.
1912
a30cb6da
TT
19132020-07-01 Tom Tromey <tom@tromey.com>
1914
1915 * tui/tui-stack.h (struct tui_locator_window): Derive from
1916 tui_win_info.
1917 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1918 <can_box>: New method.
1919
1eb2161f
TT
19202020-07-01 Tom Tromey <tom@tromey.com>
1921
1922 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1923
7134f2eb
TT
19242020-07-01 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-regs.c (tui_data_window::display_registers_from)
1927 (tui_data_window::display_registers_from)
1928 (tui_data_window::first_data_item_displayed)
1929 (tui_data_window::delete_data_content_windows): Update.
1930 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1931 Remove.
1932 (tui_data_window::check_register_values): Update.
1933 (tui_data_item_window::rerender): Add parameters. Update.
1934 (tui_data_item_window::refresh_window): Remove.
1935 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1936 virtual.
1937 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1938 tui_gen_win_info.
1939 <refresh_window, max_height, min_height>: Remove.
1940 <rerender>: Add parameters.
1941 <x, y, visible>: New members.
1942 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1943 <m_item_width>: New member.
1944
22b7b041
TT
19452020-07-01 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-regs.c (tui_data_window::show_register_group)
1948 (tui_data_window::check_register_values): Update.
1949 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1950 from item_no.
1951
c9753adb
TT
19522020-07-01 Tom Tromey <tom@tromey.com>
1953
1954 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1955 useless "if".
1956
9ab26b4a
TT
19572020-07-01 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1960 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1961
e555083f
TT
19622020-07-01 Tom Tromey <tom@tromey.com>
1963
1964 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1965 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1966 (struct tui_line_or_address): Move from tui-data.h.
1967 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1968 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1969 (tui_cmd_window, tui_source_window_base, tui_source_window)
1970 (tui_disasm_window): Don't declare.
1971 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1972 to tui-winsource.h.
1973 (SINGLE_KEY): Move to tui-stack.c.
1974
7a02bab7
TT
19752020-07-01 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1978 std::string.
1979 * tui/tui-regs.c (class tab_expansion_file): New.
1980 (tab_expansion_file::write): New method.
1981 (tui_register_format): Change return type. Use
1982 tab_expansion_file.
1983 (tui_get_register, tui_data_window::display_registers_from)
1984 (tui_data_item_window::rerender): Update.
1985 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1986 * tui/tui-io.c (tui_expand_tabs): Remove.
1987
ea68593b
TT
19882020-07-01 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1991
a8caed5d
FS
19922020-07-01 Fangrui Song <maskray@google.com>
1993
1994 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1995
9cdf9820
AKS
19962020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1997
1998 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1999 forms for DW_AT_associated and DW_AT_allocated attributes,
2000 which is already checked in function attr_to_dynamic_prop.
2001
a1520ad8
TT
20022020-06-30 Tom Tromey <tromey@adacore.com>
2003
2004 * dwarf2/read.c (quirk_rust_enum): Correctly call
2005 alloc_rust_variant for default-less enum.
2006
5ac58899
TT
20072020-06-30 Tom Tromey <tromey@adacore.com>
2008
2009 PR build/26183:
2010 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2011 gdb::to_string.
2012
19b187a9
SM
20132020-06-29 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2016 * gdbarch.h: Re-generate.
2017
cd4c4c07
TT
20182020-06-28 Tom Tromey <tom@tromey.com>
2019
2020 * command.h (cmd_types): Remove.
2021 (cmd_type): Don't declare.
2022 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2023 typedef.
2024 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2025 * cli/cli-decode.c (cmd_type): Remove.
2026
05779d57
PA
20272020-06-27 Pedro Alves <palves@redhat.com>
2028
2029 * fork-child.c (prefork_hook): Adjust.
2030 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2031 Delete.
2032 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2033 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2034 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2035 Remove declarations.
2036 (struct inferior) <set_tty, tty>: New methods.
2037 (struct inferior) <terminal>: Rename to ...
2038 (struct inferior) <m_terminal>: ... this and make private.
2039 * main.c (captured_main_1): Adjust.
2040 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2041 (mi_cmd_inferior_tty_show): Adjust.
2042 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2043 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2044
1776e3e5
NA
20452020-06-26 Nick Alcock <nick.alcock@oracle.com>
2046
2047 * configure.ac: Add --enable-libctf: handle --disable-static
2048 properly.
2049 * acinclude.m4: sinclude ../config/enable.m4.
2050 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2051 (LIBCTF): Substitute in.
2052 (CTF_DEPS): New, likewise.
2053 (CLIBS): libctf needs symbols from libbfd: move earlier.
2054 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2055 flags.
2056 * ctfread.c: Surround in ENABLE_LIBCTF.
2057 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2058 * configure: Regenerate.
2059 * config.in: Likewise.
2060
58373b80
SM
20612020-06-25 Simon Marchi <simon.marchi@efficios.com>
2062
2063 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2064
277474ee
SM
20652020-06-25 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * inferior.h (struct inferior) <terminal>: Change type to
2068 gdb::unique_xmalloc_ptr<char>.
2069 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2070 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2071 field, adjust to unique pointer.
2072 (get_inferior_io_terminal): Adjust to unique pointer.
2073
6d74da72
AB
20742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2077 registers, not just the known core set of registers.
2078
2e52d038
AB
20792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2082 fflags, frm, and fcsr registers.
2083 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2084 restore groups.
2085 (riscv_tdesc_unknown_reg): New function.
2086 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2087 tdesc_use_registers.
2088 * riscv-tdep.h (struct gdbarch_tdep): Add
2089 unknown_csrs_first_regnum, unknown_csrs_count,
2090 duplicate_fflags_regnum, duplicate_frm_regnum, and
2091 duplicate_fcsr_regnum fields.
2092
be64fd07
AB
20932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2096 callback, use the callback (when not null) to help number unknown
2097 registers.
2098 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2099 (tdesc_use_registers): Add extra parameter to declaration.
2100
3b9fce96
AB
21012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2104 in the file.
2105 (class riscv_pending_register_alias): Likewise.
2106 (riscv_register_feature::register_info): Change 'required_p' field
2107 to 'required', and change its type. Add 'check' member function.
2108 (riscv_register_feature::register_info::check): Define new member
2109 function.
2110 (riscv_xreg_feature): Change initialisation of 'required' field.
2111 (riscv_freg_feature): Likewise.
2112 (riscv_virtual_feature): Likewise.
2113 (riscv_csr_feature): Likewise.
2114 (riscv_check_tdesc_feature): Take extra parameter, the csr
2115 tdesc_feature, rewrite the function to use the new
2116 riscv_register_feature::register_info::check function.
2117 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2118
865bad26
AB
21192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * features/Makefile: Remove all references to the deleted files
2122 below.
2123 * features/riscv/32bit-csr.c: Deleted.
2124 * features/riscv/32bit-csr.xml: Deleted.
2125 * features/riscv/64bit-csr.c: Deleted.
2126 * features/riscv/64bit-csr.xml: Deleted.
2127 * features/riscv/rebuild-csr-xml.sh: Deleted.
2128
ed69cbc8
AB
21292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2130
2131 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2132 whitespace error for declaration of names member variable.
2133 (struct riscv_register_feature): Add new prefer_first_name member
2134 variable, and fix whitespace error in declaration of registers.
2135 (riscv_xreg_feature): Initialize prefer_first_name field.
2136 (riscv_freg_feature): Likewise.
2137 (riscv_virtual_feature): Likewise.
2138 (riscv_csr_feature): Likewise.
2139 (riscv_register_name): Expand on comments. Remove register name
2140 modifications for CSR and virtual registers.
2141
4445e8f5
AB
21422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2145 errors.
2146
767a879e
AB
21472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2150 riscv-opc.h.
2151 (class riscv_pending_register_alias): New class.
2152 (riscv_check_tdesc_feature): Take vector of pending aliases and
2153 populate it as appropriate.
2154 (riscv_setup_register_aliases): Delete.
2155 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2156 to riscv_check_tdesc_feature in all cases. Use the vector to
2157 create the register aliases.
2158
bb6e55f3
RO
21592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2160
2161 * sol2-tdep.c (sol2_static_transform_name): Remove.
2162 (sol2_init_abi): Don't register it.
2163 * gdbarch.sh (static_transform_name): Remove.
2164 * gdbarch.c, gdbarch.h: Regenerate.
2165
2166 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2167 gdbarch_static_transform_name.
2168 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2169 * stabsread.c (define_symbol) <'X'>: Remove.
2170 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2171 handling.
2172 <'V'>: Likewise.
2173 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2174 <'S'>: Remove call to gdbarch_static_transform_name.
2175
c6d36836
RO
21762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2177
2178 * procfs.c (procfs_pre_trace): New function.
2179 (procfs_target::create_inferior): Pass it to fork_inferior.
2180
a7e6196b
RO
21812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2182
2183 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2184 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2185 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2186 sol2-tdep.o, sparc-sol2-tdep.o.
2187 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2188 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2189 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2190 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2191
d412e696
RO
21922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2193
2194 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2195 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2196 Call sol2_init_abi.
2197 Remove calls to set_gdbarch_skip_solib_resolver,
2198 set_gdbarch_core_pid_to_str.
2199 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2200 (i386_sol2_static_transform_name): Remove.
2201 (i386_sol2_init_abi): Call sol2_init_abi.
2202 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2203 set_gdbarch_static_transform_name,
2204 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2205 Use sol2_sigtramp_p.
2206 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2207 (sol2_sigtramp_p): New function.
2208 (sol2_static_transform_name): New function.
2209 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2210 (sol2_init_abi): New function.
2211 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2212 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2213 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2214 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2215 (sparc_sol2_static_transform_name): Remove.
2216 (sparc32_sol2_init_abi): Call sol2_init_abi.
2217 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2218 set_gdbarch_static_transform_name,
2219 set_gdbarch_skip_solib_resolver,
2220 set_gdbarch_core_pid_to_str.
2221 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2222 (sparc_sol2_static_transform_name): Remove
2223 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2224 call sol2_sigtramp_p.
2225 (sparc64_sol2_init_abi): Call sol2_init_abi.
2226 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2227 set_gdbarch_static_transform_name,
2228 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2229
a8654e7d
PW
22302020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2231
2232 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2233 * exec.c (validate_exec_file): If from_tty, set both
2234 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2235 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2236 and from_tty, unconditionally ask a confirmation.
2237
caa7fd04
AB
22382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * target-descriptions.c (tdesc_architecture_name): Protect against
2241 NULL pointer dereference.
2242 (maint_print_xml_tdesc_cmd): New function.
2243 (_initialize_target_descriptions): Register new 'maint print
2244 xml-tdesc' command and give it the filename completer.
2245 * NEWS: Mention new 'maint print xml-tdesc' command.
2246
fbf42f4e
AB
22472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * target-descriptions.c (class tdesc_compatible_info): New class.
2250 (struct target_desc): Change type of compatible vector.
2251 (tdesc_compatible_p): Update for change in type of
2252 target_desc::compatible.
2253 (tdesc_compatible_info_list): New function.
2254 (tdesc_compatible_info_arch_name): New function.
2255 (tdesc_add_compatible): Update for change in type of
2256 target_desc::compatible.
2257 (print_c_tdesc::visit_pre): Likewise.
2258
20821f4e
AB
22592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2262 whitespace to underscore.
2263 (maint_print_c_tdesc_cmd): Use fake filename for target
2264 descriptions that came from the target.
2265 (_initialize_target_descriptions): Add filename command completion
2266 for 'maint print c-tdesc'.
2267
1fb5ee62
SM
22682020-06-23 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2271 lines.
2272
fc3ecb3e
SM
22732020-06-23 Simon Marchi <simon.marchi@efficios.com>
2274
2275 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2276 lines.
2277 (dwarf2_find_location_expression): Likewise.
2278 (call_site_parameter_matches): Likewise.
2279 (dwarf2_compile_expr_to_ax): Likewise.
2280 (disassemble_dwarf_expression): Likewise.
2281 (loclist_describe_location): Likewise.
2282
236ef034
PA
22832020-06-23 Pedro Alves <palves@redhat.com>
2284
2285 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2286 progspace-and-thread.h. Include scoped-mock-context.h instead.
2287 (register_to_value_test): Use scoped_mock_context.
2288 * regcache.c: Include "scoped-mock-context.h".
2289 (cooked_read_test): Don't error out if a target is already pushed.
2290 Use scoped_mock_context. Adjust.
2291 * scoped-mock-context.h: New file.
2292
39e7ecca
AB
22932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2296 initializer.
2297 (ada_language::is_string_type_p): New member function.
2298 * c-lang.c (c_language_data): Delete la_is_string_type_p
2299 initializer.
2300 (cplus_language_data): Likewise.
2301 (asm_language_data): Likewise.
2302 (minimal_language_data): Likewise.
2303 * d-lang.c (d_language_data): Likewise.
2304 * f-lang.c (f_is_string_type_p): Delete function, implementation
2305 moved to f_language::is_string_type_p.
2306 (f_language_data): Delete la_is_string_type_p initializer.
2307 (f_language::is_string_type_p): New member function,
2308 implementation from f_is_string_type_p.
2309 * go-lang.c (go_is_string_type_p): Delete function, implementation
2310 moved to go_language::is_string_type_p.
2311 (go_language_data): Delete la_is_string_type_p initializer.
2312 (go_language::is_string_type_p): New member function,
2313 implementation from go_is_string_type_p.
2314 * language.c (language_defn::is_string_type_p): Define new member
2315 function.
2316 (default_is_string_type_p): Make static, add comment copied from
2317 header file.
2318 (unknown_language_data): Delete la_is_string_type_p initializer.
2319 (unknown_language::is_string_type_p): New member function.
2320 (auto_language_data): Delete la_is_string_type_p initializer.
2321 (auto_language::is_string_type_p): New member function.
2322 * language.h (language_data): Delete la_is_string_type_p field.
2323 (language_defn::is_string_type_p): Declare new function.
2324 (default_is_string_type_p): Delete desclaration, move comment to
2325 definition.
2326 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2327 moved to m2_language::is_string_type_p.
2328 (m2_language_data): Delete la_is_string_type_p initializer.
2329 (m2_language::is_string_type_p): New member function,
2330 implementation from m2_is_string_type_p.
2331 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2332 initializer.
2333 * opencl-lang.c (opencl_language_data): Likewise.
2334 * p-lang.c (pascal_is_string_type_p): Delete function,
2335 implementation moved to pascal_language::is_string_type_p.
2336 (pascal_language_data): Delete la_is_string_type_p initializer.
2337 (pascal_language::is_string_type_p): New member function,
2338 implementation from pascal_is_string_type_p.
2339 * rust-lang.c (rust_is_string_type_p): Delete function,
2340 implementation moved to rust_language::is_string_type_p.
2341 (rust_language_data): Delete la_is_string_type_p initializer.
2342 (rust_language::is_string_type_p): New member function,
2343 implementation from rust_is_string_type_p.
2344 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2345 is_string_type_p.
2346
4ffc13fb
AB
23472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * ada-lang.c (ada_language_data): Delete la_print_typedef
2350 initializer.
2351 (ada_language::print_typedef): New member function.
2352 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2353 (cplus_language_data): Likewise.
2354 (asm_language_data): Likewise.
2355 (minimal_language_data): Likewise.
2356 * d-lang.c (d_language_data): Likewise.
2357 * f-lang.c (f_language_data): Likewise.
2358 (f_language::print_typedef): New member function.
2359 * go-lang.c (go_language_data): Delete la_print_typedef
2360 initializer.
2361 * language.c (language_defn::print_typedef): Define member
2362 function.
2363 (unknown_language_data): Delete la_print_typedef initializer.
2364 (unknown_language::print_typedef): New member function.
2365 (auto_language_data): Delete la_print_typedef initializer.
2366 (auto_language::print_typedef): New member function.
2367 * language.h (language_data): Delete la_print_typedef field.
2368 (language_defn::print_typedef): Declare new member function.
2369 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2370 (default_print_typedef): Delete declaration.
2371 * m2-lang.c (m2_language_data): Delete la_print_typedef
2372 initializer.
2373 (m2_language::print_typedef): New member function.
2374 * objc-lang.c (objc_language_data): Delete la_print_typedef
2375 initializer.
2376 * opencl-lang.c (opencl_language_data): Likewise.
2377 * p-lang.c (pascal_language_data): Likewise.
2378 (pascal_language::print_typedef): New member function.
2379 * rust-lang.c (rust_print_typedef): Delete function,
2380 implementation moved to rust_language::print_typedef.
2381 (rust_language): Delete la_print_typedef initializer.
2382 (rust_language::print_typedef): New member function,
2383 implementation from rust_print_typedef.
2384 * typeprint.c (default_print_typedef): Delete.
2385
d711ee67
AB
23862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2389 (ada_language::printstr): New member function.
2390 * c-lang.c (c_language_data): Delete la_printstr initializer.
2391 (cplus_language_data): Likewise.
2392 (asm_language_data): Likewise.
2393 (minimal_language_data): Likewise.
2394 * d-lang.c (d_language_data): Likewise.
2395 * f-lang.c (f_printstr): Rename to f_language::printstr.
2396 (f_language_data): Delete la_printstr initializer.
2397 (f_language::printstr): New member function, implementation from
2398 f_printstr.
2399 * go-lang.c (go_language_data): Delete la_printstr initializer.
2400 * language.c (language_defn::printstr): Define new member
2401 function.
2402 (unk_lang_printstr): Delete.
2403 (unknown_language_data): Delete la_printstr initializer.
2404 (unknown_language::printstr): New member function.
2405 (auto_language_data): Delete la_printstr initializer.
2406 (auto_language::printstr): New member function.
2407 * language.h (language_data): Delete la_printstr field.
2408 (language_defn::printstr): Declare new member function.
2409 (LA_PRINT_STRING): Update call to printstr.
2410 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2411 (m2_language_data): Delete la_printstr initializer.
2412 (m2_language::printstr): New member function, implementation from
2413 m2_printstr.
2414 * objc-lang.c (objc_language_data): Delete la_printstr
2415 initializer.
2416 * opencl-lang.c (opencl_language_data): Likewise.
2417 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2418 (pascal_language_data): Delete la_printstr initializer.
2419 (pascal_language::printstr): New member function, implementation
2420 from pascal_printstr.
2421 * p-lang.h (pascal_printstr): Delete declaration.
2422 * rust-lang.c (rust_printstr): Update header comment.
2423 (rust_language_data): Delete la_printstr initializer.
2424 (rust_language::printstr): New member function.
2425
52b50f2c
AB
24262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2429 (ada_language::printchar): New member function.
2430 * c-lang.c (c_language_data): Delete la_printchar initializer.
2431 (cplus_language_data): Likewise.
2432 (asm_language_data): Likewise.
2433 (minimal_language_data): Likewise.
2434 * d-lang.c (d_language_data): Likewise.
2435 * f-lang.c (f_printchar): Rename to f_language::printchar.
2436 (f_language_data): Delete la_printchar initializer.
2437 (f_language::printchar): New member function, implementation from
2438 f_printchar.
2439 * go-lang.c (go_language_data): Delete la_printchar initializer.
2440 * language.c (unk_lang_printchar): Delete.
2441 (language_defn::printchar): Define new member function.
2442 (unknown_language_data): Delete la_printchar initializer.
2443 (unknown_language::printchar): New member function.
2444 (auto_language_data): Delete la_printchar initializer.
2445 (auto_language::printchar): New member function.
2446 * language.h (language_data): Delete la_printchar field.
2447 (language_defn::printchar): Declare new member function.
2448 (LA_PRINT_CHAR): Update call to printchar.
2449 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2450 (m2_language::printchar): New member function.
2451 * objc-lang.c (objc_language_data): Delete la_printchar
2452 initializer.
2453 * opencl-lang.c (opencl_language_data): Likewise.
2454 * p-lang.c (pascal_language_data): Delete la_printchar
2455 initializer.
2456 (pascal_language::printchar): New member function.
2457 * rust-lang.c (rust_printchar): Rename to
2458 rust_language::printchar.
2459 (rust_language_data): Delete la_printchar initializer.
2460 (rust_language::printchar): New member function, implementation
2461 from rust_printchar.
2462
ec8cec5b
AB
24632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2466 (ada_language_data): Delete la_emitchar initializer.
2467 (ada_language::emitchar): New member function, implementation from
2468 emit_char.
2469 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2470 (cplus_language_data): Likewise.
2471 (asm_language_data): Likewise.
2472 (minimal_language_data): Likewise.
2473 * d-lang.c (d_language_data): Likewise.
2474 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2475 (f_language_data): Delete la_emitchar initializer.
2476 (f_language::emitchar): New member function, implementation from
2477 f_emit_char.
2478 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2479 * language.c (unk_lang_emit_char): Delete.
2480 (language_defn::emitchar): New member function definition.
2481 (unknown_language_data): Delete la_emitchar initializer.
2482 (unknown_language::emitchar): New member function.
2483 (auto_language_data): Delete la_emitchar initializer.
2484 (auto_language::emitchar): New member function.
2485 * language.h (language_data): Delete la_emitchar field.
2486 (language_defn::emitchar): New member field declaration.
2487 (LA_EMIT_CHAR): Update call to emitchar.
2488 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2489 (m2_language_data): Delete la_emitchar initializer.
2490 (m2_language::emitchar): New member function, implementation from
2491 m2_emit_char.
2492 * objc-lang.c (objc_language_data): Delete la_emitchar
2493 initializer.
2494 * opencl-lang.c (opencl_language_data): Likewise.
2495 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2496 (pascal_language_data): Delete la_emitchar initializer.
2497 (pascal_language::emitchar): New member function, implementation
2498 from pascal_emit_char.
2499 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2500 (rust_language_data): Delete la_emitchar initializer.
2501 (rust_language::emitchar): New member function, implementation
2502 from rust_emitchar.
2503
1bf9c363
AB
25042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2507 (ada_language_data): Delete la_post_parser initializer.
2508 (ada_language::post_parser): New member function.
2509 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2510 (cplus_language_data): Likewise.
2511 (asm_language_data): Likewise.
2512 (minimal_language_data): Likewise.
2513 * d-lang.c (d_language_data): Likewise.
2514 * f-lang.c (f_language_data): Likewise.
2515 * go-lang.c (go_language_data): Likewise.
2516 * language.c (unknown_language_data): Likewise.
2517 (auto_language_data): Likewise.
2518 * language.h (language_data): Delete la_post_parser field.
2519 (language_defn::post_parser): New member function.
2520 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2521 * objc-lang.c (objc_language_data): Likewise.
2522 * opencl-lang.c (opencl_language_data): Likewise.
2523 * p-lang.c (pascal_language_data): Likewise.
2524 * parse.c (parse_exp_in_context): Update call to post_parser.
2525 (null_post_parser): Delete definition.
2526 * parser-defs.h (null_post_parser): Delete declaration.
2527 * rust-lang.c (rust_language_data): Delete la_post_parser
2528 initializer.
2529
87afa652
AB
25302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * ada-lang.c (parse): Rename to ada_language::parser.
2533 (ada_language_data): Delete la_parser initializer.
2534 (ada_language::parser): New member function, implementation from
2535 parse.
2536 * c-lang.c (c_language_data): Delete la_parser initializer.
2537 (cplus_language_data): Likewise.
2538 (asm_language_data): Likewise.
2539 (minimal_language_data): Likewise.
2540 * d-lang.c (d_language_data): Likewise.
2541 (d_language::parser): New member function.
2542 * f-lang.c (f_language_data): Delete la_parser initializer.
2543 (f_language::parser): New member function.
2544 * go-lang.c (go_language_data): Delete la_parser initializer.
2545 (go_language::parser): New member function.
2546 * language.c (unk_lang_parser): Delete.
2547 (language_defn::parser): Define new member function.
2548 (unknown_language_data): Delete la_parser initializer.
2549 (unknown_language::parser): New member function.
2550 (auto_language_data): Delete la_parser initializer.
2551 (auto_language::parser): New member function.
2552 * language.h (language_data): Delete la_parser field.
2553 (language_defn::parser): Declare new member function.
2554 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2555 (m2_language::parser): New member function.
2556 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 (pascal_language::parser): New member function.
2560 * parse.c (parse_exp_in_context): Update call to parser.
2561 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2562 (rust_language::parser): New member function.
2563
37825800
AB
25642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * top.c (print_gdb_configuration): Print --with-python-libdir
2567 configuration value.
2568
5b860c93
PW
25692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2570
2571 * NEWS: Mention change to the alias command.
2572
cf00cd6f
PW
25732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2574
2575 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2576 (alias_command_completer)
2577 (make_alias_options_def_group): New functions.
2578 (alias_opts, alias_option_defs): New struct and array.
2579 (alias_usage_error): Update usage.
2580 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2581 Use option framework.
2582 (_initialize_cli_cmds): Update alias command help.
2583 Update aliases command help.
2584 (show_user):
2585 Add NULL for new default_args lookup_cmd argument.
2586 (valid_command_p): Rename to validate_aliased_command.
2587 Add NULL for new default_args lookup_cmd argument. Verify that the
2588 aliased_command has no default args.
2589 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2590 (lookup_cmd_1, lookup_cmd): New argument default_args.
2591 (add_alias_cmd):
2592 Add NULL for new default_args lookup_cmd argument.
2593 (print_help_for_command): Show default args under the layout
2594 alias some_alias = some_aliased_cmd some_alias_default_arg.
2595 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2596 xfree default_args in destructor.
2597 * cli/cli-script.c (process_next_line, do_define_command):
2598 Add NULL for new default_args lookup_cmd argument.
2599 * command.h: Declare new default_args argument in lookup_cmd
2600 and lookup_cmd_1.
2601 * completer.c (complete_line_internal_1):
2602 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2603 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2604 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2605 Likewise.
2606 * infcmd.c (_initialize_infcmd): Likewise.
2607 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2608 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2609 * python/py-param.c (add_setshow_generic): Likewise.
2610 * remote.c (_initialize_remote): Likewise.
2611 * top.c (execute_command): Prepend default_args if command has some.
2612 (set_verbose):
2613 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2614 * tracepoint.c (validate_actionline, encode_actions_1):
2615 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2616
bd920864
TBA
26172020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2618
2619 * jit.c (jit_read_descriptor): Use bool as the return type.
2620 (jit_breakpoint_re_set_internal): Use bool as the return type.
2621 Invert the return value logic; return true if the jit breakpoint
2622 has been successfully initialized.
2623 (jit_inferior_init): Update the call to
2624 jit_breakpoint_re_set_internal.
2625
f8098322
PA
26262020-06-22 Pedro Alves <palves@redhat.com>
2627
2628 PR gdb/25939
2629 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2630 Use the current inferior instead. Don't return
2631 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2632 wait again.
2633 * sol-thread.c (sol_thread_target::wait): Don't reference
2634 inferior_ptid.
2635 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2636 (sol_update_thread_list_callback): Use the current inferior's pid
2637 instead of inferior_ptid.
2638
196535a6
RO
26392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2640
2641 * procfs.c: Cleanup many comments.
2642
2643 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2644 (AFTER_WATCHFLAG): Replace by value.
2645
2646 (MAIN_PROC_NAME_FORMAT): Inline ...
2647 (create_procinfo): ... here.
2648
2649 (procfs_debug_inferior): Remove SYS_exec handling.
2650 (syscall_is_exec): Likewise.
2651 (procfs_set_exec_trap): Likewise.
2652
2653 (syscall_is_lwp_exit): Inline in callers.
2654 (syscall_is_exit): Likewise.
2655 (syscall_is_exec): Likewise.
2656 (syscall_is_lwp_create): Likewise.
2657
2658 (invalidate_cache): Remove #if 0 code.
2659
2660 (make_signal_thread_runnable): Remove.
2661 (procfs_target::resume): Remove #if 0 code.
2662
cf6f3e86
RO
26632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2664
2665 PR gdb/25939
2666 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2667 call ...
2668 (procfs_target::create_inferior): ... here.
2669
48e9cc84
PW
26702020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2671
2672 * exec.c (validate_exec_file): Ensure the build-id is up to
2673 date by calling reopen_exec_file (that checks file timestamp
2674 to decide to re-read the file).
2675
3922b302
PA
26762020-06-18 Pedro Alves <palves@redhat.com>
2677
2678 PR gdb/25412
2679 * gdbthread.h (delete_thread, delete_thread_silent)
2680 (find_thread_ptid): Update comments.
2681 * thread.c (current_thread_): New global.
2682 (is_current_thread): Move higher, and reimplement.
2683 (inferior_thread): Reimplement.
2684 (set_thread_exited): Use bool. Add assertions.
2685 (add_thread_silent): Simplify thread-reuse handling by always
2686 calling delete_thread.
2687 (delete_thread): Remove intro comment.
2688 (find_thread_ptid): Skip exited threads.
2689 (switch_to_thread_no_regs): Write to current_thread_.
2690 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2691 INFERIOR_PTID. Clear current_thread_.
2692
6dbdab44
PA
26932020-06-18 Pedro Alves <palves@redhat.com>
2694
2695 * aix-thread.c (pd_update): Use switch_to_thread.
2696
2da4b788
PA
26972020-06-18 Pedro Alves <palves@redhat.com>
2698
2699 * ravenscar-thread.c (ravenscar_thread_target): Update.
2700 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2701 (ravenscar_thread_target::add_active_thread): ... this. Don't
2702 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2703 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2704
50838d1b
PA
27052020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * nat/windows-nat.c (current_windows_thread): Remove.
2708 * nat/windows-nat.h (current_windows_thread): Remove.
2709 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2710 Adjust.
2711 (display_selectors): Adjust to fetch the current
2712 windows_thread_info based on inferior_ptid.
2713 (fake_create_process): No longer write to current_windows_thread.
2714 (windows_nat_target::get_windows_debug_event):
2715 Don't set inferior_ptid or current_windows_thread.
2716 (windows_nat_target::wait): Adjust to not rely on
2717 current_windows_thread.
2718 (do_initial_windows_stuff): Now a method of windows_nat_target.
2719 Switch to the last_ptid thread.
2720 (windows_nat_target::attach): Adjust.
2721 (windows_nat_target::detach): Use switch_to_no_thread instead of
2722 writing to inferior_ptid directly.
2723 (windows_nat_target::create_inferior): Adjust.
2724
31ce04e9
PA
27252020-06-18 Pedro Alves <palves@redhat.com>
2726
2727 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2728
1ee1a363
PA
27292020-06-18 Pedro Alves <palves@redhat.com>
2730
2731 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2732 after creating it, instead of writing to inferior_ptid. Don't
2733 write to inferior_ptid.
2734
6d350754
PA
27352020-06-18 Pedro Alves <palves@redhat.com>
2736
2737 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2738
5d971d48
PA
27392020-06-18 Pedro Alves <palves@redhat.com>
2740
2741 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2742 it, instead of writing to inferior_ptid.
2743
86e57d1b
PA
27442020-06-18 Pedro Alves <palves@redhat.com>
2745
2746 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2747 to inferior_ptid.
2748
f2e1c129
PA
27492020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2752 instead of writing to inferior_ptid directly.
2753
60db1b85
PA
27542020-06-18 Pedro Alves <palves@redhat.com>
2755
2756 * corelow.c (core_target::close): Use switch_to_no_thread instead
2757 of writing to inferior_ptid directly.
2758 (add_to_thread_list, core_target_open): Use switch_to_thread
2759 instead of writing to inferior_ptid directly.
2760
fe7d6a8d
PA
27612020-06-18 Pedro Alves <palves@redhat.com>
2762
2763 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2764 inferior_ptid.
2765 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2766 inferior_ptid.
2767 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2768 inferior_ptid directly.
2769 (darwin_nat_target::init_thread_list): Switch to thread, instead
2770 of writing to inferior_ptid.
2771 (darwin_nat_target::attach): Don't write to inferior_ptid.
2772 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2773
975f8708
PA
27742020-06-18 Pedro Alves <palves@redhat.com>
2775
2776 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2777 thread.
2778 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2779 Instead use switch_to_thread.
2780 (gnu_nat_target::detach): Use switch_to_no_thread
2781 instead of writing to inferior_ptid directly. Used passed-in
2782 inferior instead of looking up the inferior by pid.
2783
1a204730
PA
27842020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2787 inferior_ptid.
2788
ebe84f23
PA
27892020-06-18 Pedro Alves <palves@redhat.com>
2790
2791 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2792 inferior_ptid.
2793 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2794 thread.
2795 (nto_procfs_target::detach): Avoid referencing
2796 inferior_ptid. Use switch_to_no_thread instead of writing to
2797 inferior_ptid directly.
2798 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2799 instead of writing to inferior_ptid directly.
2800 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2801 to thread.
2802
191f02e5
PA
28032020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2806 after creating it, instead of writing to inferior_ptid.
2807 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2808 to inferior_ptid directly.
2809 (gdbsim_target::wait): Don't write to inferior_ptid.
2810
0ac55310
PA
28112020-06-18 Pedro Alves <palves@redhat.com>
2812
2813 * remote.c (remote_target::remote_notice_new_inferior): Use
2814 switch_to_thread instead of writing to inferior_ptid directly.
2815 (remote_target::add_current_inferior_and_thread): Use
2816 switch_to_no_thread instead of writing to inferior_ptid directly.
2817 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2818 and switch_to_thread instead of using set_current_inferior or
2819 writing to inferior_ptid directly.
2820
5233f39b
PA
28212020-06-18 Pedro Alves <palves@redhat.com>
2822
2823 * tracectf.c (ctf_target_open): Switch to added thread instead of
2824 writing to inferior_ptid directly.
2825 (ctf_target::close): Use switch_to_no_thread instead of writing to
2826 inferior_ptid directly.
2827
087e161b
PA
28282020-06-18 Pedro Alves <palves@redhat.com>
2829
2830 * tracefile-tfile.c (tfile_target_open): Don't write to
2831 inferior_ptid directly, instead switch to added thread.
2832 (tfile_target::close): Use switch_to_no_thread instead of writing
2833 to inferior_ptid directly.
2834
7fb43e53
PA
28352020-06-18 Pedro Alves <palves@redhat.com>
2836
2837 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2838 (procfs_target::detach): Use switch_to_no_thread
2839 instead of writing to inferior_ptid directly.
2840 (do_attach): Change return type to void. Switch to the added
2841 thread.
2842 (procfs_target::create_inferior): Switch to the added thread.
2843 (procfs_do_thread_registers): Don't write to inferior_ptid.
2844
18493a00
PA
28452020-06-18 Pedro Alves <palves@redhat.com>
2846
2847 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2848 of writing to inferior_ptid.
2849 (scoped_restore_exited_inferior): Delete.
2850 (handle_vfork_child_exec_or_exit): Simplify using
2851 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2852 instead of writing to inferior_ptid.
2853 (THREAD_STOPPED_BY): Delete.
2854 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2855 (thread_stopped_by_hw_breakpoint): Delete.
2856 (save_waitstatus): Use
2857 scoped_restore_current_thread+switch_to_thread, and call
2858 target_stopped_by_watchpoint instead of
2859 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2860 instead of thread_stopped_by_sw_breakpoint, and
2861 target_stopped_by_hw_breakpoint instead of
2862 thread_stopped_by_hw_breakpoint.
2863 (handle_inferior_event)
2864 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2865 inferior_ptid directly, nor
2866 set_current_inferior/set_current_program_space. Use
2867 switch_to_thread / switch_to_inferior_no_thread instead.
2868
a0776b13
PA
28692020-06-18 Pedro Alves <palves@redhat.com>
2870
2871 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2872 instead of writing to inferior_ptid.
2873
6155c136
PA
28742020-06-18 Pedro Alves <palves@redhat.com>
2875
2876 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2877 added thread.
2878 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2879 to the added thread.
2880 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2881 instead of writing to inferior_ptid.
2882
c5316fc6
PA
28832020-06-18 Pedro Alves <palves@redhat.com>
2884
2885 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2886 (register_to_value_test): Mock a program_space too. Heap-allocate
2887 the address space. Don't write to inferior_ptid. Use
2888 switch_to_thread instead.
2889
8df01799
PA
28902020-06-18 Pedro Alves <palves@redhat.com>
2891
2892 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2893 Delete.
2894 (find_signalled_thread()): New, factored out from
2895 linux_make_corefile_notes and adjusted to handle exited threads.
2896 (linux_make_corefile_notes): Adjust to use the new
2897 find_signalled_thread.
2898
41792d68
PA
28992020-06-18 Pedro Alves <palves@redhat.com>
2900
2901 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2902 of saving/restoring inferior_ptid.
2903
612f258a
TT
29042020-06-17 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2907 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2908 declare.
2909 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2910
efb763a5
SM
29112020-06-15 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2914 of partial symtabs.
2915
2951f6c0
SM
29162020-06-17 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * regformats/reg-arm.dat: Remove.
2919 * regformats/reg-bfin.dat: Remove.
2920 * regformats/reg-cris.dat: Remove.
2921 * regformats/reg-crisv32.dat: Remove.
2922 * regformats/reg-m32r.dat: Remove.
2923 * regformats/reg-tilegx.dat: Remove.
2924 * regformats/reg-tilegx32.dat: Remove.
2925
7d458ea5
SM
29262020-06-17 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * features/Makefile (WHICH): Remove arm files.
2929 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2930 * regformats/arm/arm-with-neon.dat: Remove.
2931 * regformats/arm/arm-with-vfpv2.dat: Remove.
2932 * regformats/arm/arm-with-vfpv3.dat: Remove.
2933
3af96c0d
SM
29342020-06-17 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * features/Makefile (XMLTOC): Remove rx.xml.
2937
b25e22fd
PA
29382020-06-17 Pedro Alves <palves@redhat.com>
2939
2940 * gdbthread.h (thread_control_state) <trap_expected> Update
2941 comments.
2942
a78a19b1
AB
29432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2946 ada_language::lookup_symbol_nonlocal.
2947 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2948 (ada_language::lookup_symbol_nonlocal): New member function,
2949 implementation from ada_lookup_symbol_nonlocal.
2950 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2951 initializer.
2952 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2953 initializer.
2954 (cplus_language::lookup_symbol_nonlocal): New member function.
2955 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2956 (minimal_language_data) Likewise.
2957 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2958 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2959 initializer.
2960 (d_language::lookup_symbol_nonlocal): New member function.
2961 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2962 initializer.
2963 (f_language::lookup_symbol_nonlocal): New member function.
2964 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2965 initializer.
2966 * language.c (unknown_language_data): Likewise.
2967 (auto_language_data): Likewise.
2968 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2969 field.
2970 (language_defn::lookup_symbol_nonlocal): New member function.
2971 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2972 initializer.
2973 * objc-lang.c (objc_language_data): Likewise.
2974 * opencl-lang.c (opencl_language_data): Likewise.
2975 * p-lang.c (pascal_language_data): Likewise.
2976 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2977 rust_language::lookup_symbol_nonlocal.
2978 (rust_language_data): Delete la_lookup_symbol_nonlocal
2979 initializer.
2980 (rust_language::lookup_symbol_nonlocal): New member function,
2981 implementation from rust_lookup_symbol_nonlocal.
2982 * symtab.c (lookup_symbol_aux): Update call to
2983 lookup_symbol_nonlocal.
2984 (basic_lookup_symbol_nonlocal): Rename to...
2985 (language_defn::lookup_symbol_nonlocal): ...this, and update
2986 header comment. Remove language_defn parameter, and replace with
2987 uses of `this'.
2988 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2989
ebe2334e
AB
29902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2993 initializer.
2994 (ada_language::value_print_inner): New member function.
2995 * c-lang.c (c_language_data): Delete la_value_print_inner
2996 initializer.
2997 (cplus_language_data): Likewise.
2998 (asm_language_data): Likewise.
2999 (minimal_language_data): Likewise.
3000 * d-lang.c (d_language_data): Likewise.
3001 (d_language::value_print_inner): New member function.
3002 * f-lang.c (f_language_data): Delete la_value_print_inner
3003 initializer.
3004 (f_language::value_print_inner): New member function.
3005 * f-lang.h (f_value_print_innner): Rename to...
3006 (f_value_print_inner): ...this (note spelling of 'inner').
3007 * f-valprint.c (f_value_print_innner): Rename to...
3008 (f_value_print_inner): ...this (note spelling of 'inner').
3009 * go-lang.c (go_language_data): Delete la_value_print_inner
3010 initializer.
3011 (go_language::value_print_inner): New member function.
3012 * language.c (language_defn::value_print_inner): Define new member
3013 function.
3014 (unk_lang_value_print_inner): Delete.
3015 (unknown_language_data): Delete la_value_print_inner initializer.
3016 (unknown_language::value_print_inner): New member function.
3017 (auto_language_data): Delete la_value_print_inner initializer.
3018 (auto_language::value_print_inner): New member function.
3019 * language.h (language_data): Delete la_value_print_inner field.
3020 (language_defn::value_print_inner): Delcare new member function.
3021 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3022 initializer.
3023 (m2_language::value_print_inner): New member function.
3024 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3025 initializer.
3026 * opencl-lang.c (opencl_language_data): Likewise.
3027 * p-lang.c (pascal_language_data): Likewise.
3028 (pascal_language::value_print_inner): New member function.
3029 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3030 initializer.
3031 (rust_language::value_print_inner): New member function.
3032 * valprint.c (do_val_print): Update call to value_print_inner.
3033
a1d1fa3e
AB
30342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * ada-lang.c (ada_language_data): Delete la_value_print
3037 initializer.
3038 (ada_language::value_print): New member function.
3039 * c-lang.c (c_language_data): Delete la_value_print initializer.
3040 (cplus_language_data): Likewise.
3041 (asm_language_data): Likewise.
3042 (minimal_language_data): Likewise.
3043 * d-lang.c (d_language_data): Likewise.
3044 * f-lang.c (f_language_data): Likewise.
3045 * go-lang.c (go_language_data): Likewise.
3046 * language.c (unk_lang_value_print): Delete.
3047 (language_defn::value_print): Define new member function.
3048 (unknown_language_data): Delete la_value_print initializer.
3049 (unknown_language::value_print): New member function.
3050 (auto_language_data): Delete la_value_print initializer.
3051 (auto_language::value_print): New member function.
3052 * language.h (language_data): Delete la_value_print field.
3053 (language_defn::value_print): Declare new member function.
3054 (LA_VALUE_PRINT): Update call to value_print.
3055 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3056 * objc-lang.c (objc_language_data): Likewise.
3057 * opencl-lang.c (opencl_language_data): Likewise.
3058 * p-lang.c (pascal_language_data): Likewise.
3059 (pascal_language::value_print): New member function.
3060 * rust-lang.c (rust_language_data): Delete la_value_print
3061 initializer.
3062
f16a9f57
AB
30632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ada-lang.c (ada_watch_location_expression): Rename to
3066 ada_language::watch_location_expression.
3067 (ada_language_data): Delete la_watch_location_expression
3068 initializer.
3069 (ada_language::watch_location_expression): New member function,
3070 implementation from ada_watch_location_expression.
3071 * breakpoint.c (watch_command_1): Update call to
3072 watch_location_expression.
3073 * c-lang.c (c_watch_location_expression): Rename to
3074 language_defn::watch_location_expression.
3075 (c_language_data): Delete la_watch_location_expression
3076 initializer.
3077 (cplus_language_data): Likewise.
3078 (asm_language_data): Likewise.
3079 (minimal_language_data): Likewise.
3080 * c-lang.h (c_watch_location_expression): Delete declaration.
3081 * d-lang.c (d_language_data): Delete la_watch_location_expression
3082 initializer.
3083 * f-lang.c (f_language_data): Likewise.
3084 * go-lang.c (go_language_data): Likewise.
3085 * language.c (language_defn::watch_location_expression): Member
3086 function implementation from c_watch_location_expression.
3087 (unknown_language_data): Delete la_watch_location_expression
3088 initializer.
3089 (auto_language_data): Likewise.
3090 * language.h (language_data): Delete la_watch_location_expression
3091 field.
3092 (language_defn::watch_location_expression): Declare new member
3093 function.
3094 * m2-lang.c (m2_language_data): Delete
3095 la_watch_location_expression initializer.
3096 * objc-lang.c (objc_language_data): Likewise.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 * rust-lang.c (rust_watch_location_expression): Rename to
3100 rust_language::watch_location_expression.
3101 (rust_language_data): Delete la_watch_location_expression
3102 initializer.
3103 (rust_language::watch_location_expression): New member function,
3104 implementation from rust_watch_location_expression.
3105
7e56227d
AB
31062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3109 ada_language::collect_symbol_completion_matches.
3110 (ada_language_data): Delete la_collect_symbol_completion_matches
3111 initializer.
3112 (ada_language::collect_symbol_completion_matches): New member
3113 function, implementation from
3114 ada_collect_symbol_completion_matches.
3115 * c-lang.c (c_language_data): Delete
3116 la_collect_symbol_completion_matches initializer.
3117 (cplus_language_data): Likewise.
3118 (asm_language_data): Likewise.
3119 (minimal_language_data): Likewise.
3120 * d-lang.c (d_language_data): Likewise.
3121 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3122 f_language::collect_symbol_completion_matches.
3123 (f_language_data): Delete la_collect_symbol_completion_matches
3124 initializer.
3125 (f_language::collect_symbol_completion_matches) New member
3126 function, implementation from f_collect_symbol_completion_matches.
3127 * go-lang.c (go_language_data): Delete
3128 la_collect_symbol_completion_matches initializer.
3129 * language.c (unknown_language_data): Likewise.
3130 (auto_language_data): Likewise.
3131 * language.h (language_data): Delete
3132 la_collect_symbol_completion_matches field.
3133 (language_defn::collect_symbol_completion_matches): New member
3134 function.
3135 * m2-lang.c (m2_language_data): Delete
3136 la_collect_symbol_completion_matches initializer.
3137 * objc-lang.c (objc_language_data): Likewise.
3138 * opencl-lang.c (opencl_language_data): Likewise.
3139 * p-lang.c (pascal_language_data): Likewise.
3140 * rust-lang.c (rust_language_data): Likewise.
3141 * symtab.c (default_collect_symbol_completion_matches): Delete.
3142 (collect_symbol_completion_matches): Update call to
3143 collect_symbol_completion_matches.
3144 (collect_symbol_completion_matches_type): Likewise.
3145 * symtab.h (default_collect_symbol_completion_matches): Delete
3146 declaration.
3147
53fc67f8
AB
31482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3151 (ada_language_data): Delete la_word_break_characters initializer.
3152 (ada_language::word_break_characters): New member function.
3153 * c-lang.c (c_language_data): Delete la_word_break_characters
3154 initializer.
3155 (cplus_language_data): Likewise.
3156 (asm_language_data): Likewise.
3157 (minimal_language_data): Likewise.
3158 * completer.c: Update global comment.
3159 (advance_to_expression_complete_word_point): Update call to
3160 word_break_characters.
3161 (complete_files_symbols): Likewise.
3162 (complete_line_internal_1): Likewise.
3163 (default_completer_handle_brkchars): Likewise.
3164 (skip_quoted_chars): Likewise.
3165 * d-lang.c (d_language_data): Delete la_word_break_characters
3166 initializer.
3167 * f-lang.c (f_word_break_characters): Delete.
3168 (f_language_data): Delete la_word_break_characters initializer.
3169 (f_language::word_break_characters): New member function.
3170 * go-lang.c (go_language_data): Delete la_word_break_characters
3171 initializer.
3172 * language.c (unknown_language_data): Likewise.
3173 (auto_language_data): Likewise.
3174 * language.h (default_word_break_characters): Move declaration to
3175 earlier in the file.
3176 (language_data): Delete la_word_break_characters field.
3177 (language_defn::word_break_characters): New member function.
3178 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3179 initializer.
3180 * objc-lang.c (objc_language_data): Likewise.
3181 * opencl-lang.c (opencl_language_data): Likewise.
3182 * p-lang.c (pascal_language_data): Likewise.
3183 * rust-lang.c (rust_language_data): Likewise.
3184
c9debfb9
AB
31852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3188 (ada_language_data): Delete la_get_symbol_name_matcher
3189 initializer.
3190 (language_defn::get_symbol_name_matcher_inner): New member
3191 function.
3192 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3193 initializer.
3194 (cplus_language_data): Likewise.
3195 (cplus_language::get_symbol_name_matcher_inner): New member
3196 function.
3197 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3198 (minimal_language_data): Likewise.
3199 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3200 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3201 initializer.
3202 * dictionary.c (iter_match_first_hashed): Update call to
3203 get_symbol_name_matcher.
3204 (iter_match_next_hashed): Likewise.
3205 (iter_match_next_linear): Likewise.
3206 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3207 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3208 initializer.
3209 (f_language::get_symbol_name_matcher_inner): New member function.
3210 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3211 initializer.
3212 * language.c (default_symbol_name_matcher): Update header comment,
3213 make static.
3214 (language_defn::get_symbol_name_matcher): New definition.
3215 (language_defn::get_symbol_name_matcher_inner): Likewise.
3216 (get_symbol_name_matcher): Delete.
3217 (unknown_language_data): Delete la_get_symbol_name_matcher
3218 initializer.
3219 (auto_language_data): Likewise.
3220 * language.h (language_data): Delete la_get_symbol_name_matcher
3221 field.
3222 (language_defn::get_symbol_name_matcher): New member function.
3223 (language_defn::get_symbol_name_matcher_inner): Likewise.
3224 (default_symbol_name_matcher): Delete declaration.
3225 * linespec.c (find_methods): Update call to
3226 get_symbol_name_matcher.
3227 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3228 initializer.
3229 * minsyms.c (lookup_minimal_symbol): Update call to
3230 get_symbol_name_matcher.
3231 (iterate_over_minimal_symbols): Likewise.
3232 * objc-lang.c (objc_language_data): Delete
3233 la_get_symbol_name_matcher initializer.
3234 * opencl-lang.c (opencl_language_data): Likewise.
3235 * p-lang.c (pascal_language_data): Likewise.
3236 * psymtab.c (psymbol_name_matches): Update call to
3237 get_symbol_name_matcher.
3238 * rust-lang.c (rust_language_data): Delete
3239 la_get_symbol_name_matcher initializer.
3240 * symtab.c (symbol_matches_search_name): Update call to
3241 get_symbol_name_matcher.
3242 (compare_symbol_name): Likewise.
3243
9a49ad8c
AB
32442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * ada-lang.c (ada_language_data): Delete la_compute_program
3247 initializer.
3248 * c-lang.c (c_language_data): Likewise.
3249 (c_language::compute_program): New member function.
3250 (cplus_language_data): Delete la_compute_program initializer.
3251 (cplus_language::compute_program): New member function.
3252 (asm_language_data): Delete la_compute_program initializer.
3253 (minimal_language_data): Likewise.
3254 * c-lang.h (c_compute_program): Update comment.
3255 (cplus_compute_program): Likewise.
3256 * compile/compile-c-support.c (c_compute_program): Likewise.
3257 (cplus_compute_program): Likewise.
3258 * compile/compile.c (compile_to_object): Update call to
3259 la_compute_program.
3260 * d-lang.c (d_language_data): Delete la_compute_program
3261 initializer.
3262 * f-lang.c (f_language_data): Likewise.
3263 * go-lang.c (go_language_data): Likewise.
3264 * language.c (unknown_language_data): Likewise.
3265 (auto_language_data): Likewise.
3266 * language.h (language_data): Delete la_compute_program field.
3267 (language_defn::compute_program): New member function.
3268 * m2-lang.c (m2_language_data): Delete la_compute_program
3269 initializer.
3270 * objc-lang.c (objc_language_data): Likewise.
3271 * opencl-lang.c (opencl_language_data): Likewise.
3272 * p-lang.c (pascal_language_data): Likewise.
3273 * rust-lang.c (rust_language_data): Likewise.
3274
eff93b4d
AB
32752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * ada-lang.c (ada_language_data) Delete
3278 la_class_name_from_physname initializer.
3279 * c-lang.c (c_language_data): Likewise.
3280 (cplus_language_data): Likewise.
3281 (cplus_language::class_name_from_physname): New member function.
3282 (asm_language_data): Delete la_class_name_from_physname
3283 initializer.
3284 (minimal_language_data): Likewise.
3285 * d-lang.c (d_language_data): Likewise.
3286 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3287 method on language_defn class.
3288 (guess_full_die_structure_name): Likewise.
3289 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3290 initializer.
3291 * go-lang.c (go_language_data): Likewise.
3292 * language.c (language_class_name_from_physname): Delete.
3293 (unk_lang_class_name): Delete.
3294 (unknown_language_data): Delete la_class_name_from_physname
3295 initializer.
3296 (auto_language_data): Likewise.
3297 * language.h (language_data): Delete la_class_name_from_physname
3298 field.
3299 (language_defn::class_name_from_physname): New function.
3300 (language_class_name_from_physname): Delete declaration.
3301 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3302 initializer.
3303 * objc-lang.c (objc_language_data): Likewise.
3304 * opencl-lang.c (opencl_language_data): Likewise.
3305 * p-lang.c (pascal_language_data): Likewise.
3306 * rust-lang.c (rust_language_data): Likewise.
3307
de543742
TT
33082020-06-16 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-data.h (STATUS_NAME): New macro.
3311 * tui/tui-layout.c (tui_remove_some_windows)
3312 (initialize_known_windows, tui_register_window)
3313 (tui_layout_split::remove_windows, initialize_layouts)
3314 (tui_new_layout_command): Don't use hard-coded window names.
3315
a350efd4
TT
33162020-06-16 Tom Tromey <tom@tromey.com>
3317
3318 PR tui/25348:
3319 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3320 tui_initialize_readline. Only run once. Call rl_initialize.
3321 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3322 tui_initialize_readline.
3323 * tui/tui-io.c (tui_setup_io): Call
3324 tui_ensure_readline_initialized.
3325 * tui/tui-interp.c (tui_interp::init): Update.
3326
39ec0490
TT
33272020-06-16 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3330 Also preserve the status window.
3331
d2d1ea20
TT
33322020-06-16 Tom Tromey <tom@tromey.com>
3333
3334 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3335 where m_window==nullptr.
3336
66920317
TT
33372020-06-15 Tom Tromey <tromey@adacore.com>
3338
3339 * windows-nat.c (windows_nat::handle_output_debug_string):
3340 Update.
3341 (windows_nat::handle_ms_vc_exception): Update.
3342 * target.h (target_read_string): Change API.
3343 * target.c (target_read_string): Change API.
3344 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3345 Update.
3346 * solib-frv.c (frv_current_sos): Update.
3347 * solib-dsbt.c (dsbt_current_sos): Update.
3348 * solib-darwin.c (darwin_current_sos): Update.
3349 * linux-thread-db.c (inferior_has_bug): Update.
3350 * expprint.c (print_subexp_standard): Update.
3351 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3352 (ada_exception_message_1): Update.
3353
a5d871dd
TT
33542020-06-15 Tom Tromey <tromey@adacore.com>
3355
3356 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3357
670e35fa
TT
33582020-06-15 Tom Tromey <tromey@adacore.com>
3359
3360 * valprint.c (read_string): Update comment.
3361 * target.c (MIN): Remove.
3362 (target_read_string): Rewrite.
3363
f5272a3b
TT
33642020-06-15 Tom Tromey <tromey@adacore.com>
3365
3366 * corefile.c (read_memory_string): Remove.
3367 * ada-valprint.c (ada_value_print_ptr): Update.
3368 * ada-lang.h (ada_tag_name): Change return type.
3369 * ada-lang.c (type_from_tag): Update.
3370 (ada_tag_name_from_tsd): Change return type. Use
3371 target_read_string.
3372 (ada_tag_name): Likewise.
3373 * gdbcore.h (read_memory_string): Don't declare.
3374
2c074f49
HD
33752020-06-14 Hannes Domani <ssbssa@yahoo.de>
3376
3377 * symtab.c (rbreak_command): Ignore Windows drive colon.
3378
6a17d503
SM
33792020-06-12 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * NEWS: Mention removed GDBserver host support.
3382
453c733f
NC
33832020-06-12 Nelson Chu <nelson.chu@sifive.com>
3384
3385 * features/riscv/rebuild-csr-xml.sh: Updated.
3386
2b4e6a3f
TT
33872020-06-11 Tom Tromey <tom@tromey.com>
3388
3389 PR gdb/18318:
3390 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3391
4412332f
JG
33922020-06-09 Jonny Grant <jg@jguk.org>
33932020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * main.c (captured_main_1): Don't print new line after help.
3396 (print_gdb_help): add mailing list and IRC channel information
3397 to --help. Add new lines between items in the footer. Remove
3398 quotes around bug url.
3399
2f33032a
KS
34002020-06-11 Keith Seitz <keiths@redhat.com>
3401
3402 PR gdb/21356
3403 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3404 Resolve typedefs for type length calculations.
3405
7ab96794
TV
34062020-06-10 Tom de Vries <tdevries@suse.de>
3407
3408 PR ada/24713
3409 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3410 (write_psymbols): Enable .gdb_index for ada.
3411 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3412 ada.
3413
e5f3ece2
TV
34142020-06-10 Tom de Vries <tdevries@suse.de>
3415
3416 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3417 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3418 namei" instead of "const char *name" argument.
3419 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3420 dw2_symtab_iter_init.
3421
940da03e
SM
34222020-06-08 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3425 to use type::field and field::type instead.
3426
b6cdac4b
SM
34272020-06-08 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3430 to use field::type instead.
3431
5d14b6e5
SM
34322020-06-08 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * gdbtypes.h (struct field) <type, set_type>: New methods.
3435 Rename `type` field to...
3436 <m_type>: ... this. Change references throughout to use type or
3437 set_type methods.
3438 (FIELD_TYPE): Use field::type. Change call sites that modify
3439 the field's type to use field::set_type instead.
3440
3d967001
SM
34412020-06-08 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3444 to use type::index_type instead.
3445
262abc0d
SM
34462020-06-08 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3449 methods.
3450 (TYPE_INDEX_TYPE): Use type::index_type.
3451 * gdbtypes.c (create_array_type_with_stride): Likewise.
3452
82836c92
TT
34532020-06-07 Tom Tromey <tom@tromey.com>
3454
3455 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3456 parameter.
3457 (generic_value_print): Update.
3458
940dace9
AB
34592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 Revert commit 982a38f60b0.
3462 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3463
982a38f6
AB
34642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3467 avoid use after free.
3468
82f06518
TV
34692020-06-05 Tom de Vries <tdevries@suse.de>
3470
3471 * NEWS: Fix typos.
3472
f8c41851
SM
34732020-06-04 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3476 the per_bfd object.
3477 (dwarf2_read_debug_names): Likewise.
3478 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3479 object when re-using a per_bfd object with an index.
3480
f9b5d5ea
TV
34812020-06-03 Tom de Vries <tdevries@suse.de>
3482
3483 PR symtab/26046
3484 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3485 children for C++.
3486 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3487 DW_TAG_subprogram.
3488
f6eee2d0
AB
34892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * ada-lang.c (ada_language_data): Delete skip_trampoline
3492 initializer.
3493 * c-lang.c (c_language_data): Likewise.
3494 (cplus_language_data): Likewise.
3495 (cplus_language::skip_trampoline): New member function.
3496 (asm_language_data): Delete skip_trampoline initializer.
3497 (minimal_language_data): Likewise.
3498 * d-lang.c (d_language_data): Likewise.
3499 * f-lang.c (f_language_data): Likewise.
3500 * go-lang.c (go_language_data): Likewise.
3501 * language.c (unk_lang_trampoline): Delete function.
3502 (skip_language_trampoline): Update.
3503 (unknown_language_data): Delete skip_trampoline initializer.
3504 (auto_language_data): Likewise.
3505 * language.h (language_data): Delete skip_trampoline field.
3506 (language_defn::skip_trampoline): New function.
3507 * m2-lang.c (m2_language_data): Delete skip_trampoline
3508 initializer.
3509 * objc-lang.c (objc_skip_trampoline): Delete function, move
3510 implementation to objc_language::skip_trampoline.
3511 (objc_language_data): Delete skip_trampoline initializer.
3512 (objc_language::skip_trampoline): New member function with
3513 implementation from objc_skip_trampoline.
3514 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3515 initializer.
3516 * p-lang.c (pascal_language_data): Likewise.
3517 * rust-lang.c (rust_language_data): Likewise.
3518
0a50df5d
AB
35192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3522 (ada_language::demangle): New member function.
3523 * c-lang.c (c_language_data): Delete la_demangle initializer.
3524 (cplus_language_data): Delete la_demangle initializer.
3525 (cplus_language::demangle): New member function.
3526 (asm_language_data): Delete la_demangle initializer.
3527 (minimal_language_data): Delete la_demangle initializer.
3528 * d-lang.c (d_language_data): Delete la_demangle initializer.
3529 (d_language::demangle): New member function.
3530 * f-lang.c (f_language_data): Delete la_demangle initializer.
3531 (f_language::demangle): New member function.
3532 * go-lang.c (go_language_data): Delete la_demangle initializer.
3533 (go_language::demangle): New member function.
3534 * language.c (language_demangle): Update.
3535 (unk_lang_demangle): Delete.
3536 (unknown_language_data): Delete la_demangle initializer.
3537 (unknown_language::demangle): New member function.
3538 (auto_language_data): Delete la_demangle initializer.
3539 (auto_language::demangle): New member function.
3540 * language.h (language_data): Delete la_demangle field.
3541 (language_defn::demangle): New function.
3542 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3543 * objc-lang.c (objc_language_data): Delete la_demangle
3544 initializer.
3545 (objc_language::demangle): New member function.
3546 * opencl-lang.c (opencl_language_data): Delete la_demangle
3547 initializer.
3548 * p-lang.c (pascal_language_data): Likewise.
3549 * rust-lang.c (rust_language_data): Likewise.
3550 (rust_language::demangle): New member function.
3551
fbfb0a46
AB
35522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * ada-lang.c (ada_language_data): Delete la_print_type
3555 initializer.
3556 (ada_language::print_type): New member function.
3557 * c-lang.c (c_language_data): Delete la_print_type initializer.
3558 (c_language::print_type): New member function.
3559 (cplus_language_data): Delete la_print_type initializer.
3560 (cplus_language::print_type): New member function.
3561 (asm_language_data): Delete la_print_type initializer.
3562 (asm_language::print_type): New member function.
3563 (minimal_language_data): Delete la_print_type initializer.
3564 (minimal_language::print_type): New member function.
3565 * d-lang.c (d_language_data): Delete la_print_type initializer.
3566 (d_language::print_type): New member function.
3567 * f-lang.c (f_language_data): Delete la_print_type initializer.
3568 (f_language::print_type): New member function.
3569 * go-lang.c (go_language_data): Delete la_print_type initializer.
3570 (go_language::print_type): New member function.
3571 * language.c (unk_lang_print_type): Delete.
3572 (unknown_language_data): Delete la_print_type initializer.
3573 (unknown_language::print_type): New member function.
3574 (auto_language_data): Delete la_print_type initializer.
3575 (auto_language::print_type): New member function.
3576 * language.h (language_data): Delete la_print_type field.
3577 (language_defn::print_type): New function.
3578 (LA_PRINT_TYPE): Update.
3579 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3580 (m2_language::print_type): New member function.
3581 * objc-lang.c (objc_language_data): Delete la_print_type
3582 initializer.
3583 (objc_language::print_type): New member function.
3584 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3585 to opencl_language::print_type.
3586 (opencl_language_data): Delete la_print_type initializer.
3587 (opencl_language::print_type): New member function, implementation
3588 from opencl_print_type.
3589 * p-lang.c (pascal_language_data): Delete la_print_type
3590 initializer.
3591 (pascal_language::print_type): New member function.
3592 * rust-lang.c (rust_print_type): Delete, implementation moved to
3593 rust_language::print_type.
3594 (rust_language_data): Delete la_print_type initializer.
3595 (rust_language::print_type): New member function, implementation
3596 from rust_print_type.
3597
6f827019
AB
35982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3601 implementation moves to...
3602 (ada_language::sniff_from_mangled_name): ...here. Update return
3603 type.
3604 (ada_language_data): Delete la_sniff_from_mangled_name
3605 initializer.
3606 * c-lang.c (c_language_data): Likewise.
3607 (cplus_language_data): Likewise.
3608 (cplus_language::sniff_from_mangled_name): New member function,
3609 implementation taken from gdb_sniff_from_mangled_name.
3610 (asm_language_data): Delete la_sniff_from_mangled_name
3611 initializer.
3612 (minimal_language_data): Likewise.
3613 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3614 implementation moves to cplus_language::sniff_from_mangled_name.
3615 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3616 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3617 moves to...
3618 (d_language::sniff_from_mangled_name): ...here.
3619 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3620 * f-lang.c (f_language_data): Likewise.
3621 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3622 moves to...
3623 (go_language::sniff_from_mangled_name): ...here.
3624 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3625 * language.c (language_sniff_from_mangled_name): Delete.
3626 (unknown_language_data): Delete la_sniff_from_mangled_name
3627 initializer.
3628 (auto_language_data): Likewise.
3629 * language.h (language_data): Delete la_sniff_from_mangled_name
3630 field.
3631 (language_defn::sniff_from_mangled_name): New function.
3632 (language_sniff_from_mangled_name): Delete declaration.
3633 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3634 field.
3635 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3636 implementation moves to...
3637 (objc_language::sniff_from_mangled_name): ...here.
3638 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3639 * opencl-lang.c (opencl_language_data): Likewise.
3640 * p-lang.c (pascal_language_data): Likewise.
3641 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3642 implementation moves to...
3643 (rust_language::sniff_from_mangled_name): ...here.
3644 (rust_language_data): Delete la_sniff_from_mangled_name
3645 initializer.
3646 * symtab.c (symbol_find_demangled_name): Call
3647 sniff_from_mangled_name member function.
3648
fb8006fd
AB
36492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3652 initializer.
3653 * c-lang.c (c_language_data): Likewise.
3654 (cplus_language_data): Likewise.
3655 (cplus_language::search_name_hash): New member function.
3656 (asm_language_data): Delete la_search_name_hash initializer.
3657 (minimal_language_data): Likewise.
3658 * d-lang.c (d_language_data): Likewise.
3659 * dictionary.c (default_search_name_hash): Rename to...
3660 (language_defn::search_name_hash): ...this.
3661 * f-lang.c (f_language_data): Likewise.
3662 (f_language::search_name_hash): New member function.
3663 * go-lang.c (go_language_data): Delete la_search_name_hash
3664 initializer.
3665 * language.c (unknown_language_data): Likewise.
3666 (auto_language_data): Likewise.
3667 * language.h (struct language_data): Delete la_search_name_hash
3668 field.
3669 (language_defn::search_name_hash): Declare new member function.
3670 (default_search_name_hash): Delete declaration.
3671 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3672 initializer.
3673 * objc-lang.c (objc_language_data): Likewise.
3674 * opencl-lang.c (opencl_language_data): Likewise.
3675 * p-lang.c (pascal_language_data): Likewise.
3676 * rust-lang.c (rust_language_data): Likewise.
3677 * symtab.c (search_name_hash): Update call.
3678
8e25bafe
AB
36792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3682 initializer.
3683 * c-lang.c (class compile_instance): Declare.
3684 (c_language_data): Delete la_get_compile_instance initializer.
3685 (c_language::get_compile_instance): New member function.
3686 (cplus_language_data): Delete la_get_compile_instance initializer.
3687 (cplus_language::get_compile_instance): New member function.
3688 (asm_language_data): Delete la_get_compile_instance initializer.
3689 (minimal_language_data): Likewise.
3690 * c-lang.h (c_get_compile_context): Update comment.
3691 (cplus_get_compile_context): Update comment.
3692 * compile/compile.c (compile_to_object): Update calls, don't rely
3693 on function pointer being NULL.
3694 * d-lang.c (d_language_data): Delete la_get_compile_instance
3695 initializer.
3696 * f-lang.c (f_language_data): Likewise.
3697 * go-lang.c (go_language_data): Likewise.
3698 * language.c (unknown_language_data): Likewise.
3699 (auto_language_data): Likewise.
3700 * language.h (language_data): Delete la_get_compile_instance field.
3701 (language_defn::get_compile_instance): New member function.
3702 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3703 initializer.
3704 * objc-lang.c (objc_language_data): Likewise.
3705 * opencl-lang.c (opencl_language_data): Likewise.
3706 * p-lang.c (pascal_language_data): Likewise.
3707 * rust-lang.c (rust_language_data): Likewise.
3708
4009ee92
AB
37092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * ada-lang.c (ada_add_all_symbols): Update comment.
3712 (ada_iterate_over_symbols): Delete, move implementation to...
3713 (ada_language::iterate_over_symbols): ...here, a new member
3714 function, rewrite to use range based for loop.
3715 (ada_language_data): Delete la_iterate_over_symbols initializer.
3716 * c-lang.c (c_language_data): Likewise.
3717 (cplus_language_data): Likewise.
3718 (asm_language_data): Likewise.
3719 (minimal_language_data): Likewise.
3720 * d-lang.c (d_language_data): Likewise.
3721 * f-lang.c (f_language_data): Likewise.
3722 * go-lang.c (go_language_data): Likewise.
3723 * language.c (unknown_language_data): Likewise.
3724 (auto_language_data): Likewise.
3725 * language.h (language_data): Delete la_iterate_over_symbols field.
3726 (language_defn::iterate_over_symbols): New member function.
3727 (LA_ITERATE_OVER_SYMBOLS): Update.
3728 * linespec.c (iterate_over_all_matching_symtabs): Update.
3729 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3730 initializer.
3731 * objc-lang.c (objc_language_data): Likewise.
3732 * opencl-lang.c (opencl_language_data): Likewise.
3733 * p-lang.c (pascal_language_data): Likewise.
3734 * rust-lang.c (rust_language_data): Likewise.
3735
54f4ca46
AB
37362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * ada-lang.c (ada_language_data): Delete
3739 la_lookup_transparent_type initializer.
3740 * c-lang.c (c_language_data): Likewise.
3741 (cplus_language_data): Likewise.
3742 (cplus_language::lookup_transparent_type): New member function.
3743 (asm_language_data): Delete la_lookup_transparent_type
3744 initializer.
3745 (minimal_language_data): Likewise.
3746 * d-lang.c (d_language_data): Likewise.
3747 * f-lang.c (f_language_data): Likewise.
3748 * go-lang.c (go_language_data): Likewise.
3749 * language.c (unknown_language_data): Likewise.
3750 (auto_language_data): Likewise.
3751 * language.h (struct language_data): Delete
3752 la_lookup_transparent_type field.
3753 (language_defn::lookup_transparent_type): New member function.
3754 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3755 initializer.
3756 * objc-lang.c (objc_language_data): Likewise.
3757 * opencl-lang.c (opencl_language_data): Likewise.
3758 * p-lang.c (pascal_language_data): Likewise.
3759 * rust-lang.c (rust_language_data): Likewise.
3760 * symtab.c (symbol_matches_domain): Update call.
3761
1fb314aa
AB
37622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * ada-lang.c (ada_language_arch_info): Delete function, move
3765 implementation to...
3766 (ada_language::language_arch_info): ...here, a new member
3767 function.
3768 (ada_language_data): Delete la_language_arch_info.
3769 * c-lang.c (c_language_data): Likewise.
3770 (c_language::language_arch_info): New member function.
3771 (cplus_language_arch_info): Delete function, move
3772 implementation to...
3773 (cplus_language::language_arch_info): ...here, a new member
3774 function.
3775 (cplus_language_data): Delete la_language_arch_info.
3776 (asm_language_data): Likewise.
3777 (asm_language::language_arch_info): New member function.
3778 (minimal_language_data): Delete la_language_arch_info.
3779 (minimal_language::language_arch_info): New member function.
3780 * d-lang.c (d_language_arch_info): Delete function, move
3781 implementation to...
3782 (d_language::language_arch_info): ...here, a new member
3783 function.
3784 (d_language_data): Delete la_language_arch_info.
3785 * f-lang.c (f_language_arch_info): Delete function, move
3786 implementation to...
3787 (f_language::language_arch_info): ...here, a new member
3788 function.
3789 (f_language_data): Delete la_language_arch_info.
3790 * go-lang.c (go_language_arch_info): Delete function, move
3791 implementation to...
3792 (go_language::language_arch_info): ...here, a new member
3793 function.
3794 (go_language_data): Delete la_language_arch_info.
3795 * language.c (unknown_language_data): Likewise.
3796 (unknown_language::language_arch_info): New member function.
3797 (auto_language_data): Delete la_language_arch_info.
3798 (auto_language::language_arch_info): New member function.
3799 (language_gdbarch_post_init): Update call to
3800 la_language_arch_info.
3801 * language.h (language_data): Delete la_language_arch_info
3802 function pointer.
3803 (language_defn::language_arch_info): New function.
3804 * m2-lang.c (m2_language_arch_info): Delete function, move
3805 implementation to...
3806 (m2_language::language_arch_info): ...here, a new member
3807 function.
3808 (m2_language_data): Delete la_language_arch_info.
3809 * objc-lang.c (objc_language_arch_info): Delete function, move
3810 implementation to...
3811 (objc_language::language_arch_info): ...here, a new member
3812 function.
3813 (objc_language_data): Delete la_language_arch_info.
3814 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3815 implementation to...
3816 (opencl_language::language_arch_info): ...here, a new member
3817 function.
3818 (opencl_language_data): Delete la_language_arch_info.
3819 * p-lang.c (pascal_language_arch_info): Delete function, move
3820 implementation to...
3821 (pascal_language::language_arch_info): ...here, a new member
3822 function.
3823 (pascal_language_data): Delete la_language_arch_info.
3824 * rust-lang.c (rust_language_arch_info): Delete function, move
3825 implementation to...
3826 (rust_language::language_arch_info): ...here, a new member
3827 function.
3828 (rust_language_data): Delete la_language_arch_info.
3829
48448202
AB
38302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3833 initializer.
3834 * c-lang.c (c_language_data): Likewise.
3835 (cplus_language_data): Likewise.
3836 (cplus_language::pass_by_reference_info): New method.
3837 (asm_language_data): Delete la_pass_by_reference initializer.
3838 (minimal_language_data): Likewise.
3839 * cp-abi.c (cp_pass_by_reference): Remove use of
3840 default_pass_by_reference.
3841 * d-lang.c (d_language_data): Likewise.
3842 * f-lang.c (f_language_data): Likewise.
3843 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3844 default_pass_by_reference.
3845 * go-lang.c (go_language_data): Likewise.
3846 * language.c (language_pass_by_reference): Update.
3847 (default_pass_by_reference): Delete.
3848 (unknown_language_data): Delete la_pass_by_reference
3849 initializer.
3850 (auto_language_data): Likewise.
3851 * language.h (struct language_data): Delete la_pass_by_reference
3852 field.
3853 (language_defn::pass_by_reference_info): New member function.
3854 (default_pass_by_reference): Delete declaration.
3855 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3856 initializer.
3857 * objc-lang.c (objc_language_data): Likewise.
3858 * opencl-lang.c (opencl_language_data): Likewise.
3859 * p-lang.c (pascal_language_data): Likewise.
3860 * rust-lang.c (rust_language_data): Likewise.
3861
15e5fd35
AB
38622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * ada-lang.c (ada_read_var_value): Delete function, move
3865 implementation to...
3866 (ada_language::read_var_value): ...here.
3867 (ada_language_data): Delete la_read_var_value initializer.
3868 * c-lang.c (c_language_data): Likewise.
3869 (cplus_language_data): Likewise.
3870 (minimal_language_data): Likewise.
3871 * d-lang.c (d_language_data): Likewise.
3872 * f-lang.c (f_language_data): Likewise.
3873 * findvar.c (default_read_var_value): Rename to...
3874 (language_defn::read_var_value): ...this.
3875 * findvar.c (read_var_value): Update header comment, and change to
3876 call member function instead of function pointer.
3877 * go-lang.c (go_language_data): Likewise.
3878 * language.c (unknown_language_data): Delete la_read_var_value
3879 initializer.
3880 (auto_language_data): Likewise.
3881 * language.h (struct language_data): Delete la_read_var_value
3882 field.
3883 (language_defn::read_var_value): New member function.
3884 (default_read_var_value): Delete declaration.
3885 * m2-lang.c (m2_language_data): Delete la_read_var_value
3886 initializer.
3887 * objc-lang.c (objc_language_data): Likewise.
3888 * opencl-lang.c (opencl_language_data): Likewise.
3889 * p-lang.c (pascal_language_data): Likewise.
3890 * rust-lang.c (rust_language_data): Likewise.
3891 * value.h (default_read_var_value): Delete declaration.
3892
5bd40f2a
AB
38932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * ada-lang.c (ada_print_array_index): Delete function, move
3896 implementation to...
3897 (ada_language::print_array_index): ...here.
3898 (ada_language_data): Delete la_print_array_index initializer.
3899 * c-lang.c (c_language_data): Likewise.
3900 (cplus_language_data): Likewise.
3901 (minimal_language_data): Likewise.
3902 * d-lang.c (d_language_data): Likewise.
3903 * f-lang.c (f_language_data): Likewise.
3904 * go-lang.c (go_language_data): Likewise.
3905 * language.c (default_print_array_index): Delete function, move
3906 implementation to...
3907 (language_defn::print_array_index): ...here.
3908 (unknown_language_data): Delete la_print_array_index initializer.
3909 (auto_language_data): Likewise.
3910 * language.h (struct language_data): Delete la_print_array_index
3911 field.
3912 (language_defn::print_array_index): New member function.
3913 (LA_PRINT_ARRAY_INDEX): Update.
3914 (default_print_array_index): Delete declaration.
3915 * m2-lang.c (m2_language_data): Delete la_print_array_index
3916 initializer.
3917 * objc-lang.c (objc_language_data): Likewise.
3918 * opencl-lang.c (opencl_language_data): Likewise.
3919 * p-lang.c (pascal_language_data): Likewise.
3920 * rust-lang.c (rust_language_data): Likewise.
3921
0874fd07
AB
39222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * gdb/ada-lang.c (ada_language_defn): Convert to...
3925 (ada_language_data): ...this.
3926 (class ada_language): New class.
3927 (ada_language_defn): New static global.
3928 * gdb/c-lang.c (c_language_defn): Convert to...
3929 (c_language_data): ...this.
3930 (class c_language): New class.
3931 (c_language_defn): New static global.
3932 (cplus_language_defn): Convert to...
3933 (cplus_language_data): ...this.
3934 (class cplus_language): New class.
3935 (cplus_language_defn): New static global.
3936 (asm_language_defn): Convert to...
3937 (asm_language_data): ...this.
3938 (class asm_language): New class.
3939 (asm_language_defn): New static global.
3940 (minimal_language_defn): Convert to...
3941 (minimal_language_data): ...this.
3942 (class minimal_language): New class.
3943 (minimal_language_defn): New static global.
3944 * gdb/d-lang.c (d_language_defn): Convert to...
3945 (d_language_data): ...this.
3946 (class d_language): New class.
3947 (d_language_defn): New static global.
3948 * gdb/f-lang.c (f_language_defn): Convert to...
3949 (f_language_data): ...this.
3950 (class f_language): New class.
3951 (f_language_defn): New static global.
3952 * gdb/go-lang.c (go_language_defn): Convert to...
3953 (go_language_data): ...this.
3954 (class go_language): New class.
3955 (go_language_defn): New static global.
3956 * gdb/language.c (unknown_language_defn): Remove declaration.
3957 (current_language): Initialize to nullptr, real initialization is
3958 moved to _initialize_language.
3959 (languages): Delete global.
3960 (language_defn::languages): Define.
3961 (set_language_command): Use language_defn::languages.
3962 (set_language): Likewise.
3963 (range_error): Likewise.
3964 (language_enum): Likewise.
3965 (language_def): Likewise.
3966 (add_set_language_command): Use language_def::languages for the
3967 language list, and language_def to lookup language pointers.
3968 (skip_language_trampoline): Use language_defn::languages.
3969 (unknown_language_defn): Convert to...
3970 (unknown_language_data): ...this.
3971 (class unknown_language): New class.
3972 (unknown_language_defn): New static global.
3973 (auto_language_defn): Convert to...
3974 (auto_language_data): ...this.
3975 (class auto_language): New class.
3976 (auto_language_defn): New static global.
3977 (language_gdbarch_post_init): Use language_defn::languages.
3978 (_initialize_language): Initialize current_language.
3979 * gdb/language.h (struct language_defn): Rename to...
3980 (struct language_data): ...this.
3981 (struct language_defn): New.
3982 (auto_language_defn): Delete.
3983 (unknown_language_defn): Delete.
3984 (minimal_language_defn): Delete.
3985 (ada_language_defn): Delete.
3986 (asm_language_defn): Delete.
3987 (c_language_defn): Delete.
3988 (cplus_language_defn): Delete.
3989 (d_language_defn): Delete.
3990 (f_language_defn): Delete.
3991 (go_language_defn): Delete.
3992 (m2_language_defn): Delete.
3993 (objc_language_defn): Delete.
3994 (opencl_language_defn): Delete.
3995 (pascal_language_defn): Delete.
3996 (rust_language_defn): Delete.
3997 * gdb/m2-lang.c (m2_language_defn): Convert to...
3998 (m2_language_data): ...this.
3999 (class m2_language): New class.
4000 (m2_language_defn): New static global.
4001 * gdb/objc-lang.c (objc_language_defn): Convert to...
4002 (objc_language_data): ...this.
4003 (class objc_language): New class.
4004 (objc_language_defn): New static global.
4005 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4006 (opencl_language_data): ...this.
4007 (class opencl_language): New class.
4008 (opencl_language_defn): New static global.
4009 * gdb/p-lang.c (pascal_language_defn): Convert to...
4010 (pascal_language_data): ...this.
4011 (class pascal_language): New class.
4012 (pascal_language_defn): New static global.
4013 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4014 language pointer, update comment format.
4015 * gdb/rust-lang.c (rust_language_defn): Convert to...
4016 (rust_language_data): ...this.
4017 (class rust_language): New class.
4018 (rust_language_defn): New static global.
4019
1313c56e
AB
40202020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4023 member variable.
4024 <m_stmt_at_address>: New member variable.
4025 (lnp_state_machine::record_line): Don't record some lines, update
4026 tracking of is_stmt at the same address.
4027 (lnp_state_machine::lnp_state_machine): Initialise new member
4028 variables.
4029
b7ed9f3d
ST
40302020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4031
4032 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4033 "-include gnu-nat-mig.h".
4034 * gnu-nat-mig.h: New file.
4035 * gnu-nat.c: Include "gnu-nat-mig.h".
4036 (exc_server, msg_reply_server, notify_server,
4037 process_reply_server): Remove declarations.
4038
14a8ad62
ST
40392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4040
4041 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4042 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4043 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4044 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4045 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4046 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4047 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4048 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4049 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4050 to gnu_nat_target class.
4051 * gnu-nat.c: Likewise.
4052 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4053 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4054 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4055 object.
4056 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4057 instead of `gnu_target'.
4058
0af5e106
ST
40592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4060
4061 * i386-gnu-tdep.c: Include "gdbcore.h"
4062 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4063 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4064 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4065 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4066 i386_gnu_sigcontext_addr): New functions
4067 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4068 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4069 tdep.
4070
078f2fc9
ST
40712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4072
4073 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4074 before fork_inferior call. Avoid calling it if target_is_pushed returns
4075 true.
4076
53dff92c
ST
40772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4078
4079 * gnu-nat.h (gnu_target): New variable declaration.
4080 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4081 gnu_target.
4082 * gnu-nat.c (gnu_target): New variable.
4083 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4084 add_thread_silent, and add_thread calls.
4085 (gnu_nat_target::create_inferior): Pass gnu_target to
4086 add_thread_silent, thread_change_ptid call.
4087 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4088 call.
4089
5a8b8627
ST
40902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4091
4092 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4093 (gnu_nat_target::find_memory_regions): Remove unused
4094 `old_address' variable.
4095
366f550a
ST
40962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4097
4098 * gnu-nat.c: Include "gdbarch.h".
4099
f14871bf
ST
41002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4101
4102 * reply_mig_hack.awk (Error return): Cast function through
4103 void *, to bypass compiler function call check.
4104
c6887cfb
ST
41052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4106
4107 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4108 $(srcdir)/reply_mig_hack.awk.
4109
6930bffe
ST
41102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4111
4112 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4113
112c22ed
JG
41142020-05-30 Jonny Grant <jg@jguk.org>
4115
4116 * configure.ac (ACX_BUGURL): change bug URL to https.
4117
f68f85b5
PA
41182020-05-30 Pedro Alves <palves@redhat.com>
4119
4120 * cp-support.c (replace_typedefs_template): New.
4121 (replace_typedefs_qualified_name): Handle
4122 DEMANGLE_COMPONENT_TEMPLATE.
4123
976ca316
SM
41242020-05-29 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4127 dwarf2/index-cache.h, dwarf2/index-write.c,
4128 dwarf2/index-write.h, dwarf2/line-header.c,
4129 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4130 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4131 variables and fields from `dwarf2_per_objfile` to just
4132 `per_objfile` throughout.
4133
989ade05
SM
41342020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4137 <push_dwarf_reg_entry_value>: Add comment.
4138
c47bae85
KB
41392020-05-28 Kevin Buettner <kevinb@redhat.com>
4140 Keith Seitz <keiths@redhat.com>
4141
4142 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4143 instead of PyEval_ReleaseLock.
4144 (class gdbpy_gil): Move to earlier in file.
4145 (finalize_python): Set gdb_python_initialized.
4146 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4147 when not initialized.
4148
44486dcf
SM
41492020-05-28 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4152 <push_dwarf_reg_entry_value>: Remove assert. Override
4153 per_objfile with caller_per_objfile.
4154
f030440d
TV
41552020-05-28 Tom de Vries <tdevries@suse.de>
4156
4157 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4158 PR gold/15646 workaround to symbol kind "type".
4159
f0fbb768
TT
41602020-05-27 Tom Tromey <tromey@adacore.com>
4161
4162 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4163
af0b2a3e
TT
41642020-05-27 Tom Tromey <tromey@adacore.com>
4165
4166 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4167 Use htab_find_with_hash.
4168 <add_abbrev>: Remove "abbrev_number" parameter.
4169 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4170 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4171 (hash_abbrev): Add comment.
4172 (abbrev_table::lookup_abbrev): Move to header file.
4173 (abbrev_table::read): Update.
4174
7d00ffec
TT
41752020-05-27 Tom Tromey <tromey@adacore.com>
4176
4177 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4178 method.
4179 <canonical_name>: New member.
4180 <raw_name>: Rename from "name".
4181 (partial_die_info): Initialize canonical_name.
4182 (scan_partial_symbols): Check raw_name.
4183 (partial_die_parent_scope, partial_die_full_name)
4184 (add_partial_symbol, add_partial_subprogram)
4185 (add_partial_enumeration, load_partial_dies): Use "name" method.
4186 (partial_die_info::name): New method.
4187 (partial_die_info::read, guess_partial_die_structure_name)
4188 (partial_die_info::fixup): Update.
4189
697bba18
TT
41902020-05-27 Tom Tromey <tromey@adacore.com>
4191
4192 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4193 <get_ref_die_offset>: Inline.
4194 <get_ref_die_offset_complaint>: New method.
4195 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4196 (attribute::get_ref_die_offset_complaint): Rename from
4197 get_ref_die_offset. Just issue complaint.
4198
c17ace43
HD
41992020-05-27 Hannes Domani <ssbssa@yahoo.de>
4200
4201 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4202
96445f0b
HD
42032020-05-27 Hannes Domani <ssbssa@yahoo.de>
4204
4205 * exec.c (exec_file_attach): Use errno value of first openp failure.
4206
ac637ec3
HD
42072020-05-27 Hannes Domani <ssbssa@yahoo.de>
4208
4209 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4210 Don't close thread handle.
4211
17ee85fc
TT
42122020-05-27 Tom Tromey <tom@tromey.com>
4213 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4216 shared_ptr.
4217 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4218 member.
4219 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4220 dwarf2_per_bfd_objfile_data_key>: New globals.
4221 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4222 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4223 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4224 shared.
4225 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4226 short-circuit when sharing.
4227 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4228 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4229
39b16f87
SM
42302020-05-27 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4233 to...
4234 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4235 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4236
fcf23d5b
SM
42372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4240 build_name_components, find_name_components_bounds>:
4241 Add per_objfile parameter.
4242 (struct mapped_index) <symbol_name_at>: Likewise.
4243 (struct mapped_debug_names): Remove constructor.
4244 <dwarf2_per_objfile>: Remove field.
4245 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4246 (mapped_index_base::find_name_components_bounds,
4247 mapped_index_base::build_name_components,
4248 dw2_expand_symtabs_matching_symbol): Likewise.
4249 (class mock_mapped_index) <symbol_name_at>: Likewise.
4250 (check_match): Likewise.
4251 (check_find_bounds_finds): Likewise.
4252 (test_mapped_index_find_name_component_bounds): Update.
4253 (CHECK_MATCH): Update.
4254 (dw2_expand_symtabs_matching): Update.
4255 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4256 per_objfile parameter.
4257 <find_vec_in_debug_names>: Likewise.
4258 <m_per_objfile>: New field.
4259 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4260 parameter.
4261 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4262 (dw2_debug_names_iterator::next): Update.
4263 (dw2_debug_names_lookup_symbol): Update.
4264 (dw2_debug_names_expand_symtabs_for_function): Update.
4265 (dw2_debug_names_map_matching_symbols): Update.
4266 (dw2_debug_names_expand_symtabs_matching): Update.
4267 (dwarf2_read_debug_names): Update.
4268
7188ed02
SM
42692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4272 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4273 move to dwarf2_per_objfile.
4274 <read_in_chain>: Remove.
4275 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4276 remove_all_cus, age_comp_units>: New methods.
4277 <m_dwarf2_cus>: New member.
4278 (struct dwarf2_per_cu_data) <cu>: Remove.
4279 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4280 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4281 moved to methods of dwarf2_per_objfile.
4282 (dwarf2_clear_marks): Remove.
4283 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4284 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4285 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4286 (dwarf2_per_objfile::remove_all_cus): New.
4287 (class free_cached_comp_units) <~free_cached_comp_units>:
4288 Update.
4289 (load_cu): Update.
4290 (dw2_do_instantiate_symtab): Adjust.
4291 (fill_in_sig_entry_from_dwo_entry): Adjust.
4292 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4293 (cutu_reader::cutu_reader): Likewise.
4294 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4295 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4296 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4297 and dwarf2_per_objfile::age_comp_units.
4298 (load_partial_comp_unit): Update.
4299 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4300 (process_queue): Likewise.
4301 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4302 backlink.
4303 (dwarf2_read_addr_index): Likewise.
4304 (follow_die_offset): Likewise.
4305 (dwarf2_fetch_die_loc_sect_off): Likewise.
4306 (dwarf2_fetch_constant_bytes): Likewise.
4307 (dwarf2_fetch_die_type_sect_off): Likewise.
4308 (follow_die_sig_1): Likewise.
4309 (load_full_type_unit): Likewise.
4310 (read_signatured_type): Likewise.
4311 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4312 (dwarf2_cu::~dwarf2_cu): Remove.
4313 (dwarf2_per_objfile::get_cu): New.
4314 (dwarf2_per_objfile::set_cu): New.
4315 (age_cached_comp_units): Rename to...
4316 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4317 to std::unordered_map.
4318 (free_one_cached_comp_unit): Rename to...
4319 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4320 to std::unordered_map.
4321 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4322 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4323 a dwarf2_per_objfile in data.
4324 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4325 (dwarf2_clear_marks): Remove.
4326
2e671100
SM
43272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4330 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4331 (init_tu_and_read_dwo_dies): Likewise.
4332 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4333 (cutu_reader::cutu_reader): Likewise.
4334 (load_partial_comp_unit): Likewise.
4335 (process_psymtab_comp_unit): Update.
4336 (build_type_psymtabs_1): Update.
4337 (process_skeletonless_type_unit): Update.
4338 (load_full_comp_unit): Update.
4339 (find_partial_die): Update.
4340 (dwarf2_read_addr_index): Update.
4341 (read_signatured_type): Update.
4342
2e6a9f79
SM
43432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4346 m_header_read_in>: New fields.
4347 <get_header>: New method.
4348 * dwarf2/read.c (per_cu_header_read_in): Remove.
4349 (dwarf2_per_cu_data::get_header): New.
4350 (dwarf2_per_cu_data::addr_size): Update.
4351 (dwarf2_per_cu_data::offset_size): Update.
4352 (dwarf2_per_cu_data::ref_addr_size): Update.
4353
1b555f17
SM
43542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4355
4356 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4357 (dw2_do_instantiate_symtab): Update.
4358 (queue_and_load_all_dwo_tus): Change parameter from
4359 dwarf2_per_cu_data to dwarf2_cu.
4360 (dwarf2_fetch_die_loc_sect_off): Update.
4361 (dwarf2_fetch_constant_bytes): Update.
4362 (dwarf2_fetch_die_type_sect_off): Update.
4363
8fc0b21d
SM
43642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4365
4366 * dwarf2/read.c (process_full_comp_unit,
4367 process_full_type_unit): Remove per_cu, per_objfile paramters.
4368 Add dwarf2_cu parameter.
4369 (process_queue): Update.
4370
168c9250
SM
43712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * dwarf2/read.c (create_cu_from_index_list): Replace
4374 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4375 (create_cus_from_index_list): Likewise.
4376 (create_cus_from_index): Likewise.
4377 (create_signatured_type_table_from_index): Likewise.
4378 (create_cus_from_debug_names_list): Likewise.
4379 (create_cus_from_debug_names): Likewise.
4380 (dwarf2_read_gdb_index): Update.
4381 (dwarf2_read_debug_names): Update.
4382
e286671b
TT
43832020-05-27 Tom Tromey <tom@tromey.com>
4384 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * dwarf2/read.h (struct dwarf2_per_objfile)
4387 <get_type_for_signatured_type, set_type_for_signatured_type>:
4388 New methods.
4389 <m_type_map>: New member.
4390 (struct signatured_type) <type>: Remove.
4391 * dwarf2/read.c
4392 (dwarf2_per_objfile::get_type_for_signatured_type,
4393 dwarf2_per_objfile::set_type_for_signatured_type): New.
4394 (get_signatured_type): Use new methods.
4395
8adb8487
TT
43962020-05-27 Tom Tromey <tom@tromey.com>
4397 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4400 (struct dwarf2_per_objfile) <type_units>: New member.
4401 <get_type_unit_group_unshareable>: New method.
4402 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4403 num_symtabs, symtabs>: Remove; move to
4404 type_unit_group_unshareable.
4405 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4406 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4407 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4408
127bbf4b
SM
44092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * dwarf2/read.h (struct dwarf2_per_cu_data):
4412 <dwarf2_per_objfile>: Remove.
4413 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4414 dwarf2_per_objfile.
4415 (create_signatured_type_table_from_index): Likewise.
4416 (create_signatured_type_table_from_debug_names): Likewise.
4417 (create_debug_type_hash_table): Likewise.
4418 (fill_in_sig_entry_from_dwo_entry): Likewise.
4419 (create_type_unit_group): Likewise.
4420 (read_comp_units_from_section): Likewise.
4421 (create_cus_hash_table): Likewise.
4422
f6e649dd
SM
44232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4426 dwarf2_per_cu_data::dwarf2_per_objfile.
4427 (compute_compunit_symtab_includes): Likewise.
4428 (dwarf2_cu::start_symtab): Likewise.
4429
aa66c379
SM
44302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4433 parameter.
4434 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4435 (read_namespace_alias): Update.
4436 (lookup_die_type): Update.
4437 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4438 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4439 Update.
4440 (disassemble_dwarf_expression): Update.
4441
120ce1b5
SM
44422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * dwarf2/read.h (struct dwarf2_queue_item): Add
4445 dwarf2_per_objfile parameter, assign new parameter.
4446 <per_objfile>: New field.
4447 * dwarf2/read.c (free_one_cached_comp_unit): Add
4448 dwarf2_per_objfile parameter.
4449 (queue_comp_unit): Likewise.
4450 (dw2_do_instantiate_symtab): Update.
4451 (process_psymtab_comp_unit): Update.
4452 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4453 (process_imported_unit_die): Update.
4454 (queue_and_load_dwo_tu): Update.
4455 (follow_die_offset): Update.
4456 (follow_die_sig_1): Update.
4457
9f47c707
SM
44582020-05-27 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4461 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4462 (read_call_site_scope): Assign per_objfile.
4463 (dwarf2_per_cu_data::objfile): Remove.
4464 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4465 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4466 dwarf2_per_objfile parameter.
4467 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4468 dwarf2_per_objfile parameter.
4469 (dwarf_expr_reg_to_entry_parameter): Add output
4470 dwarf2_per_objfile parameter.
4471 (locexpr_get_frame_base): Update.
4472 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4473 <push_dwarf_reg_entry_value>: Update.
4474 <call_site_to_target_addr>: Update.
4475 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4476 parameter.
4477 (value_of_dwarf_reg_entry): Update.
4478 (rw_pieced_value): Update.
4479 (indirect_synthetic_pointer): Update.
4480 (dwarf2_evaluate_property): Update.
4481 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4482 parameter.
4483 (locexpr_read_variable): Update.
4484 (locexpr_get_symbol_read_needs): Update.
4485 (loclist_read_variable): Update.
4486
14095eb3
SM
44872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4490 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4491 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4492 parameter.
4493 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4494 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4495 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4496 parameter.
4497 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4498 sect_variable_value): Add dwarf2_per_objfile parameter.
4499 (class dwarf_evaluate_loc_desc) <dwarf_call,
4500 dwarf_variable_value>: Update.
4501 (fetch_const_value_from_synthetic_pointer): Add
4502 dwarf2_per_objfile parameter.
4503 (fetch_const_value_from_synthetic_pointer): Update.
4504 (coerced_pieced_ref): Update.
4505 (class symbol_needs_eval_context) <dwarf_call,
4506 dwarf_variable_value>: Update.
4507 (dwarf2_compile_expr_to_ax): Update.
4508
3c3cd3d4
SM
45092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4512 parameter.
4513 (dwarf2_evaluate_loc_desc_full): Update.
4514
82ca3f51
SM
45152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4518 parameter.
4519 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4520 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4521 dwarf2_per_objfile parameter.
4522 (decode_debug_loc_dwo_addresses): Likewise.
4523 (dwarf2_find_location_expression): Update.
4524 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4525 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4526 parameter.
4527 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4528 parameter.
4529 (locexpr_describe_location_1): Likewise.
4530 (locexpr_describe_location): Update.
4531
4b167ea1
SM
45322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4535 Remove.
4536 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4537 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4538 (dwarf2_compile_property_to_c): Update.
4539 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4540 use text offset from objfile.
4541 (locexpr_tracepoint_var_ref): Update.
4542 (locexpr_generate_c_location): Update.
4543 (loclist_describe_location): Update.
4544 (loclist_tracepoint_var_ref): Update.
4545 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4546 dwarf2_per_objfile parameter.
4547 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4548 use text offset from objfile.
4549 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4550
89b07335
SM
45512020-05-27 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * dwarf2/expr.h (struct dwarf_expr_context)
4554 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4555 <offset>: Remove.
4556 <per_objfile>: New member.
4557 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4558 dwarf2_per_objfile parameter. Don't set offset, set
4559 per_objfile.
4560 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4561 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4562 a dwarf2_per_objfile object instead of an offset.
4563 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4564 constructor.
4565 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4566 to dwarf2_expr_executor constructor. Don't set offset.
4567 (dwarf2_fetch_cfa_info): Update.
4568 (struct dwarf2_frame_cache) <text_offset>: Remove.
4569 <per_objfile>: New field.
4570 (dwarf2_frame_cache): Update.
4571 (dwarf2_frame_prev_register): Update.
4572 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4573 <dwarf_evaluate_loc_desc>: Add constructor.
4574 (dwarf2_evaluate_loc_desc_full): Update.
4575 (dwarf2_locexpr_baton_eval): Update.
4576 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4577 Add constructor.
4578 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4579
293e7e51
SM
45802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4583 addr_sized_int_type>: Move to dwarf2_cu.
4584 <int_type>: Move to dwarf2_per_objfile.
4585 (struct dwarf2_per_objfile) <int_type>: Move here.
4586 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4587 addr_sized_int_type>: Move here.
4588 (read_func_scope): Update.
4589 (read_array_type): Update.
4590 (read_tag_string_type): Update.
4591 (attr_to_dynamic_prop): Update.
4592 (dwarf2_per_cu_data::int_type): Rename to...
4593 (dwarf2_per_objfile::int_type): ... this.
4594 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4595 (dwarf2_cu::addr_sized_int_type): ... this.
4596 (read_subrange_type): Update.
4597 (dwarf2_per_cu_data::addr_type): Rename to...
4598 (dwarf2_cu::addr_type): ... this.
4599 (set_die_type): Update.
4600
64874a40
SM
46012020-05-27 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4604 data through per_cu->cu.
4605
4ab09049
SM
46062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4609 dwarf2_per_cu_data parameter fo dwarf2_cu.
4610 (lookup_dwo_type_unit): Likewise.
4611 (read_cutu_die_from_dwo): Likewise.
4612 (lookup_dwo_unit): Likewise.
4613 (open_and_init_dwo_file): Likewise.
4614 (lookup_dwo_cutu): Likewise.
4615 (lookup_dwo_comp_unit): Likewise.
4616 (lookup_dwo_type_unit): Likewise.
4617 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4618 (cutu_reader::cutu_reader): Update.
4619
47b14e86
SM
46202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4623 parameter.
4624 (process_full_type_unit): Likewise.
4625 (process_queue): Update.
4626
43182c09
SM
46272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/read.c (recursively_compute_inclusions): Add
4630 dwarf2_per_objfile parameter.
4631 (compute_compunit_symtab_includes): Likewise.
4632 (process_cu_includes): Update.
4633
7aa104c4
SM
46342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4637 parameter.
4638 (create_type_unit_group): Update.
4639 (process_psymtab_comp_unit_reader): Update.
4640 (build_type_psymtabs_reader): Update.
4641
e3beb21d
SM
46422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4645 object through m_this_cu->cu.
4646
d460f660
SM
46472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4650 the info parameter.
4651 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4652
ab432490
SM
46532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4654
4655 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4656 per_objfile parameter.
4657 (load_full_type_unit): Add per_objfile parameter.
4658 (read_signatured_type): Likewise.
4659 (load_full_comp_unit): Likewise.
4660 (load_cu): Likewise.
4661 (dw2_do_instantiate_symtab): Likewise.
4662 (dw2_get_file_names): Likewise.
4663 (dw2_map_symtabs_matching_filename): Update.
4664 (dw_expand_symtabs_matching_file_matcher): Update.
4665 (dw2_map_symbol_filenames): Update.
4666 (process_psymtab_comp_unit): Add per_objfile parameter.
4667 (build_type_psymtabs_1): Update.
4668 (process_skeletonless_type_unit): Update.
4669 (dwarf2_build_psymtabs_hard): Update.
4670 (load_partial_comp_unit): Add per_objfile parameter.
4671 (scan_partial_symbols): Update.
4672 (load_full_comp_unit): Add per_objfile parameter.
4673 (process_imported_unit_die): Update.
4674 (create_cus_hash_table): Update.
4675 (find_partial_die): Update.
4676 (dwarf2_read_addr_index): Update.
4677 (follow_die_offset): Update.
4678 (dwarf2_fetch_die_loc_sect_off): Update.
4679 (dwarf2_fetch_constant_bytes): Update.
4680 (dwarf2_fetch_die_type_sect_off): Update.
4681 (follow_die_sig_1): Update.
4682 (load_full_type_unit): Add per_objfile parameter.
4683 (read_signatured_type): Likewise.
4684
313bad1b
SM
46852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4688 of objfile_name.
4689
c3699833
SM
46902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4691
4692 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4693 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4694 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4695 field.
4696 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4697 (create_cus_from_index): Update.
4698 (dwarf2_read_gdb_index): Update.
4699 (create_cus_from_debug_names): Update.
4700 (dwarf2_read_debug_names): Update.
4701 (get_abbrev_section_for_cu): Update.
4702 (create_all_comp_units): Update.
4703 (read_attribute_value): Update.
4704 (get_debug_line_section): Update.
4705 * dwarf2/index-cache.c (index_cache::store): Update.
4706 * dwarf2/index-write.c (save_gdb_index_command): Update.
4707 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4708
1859c670
SM
47092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4712 member.
4713 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4714 dwarf2_per_cu_data::per_bfd.
4715 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4716 (create_type_unit_group): Likewise.
4717 (queue_comp_unit): Remove reference to
4718 per_cu->dwarf2_per_objfile.
4719 (maybe_queue_comp_unit): Likewise.
4720 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4721 (create_cus_hash_table): Assign new field.
4722
5e22e966
SM
47232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * dwarf2/read.c: Replace
4726 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4727 dwarf2_cu->per_objfile throughout.
4728
97a1449a
SM
47292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4732 parameter, don't use per_cu->dwarf2_per_objfile.
4733 (dw2_instantiate_symtab): Likewise.
4734 (dw2_find_last_source_symtab): Update.
4735 (dw2_map_expand_apply): Update.
4736 (dw2_lookup_symbol): Update.
4737 (dw2_expand_symtabs_for_function): Update.
4738 (dw2_expand_all_symtabs): Update.
4739 (dw2_expand_symtabs_with_fullname): Update.
4740 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4741 don't use per_cu->dwarf2_per_objfile.
4742 (dw2_expand_marked_cus): Update.
4743 (dw2_find_pc_sect_compunit_symtab): Update.
4744 (dw2_debug_names_lookup_symbol): Update.
4745 (dw2_debug_names_expand_symtabs_for_function): Update.
4746 (dw2_debug_names_map_matching_symbols): Update.
4747 (dwarf2_psymtab::expand_psymtab): Update.
4748
9e021579
SM
47492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4752 <per_objfile>: New member.
4753 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4754 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4755 call to dwarf2_cu.
4756 (cutu_reader::cutu_reader): Update.
4757 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4758
ae090bdb
SM
47592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4762 struct dwarf2_per_objfile.
4763 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4764 dwarf2_per_bfd.
4765 * dwarf2/read.c (set_die_type): Update.
4766 (get_die_type_at_offset): Update.
4767
af758d11
SM
47682020-05-27 Tom Tromey <tom@tromey.com>
4769 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4772 method.
4773 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4774 get_symtab, set_symtab>: New methods.
4775 <m_symtabs>: New field.
4776 (struct dwarf2_psymtab): Derive from partial_symtab.
4777 <readin_p, get_compunit_symtab>: Declare methods.
4778 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4779 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4780 New methods.
4781 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4782 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4783 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4784 (dw2_symtab_iter_next, dw2_print_stats)
4785 (dw2_expand_symtabs_with_fullname)
4786 (dw2_expand_symtabs_matching_one)
4787 (dw_expand_symtabs_matching_file_matcher)
4788 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4789 (dw2_debug_names_iterator::next)
4790 (dw2_debug_names_map_matching_symbols)
4791 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4792 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4793 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4794 New methods.
4795 (get_compunit_symtab, process_full_comp_unit)
4796 (process_full_type_unit): Update.
4797 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4798
5989a64e
SM
47992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4800
4801 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4802 then introduce a new dwarf2_per_objfile type.
4803 <read_line_string>: Move to the new dwarf2_per_objfile type.
4804 <objfile>: Likewise.
4805 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4806 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4807 dwarf2_per_objfile->per_bfd.
4808 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4809 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4810 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4811 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4812 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4813 (dwarf2_per_objfile::locate_sections): Rename to...
4814 (dwarf2_per_bfd::locate_sections): ... this.
4815 (dwarf2_per_objfile::get_cutu): Rename to...
4816 (dwarf2_per_bfd::get_cutu): ... this.
4817 (dwarf2_per_objfile::get_cu): Rename to...
4818 (dwarf2_per_bfd::get_cu): ... this.
4819 (dwarf2_per_objfile::get_tu): Rename to...
4820 (dwarf2_per_bfd::get_tu): ... this.
4821 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4822 (dwarf2_per_bfd::allocate_per_cu): ... this.
4823 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4824 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4825 (get_gdb_index_contents_ftype): Change parameter from
4826 dwarf2_per_objfile to dwarf2_per_bfd.
4827 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4828 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4829
a50264ba
TT
48302020-05-27 Tom Tromey <tom@tromey.com>
4831 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4834 (allocate_piece_closure): Set "per_objfile" member.
4835 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4836 (locexpr_describe_location, loclist_describe_location): Use new
4837 member.
4838 * dwarf2/read.c (read_call_site_scope)
4839 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4840 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4841 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4842 handle_data_member_location): Set per_objfile member.
4843 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4844 member.
4845 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4846
d3473f0c
TT
48472020-05-27 Tom Tromey <tom@tromey.com>
4848
4849 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4850 allocate_signatured_type>: Declare new methods.
4851 <m_num_psymtabs>: New member.
4852 (struct dwarf2_per_cu_data) <index>: New member.
4853 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4854 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4855 (create_cu_from_index_list): Use allocate_per_cu.
4856 (create_signatured_type_table_from_index)
4857 (create_signatured_type_table_from_debug_names)
4858 (create_debug_type_hash_table, add_type_unit)
4859 (read_comp_units_from_section): Use allocate_signatured_type.
4860
5717c425
TT
48612020-05-27 Tom Tromey <tom@tromey.com>
4862
4863 * psymtab.c (partial_map_expand_apply)
4864 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4865 (psym_lookup_global_symbol_language)
4866 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4867 (psym_print_stats, psym_expand_symtabs_for_function)
4868 (psym_map_symbol_filenames, psym_map_matching_symbols)
4869 (psym_expand_symtabs_matching)
4870 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4871 (maintenance_check_psymtabs): Update.
4872 * psympriv.h (struct partial_symtab) <readin_p,
4873 get_compunit_symtab>: Add objfile parameter.
4874 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4875 Likewise.
4876 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4877 get_compunit_symtab>: Likewise.
4878 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4879
45940949
TT
48802020-05-27 Tom Tromey <tom@tromey.com>
4881
4882 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4883 member.
4884 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4885 (create_cu_from_index_list)
4886 (create_signatured_type_table_from_index)
4887 (create_signatured_type_table_from_debug_names)
4888 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4889 (dwarf2_create_include_psymtab)
4890 (create_debug_type_hash_table, add_type_unit)
4891 (create_type_unit_group, read_comp_units_from_section)
4892 (dwarf2_compute_name, create_cus_hash_table)
4893 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4894 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4895 obstack.
4896 (dw2_get_real_path): Likewise. Change argument to
4897 dwarf2_per_objfile.
4898
f8c6d152
LM
48992020-05-27 Luis Machado <luis.machado@linaro.org>
4900
4901 PR tdep/26000
4902 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4903 for ldrd (immediate).
4904
e98d2e6d
PW
49052020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4906
4907 * command.h: Add comment giving the name of class_tui.
4908 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4909 create the fake command for the help for class_tui.
4910
53a47a3e
TT
49112020-05-26 Tom Tromey <tromey@adacore.com>
4912
4913 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4914 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4915 (val_atr): New function.
4916 (value_val_atr): Use it.
4917 * ada-valprint.c (print_optional_low_bound): Change low bound
4918 handling for enums.
4919 (val_print_packed_array_elements): Don't call discrete_position.
4920 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4921 discrete_position for enum types.
4922 * language.c (default_print_array_index): Change type.
4923 * language.h (struct language_defn) <la_print_array_index>: Add
4924 index_type parameter, change type of index_value.
4925 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4926 (default_print_array_index): Update.
4927 * valprint.c (maybe_print_array_index): Don't call
4928 value_from_longest. Update.
4929 (value_print_array_elements): Don't call discrete_position.
4930
0bc2354b
TT
49312020-05-26 Tom Tromey <tromey@adacore.com>
4932
4933 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4934 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4935
1218a4bf
CDA
49362020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4937
4938 PR gdb/13519
4939 * avr-tdep.c (avr_integer_to_address): Return data or code
4940 address accordingly to the second 'type' argument of the
4941 function.
4942
92651b1d
MW
49432020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4944
4945 * infcmd.c, inferior.h: (construct_inferior_arguments):
4946 Moved function from here to gdbsupport/common-inferior.{h,cc}
4947
0a4f5f8c
TT
49482020-05-23 Tom Tromey <tom@tromey.com>
4949
4950 Revert commit eca1f90c:
4951 * NEWS: Remove entry for completion styling.
4952 * completer.c (_rl_completion_prefix_display_length): Move
4953 declaration later.
4954 (gdb_fnprint): Revert.
4955 (gdb_display_match_list_1): Likewise.
4956 * cli/cli-style.c (completion_prefix_style)
4957 (completion_difference_style, completion_suffix_style): Remove.
4958 (_initialize_cli_style): Revert.
4959 * cli/cli-style.h (completion_prefix_style)
4960 (completion_difference_style, completion_suffix_style): Don't
4961 declare.
4962
e08bd6c5
PA
49632020-05-24 Pedro Alves <palves@redhat.com>
4964
4965 * symtab.c (completion_list_add_name): Return boolean indication
4966 of whether the symbol matched.
4967 (completion_list_add_symbol): Don't try to remove C++ aliases if
4968 the symbol didn't match in the first place.
4969 * symtab.h (completion_list_add_name): Return bool.
4970
ceacbf6e
SM
49712020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4974 type::field.
4975
26f16254
JB
49762020-05-23 Joel Brobecker <brobecker@adacore.com>
4977
4978 GDB 9.2 released.
4979
eca1f90c
TT
49802020-05-23 Tom Tromey <tom@tromey.com>
4981
4982 * NEWS: Add entry for completion styling.
4983 * completer.c (_rl_completion_prefix_display_length): Move
4984 declaration earlier.
4985 (gdb_fnprint): Use completion_style.
4986 (gdb_display_match_list_1): Likewise.
4987 * cli/cli-style.c (completion_prefix_style)
4988 (completion_difference_style, completion_suffix_style): New
4989 globals.
4990 (_initialize_cli_style): Register new globals.
4991 * cli/cli-style.h (completion_prefix_style)
4992 (completion_difference_style, completion_suffix_style): Declare.
4993
51e2cfa2
PA
49942020-05-23 Pedro Alves <palves@redhat.com>
4995
4996 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4997 (parse_escape): Use ISDIGIT instead of isdigit.
4998 (puts_debug): Use gdb_isprint instead of isprint.
4999 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5000 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5001 ISSPACE instead of isspace.
5002 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5003 instead of isspace.
5004 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5005 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5006 instead of isxdigit and ISDIGIT instead of isdigit.
5007
80fc5e77
SM
50082020-05-22 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * gdbtypes.h (struct type) <field>: New method.
5011 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5012 or type::field.
5013
3cabb6b0
SM
50142020-05-22 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5017 (TYPE_FIELDS): Use type::fields. Change all call sites that
5018 modify the propery to use type::set_fields instead.
5019
1f704f76
SM
50202020-05-22 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5023 type::num_fields instead.
5024
5e33d5f4
SM
50252020-05-22 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5028 methods.
5029 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5030 that modify the number of fields to use type::set_num_fields
5031 instead.
5032
9392ebb3
TT
50332020-05-22 Tom Tromey <tromey@adacore.com>
5034
5035 * compile/compile-object-load.h (munmap_list_free): Don't
5036 declare.
5037
7c13f4e8
AB
50382020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * annotate.c (annotate_source_line): Update return type, add call
5041 to update current symtab and line.
5042 * annotate.h (annotate_source_line): Update return type, and
5043 extend header comment.
5044 * source.c (info_line_command): Check annotation_level before
5045 calling annotate_source_line.
5046 * stack.c (print_frame_info): If calling annotate_source_line
5047 returns true, then don't print any other source line information.
5048
aa370940
SM
50492020-05-21 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5052
84d53fa9
SM
50532020-05-21 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * coffread.c (patch_type): Remove NULL check before xfree.
5056 * corefile.c (set_gnutarget): Likewise.
5057 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5058 * exec.c (build_section_table): Likewise.
5059 * remote.c (remote_target::pass_signals): Likewise.
5060 * utils.c (n_spaces): Likewise.
5061 * cli/cli-script.c (document_command): Likewise.
5062 * i386-windows-tdep.c (core_process_module_section): Likewise.
5063 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5064
9d428aae
SM
50652020-05-20 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * symfile.c (reread_symbols): Clear objfile's section_offsets
5068 vector and section indices, re-compute them by calling
5069 sym_offsets.
5070
250106a7
TT
50712020-05-20 Tom Tromey <tromey@adacore.com>
5072
5073 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5074 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5075
9a0bacfb
TV
50762020-05-20 Tom de Vries <tdevries@suse.de>
5077
5078 PR symtab/25833
5079 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5080
7b958a48
AM
50812020-05-20 Alan Modra <amodra@gmail.com>
5082
5083 PR 25993
5084 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5085 bfd_set_filename.
5086 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5087 passed to bfd_set_filename.
5088 * symfile-mem.c (add_vsyscall_page): Likewise for string
5089 passed to symbol_file_add_from_memory.
5090 (symbol_file_add_from_memory): Make name param a const char* and
5091 don't strdup.
5092
c7e97679
AM
50932020-05-20 Alan Modra <amodra@gmail.com>
5094
5095 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5096 rather than accessing bfd->filename directly.
5097 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5098 and use bfd_section_name.
5099 * dwarf2/frame.c (decode_frame_entry): Likewise.
5100 * exec.c (exec_set_section_address): Likewise.
5101 * solib-aix.c (solib_aix_bfd_open): Likewise.
5102 * stap-probe.c (get_stap_base_address): Likewise.
5103 * symfile.c (reread_symbols): Likewise.
5104
563c591b
TT
51052020-05-19 Tom Tromey <tromey@adacore.com>
5106
5107 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5108
f408d82c
SM
51092020-05-19 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5112
98c59b52
PA
51132020-05-19 Pedro Alves <palves@redhat.com>
5114
5115 * NEWS (set exec-file-mismatch): Adjust entry.
5116 * exec.c: Include "build-id.h".
5117 (validate_exec_file): Try to match build IDs instead of filenames.
5118 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5119 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5120 and pass down 'warn_if_slow'.
5121 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5122 gdb_bfd_open_closure to pass it down.
5123 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5124
4111f652
PA
51252020-05-19 Pedro Alves <palves@redhat.com>
5126
5127 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5128 * target.c (target_fileio_open_1): Rename to target_fileio_open
5129 and make extern. Use bool.
5130 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5131 (target_fileio_read_alloc_1): Adjust.
5132 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5133 (target_fileio_open_warn_if_slow): Delete declaration.
5134
ad80db5b
PA
51352020-05-19 Pedro Alves <palves@redhat.com>
5136
5137 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5138 Adjust all callers.
5139
1d6ce4d3
YS
51402020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5141
5142 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5143 whether disp is negative.
5144
9005fbbb
SM
51452020-05-19 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * symfile.h (struct symfile_segment_data)
5148 <~symfile_segment_data>: Remove.
5149 <segment_info>: Change to std::vector.
5150 * symfile.c (default_symfile_segments): Update.
5151 * elfread.c (elf_symfile_segments): Update.
5152
68b888ff
SM
51532020-05-19 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5156 <segments>: New.
5157 <segment_bases, segment_sizes>: Remove.
5158 * symfile.c (default_symfile_segments): Update.
5159 * elfread.c (elf_symfile_segments): Update.
5160 * remote.c (remote_target::get_offsets): Update.
5161 * solib-target.c (solib_target_relocate_section_addresses):
5162 Update.
5163
62982abd
SM
51642020-05-19 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * symfile.h (struct symfile_segment_data): Initialize fields.
5167 <~symfile_segment_data>: Add.
5168 (symfile_segment_data_up): New.
5169 (struct sym_fns) <sym_segments>: Return a
5170 symfile_segment_data_up.
5171 (default_symfile_segments): Return a symfile_segment_data_up.
5172 (free_symfile_segment_data): Remove.
5173 (get_symfile_segment_data): Return a symfile_segment_data_up.
5174 * symfile.c (default_symfile_segments): Likewise.
5175 (get_symfile_segment_data): Likewise.
5176 (free_symfile_segment_data): Remove.
5177 (symfile_find_segment_sections): Update.
5178 * elfread.c (elf_symfile_segments): Return a
5179 symfile_segment_data_up.
5180 * remote.c (remote_target::get_offsets): Update.
5181 * solib-target.c (solib_target_relocate_section_addresses):
5182 Update.
5183 * symfile-debug.c (debug_sym_segments): Return a
5184 symfile_segment_data_up.
5185
7f204339
RO
51862020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5187
e52a0f1b
RO
5188 PR build/25981
5189 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5190 Hardcode register numbers.
5191
7f204339
RO
5192 PR build/25981
5193 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5194 procfs_find_LDT_entry): Remove.
5195 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5196 procfs_find_LDT_entry): Remove.
5197 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5198 Remove.
5199
7f32a4d5
PA
52002020-05-17 Pedro Alves <palves@redhat.com>
5201 Andrew Burgess <andrew.burgess@embecosm.com>
5202 Keno Fischer <keno@juliacomputing.com>
5203
5204 PR gdb/25741
5205 * breakpoint.c (build_target_condition_list): Update comments.
5206 (build_target_command_list): Update comments and skip matching
5207 locations.
5208 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5209 a separate function. Simplify "set breakpoint auto-hw off"
5210 handling.
5211 (insert_breakpoints): Update comment.
5212 (tracepoint_locations_match): New parameter. For breakpoints,
5213 compare location types too, if the caller wants to.
5214 (handle_automatic_hardware_breakpoints): New functions.
5215 (bp_location_is_less_than): Also sort by location type and
5216 hardware breakpoint length.
5217 (update_global_location_list): Handle "set breakpoint auto-hw on"
5218 here.
5219 (update_breakpoint_locations): Ask breakpoint_locations_match to
5220 ignore location types.
5221
7d93a1e0
SM
52222020-05-16 Simon Marchi <simon.marchi@efficios.com>
5223
5224 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5225 type::name instead.
5226
d0e39ea2
SM
52272020-05-16 Simon Marchi <simon.marchi@efficios.com>
5228
5229 * gdbtypes.h (struct type) <name, set_name>: New methods.
5230 (TYPE_CODE): Use type::name. Change all call sites used to set
5231 the name to use type::set_name instead.
5232
2dab0c7b
TT
52332020-05-16 Tom Tromey <tom@tromey.com>
5234
5235 * top.c (quit_force): Update.
5236 * infrun.c (handle_no_resumed): Update.
5237 * top.h (all_uis): New function.
5238 (ALL_UIS): Remove.
5239
59f7bd8d
SM
52402020-05-16 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5243
9bf058f0
PA
52442020-05-16 Pedro Alves <palves@redhat.com>
5245
5246 * ia64-linux-nat.c
5247 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5248 Declare method.
5249 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5250
8f86ae1a
SM
52512020-05-15 Simon Marchi <simon.marchi@efficios.com>
5252
5253 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5254 (sparc64_adi_info): Likewise.
5255
d6bc0792
TT
52562020-05-15 Tom Tromey <tom@tromey.com>
5257
5258 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5259 block_objfile.
5260 (lookup_objfile_from_block): Remove.
5261 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5262 (lookup_global_symbol): Use block_objfile.
5263 * symtab.h (lookup_objfile_from_block): Don't declare.
5264 * printcmd.c (clear_dangling_display_expressions): Use
5265 block_objfile.
5266 * parse.c (operator_check_standard): Use block_objfile.
5267
8c14c3a3
TT
52682020-05-15 Tom Tromey <tom@tromey.com>
5269
5270 * language.c (language_alloc_type_symbol): Set
5271 SYMBOL_SECTION.
5272 * symtab.c (initialize_objfile_symbol): Remove.
5273 (allocate_symbol): Remove.
5274 (allocate_template_symbol): Remove.
5275 * dwarf2/read.c (fixup_go_packaging): Use "new".
5276 (new_symbol): Use "new".
5277 (read_variable): Don't call initialize_objfile_symbol. Use
5278 "new".
5279 (read_func_scope): Use "new".
5280 * xcoffread.c (process_xcoff_symbol): Don't call
5281 initialize_objfile_symbol.
5282 (SYMBOL_DUP): Remove.
5283 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5284 "new".
5285 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5286 (allocate_template_symbol): Don't declare.
5287 (struct symbol): Add copy constructor. Change defaults.
5288 * jit.c (finalize_symtab): Use "new".
5289 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5290 Use "new".
5291 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5292 (common_block_end): Use "new".
5293 * mdebugread.c (parse_symbol): Use "new".
5294 (new_symbol): Likewise.
5295
5b4a1a8d
PW
52962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5297
5298 * NEWS: Mention changes to help and apropos.
5299
57b4f16e
PW
53002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5301
5302 * command.h (enum command_class): Improve comments, document
5303 that class_alias is for user-defined aliases, give the class
5304 name for each class, remove unused class_xdb.
5305 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5306 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5307 by a precise class.
5308 * infcmd.c (_initialize_infcmd): Likewise.
5309 * reverse.c (_initialize_reverse): Likewise.
5310 * stack.c (_initialize_stack): Likewise.
5311 * symfile.c (_initialize_symfile): Likewise.
5312 * tracepoint.c (_initialize_tracepoint): Likewise.
5313
7c05caf7
PW
53142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5315
5316 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5317 when their aliased command is traversed.
5318 (help_cmd): Add fput_command_names_styled call to
5319 output command name and aliases when command has an alias.
5320
3b3aaacb
PW
53212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5322
5323 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5324 * cli/cli-decode.c (help_cmd_list): Declare as static,
5325 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5326 a command together with the command.
5327 (fput_command_name_styled, fput_command_names_styled): New functions.
5328 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5329 fput_command_name_styled.
5330 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5331 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5332
7aa1b46f
PW
53332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5334
5335 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5336 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5337 * command.h (cmd_show_list): Likewise.
5338 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5339 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5340
89bcba74
PW
53412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5342
5343 * unittests/command-def-selftests.c (traverse_command_structure):
5344 Verify all commands of a list have the same prefix command and
5345 that only the top cmdlist commands have a null prefix.
5346
3f4d92eb
PW
53472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5348
5349 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5350 as prefix, not one of its aliases.
5351 (set_cmd_prefix): Remove.
5352 (do_add_cmd): Centralize the setting of the prefix of a command, when
5353 command is defined after its full chain of prefix commands.
5354 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5355 (add_setshow_cmd_full): Likewise.
5356 (update_prefix_field_of_prefixed_commands): New function.
5357 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5358 update_prefix_field_of_prefixed_commands.
5359 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5360 addresses of remote_set_cmdlist and remote_show_cmdlist given
5361 as argument, not the address of an argument.
5362 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5363 * gdb/remote.c (_initialize_remote): Likewise.
5364
0605465f
PW
53652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5366
5367 * cli/cli-cmds.c (alias_command): Check for an existing alias
5368 using lookup_cmd_composition, as valid_command_p is too strict
5369 and forbids aliases that are the prefix of an existing alias
5370 or command.
5371 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5372 command is properly recognised as a valid command.
5373
58e6ac70
PW
53742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5375
5376 * unittests/help-doc-selftests.c: Rename to
5377 unittests/command-def-selftests.c
5378 * unittests/command-def-selftests.c (help_doc_tests): Update some
5379 comments.
5380 (command_structure_tests, traverse_command_structure): New namespace
5381 and function.
5382 (command_structure_invariants_tests): New function.
5383 (_initialize_command_def_selftests) Renamed from
5384 _initialize_help_doc_selftests, register command_structure_invariants
5385 selftest.
5386
a7b9ceb8
PW
53872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5388
5389 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5390 an alias of 'show'.
5391
b2188a06
JB
53922020-05-15 Joel Brobecker <brobecker@adacore.com>
5393
5394 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5395 ada_is_fixed_point_type. Update all callers.
5396 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5397 all callers.
5398 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5399 Update all callers.
5400 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5401 print_fixed_point_type. Update all callers.
5402 * ada-valprint.c (ada_value_print_num): Replace call to
5403 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5404
a51951c2
KB
54052020-05-14 Kevin Buettner <kevinb@redhat.com>
5406
5407 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5408 processors.
5409 (cpu_supports_bts): Add CV_AMD case.
5410
29d6859f
LM
54112020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5412 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * infrun.c (stop_all_threads): Collect multiple wait events at
5415 each pass.
5416
78134374
SM
54172020-05-14 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5420 type::code instead.
5421
67607e24
SM
54222020-05-14 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * gdbtypes.h (struct type) <code, set_code>: New methods.
5425 (TYPE_CODE): Use type::code. Change all call sites used to set
5426 the code to use type::set_code instead.
5427
a05575d3
TBA
54282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5429 Tom de Vries <tdevries@suse.de>
5430 Pedro Alves <palves@redhat.com>
5431
5432 PR threads/25478
5433 * infrun.c (stop_all_threads): Do NOT ignore
5434 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5435 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5436 received.
5437 (handle_no_resumed): Remove code handling a live inferior with no
5438 threads.
5439 * remote.c (has_single_non_exited_thread): New.
5440 (remote_target::update_thread_list): Do not delete a thread if is
5441 the last thread of the process.
5442 * thread.c (thread_select): Call delete_exited_threads instead of
5443 prune_threads.
5444
6ad82919
TBA
54452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5446
5447 * infrun.c (stop_all_threads): Enable/disable thread events of all
5448 targets. Move a debug message denoting the end of the function
5449 into the SCOPED_EXIT block.
5450
d890404b
TBA
54512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5452
5453 * process-stratum-target.h: Include <set>.
5454 (all_non_exited_process_targets, switch_to_target_no_thread): New
5455 function declarations.
5456 * process-stratum-target.c (all_non_exited_process_targets)
5457 (switch_to_target_no_thread): New function implementations.
5458
293b3ebc
TBA
54592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5460
5461 * infrun.c (handle_inferior_event): Extract out a piece of code
5462 into...
5463 (mark_non_executing_threads): ...this new function.
5464
7ca9b62a
TBA
54652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5466
5467 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5468 use.
5469
fc75c28b
TBA
54702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5471
5472 * regcache.c (regcache_read_pc_protected): New function
5473 implementation that returns 0 if the PC cannot read via
5474 'regcache_read_pc'.
5475 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5476 instead of 'regcache_read_pc'.
5477 (keep_going_pass_signal): Ditto.
5478
a89febbd
TT
54792020-05-13 Tom Tromey <tromey@adacore.com>
5480
5481 * ada-lang.c (align_value): Remove.
5482 (ada_template_to_fixed_record_type_1): Use align_up.
5483
f7e23710
TBA
54842020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5485
5486 * async-event.c: Update the copyright year.
5487 * async-event.h: Update the copyright year.
5488
02ff80c2
SM
54892020-05-12 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * objfiles.h (is_addr_in_objfile,
5492 shared_objfile_contains_address_p): Return bool.
5493 * objfile.c (is_addr_in_objfile,
5494 shared_objfile_contains_address_p): Return bool.
5495
4fd6c7e8
TT
54962020-05-11 Tom Tromey <tromey@adacore.com>
5497
5498 * cli/cli-cmds.c (info_command): Restore.
5499 (_initialize_cli_cmds): Use add_prefix_command for "info".
5500 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5501
5eb68a39
TT
55022020-05-11 Tom Tromey <tromey@adacore.com>
5503
5504 * ada-lang.c (ada_value_primitive_field): Now public.
5505 * ada-lang.h (ada_value_primitive_field): Declare.
5506 * ada-valprint.c (print_field_values): Use
5507 ada_value_primitive_field for wrapper fields.
5508
7666722f
TV
55092020-05-11 Tom de Vries <tdevries@suse.de>
5510
5511 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5512 MODULE_DOMAIN.
5513
3ee6bb11
TV
55142020-05-11 Tom de Vries <tdevries@suse.de>
5515
5516 PR symtab/25941
5517 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5518 with length 0, if not gdb-produced.
5519 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5520
43434996
TV
55212020-05-09 Tom de Vries <tdevries@suse.de>
5522
5523 PR gdb/25955
5524 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5525 calculation.
5526
2f78cffc
TT
55272020-05-09 Tom Tromey <tom@tromey.com>
5528
5529 * top.c (server_command): Now bool.
5530 * top.h (server_command): Now bool.
5531
4f7bc5ed
TT
55322020-05-08 Tom Tromey <tromey@adacore.com>
5533
5534 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5535 already being processed.
5536
8be4b118
TT
55372020-05-08 Tom Tromey <tom@tromey.com>
5538
5539 * printcmd.c (struct display) <next>: Remove.
5540 <display>: New constructor.
5541 <exp_string>: Now a std::string.
5542 <enabled_p>: Now a bool.
5543 (display_number): Move definition earlier.
5544 (displays): Rename from display_chain. Now a std::vector.
5545 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5546 (display_command): Update.
5547 (do_one_display, disable_display)
5548 (enable_disable_display_command, do_enable_disable_display):
5549 Update.
5550 (free_display): Remove.
5551 (clear_displays): Rewrite.
5552 (delete_display): Update.
5553 (map_display_numbers): Use function_view. Remove "data"
5554 parameter. Update.
5555 (do_delete_display): Remove.
5556 (undisplay_command): Update.
5557 (do_one_display, do_displays, disable_display)
5558 (info_display_command): Update.
5559 (do_enable_disable_display): Remove.
5560 (enable_disable_display_command)
5561 (clear_dangling_display_expressions): Update.
5562
94c93c35
TT
55632020-05-08 Tom Tromey <tom@tromey.com>
5564
5565 * symtab.c (set_symbol_cache_size)
5566 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5567 (maintenance_print_symbol_cache_statistics): Update.
5568 * symmisc.c (print_symbol_bcache_statistics)
5569 (print_objfile_statistics, maintenance_print_objfiles)
5570 (maintenance_info_symtabs, maintenance_check_symtabs)
5571 (maintenance_expand_symtabs, maintenance_info_line_tables):
5572 Update.
5573 * symfile-debug.c (set_debug_symfile): Update.
5574 * source.c (forget_cached_source_info): Update.
5575 * python/python.c (gdbpy_progspaces): Update.
5576 * psymtab.c (maintenance_info_psymtabs): Update.
5577 * probe.c (parse_probes): Update.
5578 * linespec.c (iterate_over_all_matching_symtabs)
5579 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5580 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5581 * exec.c (exec_target::close): Update.
5582 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5583 * breakpoint.c (print_one_breakpoint_location)
5584 (create_longjmp_master_breakpoint)
5585 (create_std_terminate_master_breakpoint): Update.
5586 * progspace.c (program_spaces): Now a std::vector.
5587 (maybe_new_address_space): Update.
5588 (add_program_space): Remove.
5589 (program_space::program_space): Update.
5590 (remove_program_space): Update.
5591 (number_of_program_spaces): Remove.
5592 (print_program_space, update_address_spaces): Update.
5593 * progspace.h (program_spaces): Change type.
5594 (ALL_PSPACES): Remove.
5595 (number_of_program_spaces): Don't declare.
5596 (struct program_space) <next>: Remove.
5597
a1fd1ac9
TT
55982020-05-08 Tom Tromey <tom@tromey.com>
5599
5600 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5601 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5602 (enable_break): Update.
5603 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5604 (frv_fdpic_find_canonical_descriptor): Update.
5605 (frv_fetch_objfile_link_map): Update.
5606 * progspace.c (program_space::free_all_objfiles): Update.
5607 (program_space::solibs): New method.
5608 * progspace.h (struct program_space) <solibs>: New method.
5609 * solist.h (master_so_list): Don't declare.
5610 (ALL_SO_LIBS): Remove.
5611 * solib.h (so_list_head): Remove.
5612 (update_solib_list): Update comment.
5613 * solib.c (master_so_list): Remove.
5614 (solib_used, update_solib_list, solib_add)
5615 (info_sharedlibrary_command, clear_solib)
5616 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5617
38eae084
TT
56182020-05-08 Tom Tromey <tom@tromey.com>
5619
5620 * extension.c (extension_languages): Now a std::array.
5621 (ALL_EXTENSION_LANGUAGES): Remove.
5622 (get_ext_lang_defn, get_ext_lang_of_file)
5623 (eval_ext_lang_from_control_command): Update.
5624 (finish_ext_lang_initialization)
5625 (auto_load_ext_lang_scripts_for_objfile)
5626 (ext_lang_type_printers::ext_lang_type_printers)
5627 (apply_ext_lang_type_printers)
5628 (ext_lang_type_printers::~ext_lang_type_printers)
5629 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5630 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5631 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5632 (get_matching_xmethod_workers, ext_lang_colorize)
5633 (ext_lang_before_prompt): Update.
5634 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5635
596dc4ad
TT
56362020-05-08 Tom Tromey <tom@tromey.com>
5637
5638 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5639 overload.
5640 <swap_string, m_string>: Remove.
5641 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5642 Update.
5643 * stabsread.c (define_symbol, read_type): Update.
5644 * linespec.c (find_linespec_symbols): Update.
5645 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5646 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5647 * dbxread.c (read_dbx_symtab): Update.
5648 * cp-support.h (cp_canonicalize_string_full)
5649 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5650 Return unique_xmalloc_ptr.
5651 * cp-support.c (inspect_type): Update.
5652 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5653 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5654 Likewise.
5655 * c-typeprint.c (print_name_maybe_canonical): Update.
5656 * break-catch-throw.c (check_status_exception_catchpoint):
5657 Update.
5658
bf4cb9be
TV
56592020-05-08 Tom de Vries <tdevries@suse.de>
5660
5661 * infrun.c (follow_fork): Copy current_line and current_symtab to
5662 child thread.
5663
a1b68f28
SM
56642020-05-07 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * async-event.c (struct async_signal_handler, struct
5667 async_event_handler): Reformat, remove typedef.
5668
98d48915
SM
56692020-05-07 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5672 access thistype->main_type->dyn_prop_list directly.
5673
7aa91313
SM
56742020-05-07 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5677 (remove_dyn_prop): Remove. Update all users to use
5678 type::remove_dyn_prop.
5679 * gdbtypes.c (remove_dyn_prop): Rename to...
5680 (type::remove_dyn_prop): ... this.
5681
5c54719c
SM
56822020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5683
5684 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5685 (add_dyn_prop): Remove. Update all users to use
5686 type::add_dyn_prop.
5687 * gdbtypes.c (add_dyn_prop): Rename to...
5688 (type::add_dyn_prop): ... this.
5689
24e99c6c
SM
56902020-05-07 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5693 (get_dyn_prop): Remove. Update all users to use
5694 type::dyn_prop.
5695 * gdbtypes.c (get_dyn_prop): Rename to...
5696 (type::dyn_prop): ... this.
5697
0d4bf016
SM
56982020-05-06 Simon Marchi <simon.marchi@efficios.com>
5699
5700 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5701
ac4a4f1c
SM
57022020-05-06 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5705 instruction, skip it if it's there.
5706
a3bbacc1
SM
57072020-05-05 Simon Marchi <simon.marchi@efficios.com>
5708
5709 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5710
c3236f84
SM
57112020-05-04 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5714 * gdbtypes.c (recursive_dump_type): Remove use of
5715 TYPE_INCOMPLETE.
5716
3b6acaee
TT
57172020-05-03 Tom Tromey <tom@tromey.com>
5718
5719 * breakpoint.c (catch_command, tcatch_command): Remove.
5720 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5721 add_show_prefix_cmd.
5722 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5723 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5724 Remove.
5725 (add_internal_problem_command): Use add_basic_prefix_cmd,
5726 add_show_prefix_cmd.
5727 * mips-tdep.c (set_mipsfpu_command): Remove.
5728 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5729 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5730 (_initialize_index_cache): Use add_basic_prefix_cmd.
5731 * memattr.c (dummy_cmd): Remove.
5732 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5733 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5734 (_initialize_tui_win): Use add_basic_prefix_cmd,
5735 add_show_prefix_cmd.
5736 * cli/cli-logging.c (set_logging_command): Remove.
5737 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5738 add_show_prefix_cmd.
5739 (show_logging_command): Remove.
5740 * target.c (target_command): Remove.
5741 (add_target): Use add_basic_prefix_cmd.
5742
a51119cd
HD
57432020-05-02 Hannes Domani <ssbssa@yahoo.de>
5744
5745 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5746
652fc23a 57472020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5748
652fc23a
PW
5749 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5750 info_command.
5751
117539e6
KR
57522020-04-30 Kamil Rytarowski <n54@gmx.com>
5753
5754 * nbsd-nat.c (nbsd_enable_proc_events)
5755 (nbsd_nat_target::post_startup_inferior): Add.
5756 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5757 (nbsd_nat_target::update_thread_list): Rewrite.
5758 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5759 "PTRACE_LWP_CREATE".
5760 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5761
102e38eb 57622020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5763
102e38eb
PW
5764 * stack.c (_initialize_stack): Remove duplicated creation
5765 of "frame" command and "f" alias.
5766
ee9d1e5f
HD
57672020-04-30 Hannes Domani <ssbssa@yahoo.de>
5768
5769 PR gdb/18706
5770 * gdbtypes.c (check_typedef): Calculate size of array of
5771 stubbed type.
5772
627c7fb8
HD
57732020-04-30 Hannes Domani <ssbssa@yahoo.de>
5774
5775 PR gdb/15559
5776 * i386-tdep.c (i386_push_dummy_call): Call
5777 i386_thiscall_push_dummy_call.
5778 (i386_thiscall_push_dummy_call): New function.
5779 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5780 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5781 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5782
ffc2844e
SM
57832020-04-29 Simon Marchi <simon.marchi@efficios.com>
5784
5785 * gdbarch.sh (do_read): Add shellcheck disable directive for
5786 warning SC2162.
5787
1207375d
SM
57882020-04-29 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5791 "referenced but not assigned" warning.
5792
9fdb2916
SM
57932020-04-29 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * gdbarch.sh: Remove code that sets fallbackdefault.
5796
759cea5e
SM
57972020-04-29 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * gdbarch.sh: Use shell operators && and || instead of
5800 -a and -o.
5801
cb02ab24
SM
58022020-04-29 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * gdbarch.sh: Use $(...) instead of `...`.
5805
a6fc5ffc
SM
58062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * gdbarch.sh: Use double quotes around variables.
5809
8d113d13
SM
58102020-04-29 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * gdbarch.sh: Use %s with printf, instead of variables in the
5813 format string.
5814
ed6acedd
TT
58152020-04-29 Tom Tromey <tromey@adacore.com>
5816
5817 PR ada/25875:
5818 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5819 type fields here.
5820 (read_enumeration_type): Call
5821 update_enumeration_type_from_children later. Update comments.
5822 (process_enumeration_scope): Don't create type fields.
5823
b68b1b58
KR
58242020-04-29 Kamil Rytarowski <n54@gmx.com>
5825
5826 * nbsd-tdep.c: Include "xml-syscall.h".
5827 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5828
f94b2e03
KR
58292020-04-29 Kamil Rytarowski <n54@gmx.com>
5830
5831 * nbsd-nat.c: Include "sys/wait.h".
5832 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5833 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5834 (nbsd_nat_target::remove_exec_catchpoint)
5835 (nbsd_nat_target::set_syscall_catchpoint): Add.
5836 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5837 (nbsd_nat_target::insert_exec_catchpoint)
5838 (nbsd_nat_target::remove_exec_catchpoint)
5839 (nbsd_nat_target::set_syscall_catchpoint): Add.
5840 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5841 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5842 `nbsd_get_syscall_number'.
5843
fc49bc72
TT
58442020-04-29 Tom Tromey <tom@tromey.com>
5845
5846 * stack.c (print_block_frame_labels): Remove.
5847
d642b692
HD
58482020-04-29 Hannes Domani <ssbssa@yahoo.de>
5849
5850 PR gdb/17320
5851 * ada-valprint.c (val_print_packed_array_elements): Move array
5852 end bracket to new line.
5853 (ada_val_print_string): Remove extra spaces before first array
5854 element.
5855 * c-valprint.c (c_value_print_array): Likewise.
5856 * m2-valprint.c (m2_print_array_contents): Likewise.
5857 (m2_value_print_inner): Likewise.
5858 * p-valprint.c (pascal_value_print_inner): Likewise.
5859 * valprint.c (generic_val_print_array): Likewise.
5860 (value_print_array_elements): Move first array element and array
5861 end bracket to new line.
5862
ea90f227
TV
58632020-04-29 Tom de Vries <tdevries@suse.de>
5864
5865 PR symtab/25889
5866 * linespec.c (find_method): Fix ix calculation.
5867
4498ef4f
KR
58682020-04-28 Kamil Rytarowski <n54@gmx.com>
5869
5870 * syscalls/update-netbsd.sh: New file.
5871 * syscalls/netbsd.xml: Regenerate.
5872 * data-directory/Makefile.in: Register `netbsd.xml' in
5873 `SYSCALLS_FILES'.
5874
a55e30b5
SM
58752020-04-28 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * syscalls/update-freebsd.sh: Add double quotes.
5878
2b2fbab8
TT
58792020-04-28 Tom Tromey <tom@tromey.com>
5880
5881 * NEWS: Update.
5882 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5883 (cmdpy_init): Allow class_tui.
5884
a65189c9
TV
58852020-04-28 Mark Williams <mark@myosotissp.com>
5886
5887 PR gdb/24480
5888 * dwarf2read.c: Add missing assingments to list_in_scope when
5889 start_symtab was already called.
5890
1b95cdb7
SM
58912020-04-28 Simon Marchi <simon.marchi@efficios.com>
5892
5893 PR gdb/25881
5894 * dwarf2/read.c (offset_map_type): Use
5895 gdb:hash_enum<sect_offset> as hash function.
5896
15cd93d0
TV
58972020-04-28 Tom de Vries <tdevries@suse.de>
5898
5899 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5900 with DW_AT_signature.
5901
1eb39914
SM
59022020-04-27 Simon Marchi <simon.marchi@efficios.com>
5903
5904 * configure.ac: Remove check for fs_base/gs_base in
5905 user_regs_struct.
5906 * configure: Re-generate.
5907 * config.in: Re-generate.
5908 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5909 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5910 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5911
991a3e2e
LM
59122020-04-27 Luis Machado <luis.machado@linaro.org>
5913
5914 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5915 problematic inline frame unwinding situation.
5916 * frame.c (frame_id_computed_p): New function.
5917 * frame.h (frame_id_computed_p): New prototype.
5918
361ba0e8
TT
59192020-04-26 Tom Tromey <tom@tromey.com>
5920
5921 * command.h (enum command_class) <class_pseudo>: Remove.
5922
bc3609fd
PW
59232020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5924
5925 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5926 and whitespace.
5927
b9771db7
KR
59282020-04-25 Kamil Rytarowski <n54@gmx.com>
5929
ec16513e
SM
5930 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5931 `PT_GET_PROCESS_STATE' block.
b9771db7 5932
7151c1af
TT
59332020-04-24 Tom Tromey <tom@tromey.com>
5934
5935 * symtab.h (symbol_get_demangled_name): Don't declare.
5936 * symtab.c (symbol_get_demangled_name): Remove.
5937 (general_symbol_info::natural_name)
5938 (general_symbol_info::demangled_name): Update.
5939
906bb4c5
TT
59402020-04-24 Tom Tromey <tom@tromey.com>
5941
5942 PR rust/25025:
5943 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5944
bcfe6157
TT
59452020-04-24 Tom Tromey <tom@tromey.com>
5946
5947 PR symtab/12707:
5948 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5949 exists.
5950 (new_symbol): Likewise.
5951 * compile/compile-object-load.c (get_out_value_type): Use
5952 symbol_matches_search_name.
5953
f049a313
TT
59542020-04-24 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf2/read.c (add_partial_symbol): Do not call
5957 compute_and_set_names.
5958
76e288d1
TT
59592020-04-24 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5962 overload.
5963
2467f4f6
TT
59642020-04-24 Tom Tromey <tom@tromey.com>
5965
5966 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5967 (add_psymbol_to_list): New overload. Make old overload call new
5968 one.
5969 * psympriv.h (add_psymbol_to_list): New overload.
5970
e61108c9
TT
59712020-04-24 Tom Tromey <tom@tromey.com>
5972
5973 * dwarf2/read.c (partial_die_info::read) <case
5974 DW_AT_linkage_name>: Use value_as_string.
5975 (dwarf2_string_attr): Use value_as_string.
5976 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5977 method.
5978 * dwarf2/attribute.c (attribute::value_as_string): New method.
5979
8c87a452
TT
59802020-04-24 Tom Tromey <tom@tromey.com>
5981
5982 * symtab.c (general_symbol_info::natural_name)
5983 (general_symbol_info::demangled_name): Check for language_rust.
5984
787de330
TT
59852020-04-24 Tom Tromey <tom@tromey.com>
5986
5987 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5988 (dwarf2_physname): ... from here.
5989 (partial_die_info::read): Add Rust "{" hack.
5990
ff985671
TT
59912020-04-24 Tom Tromey <tom@tromey.com>
5992
5993 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5994 method.
5995 (symbol_set_demangled_name): Don't declare.
5996 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5997 symbol_set_demangled_name.
5998 (general_symbol_info::set_language)
5999 (general_symbol_info::compute_and_set_names): Update.
6000 * minsyms.c (minimal_symbol_reader::install): Update.
6001 * dwarf2/read.c (new_symbol): Update.
6002
1acda803
TT
60032020-04-24 Tom Tromey <tromey@adacore.com>
6004
6005 PR python/23662:
6006 * python/py-type.c (convert_field): Handle
6007 FIELD_LOC_KIND_DWARF_BLOCK.
6008 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6009 (typy_get_dynamic): Nw function.
6010 (type_object_getset): Add "dynamic".
6011 * NEWS: Add entry.
6012
d656f129
TT
60132020-04-24 Tom Tromey <tromey@adacore.com>
6014
6015 * ada-typeprint.c (print_choices, print_variant_part)
6016 (print_record_field_types_dynamic): New functions.
6017 (print_record_field_types): Use print_record_field_types_dynamic.
6018
7d79de9a
TT
60192020-04-24 Tom Tromey <tromey@adacore.com>
6020
6021 * dwarf2/read.c (handle_data_member_location): New overload.
6022 (dwarf2_add_field): Use it.
6023 (decode_locdesc): Add "computed" parameter. Update comment.
6024 * gdbtypes.c (is_dynamic_type_internal): Also look for
6025 FIELD_LOC_KIND_DWARF_BLOCK.
6026 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6027 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6028 virtual base classes.
6029 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6030 FIELD_LOC_KIND_DWARF_BLOCK.
6031
f8e89861
TT
60322020-04-24 Tom Tromey <tromey@adacore.com>
6033
6034 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6035 * gdbtypes.c (is_dynamic_type_internal): Check
6036 TYPE_HAS_DYNAMIC_LENGTH.
6037 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6038 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6039 New macros.
6040 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6041 constant.
6042
9c6a1327
TT
60432020-04-24 Tom Tromey <tromey@adacore.com>
6044
6045 * dwarf2/read.c (struct variant_field): Rewrite.
6046 (struct variant_part_builder): New.
6047 (struct nextfield): Remove "variant" field. Add "offset".
6048 (struct field_info): Add "current_variant_part" and
6049 "variant_parts".
6050 (alloc_discriminant_info): Remove.
6051 (alloc_rust_variant): New function.
6052 (quirk_rust_enum): Update.
6053 (dwarf2_add_field): Set "offset" member. Don't handle
6054 DW_TAG_variant_part.
6055 (offset_map_type): New typedef.
6056 (convert_variant_range, create_one_variant)
6057 (create_one_variant_part, create_variant_parts)
6058 (add_variant_property): New functions.
6059 (dwarf2_attach_fields_to_type): Call add_variant_property.
6060 (read_structure_type): Don't handle DW_TAG_variant_part.
6061 (handle_variant_part, handle_variant): New functions.
6062 (handle_struct_member_die): Use them.
6063 (process_structure_scope): Don't handle variant parts.
6064 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6065 (struct discriminant_info): Remove.
6066 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6067 (struct main_type) <flag_discriminated_union>: Remove.
6068 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6069 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6070 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6071 Update.
6072 * valops.c (value_union_variant): Remove.
6073 * value.h (value_union_variant): Don't declare.
6074
b249d2c2
TT
60752020-04-24 Tom Tromey <tromey@adacore.com>
6076
6077 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6078 (ada_value_primitive_packed_val): Update.
6079 * ada-valprint.c (ada_value_print_1): Update.
6080 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6081 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6082 just an address. Use evaluate_for_locexpr_baton.
6083 (dwarf2_evaluate_property): Update.
6084 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6085 array_view.
6086 * findvar.c (default_read_var_value): Update.
6087 * gdbtypes.c (compute_variant_fields_inner)
6088 (resolve_dynamic_type_internal): Update.
6089 (resolve_dynamic_type): Change type of valaddr parameter.
6090 * gdbtypes.h (resolve_dynamic_type): Update.
6091 * valarith.c (value_subscripted_rvalue): Update.
6092 * value.c (value_from_contents_and_address): Update.
6093
61122aa9
TT
60942020-04-24 Tom Tromey <tromey@adacore.com>
6095
6096 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6097 "push_initial_value" parameter.
6098 (dwarf2_evaluate_property): Likewise.
6099 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6100
ef83a141
TT
61012020-04-24 Tom Tromey <tromey@adacore.com>
6102
6103 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6104 (variant::matches, compute_variant_fields_recurse)
6105 (compute_variant_fields_inner, compute_variant_fields): New
6106 functions.
6107 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6108 Use resolved_type after type is made.
6109 (operator==): Add new cases.
6110 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6111 (struct discriminant_range, struct variant, struct variant_part):
6112 New.
6113 (union dynamic_prop_data) <variant_parts, original_type>: New
6114 members.
6115 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6116 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6117 constants.
6118 * value.c (unpack_bits_as_long): Now public.
6119 * value.h (unpack_bits_as_long): Declare.
6120
675127ec
TT
61212020-04-24 Tom Tromey <tromey@adacore.com>
6122
6123 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6124 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6125
9852ceef
HD
61262020-04-24 Hannes Domani <ssbssa@yahoo.de>
6127
6128 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6129
7632c6ce
KR
61302020-04-24 Kamil Rytarowski <n54@gmx.com>
6131
6132 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6133 (remove_fork_catchpoint, post_startup_inferior)
6134 (post_attach): Move...
6135 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6136 (remove_fork_catchpoint, post_startup_inferior)
6137 (post_attach): ...here.
6138 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6139 (remove_fork_catchpoint, post_startup_inferior)
6140 (post_attach): Move...
6141 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6142 (remove_fork_catchpoint, post_startup_inferior)
6143 (post_attach): ...here.
6144
7be2bb4f
TT
61452020-04-24 Tom Tromey <tromey@adacore.com>
6146
6147 * nat/windows-nat.h (struct windows_thread_info)
6148 <pc_adjusted>: New member.
6149 * windows-nat.c (windows_fetch_one_register): Check
6150 pc_adjusted.
6151 (windows_nat_target::get_windows_debug_event)
6152 (windows_nat_target::wait): Set pc_adjusted.
6153
f80cb3b4
TV
61542020-04-24 Tom de Vries <tdevries@suse.de>
6155
6156 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6157 Run gdb-add-index inside temp dir.
6158
29514b87
TT
61592020-04-23 Tom Tromey <tromey@adacore.com>
6160
6161 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6162 in loop.
6163
5939967b
LM
61642020-04-23 Luis Machado <luis.machado@linaro.org>
6165
6166 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6167 get_frame_register instead of gdbarch_unwind_pc.
6168
70bc38f5
TV
61692020-04-23 Tom de Vries <tdevries@suse.de>
6170
6171 * symtab.c (lookup_global_symbol): Prefer def over decl.
6172
de82891c
TV
61732020-04-23 Tom de Vries <tdevries@suse.de>
6174
6175 PR symtab/25807
6176 * block.c (best_symbol, better_symbol): Promote to external.
6177 * block.h (best_symbol, better_symbol): Declare.
6178 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6179 decl.
6180
ecc6c606
TT
61812020-04-23 Tom Tromey <tromey@adacore.com>
6182
6183 PR ada/25837:
6184 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6185 "const char *", not a "const std::string &".
6186 <name_and_matcher::operator==>: Update.
6187 * unittests/lookup_name_info-selftests.c: Change type of
6188 "result".
6189
740480b8
TT
61902020-04-23 Tom Tromey <tom@tromey.com>
6191
6192 * inferior.h (iterate_over_inferiors): Don't declare.
6193 * inferior.c (iterate_over_inferiors): Remove.
6194 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6195 Remove.
6196 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6197 use iterate_over_inferiors.
6198 (darwin_resume_inferior_it)
6199 (struct resume_inferior_threads_param)
6200 (darwin_resume_inferior_threads_it): Remove.
6201 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6202
ae3ab1f0
TV
62032020-04-23 Tom de Vries <tdevries@suse.de>
6204
6205 * blockframe.c (find_pc_partial_function): Use
6206 find_pc_sect_compunit_symtab rather than
6207 objfile->sf->qf->find_pc_sect_compunit_symtab.
6208
317d2668
TV
62092020-04-22 Tom de Vries <tdevries@suse.de>
6210
6211 PR symtab/25764
6212 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6213 in psymtabs.
6214
eea9e357
TV
62152020-04-22 Tom de Vries <tdevries@suse.de>
6216
6217 PR symtab/25801
6218 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6219 symtabs.
6220
3d5afab3
TV
62212020-04-22 Tom de Vries <tdevries@suse.de>
6222
6223 PR symtab/25700
6224 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6225 CU if already created.
6226
d43b7a2d
TBA
62272020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6228
6229 * infrun.c (displaced_step_fixup): Switch to the event_thread
6230 before calling displaced_step_restore, not after.
6231
d89edf9b
MM
62322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6233
6234 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6235 its inferior is not recorded by us.
6236 (record_btrace_target_open): Replace call to
6237 all_non_exited_threads () with call to current_inferior
6238 ()->non_exited_threads ().
6239 (record_btrace_target::stop_recording): Likewise.
6240 (record_btrace_target::close): Likewise.
6241 (record_btrace_target::wait): Likewise.
6242 (record_btrace_target::record_stop_replaying): Likewise.
6243
5897fd49
MM
62442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6245
6246 * btrace.c (btrace_enable): Throw an error on double enables and
6247 when enabling recording fails.
6248 (btrace_disable): Throw an error if the thread is not recorded.
6249
1a476b6d
MM
62502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6251
6252 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6253 request if we do not have a thread_info.
6254
4778a5f8
TV
62552020-04-21 Tom de Vries <tdevries@suse.de>
6256
6257 PR gdb/25471
6258 * thread.c
6259 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6260 exception in get_frame_id.
6261
0fa7617d
TT
62622020-04-20 Tom Tromey <tromey@adacore.com>
6263
6264 * python/python.c (struct gdbpy_event): Mark move constructor as
6265 noexcept.
6266 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6267 constructor as noexcept.
6268 * completer.h (struct completion_result): Mark move constructor as
6269 noexcept.
6270 * completer.c (completion_result::completion_result): Use
6271 initialization style. Don't call reset_match_list.
6272
ad23bda0
MS
62732020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6274
6275 * MAINTAINERS (Write After Approval): Add myself.
6276
45e1f031
TT
62772020-04-18 Tom Tromey <tom@tromey.com>
6278
6279 * windows-tdep.c (init_w32_command_list)
6280 (w32_prefix_command_valid): Restore.
6281 (_initialize_windows_tdep): Call init_w32_command_list.
6282
08feed99
TT
62832020-04-18 Tom Tromey <tom@tromey.com>
6284
6285 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6286 * value.c (value_fn_field): Update.
6287 * valops.c (find_function_in_inferior)
6288 (value_allocate_space_in_inferior): Update.
6289 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6290 Update.
6291 * tui/tui-source.c (tui_source_window::set_contents): Update.
6292 * symtab.c (lookup_global_or_static_symbol)
6293 (find_function_start_sal_1, skip_prologue_sal)
6294 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6295 * symmisc.c (dump_msymbols, dump_symtab_1)
6296 (maintenance_print_one_line_table): Update.
6297 * symfile.c (init_entry_point_info, section_is_mapped)
6298 (list_overlays_command, simple_read_overlay_table)
6299 (simple_overlay_update_1): Update.
6300 * stap-probe.c (handle_stap_probe): Update.
6301 * stabsread.c (dbx_init_float_type, define_symbol)
6302 (read_one_struct_field, read_enum_type, read_range_type): Update.
6303 * source.c (info_line_command): Update.
6304 * python/python.c (gdbpy_source_objfile_script)
6305 (gdbpy_execute_objfile_script): Update.
6306 * python/py-type.c (save_objfile_types): Update.
6307 * python/py-objfile.c (py_free_objfile): Update.
6308 * python/py-inferior.c (python_new_objfile): Update.
6309 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6310 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6311 (maintenance_check_psymtabs): Update.
6312 * printcmd.c (info_address_command): Update.
6313 * objfiles.h (struct objfile) <arch>: New method, from
6314 get_objfile_arch.
6315 (get_objfile_arch): Don't declare.
6316 * objfiles.c (get_objfile_arch): Remove.
6317 (filter_overlapping_sections): Update.
6318 * minsyms.c (msymbol_is_function): Update.
6319 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6320 (output_nondebug_symbol): Update.
6321 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6322 (mdebug_expand_psymtab): Update.
6323 * machoread.c (macho_add_oso_symfile): Update.
6324 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6325 Update.
6326 * linux-fork.c (checkpoint_command): Update.
6327 * linespec.c (convert_linespec_to_sals): Update.
6328 * jit.c (finalize_symtab): Update.
6329 * infrun.c (insert_exception_resume_from_probe): Update.
6330 * ia64-tdep.c (ia64_find_unwind_table): Update.
6331 * hppa-tdep.c (internalize_unwinds): Update.
6332 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6333 Update.
6334 * gcore.c (call_target_sbrk): Update.
6335 * elfread.c (record_minimal_symbol, elf_symtab_read)
6336 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6337 (elf_gnu_ifunc_resolve_by_got): Update.
6338 * dwarf2/read.c (create_addrmap_from_index)
6339 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6340 (read_debug_names_from_section)
6341 (process_psymtab_comp_unit_reader, add_partial_symbol)
6342 (add_partial_subprogram, process_full_comp_unit)
6343 (read_file_scope, read_func_scope, read_lexical_block_scope)
6344 (read_call_site_scope, dwarf2_ranges_read)
6345 (dwarf2_record_block_ranges, dwarf2_add_field)
6346 (mark_common_block_symbol_computed, read_tag_pointer_type)
6347 (read_tag_string_type, dwarf2_init_float_type)
6348 (dwarf2_init_complex_target_type, read_base_type)
6349 (partial_die_info::read, partial_die_info::read)
6350 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6351 (dwarf2_fetch_die_loc_sect_off): Update.
6352 * dwarf2/loc.c (dwarf2_find_location_expression)
6353 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6354 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6355 (dwarf2_loc_desc_get_symbol_read_needs)
6356 (locexpr_describe_location_piece, locexpr_describe_location_1)
6357 (loclist_describe_location): Update.
6358 * dwarf2/index-write.c (write_debug_names): Update.
6359 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6360 * dtrace-probe.c (dtrace_process_dof): Update.
6361 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6362 (process_one_symbol): Update.
6363 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6364 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6365 (coff_read_enum_type): Update.
6366 * cli/cli-cmds.c (edit_command, list_command): Update.
6367 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6368 * breakpoint.c (create_overlay_event_breakpoint)
6369 (create_longjmp_master_breakpoint)
6370 (create_std_terminate_master_breakpoint)
6371 (create_exception_master_breakpoint, get_sal_arch): Update.
6372 * block.c (block_gdbarch): Update.
6373 * annotate.c (annotate_source_line): Update.
6374
0743fc83
TT
63752020-04-17 Tom Tromey <tromey@adacore.com>
6376
6377 * auto-load.c (show_auto_load_cmd): Remove.
6378 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6379 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6380 (maintenance_print_arc_command): Remove.
6381 * tui/tui-win.c (tui_command): Remove.
6382 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6383 * tui/tui-layout.c (tui_layout_command): Remove.
6384 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6385 * python/python.c (user_set_python, user_show_python): Remove.
6386 (_initialize_python): Use add_basic_prefix_cmd,
6387 add_show_prefix_cmd.
6388 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6389 (install_gdb_commands): Use add_basic_prefix_cmd,
6390 add_show_prefix_cmd.
6391 (info_guile_command): Remove.
6392 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6393 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6394 add_show_prefix_cmd.
6395 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6396 Remove do_set and do_show parameters.
6397 * cli/cli-style.c (set_style, show_style): Remove.
6398 (_initialize_cli_style): Use add_basic_prefix_cmd,
6399 add_show_prefix_cmd.
6400 (cli_style_option::add_setshow_commands): Remove do_set and
6401 do_show parameters.
6402 (cli_style_option::add_setshow_commands): Use
6403 add_basic_prefix_cmd, add_show_prefix_cmd.
6404 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6405 (set_style_name): Remove.
6406 * cli/cli-dump.c (dump_command, append_command): Remove.
6407 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6408 (tekhex_dump_command, binary_dump_command)
6409 (binary_append_command): Remove.
6410 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6411 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6412 (init_w32_command_list): Remove; move into ...
6413 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6414 * valprint.c (set_print, show_print, set_print_raw)
6415 (show_print_raw): Remove.
6416 (_initialize_valprint): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 * typeprint.c (set_print_type, show_print_type): Remove.
6419 (_initialize_typeprint): Use add_basic_prefix_cmd,
6420 add_show_prefix_cmd.
6421 * record.c (set_record_command, show_record_command): Remove.
6422 (_initialize_record): Use add_basic_prefix_cmd,
6423 add_show_prefix_cmd.
6424 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6425 add_show_prefix_cmd.
6426 (info_command, show_command, set_debug, show_debug): Remove.
6427 * top.h (set_history, show_history): Don't declare.
6428 * top.c (set_history, show_history): Remove.
6429 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6430 (unset_tdesc_cmd): Remove.
6431 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6432 add_show_prefix_cmd.
6433 * symtab.c (info_module_command): Remove.
6434 (_initialize_symtab): Use add_basic_prefix_cmd.
6435 * symfile.c (overlay_command): Remove.
6436 (_initialize_symfile): Use add_basic_prefix_cmd.
6437 * sparc64-tdep.c (info_adi_command): Remove.
6438 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6439 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6440 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6441 add_show_prefix_cmd.
6442 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6443 (_initialize_serial): Use add_basic_prefix_cmd,
6444 add_show_prefix_cmd.
6445 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6446 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6447 add_show_prefix_cmd.
6448 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6449 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6452 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6453 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6454 add_show_prefix_cmd.
6455 * remote.c (remote_command, set_remote_cmd): Remove.
6456 (_initialize_remote): Use add_basic_prefix_cmd.
6457 * record-full.c (set_record_full_command)
6458 (show_record_full_command): Remove.
6459 (_initialize_record_full): Use add_basic_prefix_cmd,
6460 add_show_prefix_cmd.
6461 * record-btrace.c (cmd_set_record_btrace)
6462 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6463 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6464 (cmd_show_record_btrace_pt): Remove.
6465 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6466 add_show_prefix_cmd.
6467 * ravenscar-thread.c (set_ravenscar_command)
6468 (show_ravenscar_command): Remove.
6469 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6470 add_show_prefix_cmd.
6471 * mips-tdep.c (show_mips_command, set_mips_command)
6472 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6473 add_show_prefix_cmd.
6474 * maint.c (maintenance_command, maintenance_info_command)
6475 (maintenance_check_command, maintenance_print_command)
6476 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6477 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6478 add_show_prefix_cmd.
6479 (show_per_command_cmd): Remove.
6480 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6481 Remove.
6482 (maintenance_show_test_settings_cmd): Remove.
6483 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6484 add_show_prefix_cmd.
6485 * maint-test-options.c (maintenance_test_options_command):
6486 Remove.
6487 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6488 * macrocmd.c (macro_command): Remove
6489 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6490 * language.c (set_check, show_check): Remove.
6491 (_initialize_language): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * infcmd.c (unset_command): Remove.
6494 (_initialize_infcmd): Use add_basic_prefix_cmd.
6495 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6496 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6497 add_show_prefix_cmd.
6498 * go32-nat.c (go32_info_dos_command): Remove.
6499 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6500 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6501 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6502 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6503 (_initialize_frame): Use add_basic_prefix_cmd,
6504 add_show_prefix_cmd.
6505 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6506 (_initialize_dcache): Use add_basic_prefix_cmd,
6507 add_show_prefix_cmd.
6508 * cp-support.c (maint_cplus_command): Remove.
6509 (_initialize_cp_support): Use add_basic_prefix_cmd.
6510 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6511 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6512 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6513 add_basic_prefix_cmd, add_show_prefix_cmd.
6514 * breakpoint.c (save_command): Remove.
6515 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6516 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6517 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6518 add_show_prefix_cmd.
6519 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6520 (set_ada_command, show_ada_command): Remove.
6521 (_initialize_ada_language): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6524
3557f442
KR
65252020-04-16 Kamil Rytarowski <n54@gmx.com>
6526
6527 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6528 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6529
16197208
SM
65302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6533 warning messages.
6534
00ac85d3
SM
65352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6538 import table is not at beginning of .idata section.
6539
381ce63f
PA
65402020-04-16 Pedro Alves <palves@redhat.com>
6541
6542 * inferior.c (delete_inferior): Use delete operator directly
6543 instead of delete_program_space.
6544 * progspace.c (add_program_space): New, factored out from
6545 program_space::program_space.
6546 (remove_program_space): New, factored out from
6547 delete_program_space.
6548 (program_space::program_space): Remove intro comment. Rewrite.
6549 (program_space::~program_space): Remove intro comment. Call
6550 remove_program_space.
6551 (delete_program_space): Delete.
6552 * progspace.h (program_space::program_space): Make explicit. Move
6553 intro comment here, adjusted.
6554 (program_space::~program_space): Move intro comment here,
6555 adjusted.
6556 (delete_program_space): Remove.
6557
a010605f
TT
65582020-04-16 Tom Tromey <tromey@adacore.com>
6559
6560 * windows-nat.c (windows_nat::handle_access_violation): New
6561 function.
6562 * nat/windows-nat.h (handle_access_violation): Declare.
6563 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6564 windows-nat.c. Call handle_access_violation.
6565
efba5c23
TV
65662020-04-16 Tom de Vries <tdevries@suse.de>
6567
6568 PR symtab/25791
6569 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6570 CUs without psymtab.
6571
97ed802d
KB
65722020-04-16 Kevin Buettner <kevinb@redhat.com>
6573
6574 * python/python.c (do_start_initialization): Don't call
6575 PyEval_InitThreads for Python 3.9 and beyond.
6576
c7d64809
KR
65772020-04-15 Kamil Rytarowski <n54@gmx.com>
6578
6579 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6580 thread functions.
6581 (obsd_nat_target::wait): Likewise.
6582
ce127a96
TT
65832020-04-15 Tom Tromey <tromey@adacore.com>
6584
6585 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6586 (DEBUG_EXCEPT): Use debug_printf.
6587
99f1bc6a
AB
65882020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6589
6590 * completer.c (class completion_tracker::completion_hash_entry)
6591 <hash_name>: New member function.
6592 (completion_tracker::discard_completions): New callback to hash a
6593 completion_hash_entry, pass this to htab_create_alloc.
6594
a0e9b532
JT
65952016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6596
6597 * windows-nat.c (windows_make_so): Warn rather than stopping with
6598 an error if realpath() fails.
6599
06ca5dd4
KR
66002020-04-14 Kamil Rytarowski <n54@gmx.com>
6601
6602 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6603 (nbsd_nat_target::info_proc): Add do_status.
6604
194d088f
TV
66052020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6606 Tom de Vries <tdevries@suse.de>
6607
6608 PR symtab/25718
6609 * psympriv.h (struct partial_symtab::read_symtab)
6610 (struct partial_symtab::expand_psymtab)
6611 (struct partial_symtab::read_dependencies): Update comments.
6612 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6613 read_symtab for includer.
6614 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6615 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6616 (struct dwarf2_include_psymtab::m_readin): Remove.
6617 (struct dwarf2_include_psymtab::includer): New member function.
6618 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6619
c1a66c06
TV
66202020-04-14 Tom de Vries <tdevries@suse.de>
6621
6622 PR symtab/25720
6623 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6624 with NULL symbol_matcher and lookup_name.
6625 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6626 and lookup_name.
6627 * dwarf2/read.c (dw2_expand_symtabs_matching)
6628 (dw2_debug_names_expand_symtabs_matching): Same.
6629 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6630 Make lookup_name a pointer. Update comment.
6631 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6632 lookup_name being a pointer.
6633 * symfile.c (expand_symtabs_matching): Same.
6634 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6635 * linespec.c (iterate_over_all_matching_symtabs): Same.
6636
400b5eca
TT
66372020-04-13 Tom Tromey <tom@tromey.com>
6638
6639 * run-on-main-thread.c: Update include.
6640 * unittests/main-thread-selftests.c: Update include.
6641 * tui/tui-win.c: Update include.
6642 * tui/tui-io.c: Update include.
6643 * tui/tui-interp.c: Update include.
6644 * tui/tui-hooks.c: Update include.
6645 * top.h: Update include.
6646 * top.c: Update include.
6647 * ser-base.c: Update include.
6648 * remote.c: Update include.
6649 * remote-notif.c: Update include.
6650 * remote-fileio.c: Update include.
6651 * record-full.c: Update include.
6652 * record-btrace.c: Update include.
6653 * python/python.c: Update include.
6654 * posix-hdep.c: Update include.
6655 * mingw-hdep.c: Update include.
6656 * mi/mi-main.c: Update include.
6657 * mi/mi-interp.c: Update include.
6658 * main.c: Update include.
6659 * linux-nat.c: Update include.
6660 * interps.c: Update include.
6661 * infrun.c: Update include.
6662 * inf-loop.c: Update include.
6663 * event-top.c: Update include.
6664 * event-loop.c: Move to ../gdbsupport/.
6665 * event-loop.h: Move to ../gdbsupport/.
6666 * async-event.h: Update include.
6667 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6668
93b54c8e
TT
66692020-04-13 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-win.c: Include async-event.h.
6672 * remote.c: Include async-event.h.
6673 * remote-notif.c: Include async-event.h.
6674 * record-full.c: Include async-event.h.
6675 * record-btrace.c: Include async-event.h.
6676 * infrun.c: Include async-event.h.
6677 * event-top.c: Include async-event.h.
6678 * event-loop.h: Move some declarations to async-event.h.
6679 * event-loop.c: Don't include ser-event.h or top.h. Move some
6680 code to async-event.c.
6681 * async-event.h: New file.
6682 * async-event.c: New file.
6683 * Makefile.in (COMMON_SFILES): Add async-event.c.
6684 (HFILES_NO_SRCDIR): Add async-event.h.
6685
c1cd3163
TT
66862020-04-13 Tom Tromey <tom@tromey.com>
6687
6688 * utils.c (flush_streams): New function.
6689 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6690
29f2bf4f
TT
66912020-04-13 Tom Tromey <tom@tromey.com>
6692
6693 * event-loop.c (handle_file_event): Use warning, not
6694 printf_unfiltered.
6695
98029d02
TT
66962020-04-13 Tom Tromey <tom@tromey.com>
6697
6698 * event-loop.c: Include <chrono>.
6699
06cc9596
TT
67002020-04-13 Tom Tromey <tom@tromey.com>
6701
6702 * gdb_select.h: Move to ../gdbsupport/.
6703 * event-loop.c: Update include path.
6704 * top.c: Update include path.
6705 * ser-base.c: Update include path.
6706 * ui-file.c: Update include path.
6707 * ser-tcp.c: Update include path.
6708 * guile/scm-ports.c: Update include path.
6709 * posix-hdep.c: Update include path.
6710 * ser-unix.c: Update include path.
6711 * gdb_usleep.c: Update include path.
6712 * mingw-hdep.c: Update include path.
6713 * inflow.c: Update include path.
6714 * infrun.c: Update include path.
6715 * event-top.c: Update include path.
6716
8ae8e197
TT
67172020-04-13 Tom Tromey <tom@tromey.com>
6718
6719 * configure: Rebuild.
6720 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6721
58cf28e8
TT
67222020-04-13 Tom Tromey <tom@tromey.com>
6723
6724 * event-loop.h (start_event_loop): Don't declare.
6725 * event-loop.c (start_event_loop): Move...
6726 * main.c (start_event_loop): ...here. Now static.
6727
b7f999ae
SDJ
67282020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6729
6730 * MAINTAINERS: Update my email address.
6731
1085dfd4
KR
67322020-04-12 Kamil Rytarowski <n54@gmx.com>
6733
6734 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6735 IP_ALL.
6736
49d1d1f5
KR
67372020-04-12 Kamil Rytarowski <n54@gmx.com>
6738
6739 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6740 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6741
b4848d2a
KR
67422020-04-12 Kamil Rytarowski <n54@gmx.com>
6743
6744 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6745 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6746
51c133d5
KR
67472020-04-12 Kamil Rytarowski <n54@gmx.com>
6748
6749 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6750
54b8cbd0
KR
67512020-04-11 Kamil Rytarowski <n54@gmx.com>
6752
6753 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6754 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6755 (nbsd_nat_target::info_proc): New functions.
6756 * nbsd-nat.c (kinfo_get_vmmap): New function.
6757 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6758 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6759 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6760 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6761 functions.
6762 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6763 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6764 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6765 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6766 (KINFO_VME_FLAG_GROWS_DOWN): New.
6767
cf83625d
AS
67682020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6769
6770 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6771 bit shift.
6772
0c4311ab
TT
67732020-04-10 Tom Tromey <tromey@adacore.com>
6774
6775 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6776
3e65b3e9
TT
67772020-04-10 Tom Tromey <tromey@adacore.com>
6778
6779 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6780 separate debug files.
6781
13302e95
HD
67822020-04-10 Hannes Domani <ssbssa@yahoo.de>
6783
6784 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6785 Move to...
6786 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6787 ... here.
6788 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6789 Check for STATUS_WX86_BREAKPOINT.
6790 (windows_nat_target::wait): Same.
6791
bdfc1e8a
TV
67922020-04-10 Tom de Vries <tdevries@suse.de>
6793
6794 PR cli/25808
6795 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6796
f4460aec
SM
67972020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6800 (Write After Approval): Remove Tom de Vries.
6801
a25198bb
BE
68022020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6803
6804 revert partially:
6805 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6806
aac66a4c
SM
6807 * buildsym.c (record_line): Fix undefined behavior and preserve
6808 lines at eof.
a25198bb 6809
206c98a6
KR
68102020-04-09 Kamil Rytarowski <n54@gmx.com>
6811
6812 * auxv.h (svr4_auxv_parse): New.
6813 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6814 and generic_auxv_parse.
6815 (svr4_auxv_parse): Add.
6816 * obsd-tdep.c: Include "auxv.h".
6817 (obsd_auxv_parse): Remove.
6818 (obsd_init_abi): Remove comment.
6819 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6820 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6821 * nbsd-tdep.c: Include "auxv.h".
6822 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6823
71fbdbaf
TT
68242020-04-08 Tom Tromey <tromey@adacore.com>
6825
6826 * nat/windows-nat.h (last_wait_event): Don't declare.
6827 (wait_for_debug_event): Update comment.
6828 * nat/windows-nat.c (last_wait_event): Now static.
6829
2c1d95e8
TT
68302020-04-08 Tom Tromey <tromey@adacore.com>
6831
6832 * windows-nat.c (wait_for_debug_event): Move to
6833 nat/windows-nat.c.
6834 * nat/windows-nat.h (wait_for_debug_event): Declare.
6835 * nat/windows-nat.c (wait_for_debug_event): Move from
6836 windows-nat.c. No longer static.
6837
d2977bc4
TT
68382020-04-08 Tom Tromey <tromey@adacore.com>
6839
6840 * windows-nat.c (get_windows_debug_event): Use
6841 fetch_pending_stop.
6842 * nat/windows-nat.h (fetch_pending_stop): Declare.
6843 * nat/windows-nat.c (fetch_pending_stop): New function.
6844
e758e19c
TT
68452020-04-08 Tom Tromey <tromey@adacore.com>
6846
6847 * windows-nat.c (windows_continue): Use matching_pending_stop and
6848 continue_last_debug_event.
6849 * nat/windows-nat.h (matching_pending_stop)
6850 (continue_last_debug_event): Declare.
6851 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6852 (matching_pending_stop, continue_last_debug_event): New
6853 functions.
6854
8d30e395
TT
68552020-04-08 Tom Tromey <tromey@adacore.com>
6856
6857 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6858 (handle_exception_result): Move to nat/windows-nat.h.
6859 (DEBUG_EXCEPTION_SIMPLE): Remove.
6860 (windows_nat::handle_ms_vc_exception): New function.
6861 (handle_exception): Move to nat/windows-nat.c.
6862 (get_windows_debug_event): Update.
6863 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6864 nat/windows-nat.c.
6865 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6866 (handle_exception_result): Move from windows-nat.c.
6867 (handle_exception): Declare.
6868 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6869 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6870 windows-nat.c.
6871
29de418d
TT
68722020-04-08 Tom Tromey <tromey@adacore.com>
6873
6874 * windows-nat.c (exception_count, event_count): Remove.
6875 (handle_exception, get_windows_debug_event)
6876 (do_initial_windows_stuff): Update.
6877
a816ba18
TT
68782020-04-08 Tom Tromey <tromey@adacore.com>
6879
6880 * windows-nat.c (windows_nat::handle_load_dll)
6881 (windows_nat::handle_unload_dll): Rename. No longer static.
6882 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6883 Declare.
6884
a00caa12
TT
68852020-04-08 Tom Tromey <tromey@adacore.com>
6886
6887 * complaints.h (stop_whining): Declare at top-level.
6888 (complaint): Don't declare stop_whining.
6889
d41b524f
TT
68902020-04-08 Tom Tromey <tromey@adacore.com>
6891
6892 * windows-nat.c (windows_nat::handle_output_debug_string):
6893 Rename. No longer static.
6894 * nat/windows-nat.h (handle_output_debug_string): Declare.
6895
3c76026d
TT
68962020-04-08 Tom Tromey <tromey@adacore.com>
6897
6898 * windows-nat.c (current_process_handle, current_process_id)
6899 (main_thread_id, last_sig, current_event, last_wait_event)
6900 (current_windows_thread, desired_stop_thread_id, pending_stops)
6901 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6902 (display_selectors, fake_create_process)
6903 (get_windows_debug_event): Update.
6904 * nat/windows-nat.h (current_process_handle, current_process_id)
6905 (main_thread_id, last_sig, current_event, last_wait_event)
6906 (current_windows_thread, desired_stop_thread_id, pending_stops)
6907 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6908 * nat/windows-nat.c (current_process_handle, current_process_id)
6909 (main_thread_id, last_sig, current_event, last_wait_event)
6910 (current_windows_thread, desired_stop_thread_id, pending_stops)
6911 (siginfo_er): New globals. Move from windows-nat.c.
6912
9d8679cc
TT
69132020-04-08 Tom Tromey <tromey@adacore.com>
6914
6915 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6916 (handle_load_dll): Update.
6917 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6918
28688adf
TT
69192020-04-08 Tom Tromey <tromey@adacore.com>
6920
6921 * windows-nat.c (enum thread_disposition_type): Move to
6922 nat/windows-nat.h.
6923 (windows_nat::thread_rec): Rename from thread_rec. No longer
6924 static.
6925 (windows_add_thread, windows_nat_target::fetch_registers)
6926 (windows_nat_target::store_registers, handle_exception)
6927 (windows_nat_target::resume, get_windows_debug_event)
6928 (windows_nat_target::get_tib_address)
6929 (windows_nat_target::thread_name)
6930 (windows_nat_target::thread_alive): Update.
6931 * nat/windows-nat.h (enum thread_disposition_type): Move from
6932 windows-nat.c.
6933 (thread_rec): Declare.
6934
4834dad0
TT
69352020-04-08 Tom Tromey <tromey@adacore.com>
6936
6937 * windows-nat.c: Add "using namespace".
6938 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6939 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6940
65bafd5b
TT
69412020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * nat/windows-nat.h (struct windows_thread_info): Declare
6944 destructor.
6945 * nat/windows-nat.c (~windows_thread_info): New.
6946
0a4afda3
TT
69472020-04-08 Tom Tromey <tromey@adacore.com>
6948
6949 PR gdb/22992
6950 * windows-nat.c (current_event): Update comment.
6951 (last_wait_event, desired_stop_thread_id): New globals.
6952 (struct pending_stop): New.
6953 (pending_stops): New global.
6954 (windows_nat_target) <stopped_by_sw_breakpoint>
6955 <supports_stopped_by_sw_breakpoint>: New methods.
6956 (windows_fetch_one_register): Add assertions. Adjust PC.
6957 (windows_continue): Handle pending stops. Suspend other threads
6958 when stepping. Use last_wait_event
6959 (wait_for_debug_event): New function.
6960 (get_windows_debug_event): Use wait_for_debug_event. Handle
6961 pending stops. Queue spurious stops.
6962 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6963 (windows_nat_target::kill): Use wait_for_debug_event.
6964 * nat/windows-nat.h (struct windows_thread_info)
6965 <stopped_at_software_breakpoint>: New field.
6966 * nat/windows-nat.c (windows_thread_info::resume): Clear
6967 stopped_at_software_breakpoint.
6968
8e61ebec
TT
69692020-04-08 Tom Tromey <tromey@adacore.com>
6970
6971 * windows-nat.c (enum thread_disposition_type): New.
6972 (thread_rec): Replace "get_context" parameter with "disposition";
6973 change type.
6974 (windows_add_thread, windows_nat_target::fetch_registers)
6975 (windows_nat_target::store_registers, handle_exception)
6976 (windows_nat_target::resume, get_windows_debug_event)
6977 (windows_nat_target::get_tib_address)
6978 (windows_nat_target::thread_name)
6979 (windows_nat_target::thread_alive): Update.
6980
98a03287
TT
69812020-04-08 Tom Tromey <tromey@adacore.com>
6982
6983 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6984 (windows_continue): Use windows_continue::resume.
6985 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6986 resume>: Declare new methods.
6987 * nat/windows-nat.c: New file.
6988 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6989
7c7411bc
TT
69902020-04-08 Tom Tromey <tromey@adacore.com>
6991
6992 * windows-nat.c (windows_add_thread, windows_delete_thread)
6993 (windows_nat_target::fetch_registers)
6994 (windows_nat_target::store_registers, fake_create_process)
6995 (windows_nat_target::resume, windows_nat_target::resume)
6996 (get_windows_debug_event, windows_nat_target::wait)
6997 (windows_nat_target::pid_to_str)
6998 (windows_nat_target::get_tib_address)
6999 (windows_nat_target::get_ada_task_ptid)
7000 (windows_nat_target::thread_name)
7001 (windows_nat_target::thread_alive): Use lwp, not tid.
7002
2950fdf7
TT
70032020-04-08 Tom Tromey <tromey@adacore.com>
7004
7005 * windows-nat.c (handle_exception)
7006 (windows_nat_target::thread_name): Update.
7007 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7008 <name>: Now unique_xmalloc_ptr.
7009
62fe396b
TT
70102020-04-08 Tom Tromey <tromey@adacore.com>
7011
7012 * windows-nat.c (thread_rec)
7013 (windows_nat_target::fetch_registers): Update.
7014 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7015 Update comment.
7016 <debug_registers_changed, reload_context>: Now bool.
7017
e9534bd2
TT
70182020-04-08 Tom Tromey <tromey@adacore.com>
7019
7020 * windows-nat.c (windows_add_thread): Use new.
7021 (windows_init_thread_list, windows_delete_thread): Use delete.
7022 (get_windows_debug_event): Update.
7023 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7024 destructor, and initializers.
7025
ae1f8880
TT
70262020-04-08 Tom Tromey <tromey@adacore.com>
7027
7028 * windows-nat.c (struct windows_thread_info): Remove.
7029 * nat/windows-nat.h: New file.
7030
55a1e039
TT
70312020-04-08 Tom Tromey <tromey@adacore.com>
7032
7033 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7034 (thread_rec, windows_add_thread, windows_delete_thread)
7035 (windows_continue): Update.
7036
93366324
TT
70372020-04-08 Tom Tromey <tromey@adacore.com>
7038
7039 * windows-nat.c (struct windows_thread_info): Remove typedef.
7040 (thread_head): Remove.
7041 (thread_list): New global.
7042 (thread_rec, windows_add_thread, windows_init_thread_list)
7043 (windows_delete_thread, windows_continue): Update.
7044
0f2265e2
SM
70452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 * windows-tdep.h (windows_init_abi): Add comment.
7048 (cygwin_init_abi): New declaration.
7049 * windows-tdep.c: Split signal enumeration in two, one for
7050 Windows and one for Cygwin.
7051 (windows_gdb_signal_to_target): Only deal with signal of the
7052 Windows OS ABI.
7053 (cygwin_gdb_signal_to_target): New function.
7054 (windows_init_abi): Rename to windows_init_abi_common, don't set
7055 gdb_signal_to_target gdbarch method. Add new new function with
7056 this name.
7057 (cygwin_init_abi): New function.
7058 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7059 comment. Don't call windows_init_abi.
7060 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7061 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7062 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7063 i386_windows_init_abi_common, don't call windows_init_abi. Add
7064 a new function of this name.
7065 (i386_cygwin_init_abi): New function.
7066 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7067 OS ABI Cygwin.
7068
3810f182
SM
70692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7070
7071 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7072 parameter.c.
7073 (dwarf2_read_gdb_index): Update.
7074
063f8e80
KR
70752020-04-07 Kamil Rytarowski <n54@gmx.com>
7076
7077 * nbsd-tdep.c: Include "objfiles.h".
7078 (nbsd_skip_solib_resolver): New.
7079 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7080
85a9510c 70812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7082
7083 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7084 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7085 with DW_LLE_base_addressx are being emitted in DWARFv5.
7086 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7087 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7088 unsigned integer.
7089
9fc3eaae 70902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7091
7092 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7093 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7094 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7095 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7096 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7097 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7098 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7099
7100
41144253 71012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7102
7103 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7104 (read_loclist_index): New function definition.
7105 (lookup_loclist_base): New function definition.
7106 (read_loclist_header): New function definition.
7107 (dwarf2_cu): Add loclist_base and loclist_header field.
7108 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7109 (read_full_die_1): Read the value of DW_AT_loclists_base.
7110 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7111 (read_attribute_value): Handle DW_FORM_loclistx.
7112 (skip_one_die): Handle DW_FORM_loclistx.
7113 (loclist_header): New structure declaration.
7114 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7115
9f4e76a4
SM
71162020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7119 constructor. Remove `addr` parameter from other constructor and
7120 add `per_cu` parameter.
7121 * dwarf2/read.c (create_partial_symtab): Update.
7122
25c11aca
TV
71232020-04-07 Tom de Vries <tdevries@suse.de>
7124
7125 PR symtab/25796
7126 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7127 (partial_die_info::fixup): Inherit has_const_value.
7128
5707e24b
TV
71292020-04-07 Tom de Vries <tdevries@suse.de>
7130
7131 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7132 symbols without address.
7133
05f00e22
KR
71342020-04-06 Kamil Rytarowski <n54@gmx.com>
7135
7136 * nbsd-nat.h (struct thread_info): Add forward declaration.
7137 (nbsd_nat_target::thread_alive): Add.
7138 (nbsd_nat_target::thread_name): Likewise.
7139 (nbsd_nat_target::update_thread_list): Likewise.
7140 (update_thread_list::post_attach): Likewise.
7141 (post_attach::pid_to_str): Likewise.
7142 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7143 (nbsd_thread_lister): Add.
7144 (nbsd_nat_target::thread_alive): Likewise.
7145 (nbsd_nat_target::thread_name): Likewise.
7146 (nbsd_add_threads): Likewise.
7147 (update_thread_list::post_attach): Likewise.
7148 (nbsd_nat_target::update_thread_list): Likewise.
7149 (post_attach::pid_to_str): Likewise.
7150
6ee448cc
TT
71512020-04-06 Tom Tromey <tromey@adacore.com>
7152
7153 * ada-valprint.c (print_variant_part): Extract the variant field.
7154 (print_field_values): Use the field as the outer value when
7155 recursing.
7156
dea34e8c
TT
71572020-04-06 Tom Tromey <tromey@adacore.com>
7158
7159 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7160 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7161 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7162 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7163 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7164
93689ce9
TT
71652020-04-06 Tom Tromey <tromey@adacore.com>
7166
7167 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7168 TYPE_CODE_ERROR.
7169
79743962
KR
71702020-04-06 Kamil Rytarowski <n54@gmx.com>
7171
7172 * nbsd-tdep.c: Include "gdbarch.h".
7173 Define enum with NetBSD signal numbers.
7174 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7175 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7176 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7177 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7178 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7179 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7180 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7181 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7182 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7183 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7184 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7185 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7186
9e7c9a03
HD
71872020-04-03 Hannes Domani <ssbssa@yahoo.de>
7188
7189 PR gdb/25325
7190 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7191
d9e49b61
TT
71922020-04-03 Tom Tromey <tromey@adacore.com>
7193
7194 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7195 Read constant block.
7196
e0fc5c3f
SM
71972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7200 (gdb_bfd_get_full_section_contents): New declaration.
7201 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7202 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7203 gdb_bfd_get_full_section_contents.
7204
e2ff18a0
SM
72052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * exec.c (build_section_table): Replace internal_error with
7208 gdb_assert.
7209 (section_table_xfer_memory_partial): Likewise.
7210 * mdebugread.c (parse_partial_symbols): Likewise.
7211 * psymtab.c (lookup_partial_symbol): Likewise.
7212 * utils.c (wrap_here): Likewise.
7213
0830d301
TT
72142020-04-02 Tom Tromey <tromey@adacore.com>
7215
7216 * f-lang.c (build_fortran_types): Use arch_type to initialize
7217 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7218
e7da7f8f
TT
72192020-04-02 Tom Tromey <tromey@adacore.com>
7220
7221 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7222 of attributes.
7223
c90d28ac
AB
72242020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7225 Bernd Edlinger <bernd.edlinger@hotmail.de>
7226 Tom Tromey <tromey@adacore.com>
7227
7228 * buildsym.c (buildsym_compunit::record_line): Remove
7229 deduplication code.
7230
1aa98955
TV
72312020-04-02 Tom de Vries <tdevries@suse.de>
7232
7233 PR ada/24671
7234 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7235
d3214198
TV
72362020-04-02 Tom de Vries <tdevries@suse.de>
7237
7238 * dwarf2/read.c (dwarf2_gdb_index_functions,
7239 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7240 NULL.
7241 * psymtab.c (psym_lookup_global_symbol_language): New function.
7242 (psym_functions): Init psym_lookup_global_symbol_language with
7243 psym_lookup_global_symbol_language.
7244 * symfile-debug.c (debug_sym_quick_functions): Init
7245 lookup_global_symbol_language with NULL.
7246 * symfile.c (set_initial_language): Remove fixme comment.
7247 * symfile.h (struct quick_symbol_functions): Add
7248 lookup_global_symbol_language.
7249 * symtab.c (find_quick_global_symbol_language): New function.
7250 (find_main_name): Use find_quick_global_symbol_language.
7251
2836752f
SM
72522020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7253
7254 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7255
64dc2d4b
BE
72562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7257
7258 * buildsym.c (record_line): Fix undefined behavior and preserve
7259 lines at eof.
7260
bbe3dc41
BE
72612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7262
7263 * buildsym.c (record_line): Fix the resizing condition.
7264
6b4a335b
TT
72652020-04-01 Tom Tromey <tom@tromey.com>
7266
7267 * value.h (value_literal_complex): Add comment.
7268 * valops.c (value_literal_complex): Refer to value.h.
7269
3638a098
TT
72702020-04-01 Tom Tromey <tom@tromey.com>
7271
7272 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7273 (scalar_type): New rule, from typebase.
7274 (typebase): Use scalar_type. Recognize complex types.
7275 (field_name): Handle FLOAT_KEYWORD.
7276 (ident_tokens): Add _Complex and __complex__.
7277
c34e8714
TT
72782020-04-01 Tom Tromey <tom@tromey.com>
7279
7280 PR exp/25299:
7281 * valarith.c (promotion_type, complex_binop): New functions.
7282 (scalar_binop): Handle complex numbers. Use promotion_type.
7283 (value_pos, value_neg, value_complement): Handle complex numbers.
7284
fa649bb7
TT
72852020-04-01 Tom Tromey <tom@tromey.com>
7286
7287 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7288 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7289 (parse_number): Handle complex numbers.
7290
981c08ce
TT
72912020-04-01 Tom Tromey <tom@tromey.com>
7292
7293 * c-valprint.c (c_decorations): Change complex suffix to "i".
7294
4c99290d
TT
72952020-04-01 Tom Tromey <tom@tromey.com>
7296
7297 * valprint.c (generic_value_print_complex): Use accessors.
7298 * value.h (value_real_part, value_imaginary_part): Declare.
7299 * valops.c (value_real_part, value_imaginary_part): New
7300 functions.
7301 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7302
5b930b45
TT
73032020-04-01 Tom Tromey <tom@tromey.com>
7304
7305 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7306 (read_range_type): Update.
7307 * mdebugread.c (basic_type): Update.
7308 * go-lang.c (build_go_types): Use init_complex_type.
7309 * gdbtypes.h (struct main_type) <complex_type>: New member.
7310 (init_complex_type): Update.
7311 (arch_complex_type): Don't declare.
7312 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7313 Make name if none given. Use alloc_type_copy. Look for cached
7314 complex type.
7315 (arch_complex_type): Remove.
7316 (gdbtypes_post_init): Use init_complex_type.
7317 * f-lang.c (build_fortran_types): Use init_complex_type.
7318 * dwarf2/read.c (read_base_type): Update.
7319 * d-lang.c (build_d_types): Use init_complex_type.
7320 * ctfread.c (read_base_type): Update.
7321
53cccef1
TBA
73222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7323
7324 * infrun.c (stop_all_threads): Update assertion, plus when
7325 stopping threads, take into account that we might be trying
7326 to stop an all-stop target.
7327 (stop_waiting): Call 'stop_all_threads' if there exists a
7328 non-stop target.
7329
a0714d30
TBA
73302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7331
7332 * target.h (exists_non_stop_target): New function declaration.
7333 * target.c (exists_non_stop_target): New function.
7334
60e22c1e
HD
73352020-04-01 Hannes Domani <ssbssa@yahoo.de>
7336
7337 PR gdb/24789
7338 * eval.c (is_integral_or_integral_reference): New function.
7339 (evaluate_subexp_standard): Allow integer references in
7340 pointer arithmetic.
7341
e139a727
TBA
73422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7343
7344 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7345 check for no ptid in the stop reply when the target is non-stop.
7346
e0802d59
TT
73472020-04-01 Tom Tromey <tromey@adacore.com>
7348
7349 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7350 "name" parameter to rvalue reference. Initialize m_name_holder.
7351 <lookup_name_info>: New overloads.
7352 <name>: Return gdb::string_view.
7353 <c_str>: New method.
7354 <make_ignore_params>: Update.
7355 <search_name_hash>: Update.
7356 <language_lookup_name>: Return const char *.
7357 <m_name>: Change type.
7358 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7359 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7360 (lookup_name_info::match_any): Update.
7361 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7362 Update.
7363 * minsyms.c (linkage_name_str): Update.
7364 * language.c (default_symbol_name_matcher): Update.
7365 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7366 Update.
7367 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7368 (ada_lookup_name_info::ada_lookup_name_info): Update.
7369 (literal_symbol_name_matcher): Update.
7370
8c072cb6
TT
73712020-04-01 Tom Tromey <tromey@adacore.com>
7372
7373 * psymtab.c (psymtab_search_name): Remove function.
7374 (psym_lookup_symbol): Create search name and lookup name here.
7375 (lookup_partial_symbol): Remove "name" parameter; add
7376 lookup_name.
7377 (psym_expand_symtabs_for_function): Update.
7378
6f29a534
TT
73792020-03-31 Joel Jones <joelkevinjones@gmail.com>
7380
7381 PR tui/25597:
7382 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7383
af62665e
TT
73842020-03-31 Tom Tromey <tromey@adacore.com>
7385
7386 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7387 memcpy.
7388
d1a89da5
NC
73892020-03-30 Nelson Chu <nelson.chu@sifive.com>
7390
7391 * features/riscv/32bit-csr.xml: Regenerated.
7392 * features/riscv/64bit-csr.xml: Regenerated.
7393
d8af9068
TT
73942020-03-30 Tom Tromey <tromey@adacore.com>
7395
7396 * ada-valprint.c (print_variant_part): Update.
7397 * ada-lang.h (ada_which_variant_applies): Update.
7398 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7399 outer_valaddr parameters; replace with "outer" value parameter.
7400 (to_fixed_variant_branch_type): Update.
7401
227c0bf4
PFC
74022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7403
7404 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7405 <list>. Remove inclusion of observable.h.
7406 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7407 (struct arch_lwp_info): New struct.
7408 (class ppc_linux_dreg_interface): New class.
7409 (struct ppc_linux_process_info): New struct.
7410 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7411 <low_new_clone, low_forget_process, low_prepare_to_resume>
7412 <copy_thread_dreg_state, mark_thread_stale>
7413 <mark_debug_registers_changed, register_hw_breakpoint>
7414 <clear_hw_breakpoint, register_wp, clear_wp>
7415 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7416 <num_memory_accesses, get_trigger_type>
7417 <create_watchpoint_request, hwdebug_point_cmp>
7418 <init_arch_lwp_info, get_arch_lwp_info>
7419 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7420 methods.
7421 <struct ptid_hash>: New inner struct.
7422 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7423 members.
7424 (saved_dabr_value, hwdebug_info, max_slots_number)
7425 (struct hw_break_tuple, struct thread_points, ppc_threads)
7426 (have_ptrace_hwdebug_interface)
7427 (hwdebug_find_thread_points_by_tid)
7428 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7429 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7430 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7431 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7432 use m_dreg_interface.
7433 (hwdebug_point_cmp): Change to...
7434 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7435 reference arguments instead of pointers.
7436 (ppc_linux_nat_target::ranged_break_num_registers): Use
7437 m_dreg_interface.
7438 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7439 m_dreg_interface. Call register_hw_breakpoint.
7440 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7441 m_dreg_interface. Call clear_hw_breakpoint.
7442 (get_trigger_type): Change to...
7443 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7444 comment.
7445 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7446 use m_dreg_interface. Call register_hw_breakpoint.
7447 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7448 use m_dreg_interface. Call clear_hw_breakpoint.
7449 (can_use_watchpoint_cond_accel): Change to...
7450 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7451 method. Update comment, use m_dreg_interface and
7452 m_process_info.
7453 (calculate_dvc): Change to...
7454 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7455 m_dreg_interface.
7456 (num_memory_accesses): Change to...
7457 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7458 (check_condition): Change to...
7459 (ppc_linux_nat_target::check_condition): ...this method.
7460 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7461 comment, use m_dreg_interface.
7462 (create_watchpoint_request): Change to...
7463 (ppc_linux_nat_target::create_watchpoint_request): ...this
7464 method. Use m_dreg_interface.
7465 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7466 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7467 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7468 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7469 (ppc_linux_nat_target::low_forget_process)
7470 (ppc_linux_nat_target::low_new_fork)
7471 (ppc_linux_nat_target::low_new_clone)
7472 (ppc_linux_nat_target::low_delete_thread)
7473 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7474 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7475 only call mark_thread_stale.
7476 (ppc_linux_thread_exit): Remove.
7477 (ppc_linux_nat_target::stopped_data_address): Change to...
7478 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7479 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7480 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7481 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7482 comment. Call low_stopped_data_address.
7483 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7484 m_dreg_interface.
7485 (ppc_linux_nat_target::masked_watch_num_registers): Use
7486 m_dreg_interface.
7487 (ppc_linux_nat_target::copy_thread_dreg_state)
7488 (ppc_linux_nat_target::mark_thread_stale)
7489 (ppc_linux_nat_target::mark_debug_registers_changed)
7490 (ppc_linux_nat_target::register_hw_breakpoint)
7491 (ppc_linux_nat_target::clear_hw_breakpoint)
7492 (ppc_linux_nat_target::register_wp)
7493 (ppc_linux_nat_target::clear_wp)
7494 (ppc_linux_nat_target::init_arch_lwp_info)
7495 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7496 (_initialize_ppc_linux_nat): Remove observer callback.
7497
4db10d8f
PFC
74982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7499
7500 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7501 (ppc_linux_nat_target::auxv_parse)
7502 (ppc_linux_nat_target::read_description)
7503 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7504 Move up.
7505
1310c1b0
PFC
75062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7507
7508 * linux-nat.h (low_new_clone): New method.
7509 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7510
69b037c3
SM
75112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7512
7513 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7514 (dbx_expand_psymtab): ... this.
7515 (start_psymtab): Update.
7516 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7517 (mdebug_expand_psymtab): ... this.
7518 (parse_partial_symbols): Update.
7519 (new_psymtab): Update.
7520 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7521 (xcoff_expand_psymtab): ... this.
7522 (xcoff_start_psymtab): Update.
7523
48993951
SM
75242020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7525
7526 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7527 <expand_dependencies>: ... this.
7528 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7529 (partial_symtab::expand_dependencies): ... this.
7530 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7531 Update.
7532 (dwarf2_psymtab::expand_psymtab): Update.
7533 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7534 * mdebugread.c (psymtab_to_symtab_1): Update.
7535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7536
3ad83046
SM
75372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7538
7539 * psympriv.h (discard_psymtab): Remove.
7540 * dbxread.c (dbx_end_psymtab): Update.
7541 * xcoffread.c (xcoff_end_psymtab): Update.
7542
4d1b9ab6
TT
75432020-03-28 Tom Tromey <tom@tromey.com>
7544
7545 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7546 comment.
7547
f1749218
TT
75482020-03-28 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7551
ebea7626
HD
75522020-03-27 Hannes Domani <ssbssa@yahoo.de>
7553
7554 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7555
a879b4d5
JB
75562020-03-26 John Baldwin <jhb@FreeBSD.org>
7557
7558 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7559
0826b30a
TT
75602020-03-26 Tom Tromey <tom@tromey.com>
7561
7562 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7563 (mark_common_block_symbol_computed, read_tag_string_type)
7564 (attr_to_dynamic_prop, read_subrange_type): Update.
7565 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7566 to be methods on struct attribute.
7567 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7568 (read_call_site_scope, partial_die_info::read)
7569 (partial_die_info::read, lookup_die_type, follow_die_ref):
7570 Update.
7571 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7572 from dwarf2_get_ref_die_offset.
7573 (attribute::constant_value): New method, from
7574 dwarf2_get_attr_constant_value.
7575 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7576 Declare method.
7577 <constant_value>: New method.
7578
2b2558bf
TT
75792020-03-26 Tom Tromey <tom@tromey.com>
7580
7581 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7582 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7583 (dwarf_type_encoding_name): Move to stringify.c.
7584 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7585 * dwarf2/stringify.c: New file.
7586 * dwarf2/stringify.h: New file.
7587
eeb64781
TT
75882020-03-26 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7591 Rewrite.
7592
a39fdb41
TT
75932020-03-26 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7596 methods.
7597 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7598 (lookup_ranges_base): Likewise.
7599 (read_cutu_die_from_dwo, read_full_die_1): Update.
7600
436c571c
TT
76012020-03-26 Tom Tromey <tom@tromey.com>
7602
7603 * dwarf2/read.c (read_import_statement, read_file_scope)
7604 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7605 (read_lexical_block_scope, read_call_site_scope)
7606 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7607 (handle_struct_member_die, process_structure_scope)
7608 (update_enumeration_type_from_children)
7609 (process_enumeration_scope, read_array_type, read_common_block)
7610 (read_namespace, read_module, read_subroutine_type): Update.
7611 (sibling_die): Remove.
7612
052c8bb8
TT
76132020-03-26 Tom Tromey <tom@tromey.com>
7614
7615 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7616 (build_type_psymtabs_reader, read_structure_type)
7617 (read_enumeration_type, read_full_die_1): Update.
7618 (dwarf2_attr_no_follow): Move to die.h.
7619 * dwarf2/die.h (struct die_info) <attr>: New method.
7620
2b24b6e4
TT
76212020-03-26 Tom Tromey <tom@tromey.com>
7622
7623 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7624 <base_address>: Now an optional.
7625 (dwarf2_find_base_address, dwarf2_rnglists_process)
7626 (dwarf2_ranges_process, fill_in_loclist_baton)
7627 (dwarf2_symbol_mark_computed): Update.
7628
c2d50fd0
TT
76292020-03-26 Tom Tromey <tom@tromey.com>
7630
7631 * dwarf2/read.c (struct die_info): Move to die.h.
7632 * dwarf2/die.h: New file.
7633
0df7ad3a
TT
76342020-03-26 Tom Tromey <tom@tromey.com>
7635
7636 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7637 * dwarf2/read.c
7638 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7639 Move to line-header.c.
7640 (read_checked_initial_length_and_offset, read_formatted_entries):
7641 Likewise.
7642 (dwarf_decode_line_header): Split into two.
7643 * dwarf2/line-header.c
7644 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7645 Move from read.c.
7646 (read_checked_initial_length_and_offset, read_formatted_entries):
7647 Likewise.
7648 (dwarf_decode_line_header): New function, split from read.c.
7649
86c0bb4c
TT
76502020-03-26 Tom Tromey <tom@tromey.com>
7651
7652 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7653 Declare method.
7654 * dwarf2/read.c (read_attribute_value): Update.
7655 (dwarf2_per_objfile::read_line_string): Rename from
7656 read_indirect_line_string.
7657 (read_formatted_entries): Update.
7658
2ef46c2f
TT
76592020-03-26 Tom Tromey <tom@tromey.com>
7660
7661 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7662 variable.
7663
4f9c1eda
TT
76642020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7667 const.
7668 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7669 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7670 parameter const.
7671
5a0e026f
TT
76722020-03-26 Tom Tromey <tom@tromey.com>
7673
7674 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7675 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7676 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7677 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7678
8844c11b
TT
76792020-03-26 Tom Tromey <tom@tromey.com>
7680
7681 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7682 file_names_size, file_full_name, file_file_name>: Use const.
7683 <file_name_at, file_names>: Add const overload.
7684 * dwarf2/line-header.c (line_header::file_file_name)
7685 (line_header::file_full_name): Update.
7686
c90ec28a
TT
76872020-03-26 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7690 (macro_start_file, consume_improper_spaces)
7691 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7692 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7693 (dwarf_decode_macros): Move to macro.c.
7694 * dwarf2/macro.c: New file.
7695 * dwarf2/macro.h: New file.
7696 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7697
4f44ae6c
TT
76982020-03-26 Tom Tromey <tom@tromey.com>
7699
7700 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7701 method.
7702 * dwarf2/section.c: New method. From
7703 read_indirect_string_at_offset_from.
7704 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7705 (read_indirect_string_at_offset_from): Move to section.c.
7706 (read_indirect_string_at_offset): Rewrite.
7707 (read_indirect_line_string_at_offset): Remove.
7708 (read_indirect_string, read_indirect_line_string)
7709 (dwarf_decode_macro_bytes): Update.
7710
a0194fa8
TT
77112020-03-26 Tom Tromey <tom@tromey.com>
7712
7713 * dwarf2/section.h (struct dwarf2_section_info)
7714 <overload_complaint>: Declare.
7715 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7716 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7717 Rename from dwarf2_section_buffer_overflow_complaint.
7718 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7719 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7720
3d27bbdb
TT
77212020-03-26 Tom Tromey <tom@tromey.com>
7722
7723 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7724 Declare.
7725 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7726 Move from read.c.
7727 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7728 to section.c.
7729
9eac9650
TT
77302020-03-26 Tom Tromey <tom@tromey.com>
7731
7732 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7733
bf80d710
TT
77342020-03-26 Tom Tromey <tom@tromey.com>
7735
7736 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7737 "builder".
7738 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7739 parameter.
7740 (dwarf_decode_macros): Update.
7741
0314b390
TT
77422020-03-26 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2/read.c (read_attribute_value): Update.
7745 (read_indirect_string_from_dwz): Move to dwz.c; change into
7746 method.
7747 (dwarf_decode_macro_bytes): Update.
7748 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7749 * dwarf2/dwz.c: New file.
7750 * Makefile.in (COMMON_SFILES): Add dwz.c.
7751
9fda78b6
TT
77522020-03-26 Tom Tromey <tom@tromey.com>
7753
7754 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7755 * dwarf2/read.c: Add include.
7756 * dwarf2/index-write.c: Add include.
7757 * dwarf2/index-cache.c: Add include.
7758 * dwarf2/dwz.h: New file.
7759
33aa3c10
TT
77602020-03-25 Tom Tromey <tom@tromey.com>
7761
7762 * compile/compile-object-load.c (get_out_value_type): Mention
7763 correct symbol name in error message.
7764
d503b685
HD
77652020-03-25 Hannes Domani <ssbssa@yahoo.de>
7766
7767 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7768
7b1eff95
TV
77692020-03-25 Tom de Vries <tdevries@suse.de>
7770
7771 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7772 * symmisc.c (dump_symtab_1): Print user and includes fields.
7773 (maintenance_info_symtabs): Same.
7774
dd895392
AB
77752020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 PR gdb/25534
7778 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7779 (riscv_regcache_cooked_write): New function.
7780 (riscv_push_dummy_call): Use new function.
7781 (riscv_return_value): Likewise.
7782
5ab2fbf1
SM
77832020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7784
7785 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7786 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7787 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7788 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7789 * infrun.c (follow_fork): Likewise.
7790 (follow_fork_inferior): Likewise.
7791 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7792 * linux-nat.h (class linux_nat_target): Likewise.
7793 * remote.c (class remote_target) <follow_fork>: Likewise.
7794 (remote_target::follow_fork): Likewise.
7795 * target-delegates.c: Re-generate.
7796 * target.c (default_follow_fork): Likewise.
7797 (target_follow_fork): Likewise.
7798 * target.h (struct target_ops) <follow_fork>: Likewise.
7799 (target_follow_fork): Likewise.
7800
a64fafb5
TV
78012020-03-24 Tom de Vries <tdevries@suse.de>
7802
7803 * psymtab.c (maintenance_info_psymtabs): Print user field.
7804
fe26d3a3
TT
78052020-03-20 Tom Tromey <tromey@adacore.com>
7806
7807 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7808 const.
7809 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7810 const.
7811
c884cc46
SM
78122020-03-20 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * ptrace.m4: Don't check for ptrace declaration.
7815 * config.in: Re-generate.
7816 * configure: Re-generate.
7817 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7818 not defined.
7819
1ff700c2
KR
78202020-03-20 Kamil Rytarowski <n54@gmx.com>
7821
7822 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7823 `PTRACE_TYPE_RET'.
7824 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7825 * sparc-nat.c (gdb_ptrace): Likewise.
7826 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7827
f7d4f0b1
TT
78282020-03-20 Tom Tromey <tromey@adacore.com>
7829
7830 * c-exp.y (lex_one_token): Fix assert.
7831
f67210ff
TT
78322020-03-20 Tom Tromey <tromey@adacore.com>
7833
7834 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7835 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7836 strncpy call.
7837
1773be9e
TT
78382020-03-20 Tom Tromey <tromey@adacore.com>
7839
7840 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7841
70304be9
TT
78422020-03-20 Tom Tromey <tromey@adacore.com>
7843
7844 * ada-valprint.c (print_variant_part): Remove parameters; switch
7845 to value-based API.
7846 (print_field_values): Likewise.
7847 (ada_val_print_struct_union): Likewise.
7848 (ada_value_print_1): Update.
7849
9faa006d
KR
78502020-03-20 Kamil Rytarowski <n54@gmx.com>
7851
7852 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7853 nbsd_nat_target instead of inf_ptrace_target.
7854 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7855 nbsd_nat_target.
7856
4a90f062
KR
78572020-03-20 Kamil Rytarowski <n54@gmx.com>
7858
7859 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7860 it to the ptrace call.
7861 * (store_registers): Likewise.
7862
78632020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7864
7865 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7866 it to the ptrace call.
7867 * (store_registers): Likewise.
7868
2d07da27
LM
78692020-03-19 Luis Machado <luis.machado@linaro.org>
7870
7871 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7872 valid, fetch vg value from ptrace.
7873
f09db380
KR
78742020-03-19 Kamil Rytarowski <n54@gmx.com>
7875 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7876 * inf-ptrace.c: Likewise.
7877 * (gdb_ptrace): Add.
7878 * (inf_ptrace_target::resume): Update.
7879 * (inf_ptrace_target::xfer_partial): Likewise.
7880 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7881 * (inf_ptrace_peek_poke): Update.
7882
fcc7376e
KR
78832020-03-19 Kamil Rytarowski <n54@gmx.com>
7884
7885 * x86-bsd-nat.c (gdb_ptrace): New.
7886 * (x86bsd_dr_set): Add new argument `ptid'.
7887 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7888 x86bsd_dr_set_addr): Update.
7889
cada5fc9
AB
78902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * remote.c (remote_target::process_stop_reply): Handle events for
7893 all threads differently.
7894
19a2740f
AB
78952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 * completer.c (completion_tracker::remove_completion): Define new
7898 function.
7899 * completer.h (completion_tracker::remove_completion): Declare new
7900 function.
7901 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7902 when adding a C++ function symbol.
7903
724fd9ba
AB
79042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7905
7906 * completer.c (completion_tracker::completion_hash_entry): Define
7907 new class.
7908 (advance_to_filename_complete_word_point): Call
7909 recompute_lowest_common_denominator.
7910 (completion_tracker::completion_tracker): Call discard_completions
7911 to setup the hash table.
7912 (completion_tracker::discard_completions): Allow for being called
7913 from the constructor, pass new equal function, and element deleter
7914 when constructing the hash table. Initialise new class member
7915 variables.
7916 (completion_tracker::maybe_add_completion): Remove use of
7917 m_entries_vec, and store more information into m_entries_hash.
7918 (completion_tracker::recompute_lcd_visitor): New function, most
7919 content taken from...
7920 (completion_tracker::recompute_lowest_common_denominator):
7921 ...here, this now just visits each item in the hash calling the
7922 above visitor.
7923 (completion_tracker::build_completion_result): Remove use of
7924 m_entries_vec, call recompute_lowest_common_denominator.
7925 * completer.h (completion_tracker::have_completions): Remove use
7926 of m_entries_vec.
7927 (completion_tracker::completion_hash_entry): Declare new class.
7928 (completion_tracker::recompute_lowest_common_denominator): Change
7929 function signature.
7930 (completion_tracker::recompute_lcd_visitor): Declare new function.
7931 (completion_tracker::m_entries_vec): Delete.
7932 (completion_tracker::m_entries_hash): Initialize to NULL.
7933 (completion_tracker::m_lowest_common_denominator_valid): New
7934 member variable.
7935 (completion_tracker::m_lowest_common_denominator_max_length): New
7936 member variable.
7937
5a82b8a1
KR
79382020-03-17 Kamil Rytarowski <n54@gmx.com>
7939
7940 * regformats/regdef.h: Put reg in gdb namespace.
7941
fb516a69
KR
79422020-03-17 Kamil Rytarowski <n54@gmx.com>
7943
7944 * i386-bsd-nat.c (gdb_ptrace): New.
7945 * (i386bsd_fetch_inferior_registers,
7946 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7947 * (i386bsd_fetch_inferior_registers,
7948 i386bsd_store_inferior_registers) Use gdb_ptrace.
7949
1c0aa1fb
KR
79502020-03-17 Kamil Rytarowski <n54@gmx.com>
7951
7952 * amd64-bsd-nat.c (gdb_ptrace): New.
7953 * (amd64bsd_fetch_inferior_registers,
7954 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7955 * (amd64bsd_fetch_inferior_registers,
7956 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7957
5ccd2fb7
KR
79582020-03-17 Kamil Rytarowski <n54@gmx.com>
7959
7960 * user-regs.c (user_reg::read): Rename to...
7961 (user_reg::xread): ...this.
7962 * (append_user_reg): Rename argument `read' to `xread'.
7963 * (user_reg_add_builtin): Likewise.
7964 * (user_reg_add): Likewise.
7965 * (value_of_user_reg): Likewise.
7966
2108a63a
KR
79672020-03-17 Kamil Rytarowski <n54@gmx.com>
7968
7969 * sparc-nat.c (gdb_ptrace): New.
7970 * sparc-nat.c (sparc_fetch_inferior_registers)
7971 (sparc_store_inferior_registers) Remove obsolete comment.
7972 * sparc-nat.c (sparc_fetch_inferior_registers)
7973 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7974 * sparc-nat.c (sparc_fetch_inferior_registers)
7975 (sparc_store_inferior_registers) Use gdb_ptrace.
7976
a225c9a8
KR
79772020-03-17 Kamil Rytarowski <n54@gmx.com>
7978
7979 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7980 it to the ptrace call.
7981 * sh-nbsd-nat.c (store_registers): Likewise.
7982
98097623
KR
79832020-03-17 Kamil Rytarowski <n54@gmx.com>
7984
7985 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7986 nbsd_nat_target instead of inf_ptrace_target.
7987 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7988 nbsd_nat_target.
7989
9e38d619
KR
79902020-03-17 Kamil Rytarowski <n54@gmx.com>
7991
7992 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7993
a2ecbe9f
KR
79942020-03-17 Kamil Rytarowski <n54@gmx.com>
7995
7996 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7997 <sys/sysctl.h>.
7998 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7999
58990295
TV
80002020-03-17 Tom de Vries <tdevries@suse.de>
8001
8002 PR gdb/23710
8003 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8004 fields.
8005 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8006 fields.
8007 (process_imported_unit_die): Skip import of c++ CUs.
8008
771dd3a8
TT
80092020-03-16 Tom Tromey <tom@tromey.com>
8010
8011 * p-valprint.c (pascal_object_print_value): Initialize
8012 base_value.
8013
817a7585
AK
80142020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8015 Shahab Vahedi <shahab@synopsys.com>
8016
8017 * Makefile.in: Add arch/arc.o
8018 * configure.tgt: Likewise.
8019 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8020 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8021 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8022 * arc-tdep.h (arc_read_description): Add proto type.
8023 * arch/arc.c: New file.
8024 * arch/arc.h: Likewise.
8025 * features/Makefile: Replace old target descriptions with new.
8026 * features/arc-arcompact.c: Remove.
8027 * features/arc-arcompact.xml: Likewise.
8028 * features/arc-v2.c: Likewise
8029 * features/arc-v2.xml: Likewise
8030 * features/arc/aux-arcompact.xml: New file.
8031 * features/arc/aux-v2.xml: Likewise.
8032 * features/arc/core-arcompact.xml: Likewise.
8033 * features/arc/core-v2.xml: Likewise.
8034 * features/arc/aux-arcompact.c: Generate.
8035 * features/arc/aux-v2.c: Likewise.
8036 * features/arc/core-arcompact.c: Likewise.
8037 * features/arc/core-v2.c: Likewise.
8038 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8039
67430cd0
TT
80402020-03-16 Tom Tromey <tromey@adacore.com>
8041
8042 PR gdb/25663:
8043 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8044 putting value into bcache.
8045
30efb6c7
SM
80462020-03-16 Simon Marchi <simon.marchi@efficios.com>
8047
8048 PR gdb/21500
8049 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8050 to...
8051 (amd64_windows_init_abi_common): ... this. Don't set size of
8052 long type.
8053 (amd64_windows_init_abi): New function.
8054 (amd64_cygwin_init_abi): New function.
8055 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8056 the Cygwin OS ABI.
8057 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8058 comment.
8059
8db52437
SM
80602020-03-16 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8063 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8064 (pe_import_directory_entry): New struct type.
8065 (is_linked_with_cygwin_dll): New function.
8066 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8067 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8068 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8069
5982a56a
SM
80702020-03-16 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8073 i386_cygwin_core_osabi_sniffer.
8074
7a1998df
SM
80752020-03-16 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * i386-cygwin-tdep.c: Rename to...
8078 * i386-windows-tdep.c: ... this.
8079 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8080 i386-windows-tdep.c.
8081 * configure.tgt: Likewise.
8082
053205cc
SM
80832020-03-16 Simon Marchi <simon.marchi@efficios.com>
8084
8085 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8086 * osabi.c (gdb_osabi_names): Add "Windows".
8087 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8088 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8089 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8090 i386_cygwin_osabi_sniffer.
8091 (_initialize_i386_cygwin_tdep): Register OS ABI
8092 GDB_OSABI_WINDOWS for i386.
8093 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8094 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8095 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8096 for x86-64.
8097 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8098 when the target matches '*-*-mingw*'.
8099
fe4b2ee6
SM
81002020-03-16 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * defs.h (enum gdb_osabi): Move to...
8103 * osabi.h (enum gdb_osabi): ... here.
8104 * gdbarch.sh: Include osabi.h in gdbarch.h.
8105 * gdbarch.h: Re-generate.
8106
cb9b645d
SM
81072020-03-16 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8110 function.
8111 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8112
3293bbaf
TT
81132020-03-14 Tom Tromey <tom@tromey.com>
8114
8115 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8116 for C++.
8117 (c_type_print_modifier): Likewise. Add "language" parameter.
8118 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8119 (c_type_print_base_1): Update.
8120 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8121 constants.
8122 * type-stack.c (type_stack::insert): Handle tp_atomic and
8123 tp_restrict.
8124 (type_stack::follow_type_instance_flags): Likewise.
8125 (type_stack::follow_types): Likewise. Merge type-following code.
8126 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8127 (space_identifier, cv_with_space_id)
8128 (const_or_volatile_or_space_identifier_noopt)
8129 (const_or_volatile_or_space_identifier): Remove.
8130 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8131 rules.
8132 (ptr_operator, typebase): Update.
8133 (enum token_flag) <FLAG_C>: New constant.
8134 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8135 "_Atomic".
8136 (lex_one_token): Handle FLAG_C.
8137
154151a6
KR
81382020-03-14 Kamil Rytarowski <n54@gmx.com>
8139
8140 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8141 it to the ptrace call.
8142 * m68k-bsd-nat.c (store_registers): Likewise.
8143
bc107784
KR
81442020-03-14 Kamil Rytarowski <n54@gmx.com>
8145
8146 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8147 gdb_byte *.
8148 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8149 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8150 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8151
01a80117
KR
81522020-03-14 Kamil Rytarowski <n54@gmx.com>
8153
8154 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8155 nbsd_nat_target instead of inf_ptrace_target.
8156 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8157 nbsd_nat_target.
8158
f90280ca
KR
81592020-03-14 Kamil Rytarowski <n54@gmx.com>
8160
8161 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8162 register_t.
8163
6def66f1
KR
81642020-03-14 Kamil Rytarowski <n54@gmx.com>
8165
8166 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8167 it to the ptrace call.
8168 * alpha-bsd-nat.c (store_registers): Likewise.
8169
66eaca97
KR
81702020-03-14 Kamil Rytarowski <n54@gmx.com>
8171
8172 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8173 includes.
8174 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8175 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8176 fill_fpregset): Likewise.
8177
4fed520b
KR
81782020-03-14 Kamil Rytarowski <n54@gmx.com>
8179
8180 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8181 nbsd_nat_target instead of inf_ptrace_target.
8182 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8183 nbsd_nat_target.
8184
2190cf06
KR
81852020-03-14 Kamil Rytarowski <n54@gmx.com>
8186
8187 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8188 register_t.
8189
75c56d3d
KR
81902020-03-14 Kamil Rytarowski <n54@gmx.com>
8191
8192 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8193 it to the ptrace call.
8194 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8195 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8196 * arm-nbsd-nat.c (store_register): Likewise.
8197 * arm-nbsd-nat.c (store_regs): Likewise.
8198 * arm-nbsd-nat.c (store_fp_register): Likewise.
8199 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8200
6018d381
KR
82012020-03-14 Kamil Rytarowski <n54@gmx.com>
8202
8203 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8204 nbsd_nat_target instead of inf_ptrace_target.
8205 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8206 nbsd_nat_target.
8207
013f99f0
KR
82082020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8211 it to the ptrace call.
8212 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8213
12753073
KR
82142020-03-14 Kamil Rytarowski <n54@gmx.com>
8215
6227b330
KR
8216 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8217 it to the ptrace call.
8218 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8219
82202020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8223 gdb_byte *.
12753073
KR
8224 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8225
d5be5fa4
KR
82262020-03-14 Kamil Rytarowski <n54@gmx.com>
8227
8228 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8229 instead of inf_ptrace_target.
8230 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8231 nbsd_nat_target.
8232
8110f842
KR
82332020-03-14 Kamil Rytarowski <n54@gmx.com>
8234
8235 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8236 register_t.
8237
52feded7
KR
82382020-03-14 Kamil Rytarowski <n54@gmx.com>
8239
8240 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8241 register_t.
8242
25567eee
KR
82432020-03-14 Kamil Rytarowski <n54@gmx.com>
8244
8245 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8246 register_t.
8247
426a9c18
TT
82482020-03-13 Tom Tromey <tom@tromey.com>
8249
8250 * value.h (val_print): Don't declare.
8251 * valprint.h (val_print_array_elements)
8252 (val_print_scalar_formatted, generic_val_print): Don't declare.
8253 * valprint.c (generic_val_print_array): Take a struct value.
8254 (generic_val_print_ptr, generic_val_print_memberptr)
8255 (generic_val_print_bool, generic_val_print_int)
8256 (generic_val_print_char, generic_val_print_complex)
8257 (generic_val_print): Remove.
8258 (generic_value_print): Update.
8259 (do_val_print): Remove unused parameters. Don't call
8260 la_val_print.
8261 (val_print): Remove.
8262 (common_val_print): Update. Don't call value_check_printable.
8263 (val_print_scalar_formatted, val_print_array_elements): Remove.
8264 * rust-lang.c (rust_val_print): Remove.
8265 (rust_language_defn): Update.
8266 * p-valprint.c (pascal_val_print): Remove.
8267 (pascal_value_print_inner): Update.
8268 (pascal_object_print_val_fields, pascal_object_print_val):
8269 Remove.
8270 (pascal_object_print_static_field): Update.
8271 * p-lang.h (pascal_val_print): Don't declare.
8272 * p-lang.c (pascal_language_defn): Update.
8273 * opencl-lang.c (opencl_language_defn): Update.
8274 * objc-lang.c (objc_language_defn): Update.
8275 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8276 * m2-lang.h (m2_val_print): Don't declare.
8277 * m2-lang.c (m2_language_defn): Update.
8278 * language.h (struct language_defn) <la_val_print>: Remove.
8279 * language.c (unk_lang_value_print_inner): Rename. Change
8280 argument types.
8281 (unknown_language_defn, auto_language_defn): Update.
8282 * go-valprint.c (go_val_print): Remove.
8283 * go-lang.h (go_val_print): Don't declare.
8284 * go-lang.c (go_language_defn): Update.
8285 * f-valprint.c (f_val_print): Remove.
8286 * f-lang.h (f_value_print): Don't declare.
8287 * f-lang.c (f_language_defn): Update.
8288 * d-valprint.c (d_val_print): Remove.
8289 * d-lang.h (d_value_print): Don't declare.
8290 * d-lang.c (d_language_defn): Update.
8291 * cp-valprint.c (cp_print_value_fields)
8292 (cp_print_value_fields_rtti, cp_print_value): Remove.
8293 (cp_print_static_field): Update.
8294 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8295 (c_val_print_struct, c_val_print_union, c_val_print_int)
8296 (c_val_print_memberptr, c_val_print): Remove.
8297 * c-lang.h (c_val_print_array, cp_print_value_fields)
8298 (cp_print_value_fields_rtti): Don't declare.
8299 * c-lang.c (c_language_defn, cplus_language_defn)
8300 (asm_language_defn, minimal_language_defn): Update.
8301 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8302 (ada_val_print_enum): Take a struct value.
8303 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8304 (ada_val_print): Remove.
8305 (ada_value_print_1): Update.
8306 (printable_val_type): Remove.
8307 * ada-lang.h (ada_val_print): Don't declare.
8308 * ada-lang.c (ada_language_defn): Update.
8309
42331a1e
TT
83102020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * valprint.c (do_val_print): Update.
8313 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8314 a struct value.
8315 (value_to_value_object_no_release): Declare.
8316 * python/py-value.c (value_to_value_object_no_release): New
8317 function.
8318 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8319 struct value.
8320 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8321 function.
8322 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8323 a struct value.
8324 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8325 Declare.
8326 (gdbscm_apply_val_pretty_printer): Take a struct value.
8327 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8328 value.
8329 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8330 value.
8331 * extension-priv.h (struct extension_language_ops)
8332 <apply_val_pretty_printer>: Take a struct value.
8333 * cp-valprint.c (cp_print_value): Create a struct value.
8334 (cp_print_value): Update.
8335
3a916a97
TT
83362020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * ada-valprint.c (print_field_values): Call common_val_print.
8339
b59eac37
TT
83402020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * ada-valprint.c (val_print_packed_array_elements): Remove
8343 bitoffset and val parameters. Call common_val_print.
8344 (ada_val_print_string): Remove offset, address, and original_value
8345 parameters.
8346 (ada_val_print_array): Update.
8347 (ada_value_print_array): New function.
8348 (ada_value_print_1): Call it.
8349
03371129
TT
83502020-03-13 Tom Tromey <tom@tromey.com>
8351
8352 * ada-valprint.c (ada_value_print): Use common_val_print.
8353
2e088f8b
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8357
39ef85a8
TT
83582020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * ada-valprint.c (ada_value_print_num): New function.
8361 (ada_value_print_1): Use it.
8362
b9fa6e07
TT
83632020-03-13 Tom Tromey <tom@tromey.com>
8364
8365 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8366
416595d6
TT
83672020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * ada-valprint.c (ada_value_print_ptr): New function.
8370 (ada_value_print_1): Use it.
8371
5b5e15ec
TT
83722020-03-13 Tom Tromey <tom@tromey.com>
8373
8374 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8375 call common_val_print.
8376 (ada_val_print_1): Update.
8377 (ada_value_print_1): New function.
8378 (ada_value_print_inner): Rewrite.
8379
fbf54e75
TT
83802020-03-13 Tom Tromey <tom@tromey.com>
8381
8382 * cp-valprint.c (cp_print_value_fields): Update.
8383 (cp_print_value): New function.
8384
64b653ca
TT
83852020-03-13 Tom Tromey <tom@tromey.com>
8386
8387 * m2-valprint.c (m2_value_print_inner): Use
8388 cp_print_value_fields.
8389 * cp-valprint.c (cp_print_value_fields): New function.
8390 * c-valprint.c (c_value_print_struct): New function.
8391 (c_value_print_inner): Use c_value_print_struct.
8392 * c-lang.h (cp_print_value_fields): Declare.
8393
6999f067
TT
83942020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * c-valprint.c (c_value_print_array): New function.
8397 (c_value_print_inner): Use it.
8398
ce80b8bd
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * c-valprint.c (c_value_print_memberptr): New function.
8402 (c_value_print_inner): Use it.
8403
2faac269
TT
84042020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * c-valprint.c (c_value_print_int): New function.
8407 (c_value_print_inner): Use it.
8408
da3e2c29
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * c-valprint.c (c_value_print_ptr): New function.
8412 (c_value_print_inner): Use it.
8413
50836231
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * c-valprint.c (c_value_print_inner): Rewrite.
8417
4f412b6e
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * valprint.c (generic_value_print_complex): New function.
8421 (generic_value_print): Use it.
8422
f5354008
TT
84232020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * valprint.c (generic_val_print_float): Don't call
8426 val_print_scalar_formatted.
8427 (generic_val_print, generic_value_print): Update.
8428
3eec3b05
TT
84292020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * valprint.c (generic_value_print_char): New function
8432 (generic_value_print): Use it.
8433
fdddfccb
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * valprint.c (generic_value_print_int): New function.
8437 (generic_value_print): Use it.
8438
6dde7521
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * valprint.c (generic_value_print_bool): New function.
8442 (generic_value_print): Use it.
8443
4112d2e6
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * valprint.c (generic_val_print_func): Simplify.
8447 (generic_val_print, generic_value_print): Update.
8448
65786af6
TT
84492020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * valprint.c (generic_val_print_flags): Remove.
8452 (generic_val_print, generic_value_print): Update.
8453 (val_print_type_code_flags): Add original_value parameter.
8454
40f3ce18
TT
84552020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * valprint.c (generic_val_print): Update.
8458 (generic_value_print): Update.
8459 * valprint.c (generic_val_print_enum): Don't call
8460 val_print_scalar_formatted.
8461
2a5b130b
TT
84622020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8465 * valprint.c (generic_value_print_ptr): New function.
8466
abc66ce9
TT
84672020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * valprint.c (generic_value_print): Rewrite.
8470
07a32858
TT
84712020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * p-valprint.c (pascal_object_print_value_fields)
8474 (pascal_object_print_value): New functions.
8475
64d64d3a
TT
84762020-03-13 Tom Tromey <tom@tromey.com>
8477
8478 * p-valprint.c (pascal_value_print_inner): Rewrite.
8479
6a95a1f5
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * f-valprint.c (f_value_print_innner): Rewrite.
8483
59fcdac6
TT
84842020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * m2-valprint.c (m2_print_unbounded_array): New overload.
8487 (m2_print_unbounded_array): Update.
8488 (m2_print_array_contents): Take a struct value.
8489 (m2_value_print_inner): Rewrite.
8490
d133c3e1
TT
84912020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8494 (d_value_print_inner): New function.
8495 * d-lang.h (d_value_print_inner): Declare.
8496 * d-lang.c (d_language_defn): Use d_value_print_inner.
8497
23b0f06b
TT
84982020-03-13 Tom Tromey <tom@tromey.com>
8499
8500 * go-valprint.c (go_value_print_inner): New function.
8501 * go-lang.h (go_value_print_inner): Declare.
8502 * go-lang.c (go_language_defn): Use go_value_print_inner.
8503
5f56f7cb
TT
85042020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8507 API.
8508 (rust_val_print): Rewrite.
8509 (rust_value_print_inner): New function, from rust_val_print.
8510 (rust_language_defn): Use rust_value_print_inner.
8511
26792ee0
TT
85122020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * ada-valprint.c (ada_value_print_inner): New function.
8515 * ada-lang.h (ada_value_print_inner): Declare.
8516 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8517
24051bbe
TT
85182020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * f-valprint.c (f_value_print_innner): New function.
8521 * f-lang.h (f_value_print_innner): Declare.
8522 * f-lang.c (f_language_defn): Use f_value_print_innner.
8523
c0941be6
TT
85242020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * p-valprint.c (pascal_value_print_inner): New function.
8527 * p-lang.h (pascal_value_print_inner): Declare.
8528 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8529
62c4663d
TT
85302020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * m2-valprint.c (m2_value_print_inner): New function.
8533 * m2-lang.h (m2_value_print_inner): Declare.
8534 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8535
62182190
TT
85362020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8539 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8540 * c-valprint.c (c_value_print_inner): New function.
8541 * c-lang.h (c_value_print_inner): Declare.
8542 * c-lang.c (c_language_defn, cplus_language_defn)
8543 (asm_language_defn, minimal_language_defn): Use
8544 c_value_print_inner.
8545
1e592a8a
TT
85462020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * p-valprint.c (pascal_object_print_value_fields): Now static.
8549 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8550
7fe471e9
TT
85512020-03-13 Tom Tromey <tom@tromey.com>
8552
8553 * c-valprint.c (c_val_print_array): Simplify.
8554
d121c6ce
TT
85552020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * valprint.c (value_print_array_elements): New function.
8558 * valprint.h (value_print_array_elements): Declare.
8559
4dba70ee
TT
85602020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8563 * mips-tdep.c (mips_print_register): Use
8564 value_print_scalar_formatted.
8565
4f9ae810
TT
85662020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * valprint.h (value_print_scalar_formatted): Declare.
8569 * valprint.c (value_print_scalar_formatted): New function.
8570
156bfec9
TT
85712020-03-13 Tom Tromey <tom@tromey.com>
8572
8573 * valprint.h (generic_value_print): Declare.
8574 * valprint.c (generic_value_print): New function.
8575
2b4e573d
TT
85762020-03-13 Tom Tromey <tom@tromey.com>
8577
8578 * valprint.c (do_val_print): Call la_value_print_inner, if
8579 available.
8580 * rust-lang.c (rust_language_defn): Update.
8581 * p-lang.c (pascal_language_defn): Update.
8582 * opencl-lang.c (opencl_language_defn): Update.
8583 * objc-lang.c (objc_language_defn): Update.
8584 * m2-lang.c (m2_language_defn): Update.
8585 * language.h (struct language_defn) <la_value_print_inner>: New
8586 member.
8587 * language.c (unknown_language_defn, auto_language_defn): Update.
8588 * go-lang.c (go_language_defn): Update.
8589 * f-lang.c (f_language_defn): Update.
8590 * d-lang.c (d_language_defn): Update.
8591 * c-lang.c (c_language_defn, cplus_language_defn)
8592 (asm_language_defn, minimal_language_defn): Update.
8593 * ada-lang.c (ada_language_defn): Update.
8594
a1f6a07c
TT
85952020-03-13 Tom Tromey <tom@tromey.com>
8596
8597 * c-valprint.c (c_value_print): Use common_val_print.
8598
410cf315
TT
85992020-03-13 Tom Tromey <tom@tromey.com>
8600
8601 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8602
72a45c93
TT
86032020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * f-valprint.c (f77_print_array_1, f_val_print): Use
8606 common_val_print.
8607
040f66bd
TT
86082020-03-13 Tom Tromey <tom@tromey.com>
8609
8610 * riscv-tdep.c (riscv_print_one_register_info): Use
8611 common_val_print.
8612
a6e05a6c
TT
86132020-03-13 Tom Tromey <tom@tromey.com>
8614
8615 * mi/mi-main.c (output_register): Use common_val_print.
8616
3444c526
TT
86172020-03-13 Tom Tromey <tom@tromey.com>
8618
8619 * infcmd.c (default_print_one_register_info): Use
8620 common_val_print.
8621
c2a44efe
TT
86222020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * valprint.h (common_val_print_checked): Declare.
8625 * valprint.c (common_val_print_checked): New function.
8626 * stack.c (print_frame_arg): Use common_val_print_checked.
8627
b0c26e99
TT
86282020-03-13 Tom Tromey <tom@tromey.com>
8629
8630 * valprint.c (do_val_print): New function, from val_print.
8631 (val_print): Use do_val_print.
8632 (common_val_print): Use do_val_print.
8633
ce3acbe9
TT
86342020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * valprint.c (value_print): Use scoped_value_mark.
8637
96c7f873
TV
86382020-03-13 Tom de Vries <tdevries@suse.de>
8639
8640 PR symtab/25646
8641 * psymtab.c (partial_symtab::partial_symtab): Don't set
8642 globals_offset and statics_offset. Push element onto
8643 current_global_psymbols and current_static_psymbols stacks.
8644 (concat): New function.
8645 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8646 element from current_global_psymbols and current_static_psymbols
8647 stacks. Concat popped elements to global_psymbols and
8648 static_symbols.
8649 (add_psymbol_to_list): Use current_global_psymbols and
8650 current_static_psymbols stacks.
8651 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8652 current_static_psymbols fields.
8653
6ba0a321
CB
86542020-03-12 Christian Biesinger <cbiesinger@google.com>
8655
8656 * corelow.c (sniff_core_bfd): Remove.
8657 (class core_target) <m_core_vec>: Remove.
8658 (core_target::core_target): Update.
8659 (core_file_fns): Remove.
8660 (deprecated_add_core_fns): Remove.
8661 (default_core_sniffer): Remove.
8662 (sniff_core_bfd): Remove.
8663 (default_check_format): Remove.
8664 (gdb_check_format): Remove.
8665 (core_target_open): Update.
8666 (core_target::get_core_register_section): Update.
8667 (get_core_registers_cb): Update.
8668 (core_target::fetch_registers): Update.
8669 * gdbcore.h (struct core_fns): Remove.
8670 (deprecated_add_core_fns): Remove.
8671 (default_core_sniffer): Remove.
8672 (default_check_format): Remove.
8673
227031b2
TT
86742020-03-12 Tom Tromey <tom@tromey.com>
8675
8676 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8677 CORE_ADDR.
8678 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8679
53807e9f
TT
86802020-03-12 Tom Tromey <tom@tromey.com>
8681
8682 * remote.c (remote_target::download_tracepoint)
8683 (remote_target::enable_tracepoint)
8684 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8685 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8686 sprintf_vma.
8687
64f25102
TT
86882020-03-12 Tom Tromey <tom@tromey.com>
8689
8690 * symfile-mem.c: Update CORE_ADDR size assert.
8691
272cd5a3
SM
86922020-03-12 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * selftest.m4: Move to gdbsupport/.
8695 * acinclude.m4: Update path to selftest.m4.
8696
74cd3f9d
SM
86972020-03-12 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8700 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8701 gdbarch-selfselftests.c and selftest-arch.c.
8702 (SUBDIR_UNITTESTS_OBS): Rename to...
8703 (SELFTESTS_OBS): ... this.
8704 (COMMON_SFILES): Remove disasm-selftests.c and
8705 gdbarch-selftests.c.
8706 * configure.ac: Don't add selftest-arch.{c,o} to
8707 CONFIG_{SRCS,OBS}.
8708 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8709 preprocessor conditions.
8710
db6878ac
SM
87112020-03-12 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * configure.ac: Don't source bfd/development.sh.
8714 * selftest.m4: Modify comment.
8715 * configure: Re-generate.
8716
4d696a5c
SM
87172020-03-12 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8720 not "true" or "false".
8721 * configure: Re-generate.
8722
8dd8e1c7
CB
87232020-03-12 Christian Biesinger <cbiesinger@google.com>
8724
8725 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8726 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8727 renamed to arm_nbsd_supply_gregset.
8728 (fetch_register): Update to call arm_nbsd_supply_gregset.
8729 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8730 (arm_netbsd_nat_target::fetch_registers): Update.
8731 (fetch_elfcore_registers): Removed.
8732 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8733 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8734 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8735 not require NetBSD system headers.
8736 (arm_nbsd_regset): New struct.
8737 (arm_nbsd_iterate_over_regset_sections): New function.
8738 (arm_netbsd_init_abi_common): Updated to call
8739 set_gdbarch_iterate_over_regset_sections.
8740 * arm-nbsd-tdep.h: New file.
8741
dd69bf7a
KB
87422020-03-11 Kevin Buettner <kevinb@redhat.com>
8743
8744 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8745 recursion.
8746
a0761e34
SM
87472020-03-11 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * configure: Re-generate.
8750
e7a82140
TT
87512020-03-11 Tom Tromey <tromey@adacore.com>
8752
8753 * ada-typeprint.c (print_choices): Fix comment.
8754
dcc050c8
AB
87552020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8756
8757 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8758 previous item in the list, when the list has no items.
8759
1c33af77
TV
87602020-03-11 Tom de Vries <tdevries@suse.de>
8761
8762 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8763 PROP_LOCLIST handling code.
8764
8c95582d
AB
87652020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8766
8767 * buildsym-legacy.c (record_line): Pass extra parameter to
8768 record_line.
8769 * buildsym.c (buildsym_compunit::record_line): Take an extra
8770 parameter, reduce duplication in the line table, and record the
8771 is_stmt flag in the line table.
8772 * buildsym.h (buildsym_compunit::record_line): Add extra
8773 parameter.
8774 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8775 non-statement lines.
8776 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8777 this to the symtab builder.
8778 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8779 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8780 through to dwarf_record_line_1.
8781 * infrun.c (process_event_stop_test): When stepping, don't stop at
8782 a non-statement instruction, and only refresh the step info when
8783 we land in the middle of a line's range. Also add an extra
8784 comment.
8785 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8786 field.
8787 * record-btrace.c (btrace_find_line_range): Only record lines
8788 marked as is-statement.
8789 * stack.c (frame_show_address): Show the frame address if we are
8790 in a non-statement sal.
8791 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8792 (maintenance_print_one_line_table): Print a header for the is_stmt
8793 column, and include is_stmt information in the output.
8794 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8795 preference to non-statements.
8796 (find_pcs_for_symtab_line): Prefer is-statement entries.
8797 (find_line_common): Likewise.
8798 * symtab.h (struct linetable_entry): Add is_stmt field.
8799 (struct symtab_and_line): Likewise.
8800 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8801 arranging the line table.
8802
e4003a34
TV
88032020-03-07 Tom de Vries <tdevries@suse.de>
8804
8805 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8806 DIE.
8807
e8932576
TT
88082020-03-07 Tom Tromey <tom@tromey.com>
8809
8810 * valops.c (value_literal_complex): Remove obsolete comment.
8811 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8812 comment.
8813
29734269
SM
88142020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8815
8816 * infrun.h: Forward-declare thread_info.
8817 (set_step_info): Add thread_info parameter, add doc.
8818 * infrun.c (set_step_info): Add thread_info parameter, move doc
8819 to header.
8820 * infrun.c (process_event_stop_test): Pass thread to
8821 set_step_info call.
8822 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8823 set_step_info.
8824 (prepare_one_step): Add thread_info parameter, pass it to
8825 set_step_frame and prepare_one_step (recursive) call.
8826 (step_1): Pass thread to prepare_one_step call.
8827 (step_command_fsm::should_stop): Pass thread to
8828 prepare_one_step.
8829 (until_next_fsm): Pass thread to set_step_frame call.
8830 (finish_command): Pass thread to set_step_info call.
8831
b7d64b29
HD
88322020-03-06 Hannes Domani <ssbssa@yahoo.de>
8833
8834 * windows-tdep.c (windows_solib_create_inferior_hook):
8835 Check if inferior is running.
8836
09f2921c
TV
88372020-03-06 Tom de Vries <tdevries@suse.de>
8838
8839 * NEWS: Fix "the the".
8840 * ctfread.c: Same.
8841
fd760e79
TV
88422020-03-06 Tom de Vries <tdevries@suse.de>
8843
8844 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8845
20ea4a60
AB
88462020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8847
8848 * .dir-locals.el: Add a comment referencing the other copies of
8849 this file.
8850
0afbabf0
JB
88512020-03-05 John Baldwin <jhb@FreeBSD.org>
8852
8853 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8854 psargs.
8855
842806cb
TBA
88562020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8857
8858 * .gitattributes: New file.
8859
be1e3d3e
TT
88602020-03-04 Tom Tromey <tom@tromey.com>
8861
8862 * symmisc.c (print_symbol_bcache_statistics)
8863 (print_objfile_statistics): Update.
8864 * symfile.c (allocate_symtab): Use intern.
8865 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8866 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8867 macro_cache>: Remove.
8868 <string_cache>: New member.
8869 (struct objfile) <intern>: New methods.
8870 * elfread.c (elf_symtab_read): Use intern.
8871 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8872 (dwarf2_compute_name, dwarf2_physname)
8873 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8874 names.
8875 (guess_partial_die_structure_name): Update.
8876 (partial_die_info::fixup): Intern name.
8877 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8878 name.
8879 (dwarf2_name): Intern name. Update.
8880 * buildsym.c (buildsym_compunit::get_macro_table): Use
8881 string_cache.
8882
4e7625fd
TT
88832020-03-04 Tom Tromey <tom@tromey.com>
8884
8885 * jit.c (bfd_open_from_target_memory): Make "target" const.
8886 * corefile.c (gnutarget): Now const.
8887 * gdbcore.h (gnutarget): Now const.
8888
46f9f931
HD
88892020-03-04 Hannes Domani <ssbssa@yahoo.de>
8890
8891 * NEWS: Mention support for WOW64 processes.
8892 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8893 (amd64_windows_segment_register_p): Remove static.
8894 (_initialize_amd64_windows_nat): Update.
8895 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8896 * i386-windows-nat.c (context_offset): Update.
8897 (i386_mappings): Rename and remove static.
8898 (i386_windows_segment_register_p): Remove static.
8899 (_initialize_i386_windows_nat): Update.
8900 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8901 (STATUS_WX86_SINGLE_STEP): New macro.
8902 (EnumProcessModulesEx): New macro.
8903 (Wow64SuspendThread): New macro.
8904 (Wow64GetThreadContext): New macro.
8905 (Wow64SetThreadContext): New macro.
8906 (Wow64GetThreadSelectorEntry): New macro.
8907 (windows_set_context_register_offsets): Add static.
8908 (windows_set_segment_register_p): Likewise.
8909 (windows_add_thread): Adapt for WOW64 processes.
8910 (windows_fetch_one_register): Likewise.
8911 (windows_nat_target::fetch_registers): Likewise.
8912 (windows_store_one_register): Likewise.
8913 (display_selector): Likewise.
8914 (display_selectors): Likewise.
8915 (handle_exception): Likewise.
8916 (windows_continue): Likewise.
8917 (windows_nat_target::resume): Likewise.
8918 (windows_add_all_dlls): Likewise.
8919 (do_initial_windows_stuff): Likewise.
8920 (windows_nat_target::attach): Likewise.
8921 (windows_get_exec_module_filename): Likewise.
8922 (windows_nat_target::create_inferior): Likewise.
8923 (windows_xfer_siginfo): Likewise.
8924 (_initialize_loadable): Initialize Wow64SuspendThread,
8925 Wow64GetThreadContext, Wow64SetThreadContext,
8926 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8927 * windows-nat.h (windows_set_context_register_offsets):
8928 Remove declaration.
8929 (windows_set_segment_register_p): Likewise.
8930 (i386_windows_segment_register_p): Add declaration.
8931 (amd64_windows_segment_register_p): Likewise.
8932
440cf44e
LM
89332020-03-04 Luis Machado <luis.machado@linaro.org>
8934
8935 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8936 in "info registers" for AArch64/ARM.
8937
8938 The change caused "info registers" to not print GPR's.
8939
8940 gdb/ChangeLog:
8941
8942 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8943
8944 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8945 when reg->group is empty and reggroup is not.
8946
1009d92f
TT
89472020-03-03 Tom Tromey <tromey@adacore.com>
8948
8949 * dwarf2/frame.c (struct dwarf2_frame_cache)
8950 <checked_tailcall_bottom, entry_cfa_sp_offset,
8951 entry_cfa_sp_offset_p>: Remove members.
8952 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8953 (dwarf2_frame_prev_register): Don't call
8954 dwarf2_tailcall_sniffer_first.
8955 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8956 * frame-unwind.c (add_unwinder): New fuction.
8957 (frame_unwind_init): Use it. Add tailcall unwinder.
8958
5e5d66b6
AB
89592020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8960 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8961
8962 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8963 value should be printed as true.
8964
584cf46d
HD
89652020-03-03 Hannes Domani <ssbssa@yahoo.de>
8966
8967 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8968 (windows_init_abi): Set and use windows_so_ops.
8969
7b973adc
SDJ
89702020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8971
8972 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8973 when verifying if dealing with a convenience variable.
8974
bb7b70ab
LM
89752020-03-03 Luis Machado <luis.machado@linaro.org>
8976
8977 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8978
9822cb57
SM
89792020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8980
8981 * infrun.c (gdbarch_supports_displaced_stepping): New.
8982 (use_displaced_stepping): Break up conditions in smaller pieces.
8983 Use gdbarch_supports_displaced_stepping.
8984 (displaced_step_prepare_throw): Use
8985 gdbarch_supports_displaced_stepping.
8986
63e163f2
AB
89872020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8988
8989 * NEWS: Mention new behaviour of the history filename.
8990 * top.c (write_history_p): Add comment.
8991 (show_write_history_p): Add header comment, give a different
8992 message when history writing is on, but the history filename is
8993 empty.
8994 (history_filename): Add comment.
8995 (history_filename_empty): New function.
8996 (show_history_filename): Add header comment, give a different
8997 message when the filename is empty.
8998 (init_history): Compare history_filename against nullptr, and only
8999 read history if the filename is not empty.
9000 (set_history_filename): Add header comment, and only make
9001 non-empty filenames absolute.
9002 (init_main): Make the filename argument to 'set history filename'
9003 optional.
9004
81b86b97
CB
90052020-03-02 Christian Biesinger <cbiesinger@google.com>
9006
9007 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9008 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9009 (fetch_fp_register): Update.
9010 (fetch_fp_regs): Update.
9011 (store_fp_register): Update.
9012 (store_fp_regs): Update.
9013 (arm_netbsd_nat_target::read_description): New function.
9014 (fetch_elfcore_registers): Update.
9015
24ed6739
AB
90162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9019 general_thread if the stop reply is missing a thread-id.
9020 (remote_target::process_stop_reply): Use the first non-exited
9021 thread if the target didn't pass a thread-id.
9022 * infrun.c (do_target_wait): Move call to
9023 switch_to_inferior_no_thread to ....
9024 (do_target_wait_1): ... here.
9025
a84bb2a0
JT
90262020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9027
9028 * debuginfod-support.c: Include defs.h first.
9029
658dadf0
TV
90302020-02-28 Tom de Vries <tdevries@suse.de>
9031
9032 * symfile.c (set_initial_language): Use default language for lookup.
9033
4ebe4877
SM
90342020-02-28 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9037 reader variable, pass `this` to read_cutu_die_from_dwo.
9038
e5da1139
AM
90392020-02-27 Aaron Merey <amerey@redhat.com>
9040
9041 * source.c (open_source_file): Check for nullptr when computing
9042 srcpath.
9043
317f7127
TT
90442020-02-27 Tom Tromey <tromey@adacore.com>
9045
9046 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9047 member.
9048 (dwarf2_add_field): Don't update nfields.
9049 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9050
3104d9ee
AB
90512020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9054 abs.
9055
b83470bf
TT
90562020-02-26 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9059 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9060 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9061 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9062 per_cu_data.
9063
edfe0a0c
TT
90642020-02-26 Tom Tromey <tom@tromey.com>
9065
9066 * dwarf2/index-write.c (psym_index_map): Change type.
9067 (add_address_entry_worker, write_one_signatured_type)
9068 (recursively_count_psymbols, recursively_write_psymbols)
9069 (class debug_names, psyms_seen_size, write_gdbindex)
9070 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9071
0d79cdc4
AM
90722020-02-26 Aaron Merey <amerey@redhat.com>
9073
9074 * Makefile.in: Handle optional debuginfod support.
9075 * NEWS: Update.
9076 * README: Add --with-debuginfod summary.
9077 * config.in: Regenerate.
9078 * configure: Regenerate.
9079 * configure.ac: Handle optional debuginfod support.
9080 * debuginfod-support.c: debuginfod helper functions.
9081 * debuginfod-support.h: Ditto.
9082 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9083 summary.
9084 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9085 when a dwz file cannot be found.
9086 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9087 debuginfo file cannot be found.
9088 * source.c (open_source_file): Query debuginfod servers when a
9089 source file cannot be found.
9090 * top.c (print_gdb_configuration): Include
9091 --{with,without}-debuginfod in the output.
9092
b65ce565
JG
90932020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9094
9095 * thread.c (thr_try_catch_cmd): Print thread name.
9096
d4c9a4f8
SM
90972020-02-26 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9101 dwarf2_fetch_die_type_sect_off): Move to...
9102 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9104 dwarf2_fetch_die_type_sect_off): ... here.
9105 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9106 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9107 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9108
0dce4280
TV
91092020-02-26 Tom de Vries <tdevries@suse.de>
9110
9111 PR gdb/25603
9112 * symfile.c (set_initial_language): Exit-early if
9113 language_mode == language_mode_manual.
9114
450a1bfc
SM
91152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9116
9117 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9118 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9119 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9120
9e80cfa1
AB
91212020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * gdbtypes.c (create_array_type_with_stride): Handle negative
9124 array strides.
9125 * valarith.c (value_subscripted_rvalue): Likewise.
9126
09624f1f
LM
91272020-02-25 Luis Machado <luis.machado@linaro.org>
9128
9129 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9130
8cb5117c
SM
91312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9132
9133 * loc.h (dwarf2_get_die_type): Move to...
9134 * read.h (dwarf2_get_die_type): ... here.
9135 * read.c (dwarf2_get_die_type): Move doc to header.
9136
c325c44e
JB
91372020-02-25 Joel Brobecker <brobecker@adacore.com>
9138
9139 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9140 'gnulib/Makefile.in' to the list.
9141
4ac93832
TT
91422020-02-24 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9145 Remove.
9146 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9147 XOBNEWVEC.
9148
197400e8
TT
91492020-02-24 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9152 New method.
9153 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9154 (dw2_do_instantiate_symtab, dw2_get_file_names)
9155 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9156
76935768
TT
91572020-02-24 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9160 make_scoped_restore.
9161 (dwarf2_psymtab::read_symtab): Don't clear
9162 reading_partial_symbols.
9163
a88ef40d
TV
91642020-02-24 Tom de Vries <tdevries@suse.de>
9165
9166 PR gdb/25592
9167 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9168
c9af6521
TV
91692020-02-24 Tom de Vries <tdevries@suse.de>
9170
9171 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9172 commands layout next/prev/regs.
9173
5707a07a
TT
91742020-02-22 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9177 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9178
3b0fb49e
TT
91792020-02-22 Tom Tromey <tom@tromey.com>
9180
9181 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9182
283be8bf
TT
91832020-02-22 Tom Tromey <tom@tromey.com>
9184
9185 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9186 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9187 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9188 * tui/tui.c (_initialize_tui): Add usage text.
9189
ca793b96
TT
91902020-02-22 Tom Tromey <tom@tromey.com>
9191
9192 * tui/tui-win.c (tui_set_focus_command)
9193 (tui_set_win_height_command): Use error_no_arg.
9194 (_initialize_tui_win): Update help text.
9195 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9196
432b5c40
TT
91972020-02-22 Tom Tromey <tom@tromey.com>
9198
9199 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9200 * tui/tui-disasm.h (struct tui_disasm_window)
9201 <display_start_addr>: Declare.
9202 * tui/tui-source.h (struct tui_source_window)
9203 <display_start_addr>: Declare.
9204 * tui/tui-winsource.h (struct tui_source_window_base)
9205 <show_source_line, display_start_addr>: New methods.
9206 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9207 Rename and move to protected section.
9208 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9209 (tui_source_window_base::do_erase_source_content): Update.
9210 (tui_source_window_base::show_source_line): Now a method.
9211 (tui_source_window_base::show_source_content)
9212 (tui_source_window_base::tui_source_window_base)
9213 (tui_source_window_base::rerender)
9214 (tui_source_window_base::refill)
9215 (tui_source_window_base::do_scroll_horizontal)
9216 (tui_source_window_base::set_is_exec_point_at)
9217 (tui_source_window_base::update_breakpoint_info)
9218 (tui_source_window_base::update_exec_info): Update.
9219 * tui/tui-source.c (tui_source_window::set_contents)
9220 (tui_source_window::showing_source_p)
9221 (tui_source_window::do_scroll_vertical)
9222 (tui_source_window::location_matches_p)
9223 (tui_source_window::line_is_displayed): Update.
9224 (tui_source_window::display_start_addr): New method.
9225 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9226 (tui_disasm_window::do_scroll_vertical)
9227 (tui_disasm_window::location_matches_p): Update.
9228 (tui_disasm_window::display_start_addr): New method.
9229
01b1af32
TT
92302020-02-22 Tom Tromey <tom@tromey.com>
9231
9232 * NEWS: Add entry for gdb.register_window_type.
9233 * tui/tui-layout.h (window_factory): New typedef.
9234 (tui_register_window): Declare.
9235 * tui/tui-layout.c (saved_tui_windows): New global.
9236 (tui_apply_current_layout): Use it.
9237 (tui_register_window): New function.
9238 * python/python.c (do_start_initialization): Call
9239 gdbpy_initialize_tui.
9240 (python_GdbMethods): Add "register_window_type" function.
9241 * python/python-internal.h (gdbpy_register_tui_window)
9242 (gdbpy_initialize_tui): Declare.
9243 * python/py-tui.c: New file.
9244 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9245
fc96d20b
TT
92462020-02-22 Tom Tromey <tom@tromey.com>
9247
9248 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9249
935c78c0
TT
92502020-02-22 Tom Tromey <tom@tromey.com>
9251
9252 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9253 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9254 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9255 (tui_set_win_focus_to): Move from tui-win.c.
9256
0240c8f1
TT
92572020-02-22 Tom Tromey <tom@tromey.com>
9258
9259 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9260 functions.
9261 (known_window_types): New global.
9262 (tui_get_window_by_name): Reimplement.
9263 (initialize_known_windows): New function.
9264 (validate_window_name): Rewrite.
9265 (_initialize_tui_layout): Call initialize_known_windows.
9266
fdb01f0c
TT
92672020-02-22 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9270 Remove constants.
9271 * tui/tui-winsource.h (struct tui_source_window_base)
9272 <tui_source_window_base>: Remove parameter.
9273 * tui/tui-winsource.c
9274 (tui_source_window_base::tui_source_window_base): Remove
9275 parameter.
9276 (tui_source_window_base::refill): Update.
9277 * tui/tui-stack.h (struct tui_locator_window)
9278 <tui_locator_window>: Update.
9279 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9280 Default the constructor.
9281 * tui/tui-regs.h (struct tui_data_item_window)
9282 <tui_data_item_window>: Default the constructor.
9283 (struct tui_data_window) <tui_data_window>: Likewise.
9284 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9285 Default the constructor.
9286 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9287 Default the constructor.
9288 <type>: Remove.
9289 (struct tui_win_info) <tui_win_info>: Default the constructor.
9290 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9291 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9292 Default the constructor.
9293
865a5aec
TT
92942020-02-22 Tom Tromey <tom@tromey.com>
9295
9296 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9297 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9298 * tui/tui-win.c (tui_resize_all): Don't call
9299 tui_delete_invisible_windows.
9300 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9301 done.
9302 (tui_set_layout): Update.
9303 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9304 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9305 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9306
e098d18c
TT
93072020-02-22 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9310 correctly.
9311
eb9c8874
TT
93122020-02-22 Tom Tromey <tom@tromey.com>
9313
9314 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9315
7eed1a8e
TT
93162020-02-22 Tom Tromey <tom@tromey.com>
9317
9318 * tui/tui-winsource.h (struct tui_source_window_iterator)
9319 <inner_iterator>: New etytypedef.
9320 <tui_source_window_iterator>: Take "end" parameter.
9321 <tui_source_window_iterator>: Take iterator.
9322 <operator*, advance>: Update.
9323 <m_iter>: Change type.
9324 <m_end>: New field.
9325 (struct tui_source_windows) <begin, end>: Update.
9326 * tui/tui-layout.c (tui_windows): New global.
9327 (tui_apply_current_layout): Clear tui_windows.
9328 (tui_layout_window::apply): Update tui_windows.
9329 * tui/tui-data.h (tui_windows): Declare.
9330 (all_tui_windows): Now inline function.
9331 (class tui_window_iterator, struct all_tui_windows): Remove.
9332
7c043ba6
TT
93332020-02-22 Tom Tromey <tom@tromey.com>
9334
9335 PR tui/17850:
9336 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9337 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9338 "height" argument.
9339 (class tui_layout_window) <get_sizes>: Likewise.
9340 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9341 argument.
9342 <get_sizes>: Add "height" argument.
9343 <m_vertical>: New field.
9344 * tui/tui-layout.c (tui_layout_split::clone): Update.
9345 (tui_layout_split::get_sizes): Add "height" argument.
9346 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9347 (tui_new_layout_command): Parse "-horizontal".
9348 (_initialize_tui_layout): Update help string.
9349 (tui_layout_split::specification): Add "-horizontal" when needed.
9350 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9351 argument.
9352 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9353 New methods.
9354
6bc56648
TT
93552020-02-22 Tom Tromey <tom@tromey.com>
9356
9357 * tui/tui-layout.h (enum tui_adjust_result): New.
9358 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9359 (class tui_layout_window) <adjust_size>: Return
9360 tui_adjust_result. Rewrite.
9361 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9362 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9363
c22fef7e
TT
93642020-02-22 Tom Tromey <tom@tromey.com>
9365
9366 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9367 parameter and return types.
9368 (class tui_layout_base) <specification>: Add "depth".
9369 (class tui_layout_window) <specification>: Add "depth".
9370 (class tui_layout_split) <specification>: Add "depth".
9371 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9372 and return types.
9373 (tui_new_layout_command): Parse sub-layouts.
9374 (_initialize_tui_layout): Update help string.
9375 (tui_layout_window::specification): Add "depth".
9376 (add_layout_command): Update.
9377
ee325b61
TT
93782020-02-22 Tom Tromey <tom@tromey.com>
9379
9380 * NEWS: Add "tui new-layout" item.
9381 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9382 Add new-layout command to help text.
9383 (validate_window_name): New function.
9384 (tui_new_layout_command): New function.
9385 (_initialize_tui_layout): Register "new-layout".
9386 (tui_layout_window::specification): New method.
9387 (tui_layout_window::specification): New method.
9388 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9389 method.
9390 (class tui_layout_window) <specification>: New method.
9391 (class tui_layout_split) <specification>: New method.
9392
416eb92d
TT
93932020-02-22 Tom Tromey <tom@tromey.com>
9394
9395 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9396 * tui/tui-win.c (window_name_completer): Update comment.
9397 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9398 Declare method.
9399 (class tui_layout_window) <replace_window>: Likewise.
9400 (class tui_layout_split) <replace_window>: Likewise.
9401 (tui_set_layout): Don't declare.
9402 (tui_set_initial_layout): Declare function.
9403 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9404 (asm_regs_layout): New globals.
9405 (tui_current_layout, show_layout): Remove.
9406 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9407 (find_layout, tui_apply_layout): New function.
9408 (layout_completer): Remove.
9409 (tui_next_layout): Reimplement.
9410 (tui_next_layout_command): New function.
9411 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9412 (tui_regs_layout): Reimplement.
9413 (tui_regs_layout_command): New function.
9414 (extract_display_start_addr): Rewrite.
9415 (next_layout, prev_layout): Remove.
9416 (tui_layout_window::replace_window): New method.
9417 (tui_layout_split::replace_window): New method.
9418 (destroy_layout): New function.
9419 (layout_list): New global.
9420 (add_layout_command): New function.
9421 (initialize_layouts): Update.
9422 (tui_layout_command): New function.
9423 (_initialize_tui_layout): Install "layout" commands.
9424 * tui/tui-data.h (enum tui_layout_type): Remove.
9425 (tui_current_layout): Don't declare.
9426
0dbc2fc7
TT
94272020-02-22 Tom Tromey <tom@tromey.com>
9428
9429 * tui/tui-regs.c (tui_reg_layout): Remove.
9430 (tui_reg_command): Use tui_regs_layout.
9431 * tui/tui-layout.h (tui_reg_command): Declare.
9432 * tui/tui-layout.c (tui_reg_command): New function.
9433
5afe342e
TT
94342020-02-22 Tom Tromey <tom@tromey.com>
9435
9436 * tui/tui.c (tui_rl_delete_other_windows): Call
9437 tui_remove_some_windows.
9438 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9439 Declare method.
9440 (class tui_layout_window) <remove_windows>: New method.
9441 (class tui_layout_split) <remove_windows>: Declare.
9442 (tui_remove_some_windows): Declare.
9443 * tui/tui-layout.c (tui_remove_some_windows): New function.
9444 (tui_layout_split::remove_windows): New method.
9445
427326a8
TT
94462020-02-22 Tom Tromey <tom@tromey.com>
9447
9448 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9449 * tui/tui-layout.h (tui_next_layout): Declare.
9450 * tui/tui-layout.c (tui_next_layout): New function.
9451
3fe12b6d
TT
94522020-02-22 Tom Tromey <tom@tromey.com>
9453
9454 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9455 correct coordinates.
9456
59b8b5d2
TT
94572020-02-22 Tom Tromey <tom@tromey.com>
9458
9459 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9460 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9461 DATA_WIN case.
9462
2a3d458b
TT
94632020-02-22 Tom Tromey <tom@tromey.com>
9464
9465 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9466 TUI_DISASM_WIN, not tui_win_list.
9467
3f0cbb04
TT
94682020-02-22 Tom Tromey <tom@tromey.com>
9469
9470 * valprint.c (generic_val_print_enum_1)
9471 (val_print_type_code_flags): Style member names.
9472 * rust-lang.c (val_print_struct, rust_print_enum)
9473 (rust_print_struct_def, rust_internal_print_type): Style member
9474 names.
9475 * p-valprint.c (pascal_object_print_value_fields): Style member
9476 names. Only call fprintf_symbol_filtered for static members.
9477 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9478 * f-valprint.c (f_val_print): Style member names.
9479 * f-typeprint.c (f_type_print_base): Style member names.
9480 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9481 call fprintf_symbol_filtered for static members.
9482 (cp_print_class_member): Style member names.
9483 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9484 member names.
9485 * ada-valprint.c (ada_print_scalar): Style enum names.
9486 (ada_val_print_enum): Likewise.
9487 * ada-typeprint.c (print_enum_type): Style enum names.
9488
d4d947ae
TT
94892020-02-21 Tom Tromey <tom@tromey.com>
9490
9491 * psympriv.h (struct partial_symtab): Update comment.
9492
e94e944b
TT
94932020-02-21 Tom Tromey <tromey@adacore.com>
9494
9495 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9496 type is CORE_ADDR.
9497
1eb73179
TV
94982020-02-21 Tom de Vries <tdevries@suse.de>
9499
9500 PR gdb/25534
9501 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9502 if dependencies[i]->user != NULL.
9503
4f180d53
AT
95042020-02-21 Ali Tamur <tamur@google.com>
9505
9506 * dwarf2/read.c (dwarf2_name): Add null check.
9507
22b6cd70
TT
95082020-02-20 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9511 ">=", in binary search.
9512 (dwarf2_find_containing_comp_unit): New overload.
9513 (run_test): New self-test.
9514 (_initialize_dwarf2_read): Register new test.
9515
bd0cf5a6
NC
95162020-02-20 Nelson Chu <nelson.chu@sifive.com>
9517
9518 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9519 * riscv-tdep.h: Likewise.
9520 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9521 rv32-only CSR.
9522 * features/riscv/64bit-csr.xml: Regenerated.
9523
3f702acd
SDJ
95242020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9525 Tom Tromey <tom@tromey.com>
9526
9527 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9528 of 'fputc_unfiltered'.
9529 (putchar_unfiltered): Call 'fputc_unfiltered'.
9530 (fputc_unfiltered): Call 'fputs_unfiltered'.
9531
d13c7322
AB
95322020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9533
9534 * config.in: Regenerate.
9535 * configure: Regenerate.
9536 * configure.ac: Add --with-python-libdir option.
9537 * main.c: Use WITH_PYTHON_LIBDIR.
9538
869d8950
TT
95392020-02-19 Tom Tromey <tom@tromey.com>
9540
9541 * symtab.c (general_symbol_info::compute_and_set_names): Use
9542 obstack_strndup. Simplify call to symbol_set_demangled_name.
9543
298e9637
SM
95442020-02-19 Simon Marchi <simon.marchi@efficios.com>
9545
9546 * dwarf2/read.c (allocate_signatured_type_table,
9547 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9548 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9549 Remove objfile parameter, update all callers.
9550
08410482
DE
95512020-02-19 Doug Evans <dje@google.com>
9552
9553 PR rust/25535
9554 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9555 rust_enum_variant calculation.
9556
dfdeeca1
TT
95572020-02-19 Tom Tromey <tromey@adacore.com>
9558
9559 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9560
2ef5453b
TT
95612020-02-19 Tom Tromey <tromey@adacore.com>
9562
9563 * ada-lang.c (cache_symbol): Use obstack_strdup.
9564
9f1528a1
AB
95652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9566
9567 * configure: Regenerate.
9568
d3c22fa8
TT
95692020-02-19 Tom Tromey <tromey@adacore.com>
9570
9571 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9572 NULL check.
9573
bf84f706
MR
95742020-02-19 Maciej W. Rozycki <macro@wdc.com>
9575
9576 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9577
d1c9b20f
AB
95782020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9579
9580 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9581 if GDBSERVER is not defined.
9582 (riscv_tdesc_cache): Likewise, also store const target_desc.
9583 (STATIC_IN_GDB): Define.
9584 (riscv_create_target_description): Update declaration with
9585 STATIC_IN_GDB.
9586 (riscv_lookup_target_description): New function, only define if
9587 GDBSERVER is not defined.
9588 * arch/riscv.h (riscv_create_target_description): Declare only
9589 when GDBSERVER is defined.
9590 (riscv_lookup_target_description): New declaration when GDBSERVER
9591 is not defined.
9592 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9593 (riscv_linux_read_features): ...this, and return
9594 riscv_gdbarch_features instead of target_desc.
9595 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9596 (riscv_linux_read_description): Rename to...
9597 (riscv_linux_read_features): ...this.
9598 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9599 Update to use riscv_gdbarch_features and
9600 riscv_lookup_target_description.
9601 * riscv-tdep.c (riscv_find_default_target_description): Use
9602 riscv_lookup_target_description instead of
9603 riscv_create_target_description.
9604
373d7ac0
SM
96052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9606
9607 * valprint.c (generic_val_print_enum_1): When printing a flag
9608 enum with value 0 and there is no enumerator with value 0, print
9609 just "0" instead of "(unknown: 0x0)".
9610
b29a2df0
SM
96112020-02-18 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * valprint.c (generic_val_print_enum_1): Print unknown part of
9614 flag enum in hex.
9615
6740f0cc
SM
96162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9617
9618 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9619 flag enums to contain duplicate enumerators.
9620 * valprint.c (generic_val_print_enum_1): Update comment.
9621
edd45eb0
SM
96222020-02-18 Simon Marchi <simon.marchi@efficios.com>
9623
9624 * dwarf2/read.c: Include "count-one-bits.h".
9625 (update_enumeration_type_from_children): If an enumerator has
9626 multiple bits set, don't treat the enumeration as a "flag enum".
9627 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9628 of flag enums have 0 or 1 bit set.
9629
6d0cf446
BE
96302020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9631
9632 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9633 conversion.
9634 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9635 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9636 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9637 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9638 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9639
7001c1b7
SM
96402020-02-18 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9643
fdb61c6c
SM
96442020-02-14 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9647 displaced_step_closure_up.
9648 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9649 (struct displaced_step_closure_up):
9650 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9651 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9652 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9653 Likewise.
9654 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9655 * gdbarch.c, gdbarch.h: Re-generate.
9656 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9657 displaced_step_closure_up.
9658 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9659 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9660 * infrun.h (displaced_step_closure_up): New type alias.
9661 (struct displaced_step_inferior_state) <step_closure>: Change
9662 type to displaced_step_closure_up.
9663 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9664 displaced_step_closure_up.
9665 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9666
a4a38eb4
TT
96672020-02-14 Tom Tromey <tom@tromey.com>
9668
9669 * minidebug.c (gnu_debug_key): New global.
9670 (find_separate_debug_file_in_section): Use it.
9671
e8217e61
SM
96722020-02-14 Simon Marchi <simon.marchi@efficios.com>
9673
9674 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9675 std::unique_ptr.
9676 * gdbarch.c: Re-generate.
9677 * gdbarch.h: Re-generate.
9678 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9679 change.
9680 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9681 type to std::unique_ptr.
9682 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9683 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9684 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9685 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9686 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9688 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9689 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9690 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9691
d8d83535
SM
96922020-02-14 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9695 std::unique_ptr.
9696 (displaced_step_clear): Rename to...
9697 (displaced_step_reset): ... this. Just call displaced->reset ().
9698 (displaced_step_clear_cleanup): Rename to...
9699 (displaced_step_reset_cleanup): ... this.
9700 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9701 (displaced_step_fixup): Likewise.
9702 (resume_1): Likewise.
9703 (handle_inferior_event): Restore child's memory before calling
9704 displaced_step_fixup on the parent.
9705 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9706 to std::unique_ptr.
9707 <step_closure>: Change type to std::unique_ptr.
9708
5f661e03
SM
97092020-02-14 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * arm-tdep.c: Include count-one-bits.h.
9712 (cleanup_block_store_pc): Use count_one_bits.
9713 (cleanup_block_load_pc): Use count_one_bits.
9714 (arm_copy_block_xfer): Use count_one_bits.
9715 (thumb2_copy_block_xfer): Use count_one_bits.
9716 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9717 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9718 (thumb_get_next_pcs_raw): Use count_one_bits.
9719 (arm_get_next_pcs_raw): Use count_one_bits_l.
9720 * arch/arm.c (bitcount): Remove.
9721 * arch/arm.h (bitcount): Remove.
9722
8084e579
TT
97232020-02-14 Tom Tromey <tromey@adacore.com>
9724
9725 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9726 Update.
9727 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9728 * dwarf2/loc.c (call_site_find_chain_1): Return
9729 unique_xmalloc_ptr.
9730 (call_site_find_chain): Likewise.
9731
258bf0ee
RB
97322020-02-14 Richard Biener <rguenther@suse.de>
9733
9734 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9735 on expression with division operators.
9736
f98a8458
AKS
97372020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9738
9739 * MAINTAINERS (Write After Approval): Adding myself.
9740
d1437c0e
TT
97412020-02-12 Tom Tromey <tom@tromey.com>
9742
9743 * event-loop.c (event_data, gdb_event, event_handler_func):
9744 Remove.
9745
3d4560f7
TT
97462020-02-12 Tom Tromey <tom@tromey.com>
9747
9748 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9749 (dwarf2_frame_objfile_data): Add comment.
9750 (find_comp_unit, set_comp_unit): New functions.
9751 (dwarf2_frame_find_fde): Use find_comp_unit.
9752 (dwarf2_build_frame_info): Use set_comp_unit.
9753
21982304
TT
97542020-02-12 Tom Tromey <tom@tromey.com>
9755
9756 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9757 (comp_unit): Don't initialize objfile.
9758 (execute_cfa_program): Add text_offset parameter.
9759 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9760 (dwarf2_frame_cache): Update.
9761 (dwarf2_build_frame_info): Don't set "objfile" member.
9762
4debb237
TT
97632020-02-12 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9766 (decode_frame_entry): Likewise.
9767 (dwarf2_build_frame_info): Update.
9768
0d404d44
TT
97692020-02-12 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9772 (decode_frame_entry_1): Use the comp_unit obstack.
9773
a7a3ae5c
TT
97742020-02-12 Tom Tromey <tom@tromey.com>
9775
9776 * dwarf2/frame.c (struct comp_unit): Add initializers and
9777 constructor.
9778 (dwarf2_frame_objfile_data): Store a comp_unit.
9779 (dwarf2_frame_find_fde): Update.
9780 (dwarf2_build_frame_info): Use "new".
9781
a9d65418
TT
97822020-02-12 Tom Tromey <tom@tromey.com>
9783
9784 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9785 (dwarf2_fde_table): Typedef for std::vector.
9786 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9787 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9788 (decode_frame_entry): Update.
9789 (dwarf2_build_frame_info): Use "new".
9790
7559c217
CB
97912020-02-12 Christian Biesinger <cbiesinger@google.com>
9792
9793 * arm-tdep.c (arm_gdbarch_init): Update.
9794 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9795 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9796 have_neon, is_m>: Change to bool.
9797
aeefc73c
CB
97982020-02-12 Christian Biesinger <cbiesinger@google.com>
9799
9800 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9801
d27b8e5f
TT
98022020-02-12 Tom Tromey <tom@tromey.com>
9803
9804 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9805
cd5900f3
HD
98062020-02-12 Hannes Domani <ssbssa@yahoo.de>
9807
9808 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9809 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9810
f056b22b
TT
98112020-02-11 Tom Tromey <tom@tromey.com>
9812
9813 * psymtab.h: Update comment.
9814
f92ff6b5
TT
98152020-02-11 Tom Tromey <tom@tromey.com>
9816
9817 * gdb_obstack.h (struct auto_obstack): Use
9818 DISABLE_COPY_AND_ASSIGN.
9819
3fd6912b
TT
98202020-02-11 Tom Tromey <tom@tromey.com>
9821
9822 * dwarf2/frame.h (struct objfile): Don't forward declare.
9823
69ed9b74
CB
98242020-02-11 Christian Biesinger <cbiesinger@google.com>
9825
9826 * cris-tdep.c (cris_supply_gregset): Change signature to match
9827 what struct regset expects.
9828 (cris_regset): New struct.
9829 (fetch_core_registers): Remove.
9830 (cris_iterate_over_regset_sections): New function.
9831 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9832 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9833
bda874f6
CB
98342020-02-11 Christian Biesinger <cbiesinger@google.com>
9835
9836 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9837 registers.
9838
754e1564
CB
98392020-02-11 Christian Biesinger <cbiesinger@google.com>
9840
9841 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9842
8ddd8e0e
SM
98432020-02-11 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * configure: Re-generate.
9846
898e7f60
SM
98472020-02-11 Simon Marchi <simon.marchi@efficios.com>
9848
9849 * configure: Re-generate.
9850
58df732b
SM
98512020-02-11 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * acinclude: Update warning.m4 path.
9854 * warning.m4: Move to gdbsupport.
9855
da5bd37e
TT
98562020-02-11 Tom Tromey <tromey@adacore.com>
9857
9858 * remote.c (remote_console_output): Update.
9859 * printcmd.c (printf_command): Update.
9860 * event-loop.c (gdb_wait_for_event): Update.
9861 * linux-nat.c (sigchld_handler): Update.
9862 * remote-sim.c (gdb_os_write_stdout): Update.
9863 (gdb_os_flush_stdout): Update.
9864 (gdb_os_flush_stderr): Update.
9865 (gdb_os_write_stderr): Update.
9866 * exceptions.c (print_exception): Update.
9867 * remote-fileio.c (remote_fileio_func_read): Update.
9868 (remote_fileio_func_write): Update.
9869 * tui/tui.c (tui_enable): Update.
9870 * tui/tui-interp.c (tui_interp::init): Update.
9871 * utils.c (init_page_info): Update.
9872 (putchar_unfiltered, fputc_unfiltered): Update.
9873 (gdb_flush): Update.
9874 (emit_style_escape): Update.
9875 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9876 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9877 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9878 (stderr_file::write): Update.
9879 (stderr_file::puts): Update.
9880 * ui-file.h (ui_file_isatty, ui_file_write)
9881 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9882 (ui_file_puts): Don't declare.
9883
85f0dd3c
TV
98842020-02-10 Tom de Vries <tdevries@suse.de>
9885
9886 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9887 sentinel to char *.
9888
2e927613
TV
98892020-02-09 Tom de Vries <tdevries@suse.de>
9890
9891 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9892 filename if it matches "<artificial>".
9893
6bafc845
HD
98942020-02-09 Hannes Domani <ssbssa@yahoo.de>
9895
9896 * windows-tdep.c (struct enum_value_name): New struct.
9897 (create_enum): New function.
9898 (windows_get_siginfo_type): Create and use enum types.
9899
7928d571
HD
99002020-02-09 Hannes Domani <ssbssa@yahoo.de>
9901
9902 * NEWS: Mention $_siginfo support for Windows.
9903 * windows-nat.c (handle_exception): Set siginfo_er.
9904 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9905 (windows_xfer_siginfo): New function.
9906 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9907 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9908 (init_windows_gdbarch_data): New function.
9909 (get_windows_gdbarch_data): New function.
9910 (windows_get_siginfo_type): New function.
9911 (windows_init_abi): Register windows_get_siginfo_type.
9912 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9913
6751ebae
TT
99142020-02-08 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9917 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9918 <keep>: Declare method.
9919 <m_keep>: Remove member.
9920 <~cutu_reader>: Remove.
9921 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9922 (cutu_reader::cutu_reader): Update.
9923 (cutu_reader::keep): Rename from ~cutu_reader.
9924 (process_psymtab_comp_unit, build_type_psymtabs_1)
9925 (process_skeletonless_type_unit, load_partial_comp_unit)
9926 (load_full_comp_unit, dwarf2_read_addr_index)
9927 (read_signatured_type): Update.
9928
135f5437
TT
99292020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9932 "want_partial_unit" parameter.
9933 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9934 Inline check for DW_TAG_partial_unit.
9935 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9936
9f66ff1c
TT
99372020-02-08 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9940 read.c.
9941 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9942 read.c.
9943
c8a7a66f
TT
99442020-02-08 Tom Tromey <tom@tromey.com>
9945
9946 * dwarf2/read.c (read_address): Move to comp-unit.c.
9947 (dwarf2_rnglists_process, dwarf2_ranges_process)
9948 (read_attribute_value, dwarf_decode_lines_1)
9949 (var_decode_location, decode_locdesc): Update.
9950 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9951 read.c. Remove "cu" parameter.
9952 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9953 method.
9954
8266302d
TT
99552020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9958 (read_indirect_line_string): Update.
9959 * dwarf2/comp-unit.c (read_offset): Remove.
9960 (read_comp_unit_head): Update.
9961 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9962 method.
9963 (read_offset): Don't declare.
9964
4057dfde
TT
99652020-02-08 Tom Tromey <tom@tromey.com>
9966
9967 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9968 * dwarf2/read.c (struct comp_unit_head): Move to
9969 dwarf2/comp-unit.h.
9970 (enum class rcuh_kind): Move to comp-unit.h.
9971 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9972 (read_comp_unit_head, error_check_comp_unit_head)
9973 (read_and_check_comp_unit_head): Move to comp-unit.c.
9974 (read_offset, dwarf_unit_type_name): Likewise.
9975 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9976 (cutu_reader::cutu_reader, read_call_site_scope)
9977 (find_partial_die, follow_die_offset): Update.
9978 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9979
24aa364d
TT
99802020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/read.c (read_offset_1): Move to leb.c.
9983 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9984 (dwarf_decode_macro_bytes): Update.
9985 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9986 * dwarf2/leb.h (read_offset): Declare.
9987
2c7d5afc
TT
99882020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.c (dwarf2_section_size): Remove.
9991 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9992 Update.
9993 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9994
4075cb26
TT
99952020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2/read.c (read_initial_length): Move to leb.c.
9998 * dwarf2/leb.h (read_initial_length): Declare.
9999 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10000 handle_nonstd parameter.
10001 * dwarf2/frame.c (read_initial_length): Remove.
10002 (decode_frame_entry_1): Update.
10003
09ba997f
TT
100042020-02-08 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2/loc.c (dwarf2_find_location_expression)
10007 (dwarf_evaluate_loc_desc::get_tls_address)
10008 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10009 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10010 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10011 (dwarf2_compile_property_to_c)
10012 (dwarf2_loc_desc_get_symbol_read_needs)
10013 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10014 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10015 (loclist_describe_location, loclist_tracepoint_var_ref)
10016 (loclist_generate_c_location): Update.
10017 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10018 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10019 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10020 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10021 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10022 (dwarf2_per_cu_data::addr_size)
10023 (dwarf2_per_cu_data::ref_addr_size)
10024 (dwarf2_per_cu_data::text_offset)
10025 (dwarf2_per_cu_data::addr_type): Now methods.
10026 (per_cu_header_read_in): Make per_cu "const".
10027 (dwarf2_version): Remove.
10028 (dwarf2_per_cu_data::int_type): Now a method.
10029 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10030 (set_die_type, read_array_type, read_subrange_index_type)
10031 (read_tag_string_type, read_subrange_type): Update.
10032 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10033 offset_size, ref_addr_size, text_offset, addr_type, version,
10034 objfile, int_type, addr_sized_int_type>: Declare methods.
10035
96c738c0
TT
100362020-02-08 Tom Tromey <tom@tromey.com>
10037
10038 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10039 Move earlier.
10040
8fdd972c
TT
100412020-02-08 Tom Tromey <tom@tromey.com>
10042
10043 * dwarf2/read.h (dwarf_line_debug): Declare.
10044 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10045 * dwarf2/read.c: Move line_header code to new files.
10046 (dwarf_line_debug): No longer static.
10047 * dwarf2/line-header.c: New file.
10048 * dwarf2/line-header.h: New file.
10049
03075812
TT
100502020-02-08 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2/read.c (struct line_header) <file_full_name,
10053 file_file_name>: Return unique_xmalloc_ptr.
10054 (line_header::file_file_name): Update.
10055 (line_header::file_full_name): Update.
10056 (dw2_get_file_names_reader): Update.
10057 (macro_start_file): Update.
10058
bb822404
TT
100592020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.c (struct line_header) <file_full_name,
10062 file_file_name>: Declare methods.
10063 (dw2_get_file_names_reader): Update.
10064 (file_file_name): Now a method.
10065 (file_full_name): Likewise.
10066 (macro_start_file): Update.
10067
009b64fc
TT
100682020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (dwarf_always_disassemble)
10071 (show_dwarf_always_disassemble): Move to loc.c.
10072 (_initialize_dwarf2_read): Move "always-disassemble" registration
10073 to loc.c.
10074 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10075 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10076 static.
10077 (show_dwarf_always_disassemble): Move from read.c.
10078 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10079
5895093f
TT
100802020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10083 (create_quick_file_names_table): Return htab_up.
10084 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10085 Update.
10086 * dwarf2/read.h (struct dwarf2_per_objfile)
10087 <quick_file_names_table>: Now htab_up.
10088
b3b32279
TT
100892020-02-08 Tom Tromey <tom@tromey.com>
10090
10091 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10092
1d33d811
TT
100932020-02-08 Tom Tromey <tom@tromey.com>
10094
10095 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10096 Rewrite.
10097 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10098 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10099 (abbrev_table::abbrev_table): No longer inline.
10100 (ABBREV_HASH_SIZE): Remove.
10101 (abbrev_table::m_abbrevs): Now an htab_up.
10102
86de1d91
TT
101032020-02-08 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10106 (cutu_reader): Update.
10107 (build_type_psymtabs_1): Update.
10108 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10109 (abbrev_table::alloc_abbrev): Update.
10110 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10111 (abbrev_table::read): New static method, renamed from
10112 abbrev_table_read_table.
10113 (abbrev_table::alloc_abbrev)
10114 (abbrev_table::add_abbrev): Now private.
10115 (abbrev_table::abbrev_table): Now private.
10116 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10117
0335378b
TT
101182020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10121 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10122 htab_up.
10123
48b490f2
TT
101242020-02-08 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10127 htab_up.
10128 (lookup_dwo_unit_in_dwp): Update.
10129 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10130 on obstack.
10131
bc68fb19
TT
101322020-02-08 Tom Tromey <tom@tromey.com>
10133
10134 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10135 obstack.
10136
d15acc42
TT
101372020-02-08 Tom Tromey <tom@tromey.com>
10138
10139 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10140 line_header_hash.
10141 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10142 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10143 Change type to htab_up.
10144
eaa5fa8b
TT
101452020-02-08 Tom Tromey <tom@tromey.com>
10146
10147 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10148 htab_up. Don't allocate on obstack.
10149 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10150 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10151 Change type to htab_up.
10152
b0b6a987
TT
101532020-02-08 Tom Tromey <tom@tromey.com>
10154
10155 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10156 Change type to htab_up.
10157 * dwarf2/read.c (create_signatured_type_table_from_index)
10158 (create_signatured_type_table_from_debug_names)
10159 (create_all_type_units, add_type_unit)
10160 (lookup_dwo_signatured_type, lookup_signatured_type)
10161 (process_skeletonless_type_unit): Update.
10162 (create_debug_type_hash_table, create_debug_types_hash_table):
10163 Change type of types_htab.
10164 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10165 htab_up. Don't allocate on obstack.
10166 (create_cus_hash_table): Change type of cus_htab parameter.
10167 (struct dwo_file) <cus, tus>: Now htab_up.
10168 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10169 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10170 (queue_and_load_all_dwo_tus): Update.
10171 * dwarf2/index-write.c (write_gdbindex): Update.
10172 (write_debug_names): Update.
10173
39856def
TT
101742020-02-08 Tom Tromey <tom@tromey.com>
10175
10176 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10177 dwarf2/read.c. Remove "next" member. Add constructor ntad
10178 destructor.
10179 (struct dwarf2_per_objfile) <queue>: New member.
10180 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10181 dwarf2/read.h.
10182 (dwarf2_queue, dwarf2_queue_tail): Remove.
10183 (class dwarf2_queue_guard): Add parameter to constructor. Use
10184 DISABLE_COPY_AND_ASSIGN.
10185 <m_per_objfile>: New member.
10186 <~dwarf2_queue_guard>: Rewrite.
10187 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10188 Update.
10189 (~dwarf2_queue_item): New.
10190
3e225074
TT
101912020-02-08 Tom Tromey <tom@tromey.com>
10192
10193 * dwarf2/read.c (struct die_info) <has_children>: New member.
10194 (dw2_get_file_names_reader): Remove has_children.
10195 (dw2_get_file_names): Update.
10196 (read_cutu_die_from_dwo): Remove has_children.
10197 (cutu_reader::init_tu_and_read_dwo_dies)
10198 (cutu_reader::cutu_reader): Update.
10199 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10200 Remove has_children.
10201 (build_type_psymtabs_1, process_skeletonless_type_unit)
10202 (load_partial_comp_unit, load_full_comp_unit): Update.
10203 (create_dwo_cu_reader): Remove has_children.
10204 (create_cus_hash_table, read_die_and_children): Update.
10205 (read_full_die_1,read_full_die): Remove has_children.
10206 (read_signatured_type): Update.
10207 (class cutu_reader) <has_children>: Remove.
10208
82ca8957
TT
102092020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/expr.c: Rename from dwarf2expr.c.
10212 * dwarf2/expr.h: Rename from dwarf2expr.h.
10213 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10214 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10215 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10216 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10217 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10218 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10219 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10220 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10221 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10222 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10223 * dwarf2/loc.c: Rename from dwarf2loc.c.
10224 * dwarf2/loc.h: Rename from dwarf2loc.h.
10225 * dwarf2/read.c: Rename from dwarf2read.c.
10226 * dwarf2/read.h: Rename from dwarf2read.h.
10227 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10228 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10229 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10230 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10231 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10232 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10233 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10234 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10235 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10236 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10237 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10238 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10239 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10240 Update.
10241 * Makefile.in (COMMON_SFILES): Update.
10242 (HFILES_NO_SRCDIR): Update.
10243
9e35d499
TT
102442020-02-08 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10247 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10248
1eba2311
TT
102492020-02-08 Tom Tromey <tom@tromey.com>
10250
10251 * dwarf2read.h (struct die_info): Don't declare.
10252
e41c2da2
TT
102532020-02-08 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2read.h (die_info_ptr): Remove typedef.
10256
4fc6c0d5
TT
102572020-02-08 Tom Tromey <tom@tromey.com>
10258
10259 * dwarf2read.c (read_call_site_scope)
10260 (handle_data_member_location, dwarf2_add_member_fn)
10261 (mark_common_block_symbol_computed, read_common_block)
10262 (attr_to_dynamic_prop, partial_die_info::read)
10263 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10264 (dwarf2_symbol_mark_computed, set_die_type): Update.
10265 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10266 method.
10267 (attr_form_is_block): Don't declare.
10268 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10269
cd6c91b4
TT
102702020-02-08 Tom Tromey <tom@tromey.com>
10271
10272 * dwarf2read.c (dwarf2_find_base_address, )
10273 (read_call_site_scope, rust_containing_type)
10274 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10275 (handle_data_member_location, dwarf2_add_member_fn)
10276 (get_alignment, read_structure_type, process_structure_scope)
10277 (mark_common_block_symbol_computed, read_common_block)
10278 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10279 (partial_die_info::read, read_attribute_value, new_symbol)
10280 (lookup_die_type, dwarf2_get_ref_die_offset)
10281 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10282 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10283 (dwarf2_symbol_mark_computed): Update.
10284 * dwarf2/attribute.h (struct attribute) <value_as_address,
10285 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10286 methods.
10287 (value_as_address, attr_form_is_section_offset)
10288 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10289 * dwarf2/attribute.c (attribute::value_as_address)
10290 (attribute::form_is_section_offset, attribute::form_is_constant)
10291 (attribute::form_is_ref): Now methods.
10292
162dce55
TT
102932020-02-08 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2read.c (struct attribute, DW_STRING)
10296 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10297 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10298 (attr_form_is_block, attr_form_is_section_offset)
10299 (attr_form_is_constant, attr_form_is_ref): Move.
10300 * dwarf2/attribute.h: New file.
10301 * dwarf2/attribute.c: New file, from dwarf2read.c.
10302 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10303
3054dd54
TT
103042020-02-08 Tom Tromey <tom@tromey.com>
10305
10306 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10307 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10308 Move.
10309 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10310 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10311 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10312 abbrev.c.
10313 * dwarf2/abbrev.h: New file.
10314 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10315 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10316
96b79293
TT
103172020-02-08 Tom Tromey <tom@tromey.com>
10318
10319 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10320 (dwarf2_section_size, dwarf2_get_section_info)
10321 (create_signatured_type_table_from_debug_names)
10322 (create_addrmap_from_aranges, read_debug_names_from_section)
10323 (get_gdb_index_contents_from_section, read_comp_unit_head)
10324 (error_check_comp_unit_head, read_abbrev_offset)
10325 (create_debug_type_hash_table, init_cu_die_reader)
10326 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10327 (read_comp_units_from_section, create_cus_hash_table)
10328 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10329 (create_dwp_v2_section, dwarf2_rnglists_process)
10330 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10331 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10332 (read_indirect_string_from_dwz, read_addr_index_1)
10333 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10334 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10335 (fill_in_loclist_baton): Update.
10336 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10337 get_containing_section, get_bfd_owner, get_bfd_section,
10338 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10339 (dwarf2_read_section, get_section_name, get_section_file_name)
10340 (get_containing_section, get_section_bfd_owner)
10341 (get_section_bfd_section, get_section_name, get_section_file_name)
10342 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10343 declare.
10344 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10345 (dwarf2_section_info::get_bfd_owner)
10346 (dwarf2_section_info::get_bfd_section)
10347 (dwarf2_section_info::get_name)
10348 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10349 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10350 (dwarf2_section_info::read): Now methods.
10351 * dwarf-index-write.c (class debug_names): Update.
10352
2c86cff9
TT
103532020-02-08 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10356 Move to dwarf2/section.h.
10357 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10358 (get_section_bfd_section, get_section_name)
10359 (get_section_file_name, get_section_id, get_section_flags)
10360 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10361 dwarf2/section.c.
10362 * dwarf2/section.h: New file.
10363 * dwarf2/section.c: New file, from dwarf2read.c.
10364 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10365
f4382c45
TT
103662020-02-08 Tom Tromey <tom@tromey.com>
10367
10368 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10369 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10370 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10371 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10372 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10373 * dwarf2/leb.h: New file, from dwarf2read.c.
10374 * dwarf2/leb.c: New file, from dwarf2read.c.
10375 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10376 Remove.
10377 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10378 (COMMON_SFILES): Add dwarf2/leb.c.
10379
01840b7a
JB
103802020-02-08 Joel Brobecker <brobecker@adacore.com>
10381
10382 GDB 9.1 released.
10383
dfcb27e4
IB
103842020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10385
10386 PR gdb/25190:
aac66a4c
SM
10387 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10388 * gdb/remote.c (remote_console_output): Update.
10389 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10390 (ui_file_puts): ...this.
10391 * gdb/ui-file.h (ui_file_puts): Add declaration.
10392 * gdb/utils.c (emit_style_escape): Update.
10393 (flush_wrap_buffer): Update.
10394 (fputs_maybe_filtered): Update.
10395 (fputs_unfiltered): Add function.
dfcb27e4 10396
faa17681
IB
103972020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10398
aac66a4c
SM
10399 * gdb/event-loop.c (gdb_wait_for_event): Update.
10400 * gdb/printcmd.c (printf_command): Update.
10401 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10402 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10403 (gdb_os_flush_stderr): Update.
10404 * gdb/remote.c (remote_console_output): Update.
10405 * gdb/ui-file.c (gdb_flush): Rename to...
10406 (ui_file_flush): ...this.
10407 (stderr_file::write): Update.
10408 (stderr_file::puts): Update.
10409 * gdb/ui-file.h (gdb_flush): Rename to...
10410 (ui_file_flush): ...this.
10411 * gdb/utils.c (gdb_flush): Add function.
10412 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10413
5abbbe1d
TT
104142020-02-07 Tom Tromey <tromey@adacore.com>
10415
10416 PR breakpoints/24915:
10417 * source.c (find_and_open_source): Do not check basenames_may_differ.
10418
919adfe8
TT
104192020-02-07 Tom Tromey <tom@tromey.com>
10420
10421 * README: Update gdbserver documentation.
10422 * gdbserver: Move to top level.
10423 * configure.tgt (build_gdbserver): Remove.
10424 * configure.ac: Remove --enable-gdbserver.
10425 * configure: Rebuild.
10426 * Makefile.in (distclean): Don't mention gdbserver.
10427
1d5d29e7
SV
104282020-02-06 Shahab Vahedi <shahab@synopsys.com>
10429
10430 * source-cache.c (source_cache::ensure): Surround
10431 get_plain_source_lines with a try/catch.
10432 (source_cache::get_line_charpos): Get rid of try/catch
10433 and only check for the return value of "ensure".
10434 * tui/tui-source.c (tui_source_window::set_contents):
10435 Simplify "nlines" calculation.
10436
6eb1129c
SV
104372020-02-06 Shahab Vahedi <shahab@synopsys.com>
10438
10439 * MAINTAINERS (Write After Approval): Add myself.
10440
c6a42d11
CB
104412020-02-05 Christian Biesinger <cbiesinger@google.com>
10442
10443 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10444 function call.
10445
c8ecdda6
CB
104462020-02-05 Christian Biesinger <cbiesinger@google.com>
10447
10448 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10449
f6480e70
MR
104502020-02-05 Maciej W. Rozycki <macro@wdc.com>
10451
10452 * nat/riscv-linux-tdesc.h: New file.
10453 * nat/riscv-linux-tdesc.c: New file, taking code from...
10454 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10455 ... here.
10456 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10457 NATDEPFILES.
10458
dcc9fbc6
AB
104592020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10460
10461 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10462 we don't set the fake simulator ptid to the null_ptid.
10463
719546c4
SM
104642020-02-03 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10467 * gdbthread.h (class thread_info) <resumed>: Likewise.
10468 * infrun.c (resume_1): Likewise.
10469 (proceed): Likewise.
10470 (infrun_thread_stop_requested): Likewise.
10471 (stop_all_threads): Likewise.
10472 (handle_inferior_event): Likewise.
10473 (restart_threads): Likewise.
10474 (finish_step_over): Likewise.
10475 (keep_going_stepped_thread): Likewise.
10476 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10477 (linux_handle_extended_wait): Likewise.
10478 * record-btrace.c (get_thread_current_frame_id): Likewise.
10479 * record-full.c (record_full_wait_1): Likewise.
10480 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10481 * target.c (target_resume): Likewise.
10482 * thread.c (set_running_thread): Likewise.
10483
e409c542
AKS
104842020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10485
10486 * f-valprint.c (f77_print_array_1): Changed datatype of index
10487 variable to LONGEST from int to enable it to contain bound
10488 values correctly.
10489
ee98c0da
MR
104902020-02-03 Maciej W. Rozycki <macro@wdc.com>
10491
10492 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10493 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10494 offsets according to FLEN determined.
10495 (riscv_linux_nat_target::read_description): Determine FLEN
10496 dynamically.
10497 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10498 according to FLEN determined.
10499 (riscv_linux_nat_target::store_registers): Likewise.
10500
aa66aac4
SV
105012020-02-01 Shahab Vahedi <shahab@synopsys.com>
10502
10503 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10504 when reg->group is empty and reggroup is not.
10505
fd9faca8
TT
105062020-01-31 Tom Tromey <tromey@adacore.com>
10507
10508 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10509 Call beneath target's mourn_inferior after unpushing.
10510
42330a68
AB
105112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10512
10513 PR tui/9765
10514 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10515 have enough lines to fill the screen, still return the lowest
10516 address we found.
10517
7a27a45b
AB
105182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10519
10520 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10521 '-', '<', and '>' commands.
10522
c47f70e2
PA
105232020-01-29 Pedro Alves <palves@redhat.com>
10524 Sergio Durigan Junior <sergiodj@redhat.com>
10525
10526 * infcmd.c (construct_inferior_arguments): Assert that
10527 'argc' is greater than 0.
10528
5133a315
LM
105292020-01-29 Luis Machado <luis.machado@linaro.org>
10530
10531 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10532 (BRK_INSN_MASK): Define to 0xd4200000.
10533 (aarch64_program_breakpoint_here_p): New function.
10534 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10535 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10536 breakpoint.c.
10537 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10538 breakpoint.h
10539 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10540 call gdbarch_program_breakpoint_here_p.
10541 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10542 default_program_breakpoint_here_p, changed return type to bool and
10543 simplified.
10544 * breakpoint.h (program_breakpoint_here): Moved prototype to
10545 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10546 return type to bool.
10547 * gdbarch.c: Regenerate.
10548 * gdbarch.h: Regenerate.
10549 * gdbarch.sh (program_breakpoint_here_p): New method.
10550 * infrun.c (handle_signal_stop): Call
10551 gdbarch_program_breakpoint_here_p.
10552
168f8c6b
TT
105532020-01-26 Tom Tromey <tom@tromey.com>
10554
10555 * ctfread.c (struct ctf_fp_info): Reindent.
10556 (_initialize_ctfread): Remove.
10557
128a391f
TT
105582020-01-26 Tom Tromey <tom@tromey.com>
10559
10560 * psymtab.c (partial_map_expand_apply)
10561 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10562 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10563 (psym_print_stats, psym_expand_symtabs_for_function)
10564 (psym_map_symbol_filenames, psym_map_matching_symbols)
10565 (psym_expand_symtabs_matching)
10566 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10567 (maintenance_check_psymtabs): Use new methods.
10568 * psympriv.h (struct partial_symtab) <readin_p,
10569 get_compunit_symtab>: New methods.
10570 <readin, compunit_symtab>: Remove members.
10571 (struct standard_psymtab): New.
10572 (struct legacy_psymtab): Derive from standard_psymtab.
10573 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10574 standard_psymtab.
10575 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10576
0494dbec
TT
105772020-01-26 Tom Tromey <tom@tromey.com>
10578
10579 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10580 read_dependencies. Add assert.
10581 * psymtab.c (partial_symtab::read_dependencies): New method.
10582 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10583 method.
10584 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10585 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10586 read_dependencies.
10587 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10588 Add assert.
10589
8566b89b
TT
105902020-01-26 Tom Tromey <tom@tromey.com>
10591
10592 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10593 Call expand_psymtab.
10594 (xcoff_read_symtab): Call expand_psymtab.
10595 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10596 legacy_expand_psymtab.
10597 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10598 method.
10599 (struct legacy_psymtab) <expand_psymtab>: Implement.
10600 <legacy_expand_psymtab>: New member.
10601 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10602 (parse_partial_symbols): Set legacy_expand_psymtab.
10603 (psymtab_to_symtab_1): Change argument order. Call
10604 expand_psymtab.
10605 (new_psymtab): Set legacy_expand_psymtab.
10606 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10607 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10608 expand_psymtab.
10609 (dwarf2_psymtab::expand_psymtab): Rename from
10610 psymtab_to_symtab_1. Call expand_psymtab.
10611 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10612 (dbx_end_psymtab): Likewise.
10613 (dbx_psymtab_to_symtab_1): Change argument order. Call
10614 expand_psymtab.
10615 (dbx_read_symtab): Call expand_psymtab.
10616 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10617 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10618 (ctf_psymtab::read_symtab): Call expand_psymtab.
10619
077cbab2
TT
106202020-01-26 Tom Tromey <tom@tromey.com>
10621
10622 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10623 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10624 messages.
10625 * mdebugread.c (mdebug_read_symtab): Remove prints.
10626 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10627 assert.
10628 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10629
891813be
TT
106302020-01-26 Tom Tromey <tom@tromey.com>
10631
10632 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10633 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10634 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10635 legacy_symtab.
10636 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10637 * psymtab.c (psymtab_to_symtab): Call method.
10638 (dump_psymtab): Update.
10639 * psympriv.h (struct partial_symtab): Add virtual destructor.
10640 <read_symtab>: New method.
10641 (struct legacy_symtab): New.
10642 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10643 (struct pst_map) <pst>: Now a legacy_psymtab.
10644 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10645 (new_psymtab): Use legacy_psymtab.
10646 * dwarf2read.h (struct dwarf2_psymtab): New.
10647 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10648 * dwarf2read.c (dwarf2_create_include_psymtab)
10649 (dwarf2_build_include_psymtabs, create_type_unit_group)
10650 (create_partial_symtab, process_psymtab_comp_unit_reader)
10651 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10652 (set_partial_user): Use dwarf2_psymtab.
10653 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10654 (psymtab_to_symtab_1, process_full_comp_unit)
10655 (process_full_type_unit, dwarf2_ranges_read)
10656 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10657 (dwarf_decode_lines): Use dwarf2_psymtab.
10658 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10659 (add_address_entry_worker, write_one_signatured_type)
10660 (recursively_count_psymbols, recursively_write_psymbols)
10661 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10662 (write_debug_names): Likewise.
10663 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10664 <pst>: Now a legacy_psymtab.
10665 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10666 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10667 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10668 * ctfread.c (struct ctf_psymtab): New.
10669 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10670 ctf_psymtab.
10671 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10672 (create_partial_symtab): Return a ctf_psymtab.
10673 (scan_partial_symbols): Update.
10674
c3693a1d
TT
106752020-01-26 Tom Tromey <tom@tromey.com>
10676
10677 * xcoffread.c (xcoff_start_psymtab): Use new.
10678 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10679 renamed from start_psymtab_common.
10680 * psympriv.h (struct partial_symtab): Add new constructor.
10681 (start_psymtab_common): Don't declare.
10682 * mdebugread.c (parse_partial_symbols): Use new.
10683 * dwarf2read.c (create_partial_symtab): Use new.
10684 * dbxread.c (start_psymtab): Use new.
10685 * ctfread.c (create_partial_symtab): Use new.
10686
32caafd0
TT
106872020-01-26 Tom Tromey <tom@tromey.com>
10688
10689 * xcoffread.c (xcoff_end_psymtab): Use new.
10690 * psymtab.c (start_psymtab_common): Use new.
10691 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10692 Update.
10693 * psympriv.h (struct partial_symtab): Add parameters to
10694 constructor. Don't inline.
10695 (allocate_psymtab): Don't declare.
10696 * mdebugread.c (new_psymtab): Use new.
10697 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10698 * dbxread.c (dbx_end_psymtab): Use new.
10699
abaa2f23
TT
107002020-01-26 Tom Tromey <tom@tromey.com>
10701
10702 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10703 allocate_psymtab. Update documentation.
10704 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10705 allocate_psymtab. Do not use new.
10706 (allocate_psymtab): Use new. Update.
10707
6d94535f
TT
107082020-01-26 Tom Tromey <tom@tromey.com>
10709
10710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10711 * psymtab.c (psym_print_stats): Update.
10712 * psympriv.h (struct partial_symtab) <readin,
10713 psymtabs_addrmap_supported, anonymous>: Now bool.
10714 * mdebugread.c (psymtab_to_symtab_1): Update.
10715 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10716 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10717 (process_full_comp_unit, process_full_type_unit): Update.
10718 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10719 * ctfread.c (psymtab_to_symtab): Update.
10720
6f17252b
TT
107212020-01-26 Tom Tromey <tom@tromey.com>
10722
10723 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10724 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10725 * psymtab.c (psymtab_storage): Delete psymtabs.
10726 (psymtab_storage::allocate_psymtab): Use new.
10727 (psymtab_storage::discard_psymtab): Use delete.
10728 * psympriv.h (struct partial_symtab): Add constructor and
10729 initializers.
10730
f6f1cebc
TT
107312020-01-26 Tom Tromey <tom@tromey.com>
10732
10733 * machoread.c: Do not include psympriv.h.
10734
e47e48f6
PW
107352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10736
10737 * NEWS: Mention the new option and the set/show commands.
10738
a2fedca9
PW
107392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10740
10741 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10742 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10743 (validate_exec_file): New variables, enums, functions.
10744 (exec_file_locate_attach, print_section_info): Style the filenames.
10745 (_initialize_exec): Install show_exec_file_mismatch_command and
10746 set_exec_file_mismatch_command.
10747 * gdbcore.h (validate_exec_file): Declare.
10748 * infcmd.c (attach_command): Call validate_exec_file.
10749 * remote.c ( remote_target::remote_add_inferior): Likewise.
10750
7ffa82e1
AB
107512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * frame.c (find_frame_sal): Move call to get_next_frame into more
10754 inner scope.
10755 * inline-frame.c (inilne_state) <inline_state>: Update argument
10756 types.
10757 (inilne_state) <skipped_symbol>: Rename to...
10758 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10759 (skip_inline_frames): Build vector of skipped symbols and use this
10760 to reate the inline_state.
10761 (inline_skipped_symbol): Add a comment and some assertions, fetch
10762 skipped symbol from the list.
10763
3d92a3e3
AB
107642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * buildsym.c (lte_is_less_than): Delete.
10767 (buildsym_compunit::end_symtab_with_blockvector): Create local
10768 lambda function to sort line table entries, and use
10769 std::stable_sort instead of std::sort.
10770 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10771 markers when looking for a previous line.
10772
94a72be7
AB
107732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * dwarf2read.c (lnp_state_machine::record_line): Include
10776 end_sequence parameter in debug print out. Record the line if we
10777 are at an end_sequence marker even if it's not the start of a
10778 statement.
10779 * symmisc.c (maintenance_print_one_line_table): Print end of
10780 sequence markers with 'END' not '0'.
10781
53af73bf
PA
107822020-01-24 Pedro Alves <palves@redhat.com>
10783
10784 PR gdb/25410
10785 * thread.c (scoped_restore_current_thread::restore): Use
10786 switch_to_inferior_no_thread.
10787 * exec.c: Include "progspace-and-thread.h".
10788 (add_target_sections, remove_target_sections):
10789 scoped_restore_current_pspace_and_thread instead of
10790 scoped_restore_current_thread.
10791 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10792 and aspace to the inferior before calling clone_program_space.
10793 Remove stale comment.
10794
3050c6f4
CB
107952020-01-24 Christian Biesinger <cbiesinger@google.com>
10796
10797 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10798 (arm_netbsd_nat_target::fetch_registers): ...this.
10799 (arm_nbsd_nat_target::store_registers): Rename to...
10800 (arm_netbsd_nat_target::store_registers): ...this.
10801
73685c7e
CB
108022020-01-24 Christian Biesinger <cbiesinger@google.com>
10803
10804 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10805 register_t.
10806
89203d40
CB
108072020-01-24 Christian Biesinger <cbiesinger@google.com>
10808
10809 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10810 Update comment.
10811 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10812 Likewise.
10813 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10814 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10815 the correct replacement (iterate_over_regset_sections).
10816 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10817 Update comment.
10818
1ba1ac88
AB
108192020-01-24 Graham Markall <graham.markall@embecosm.com>
10820
10821 PR gdb/23718
10822 * gdb/python/python.c (execute_gdb_command): Call
10823 async_enable_stdin in catch block.
10824
f3364a6d
AB
108252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10828 SWITCH_THRU_ALL_UIS.
10829
733d0a67
AB
108302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 PR tui/9765
10833 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10834 comment, add extra parameter, and update to store previous symbol
10835 when appropriate.
10836 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10837 add extra parameter.
10838 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10839 remove unneeded parameter, add try/catch around gdb_print_insn,
10840 rewrite to add items to asm_lines vector.
10841 (tui_find_backward_disassembly_start_address): New function.
10842 (tui_find_disassembly_address): Updated throughout.
10843 (tui_disasm_window::set_contents): Update for changes to
10844 tui_disassemble.
10845 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10846 number of lines to scroll.
10847
b3b3bada
SM
108482020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10849
10850 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10851 (SECT_OFF_DATA): Likewise.
10852 (SECT_OFF_RODATA): Likewise.
10853 (SECT_OFF_TEXT): Likewise.
10854 (SECT_OFF_BSS): Likewise.
10855 (struct objfile) <text_section_offset, data_section_offset>: New
10856 methods.
10857 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10858 objfile::text_section_offset.
10859 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10860 * coffread.c (coff_symtab_read): Likewise.
10861 (enter_linenos): Likewise.
10862 (process_coff_symbol): Likewise.
10863 * ctfread.c (get_objfile_text_range): Likewise.
10864 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10865 Use objfile::data_section_offset.
10866 * dwarf2-frame.c (execute_cfa_program): Use
10867 objfile::text_section_offset.
10868 (dwarf2_frame_find_fde): Likewise.
10869 * dwarf2read.c (create_addrmap_from_index): Likewise.
10870 (create_addrmap_from_aranges): Likewise.
10871 (dw2_find_pc_sect_compunit_symtab): Likewise.
10872 (process_psymtab_comp_unit_reader): Likewise.
10873 (add_partial_symbol): Likewise.
10874 (add_partial_subprogram): Likewise.
10875 (process_full_comp_unit): Likewise.
10876 (read_file_scope): Likewise.
10877 (read_func_scope): Likewise.
10878 (read_lexical_block_scope): Likewise.
10879 (read_call_site_scope): Likewise.
10880 (dwarf2_rnglists_process): Likewise.
10881 (dwarf2_ranges_process): Likewise.
10882 (dwarf2_ranges_read): Likewise.
10883 (dwarf_decode_lines_1): Likewise.
10884 (new_symbol): Likewise.
10885 (dwarf2_fetch_die_loc_sect_off): Likewise.
10886 (dwarf2_per_cu_text_offset): Likewise.
10887 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10888 * hppa-tdep.c (read_unwind_info): Likewise.
10889 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10890 * psympriv.h (struct partial_symtab): Likewise.
10891 * psymtab.c (find_pc_sect_psymtab): Likewise.
10892 * solib-svr4.c (enable_break): Likewise.
10893 * stap-probe.c (relocate_address): Use
10894 objfile::data_section_offset.
10895 * xcoffread.c (enter_line_range): Use
10896 objfile::text_section_offset.
10897 (read_xcoff_symtab): Likewise.
10898
ab53f382
SM
108992020-01-23 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10902 declaration to narrower scopes.
10903
e7eee665
SM
109042020-01-23 Simon Marchi <simon.marchi@efficios.com>
10905
10906 * darwin-nat.h (struct darwin_exception_msg, enum
10907 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10908 Move up.
10909 (class darwin_nat_target) <wait_1, check_new_threads,
10910 decode_exception_message, decode_message, stop_inferior,
10911 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10912 * darwin-nat.c (darwin_check_new_threads): Rename to...
10913 (darwin_nat_target::check_new_threads): ... this.
10914 (darwin_suspend_inferior_it): Remove.
10915 (darwin_decode_exception_message): Rename to...
10916 (darwin_nat_target::decode_exception_message): ... this.
10917 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10918 (darwin_decode_message): Rename to...
10919 (darwin_nat_target::decode_message): ... this.
10920 (cancel_breakpoint): Rename to...
10921 (darwin_nat_target::cancel_breakpoint): ... this.
10922 (darwin_wait): Rename to...
10923 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10924 instead of iterate_over_inferiors.
10925 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10926 (darwin_stop_inferior): Rename to...
10927 (darwin_nat_target::stop_inferior): ... this.
10928 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10929 (darwin_init_thread_list): Rename to...
10930 (darwin_nat_target::init_thread_list): ... this.
10931 (darwin_ptrace_him): Rename to...
10932 (darwin_nat_target::ptrace_him): ... this.
10933 (darwin_nat_target::create_inferior): Pass lambda function to
10934 fork_inferior.
10935 (darwin_nat_target::detach): Call stop_inferior instead of
10936 darwin_stop_inferior.
10937 * fork-inferior.h (fork_inferior): Change init_trace_fun
10938 parameter to gdb::function_view.
10939 * fork-inferior.c (fork_inferior): Likewise.
10940
c162ed3e
HD
109412020-01-23 Hannes Domani <ssbssa@yahoo.de>
10942
10943 * i386-cygwin-tdep.c (core_process_module_section): Update.
10944 * windows-nat.c (struct lm_info_windows): Add text_offset.
10945 (windows_xfer_shared_libraries): Update.
10946 * windows-tdep.c (windows_xfer_shared_library):
10947 Add text_offset_cached argument.
10948 * windows-tdep.h (windows_xfer_shared_library): Update.
10949
a1237872
SM
109502020-01-21 Simon Marchi <simon.marchi@efficios.com>
10951
10952 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10953
b3ee6dd9
SM
109542020-01-21 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10957 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10958 replace with range-based for.
10959 (gdbsim_interrupt_inferior): Remove.
10960 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10961 with a range-based for. Inline code from
10962 gdbsim_interrupt_inferior.
10963
f9fac3c8
SM
109642020-01-21 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * infrun.c (proceed): Fix indentation.
10967
f6474de9
TT
109682020-01-21 Tom Tromey <tromey@adacore.com>
10969
10970 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10971 * python/python.c (python_extension_ops): Update.
10972 (gdbpy_colorize): New function.
10973 * python/lib/gdb/__init__.py (colorize): New function.
10974 * extension.h (ext_lang_colorize): Declare.
10975 * extension.c (ext_lang_colorize): New function.
10976 * extension-priv.h (struct extension_language_ops) <colorize>: New
10977 member.
10978 * cli/cli-style.c (_initialize_cli_style): Update help text.
10979
f0c702d4
LM
109802020-01-21 Luis Machado <luis.machado@linaro.org>
10981
10982 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10983 <cond>: Change type to bool.
10984 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10985 (aarch64_displaced_step_cb): Likewise.
10986 (aarch64_displaced_step_tb): Likewise.
10987
1ab139e5
LM
109882020-01-21 Luis Machado <luis.machado@linaro.org>
10989
10990 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10991 output.
10992
0c271889
LM
109932020-01-21 Luis Machado <luis.machado@linaro.org>
10994
10995 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10996 <pc_adjust>: Adjust the documentation.
10997 (aarch64_displaced_step_fixup): Check if PC really moved before
10998 adjusting it.
10999
4d89c1c7
TT
110002020-01-19 Tom Tromey <tom@tromey.com>
11001
11002 * disasm.c (~gdb_disassembler): New destructor.
11003 (gdb_buffered_insn_length): Call disassemble_free_target.
11004 * disasm.h (class gdb_disassembler): Declare destructor. Use
11005 DISABLE_COPY_AND_ASSIGN.
11006
c0ab21c2
TT
110072020-01-19 Tom Tromey <tom@tromey.com>
11008
11009 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11010 (die_reader_func_ftype): Remove.
11011 (cutu_reader): New class.
11012 (dw2_get_file_names_reader): Remove "data" parameter.
11013 (dw2_get_file_names): Use cutu_reader.
11014 (create_debug_type_hash_table): Update.
11015 (read_cutu_die_from_dwo): Update comment.
11016 (lookup_dwo_unit): Add dwo_name parameter.
11017 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11018 die_reader_func_ftype and data parameters.
11019 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11020 Remove die_reader_func_ftype and data parameters.
11021 (~cutu_reader): New; from init_cutu_and_read_dies.
11022 (cutu_reader::cutu_reader): Rename from
11023 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11024 and data parameters.
11025 (init_cutu_and_read_dies_simple): Remove.
11026 (struct process_psymtab_comp_unit_data): Remove.
11027 (process_psymtab_comp_unit_reader): Remove data parameter; add
11028 want_partial_unit and pretend_language parameters.
11029 (process_psymtab_comp_unit): Use cutu_reader.
11030 (build_type_psymtabs_reader): Remove data parameter.
11031 (build_type_psymtabs_1): Use cutu_reader.
11032 (process_skeletonless_type_unit): Likewise.
11033 (load_partial_comp_unit_reader): Remove.
11034 (load_partial_comp_unit): Use cutu_reader.
11035 (load_full_comp_unit_reader): Remove.
11036 (load_full_comp_unit): Use cutu_reader.
11037 (struct create_dwo_cu_data): Remove.
11038 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11039 dwo_unit parameters.
11040 (create_cus_hash_table): Use cutu_reader.
11041 (struct dwarf2_read_addr_index_data): Remove.
11042 (dwarf2_read_addr_index_reader): Remove.
11043 (dwarf2_read_addr_index): Use cutu_reader.
11044 (read_signatured_type_reader): Remove.
11045 (read_signatured_type): Use cutu_reader.
11046
45bbae5c
TT
110472020-01-19 Tom Tromey <tom@tromey.com>
11048
11049 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11050 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11051 (tui_wrefresh): Declare.
11052 * tui/tui-wingeneral.c (suppress_output): New global.
11053 (tui_suppress_output, ~tui_suppress_output): New constructor and
11054 destructor.
11055 (tui_wrefresh): New function.
11056 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11057 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11058 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11059 method.
11060 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11061 tui_wrefresh.
11062 (tui_data_window::no_refresh): New method.
11063 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11064 (tui_reg_command): Use tui_suppress_output
11065 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11066 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11067 method.
11068 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11069
4f13c1c0
TT
110702020-01-19 Tom Tromey <tom@tromey.com>
11071
11072 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11073 Handle case where symtab is null.
11074
fa47e446
SM
110752020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11076
11077 * linux-fork.c (one_fork_p): Simplify.
11078
26f42329
SM
110792020-01-17 Simon Marchi <simon.marchi@efficios.com>
11080
11081 * top.c (struct qt_args): Remove.
11082 (kill_or_detach): Change return type to void, replace `void *`
11083 parameter with a proper one.
11084 (print_inferior_quit_action): Likewise.
11085 (quit_confirm): Use range-based for loop to iterate over inferiors.
11086 (quit_force): Likewise.
11087
a9ac81b1
SM
110882020-01-17 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11091 `void *` parameter with proper parameters.
11092 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11093 (print_one_inferior): Change return type to void, replace `void *`
11094 parameter with proper parameters.
11095 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11096 inferiors.
11097 (get_other_inferior): Remove.
11098 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11099 inferiors.
11100
788eca49
SM
111012020-01-17 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * mi/mi-interp.c (report_initial_inferior): Remove.
11104 (mi_interp::init): Use range-based for to iterate over inferiors.
11105
d9bc85b6
SM
111062020-01-17 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * python/py-inferior.c (build_inferior_list): Remove.
11109 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11110
40c94099
CB
111112020-01-16 Christian Biesinger <cbiesinger@google.com>
11112
11113 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11114 (btrace_stitch_trace): Likewise.
11115 * charset.c (intermediate_encoding): Likewise (vaild).
11116 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11117 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11118 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11119
e0cdfe3c
HD
111202020-01-16 Hannes Domani <ssbssa@yahoo.de>
11121
11122 * windows-tdep.c (windows_get_tlb_type):
11123 Add rtl_user_process_parameters type.
11124
790f1718 111252020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11126 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11127
11128 PR build/24805
11129 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11130 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11131 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11132 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11133 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11134 (ps_plog): Redeclare exported functions with default visibility.
11135
3112ed97
NA
111362020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11137
11138 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11139 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11140
8dc3273e
SM
111412020-01-15 Simon Marchi <simon.marchi@efficios.com>
11142
11143 * infcmd.c (post_create_inferior): Use get_thread_regcache
11144 instead of get_current_regcache.
11145
ff47f4f0
TT
111462020-01-14 Tom Tromey <tom@tromey.com>
11147
11148 PR symtab/12535:
11149 * python/python.c (gdbpy_decode_line): Treat empty string the same
11150 as no argument.
11151
975f45b7
TT
111522020-01-14 Tom Tromey <tom@tromey.com>
11153
11154 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11155
25e57356
TT
111562020-01-14 Tom Tromey <tom@tromey.com>
11157
11158 * nat/linux-btrace.c: Don't include <config.h>.
11159 * nat/linux-ptrace.c: Don't include <config.h>.
11160 * nat/x86-linux-dregs.c: Don't include <config.h>.
11161
05ea2a05
TT
111622020-01-14 Tom Tromey <tom@tromey.com>
11163
11164 * configure: Rebuild.
11165 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11166
01027315
TT
111672020-01-14 Tom Tromey <tom@tromey.com>
11168
11169 * nat/x86-linux-dregs.c: Include configh.h.
11170 * nat/linux-ptrace.c: Include configh.h.
11171 * nat/linux-btrace.c: Include configh.h.
11172 * defs.h: Include config.h, bfd.h.
11173 * configure.ac: Don't source common.host.
11174 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11175 * configure: Rebuild.
11176 * acinclude.m4: Update path.
11177 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11178 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11179 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11180 (CLIBS): Add LIBSUPPORT.
11181 (CDEPS): Likewise.
11182 (COMMON_SFILES): Remove gdbsupport files.
11183 (HFILES_NO_SRCDIR): Likewise.
11184 (stamp-version): Update path to create-version.sh.
11185 (ALLDEPFILES): Remove gdbsupport files.
11186
b2ceabe8
TT
111872020-01-14 Tom Tromey <tom@tromey.com>
11188
11189 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11190 USE_WIN32API when needed.
11191 * configure.ac (USE_WIN32API): Don't define.
11192 (WIN32LIBS): Use WIN32APILIBS.
11193 * configure: Rebuild.
11194
25c51f71
TT
111952020-01-14 Tom Tromey <tom@tromey.com>
11196
11197 * configure: Rebuild.
11198 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11199
717c684d
BE
112002020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11201
11202 * skip.c (skip_function_command): Make skip w/o arguments use the
11203 name of the inlined function if pc is inside any inlined function.
11204
7da6a5b9
LM
112052020-01-14 Luis Machado <luis.machado@linaro.org>
11206
11207 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11208 * infrun.c (resume_1): Likewise.
11209 (handle_inferior_event): Remove stale comment.
11210 * linux-nat.c (linux_nat_target::resume): Update comments.
11211 (save_stop_reason): Likewise.
11212 (linux_nat_filter_event): Likewise.
11213 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11214
44e4c775
AB
112152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11216
11217 * elfread.c (record_minimal_symbol): Set section index to 0 for
11218 non-allocatable sections.
11219
18a8505e
AT
11220
112212020-01-13 Ali Tamur <tamur@google.com>
11222
11223 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11224 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11225 to gdb::optional. Update comments.
11226 (dwo_file): Update comments.
11227 (read_attribute): Update API to take an additional out parameter,
11228 need_reprocess. This is used to mark attributes that need other
11229 attributes (e.g. str_offsets_base) for correct computation which may not
11230 have been read yet.
11231 (read_attribute_reprocess): New function declaration.
11232 (read_addr_index): Likewise.
11233 (read_dwo_str_index): Likewise.
11234 (read_stub_str_index): Likewise.
11235 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11236 (lookup_addr_base): New function definition.
11237 (lookup_ranges_base): Likewise.
11238 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11239 lookup_ranges_base.
11240 (init_cutu_and_read_dies): Update comments.
11241 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11242 unit. This is used to inherit parent's str_offsets_base and addr_base.
11243 Update comments.
11244 (init_cutu_and_read_dies_simple): Reflect API changes.
11245 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11246 (create_cus_hash_table): Change API to take parent compile unit.
11247 Reflect API changes.
11248 (open_and_init_dwo_file): Reflect API changes.
11249 (dwarf2_get_pc_bounds): Update comments.
11250 (dwarf2_record_block_ranges): Likewise.
11251 (read_full_die_1): Change implementation to reprocess attributes that
11252 need str_offsets_base and addr_base.
11253 (partial_die_info::read): Likewise.
11254 (read_attribute_reprocess): New function definition.
11255 (read_attribute_value): Change API to take an additional out parameter,
11256 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11257 when a non-dwo compile unit has index based attributes.
11258 (read_attribute): Reflect API changes.
11259 (read_addr_index_1): Reflect API changes. Update comments.
11260 (dwarf2_read_addr_index_data): Reflect API changes.
11261 (dwarf2_read_addr_index): Likewise.
11262 (read_str_index): Change API and implementation. This becomes a helper
11263 to be used by the new string index related methods. Update error
11264 message and comments.
11265 (read_dwo_str_index): New function definition.
11266 (read_stub_str_index): Likewise.
11267 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11268 * symfile.h (dwarf2_debug_sections): Likewise.
11269 * xcoffread.c (dwarf2_debug_sections): Likewise.
11270
0cac9354
SM
112712020-01-13 Simon Marchi <simon.marchi@efficios.com>
11272
11273 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11274 core_reg_sect type to gdb_byte *.
11275 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11276 * cris-tdep.c (fetch_core_registers): Likewise.
11277 * corelow.c (core_target::get_core_register_section): Change
11278 type of `contents` to gdb::byte_vector.
11279
9a6d629c
AB
112802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11281
11282 * tui/tui-wingeneral.c (box_win): Position the title in the center
11283 of the border.
11284
d8b2f9e3
SM
112852020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11286
11287 * corelow.c (core_target::get_core_register_section): Use
11288 std::vector instead of alloca.
11289
bb564c58
SM
112902020-01-13 Simon Marchi <simon.marchi@efficios.com>
11291
11292 * warning.m4: Add -Wmissing-declarations to build_warnings.
11293 * configure: Re-generate.
11294
6b366111
SM
112952020-01-13 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * python/python.c (init__gdb_module): Add declaration.
11298
6c265988
SM
112992020-01-13 Simon Marchi <simon.marchi@efficios.com>
11300
11301 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11302 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11303 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11304 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11305 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11306 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11307 * ada-exp.y (_initialize_ada_exp): Add declaration.
11308 * ada-lang.c (_initialize_ada_language): Add declaration.
11309 * ada-tasks.c (_initialize_tasks): Add declaration.
11310 * agent.c (_initialize_agent): Add declaration.
11311 * aix-thread.c (_initialize_aix_thread): Add declaration.
11312 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11313 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11314 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11315 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11316 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11317 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11318 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11319 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11320 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11321 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11322 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11323 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11324 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11325 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11326 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11327 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11328 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11329 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11330 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11331 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11332 * annotate.c (_initialize_annotate): Add declaration.
11333 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11334 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11335 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11336 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11337 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11338 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11339 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11340 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11341 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11342 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11343 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11344 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11345 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11346 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11347 * auto-load.c (_initialize_auto_load): Add declaration.
11348 * auxv.c (_initialize_auxv): Add declaration.
11349 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11350 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11351 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11352 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11353 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11354 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11355 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11356 * breakpoint.c (_initialize_breakpoint): Add declaration.
11357 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11358 * btrace.c (_initialize_btrace): Add declaration.
11359 * charset.c (_initialize_charset): Add declaration.
11360 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11361 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11362 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11363 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11364 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11365 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11366 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11367 * coffread.c (_initialize_coffread): Add declaration.
11368 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11369 * compile/compile.c (_initialize_compile): Add declaration.
11370 * complaints.c (_initialize_complaints): Add declaration.
11371 * completer.c (_initialize_completer): Add declaration.
11372 * copying.c (_initialize_copying): Add declaration.
11373 * corefile.c (_initialize_core): Add declaration.
11374 * corelow.c (_initialize_corelow): Add declaration.
11375 * cp-abi.c (_initialize_cp_abi): Add declaration.
11376 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11377 * cp-support.c (_initialize_cp_support): Add declaration.
11378 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11379 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11380 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11381 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11382 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11383 * ctfread.c (_initialize_ctfread): Add declaration.
11384 * d-lang.c (_initialize_d_language): Add declaration.
11385 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11386 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11387 * dbxread.c (_initialize_dbxread): Add declaration.
11388 * dcache.c (_initialize_dcache): Add declaration.
11389 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11390 * disasm.c (_initialize_disasm): Add declaration.
11391 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11392 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11393 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11394 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11395 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11396 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11397 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11398 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11399 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11400 * elfread.c (_initialize_elfread): Add declaration.
11401 * exec.c (_initialize_exec): Add declaration.
11402 * extension.c (_initialize_extension): Add declaration.
11403 * f-lang.c (_initialize_f_language): Add declaration.
11404 * f-valprint.c (_initialize_f_valprint): Add declaration.
11405 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11406 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11407 * filesystem.c (_initialize_filesystem): Add declaration.
11408 * findcmd.c (_initialize_mem_search): Add declaration.
11409 * findvar.c (_initialize_findvar): Add declaration.
11410 * fork-child.c (_initialize_fork_child): Add declaration.
11411 * frame-base.c (_initialize_frame_base): Add declaration.
11412 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11413 * frame.c (_initialize_frame): Add declaration.
11414 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11415 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11416 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11417 * gcore.c (_initialize_gcore): Add declaration.
11418 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11419 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11420 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11421 * gdbarch.c (_initialize_gdbarch): Add declaration.
11422 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11423 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11424 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11425 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11426 * go-lang.c (_initialize_go_language): Add declaration.
11427 * go32-nat.c (_initialize_go32_nat): Add declaration.
11428 * guile/guile.c (_initialize_guile): Add declaration.
11429 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11430 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11431 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11432 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11433 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11434 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11435 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11436 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11437 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11438 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11439 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11440 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11441 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11442 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11443 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11444 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11445 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11446 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11447 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11448 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11449 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11450 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11451 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11452 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11453 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11454 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11455 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11456 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11457 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11458 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11459 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11460 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11461 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11462 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11463 * infcall.c (_initialize_infcall): Add declaration.
11464 * infcmd.c (_initialize_infcmd): Add declaration.
11465 * inflow.c (_initialize_inflow): Add declaration.
11466 * infrun.c (_initialize_infrun): Add declaration.
11467 * interps.c (_initialize_interpreter): Add declaration.
11468 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11469 * jit.c (_initialize_jit): Add declaration.
11470 * language.c (_initialize_language): Add declaration.
11471 * linux-fork.c (_initialize_linux_fork): Add declaration.
11472 * linux-nat.c (_initialize_linux_nat): Add declaration.
11473 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11474 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11475 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11476 * m2-lang.c (_initialize_m2_language): Add declaration.
11477 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11478 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11479 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11480 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11481 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11482 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11483 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11484 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11485 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11486 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11487 * machoread.c (_initialize_machoread): Add declaration.
11488 * macrocmd.c (_initialize_macrocmd): Add declaration.
11489 * macroscope.c (_initialize_macroscope): Add declaration.
11490 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11491 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11492 * maint.c (_initialize_maint_cmds): Add declaration.
11493 * mdebugread.c (_initialize_mdebugread): Add declaration.
11494 * memattr.c (_initialize_mem): Add declaration.
11495 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11496 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11497 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11498 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11499 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11500 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11501 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11502 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11503 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11504 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11505 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11506 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11507 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11508 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11509 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11510 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11511 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11512 * mipsread.c (_initialize_mipsread): Add declaration.
11513 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11514 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11515 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11516 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11517 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11518 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11519 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11520 * nto-procfs.c (_initialize_procfs): Add declaration.
11521 * objc-lang.c (_initialize_objc_language): Add declaration.
11522 * observable.c (_initialize_observer): Add declaration.
11523 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11524 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11525 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11526 * osabi.c (_initialize_gdb_osabi): Add declaration.
11527 * osdata.c (_initialize_osdata): Add declaration.
11528 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11529 * parse.c (_initialize_parse): Add declaration.
11530 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11531 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11532 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11533 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11534 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11535 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11536 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11537 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11538 * printcmd.c (_initialize_printcmd): Add declaration.
11539 * probe.c (_initialize_probe): Add declaration.
11540 * proc-api.c (_initialize_proc_api): Add declaration.
11541 * proc-events.c (_initialize_proc_events): Add declaration.
11542 * proc-service.c (_initialize_proc_service): Add declaration.
11543 * procfs.c (_initialize_procfs): Add declaration.
11544 * producer.c (_initialize_producer): Add declaration.
11545 * psymtab.c (_initialize_psymtab): Add declaration.
11546 * python/python.c (_initialize_python): Add declaration.
11547 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11548 * record-btrace.c (_initialize_record_btrace): Add declaration.
11549 * record-full.c (_initialize_record_full): Add declaration.
11550 * record.c (_initialize_record): Add declaration.
11551 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11552 * regcache.c (_initialize_regcache): Add declaration.
11553 * reggroups.c (_initialize_reggroup): Add declaration.
11554 * remote-notif.c (_initialize_notif): Add declaration.
11555 * remote-sim.c (_initialize_remote_sim): Add declaration.
11556 * remote.c (_initialize_remote): Add declaration.
11557 * reverse.c (_initialize_reverse): Add declaration.
11558 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11559 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11560 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11561 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11562 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11563 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11564 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11565 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11566 Add declaration.
11567 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11568 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11569 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11570 * rust-exp.y (_initialize_rust_exp): Add declaration.
11571 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11572 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11573 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11574 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11575 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11576 * score-tdep.c (_initialize_score_tdep): Add declaration.
11577 * ser-go32.c (_initialize_ser_dos): Add declaration.
11578 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11579 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11580 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11581 * ser-uds.c (_initialize_ser_socket): Add declaration.
11582 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11583 * serial.c (_initialize_serial): Add declaration.
11584 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11585 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11586 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11587 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11588 * skip.c (_initialize_step_skip): Add declaration.
11589 * sol-thread.c (_initialize_sol_thread): Add declaration.
11590 * solib-aix.c (_initialize_solib_aix): Add declaration.
11591 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11592 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11593 * solib-frv.c (_initialize_frv_solib): Add declaration.
11594 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11595 * solib-target.c (_initialize_solib_target): Add declaration.
11596 * solib.c (_initialize_solib): Add declaration.
11597 * source-cache.c (_initialize_source_cache): Add declaration.
11598 * source.c (_initialize_source): Add declaration.
11599 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11600 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11601 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11602 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11603 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11604 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11605 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11606 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11607 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11608 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11609 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11610 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11611 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11612 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11613 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11614 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11615 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11616 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11617 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11618 * stabsread.c (_initialize_stabsread): Add declaration.
11619 * stack.c (_initialize_stack): Add declaration.
11620 * stap-probe.c (_initialize_stap_probe): Add declaration.
11621 * std-regs.c (_initialize_frame_reg): Add declaration.
11622 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11623 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11624 * symfile.c (_initialize_symfile): Add declaration.
11625 * symmisc.c (_initialize_symmisc): Add declaration.
11626 * symtab.c (_initialize_symtab): Add declaration.
11627 * target.c (_initialize_target): Add declaration.
11628 * target-connection.c (_initialize_target_connection): Add
11629 declaration.
11630 * target-dcache.c (_initialize_target_dcache): Add declaration.
11631 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11632 * thread.c (_initialize_thread): Add declaration.
11633 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11634 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11635 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11636 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11637 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11638 * tracectf.c (_initialize_ctf): Add declaration.
11639 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11640 * tracefile.c (_initialize_tracefile): Add declaration.
11641 * tracepoint.c (_initialize_tracepoint): Add declaration.
11642 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11643 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11644 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11645 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11646 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11647 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11648 * tui/tui.c (_initialize_tui): Add declaration.
11649 * typeprint.c (_initialize_typeprint): Add declaration.
11650 * ui-style.c (_initialize_ui_style): Add declaration.
11651 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11652 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11653 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11654 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11655 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11656 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11657 * unittests/filtered_iterator-selftests.c
11658 (_initialize_filtered_iterator_selftests): Add declaration.
11659 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11660 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11661 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11662 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11663 * unittests/main-thread-selftests.c
11664 (_initialize_main_thread_selftests): Add declaration.
11665 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11666 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11667 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11668 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11669 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11670 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11671 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11672 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11673 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11674 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11675 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11676 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11677 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11678 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11679 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11680 declaration.
11681 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11682 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11683 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11684 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11685 * user-regs.c (_initialize_user_regs): Add declaration.
11686 * utils.c (_initialize_utils): Add declaration.
11687 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11688 * valops.c (_initialize_valops): Add declaration.
11689 * valprint.c (_initialize_valprint): Add declaration.
11690 * value.c (_initialize_values): Add declaration.
11691 * varobj.c (_initialize_varobj): Add declaration.
11692 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11693 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11694 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11695 * windows-nat.c (_initialize_windows_nat): Add declaration.
11696 (_initialize_check_for_gdb_ini): Add declaration.
11697 (_initialize_loadable): Add declaration.
11698 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11699 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11700 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11701 * xcoffread.c (_initialize_xcoffread): Add declaration.
11702 * xml-support.c (_initialize_xml_support): Add declaration.
11703 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11704 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11705 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11706 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11707
e2de1eec
SM
117082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11709
11710 * regformats/regdat.sh: Generate declaration for init function.
11711
e0037b4c
SM
117122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11713
11714 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11715 up.
11716 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11717 close_one_inferior>: New methods.
11718 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11719 pass down target to find_inferior_pid.
11720 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11721 Pass down target to find_inferior_ptid.
11722 (gdbsim_target::create_inferior): Pass down target to
11723 add_thread_silent.
11724 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11725 target down to find_inferior_ptid and switch_to_thread.
11726 (gdbsim_target::close): Update to call close_one_inferior.
11727 (struct resume_data): Remove.
11728 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11729 directly, rather than through a void pointer.
11730 (gdbsim_target::resume): Update to call resume_one_inferior.
11731
58920b5b
SM
117322020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11735
4ec89149
PA
117362020-01-12 Pedro Alves <palves@redhat.com>
11737
11738 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11739 directly for the current inferior instead of
11740 discard_all_inferiors.
11741 (discard_all_inferiors): Delete.
11742
7c392d1d
TT
117432020-01-11 Tom Tromey <tom@tromey.com>
11744
11745 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11746 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11747 deprecated_safe_get_selected_frame.
11748
d9ebdab7
TBA
117492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11750
11751 * inferior.c (print_inferior): Switch inferior before printing it.
11752
f3c469b9
PA
117532020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11754 Pedro Alves <palves@redhat.com>
11755
11756 * progspace-and-thread.c (switch_to_program_space_and_thread):
11757 Assert there's an inferior for PSPACE. Use
11758 switch_to_inferior_no_thread to switch the inferior too.
11759 * progspace.c (program_space::~program_space): Call
11760 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11761 (program_space::free_all_objfiles): Don't call clear_symtab_users
11762 here.
11763 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11764
65c574f6
PA
117652020-01-10 Pedro Alves <palves@redhat.com>
11766
11767 * NEWS: Mention multi-target debugging, "info connections", and
11768 "add-inferior -no-connection".
11769
2f4fcf00
PA
117702020-01-10 Pedro Alves <palves@redhat.com>
11771
11772 * infrun.c: Include "target-connection.h".
11773 (check_multi_target_resumption): New.
11774 (proceed): Call it.
11775 * target-connection.c (make_target_connection_string): Make
11776 extern.
11777 * target-connection.h (make_target_connection_string): Declare.
11778
121b3efd
PA
117792020-01-10 Pedro Alves <palves@redhat.com>
11780
11781 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11782 * inferior.c (uiout_field_connection): New function.
11783 (print_inferior): Add new "connection-id" column.
11784 (add_inferior_command): Show connection number/string of added
11785 inferior.
11786 * process-stratum-target.h
11787 (process_stratum_target::connection_string): New virtual method.
11788 (process_stratum_target::connection_number): New field.
11789 * remote.c (remote_target::connection_string): New override.
11790 * target-connection.c: New file.
11791 * target-connection.h: New file.
11792 * target.c (decref_target): Remove process_stratum targets from
11793 the connection list.
11794 (target_stack::push): Add process_stratum targets to the
11795 connection list.
11796
4f837581
PA
117972020-01-10 Pedro Alves <palves@redhat.com>
11798
11799 Revert:
11800 2016-04-12 Pedro Alves <palves@redhat.com>
11801 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11802 Remove references to name.
11803 * serial.h (struct serial) <name>: Delete.
11804
f4ec508e
PA
118052020-01-10 Pedro Alves <palves@redhat.com>
11806
11807 * gdbarch-selftests.c (register_to_value_test): Remove "target
11808 already pushed" check.
11809
5b6d1e4f
PA
118102020-01-10 Pedro Alves <palves@redhat.com>
11811 John Baldwin <jhb@FreeBSD.org>
11812
11813 * aarch64-linux-nat.c
11814 (aarch64_linux_nat_target::thread_architecture): Adjust.
11815 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11816 (task_command_1): Likewise.
11817 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11818 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11819 (aix_thread_target::store_registers)
11820 (aix_thread_target::thread_alive): Adjust.
11821 * amd64-fbsd-tdep.c: Include "inferior.h".
11822 (amd64fbsd_get_thread_local_address): Pass down target.
11823 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11824 thread's gdbarch instead of target_gdbarch.
11825 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11826 get_last_target_status.
11827 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11828 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11829 inferiors.
11830 (update_inserted_breakpoint_locations): Skip if inferiors with no
11831 execution.
11832 (update_global_location_list): When handling moribund locations,
11833 find representative inferior for location's pspace, and use thread
11834 count of its process_stratum target.
11835 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11836 * bsd-uthread.c (bsd_uthread_target::wait): Use
11837 as_process_stratum_target and adjust thread_change_ptid and
11838 add_thread calls.
11839 (bsd_uthread_target::update_thread_list): Use
11840 as_process_stratum_target and adjust find_thread_ptid,
11841 thread_change_ptid and add_thread calls.
11842 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11843 find_thread_ptid call.
11844 * corelow.c (add_to_thread_list): Adjust add_thread call.
11845 (core_target_open): Adjust add_thread_silent and thread_count
11846 calls.
11847 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11848 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11849 * event-top.c (async_disconnect): Pop targets from all inferiors.
11850 * exec.c (add_target_sections): Push exec target on all inferiors
11851 sharing the program space.
11852 (remove_target_sections): Remove the exec target from all
11853 inferiors sharing the program space.
11854 (exec_on_vfork): New.
11855 * exec.h (exec_on_vfork): Declare.
11856 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11857 Pass it down.
11858 (fbsd_nat_target::update_thread_list): Adjust.
11859 (fbsd_nat_target::resume): Adjust.
11860 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11861 down.
11862 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11863 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11864 get_thread_arch_regcache call.
11865 * fork-child.c (gdb_startup_inferior): Pass target down to
11866 startup_inferior and set_executing.
11867 * gdbthread.h (struct process_stratum_target): Forward declare.
11868 (add_thread, add_thread_silent, add_thread_with_info)
11869 (in_thread_list): Add process_stratum_target parameter.
11870 (find_thread_ptid(inferior*, ptid_t)): New overload.
11871 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11872 parameter.
11873 (all_threads()): Delete overload.
11874 (all_threads, all_non_exited_threads): Add process_stratum_target
11875 parameter.
11876 (all_threads_safe): Use brace initialization.
11877 (thread_count): Add process_stratum_target parameter.
11878 (set_resumed, set_running, set_stop_requested, set_executing)
11879 (threads_are_executing, finish_thread_state): Add
11880 process_stratum_target parameter.
11881 (switch_to_thread): Use is_current_thread.
11882 * i386-fbsd-tdep.c: Include "inferior.h".
11883 (i386fbsd_get_thread_local_address): Pass down target.
11884 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11885 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11886 have_inferiors check.
11887 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11888 (inf_ptrace_target::attach): Adjust.
11889 * infcall.c (run_inferior_call): Adjust.
11890 * infcmd.c (run_command_1): Pass target to
11891 scoped_finish_thread_state.
11892 (proceed_thread_callback): Skip inferiors with no execution.
11893 (continue_command): Rename 'all_threads' local to avoid hiding
11894 'all_threads' function. Adjust get_last_target_status call.
11895 (prepare_one_step): Adjust set_running call.
11896 (signal_command): Use user_visible_resume_target. Compare thread
11897 pointers instead of inferior_ptid.
11898 (info_program_command): Adjust to pass down target.
11899 (attach_command): Mark target's 'thread_executing' flag.
11900 (stop_current_target_threads_ns): New, factored out from ...
11901 (interrupt_target_1): ... this. Switch inferior before making
11902 target calls.
11903 * inferior-iter.h
11904 (struct all_inferiors_iterator, struct all_inferiors_range)
11905 (struct all_inferiors_safe_range)
11906 (struct all_non_exited_inferiors_range): Filter on
11907 process_stratum_target too. Remove explicit.
11908 * inferior.c (inferior::inferior): Push dummy target on target
11909 stack.
11910 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11911 Add process_stratum_target parameter, and pass it down.
11912 (have_live_inferiors): Adjust.
11913 (switch_to_inferior_and_push_target): New.
11914 (add_inferior_command, clone_inferior_command): Handle
11915 "-no-connection" parameter. Use
11916 switch_to_inferior_and_push_target.
11917 (_initialize_inferior): Mention "-no-connection" option in
11918 the help of "add-inferior" and "clone-inferior" commands.
11919 * inferior.h: Include "process-stratum-target.h".
11920 (interrupt_target_1): Use bool.
11921 (struct inferior) <push_target, unpush_target, target_is_pushed,
11922 find_target_beneath, top_target, process_target, target_at,
11923 m_stack>: New.
11924 (discard_all_inferiors): Delete.
11925 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11926 (all_inferiors, all_non_exited_inferiors): Add
11927 process_stratum_target parameter.
11928 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11929 (target_last_proc_target): New global.
11930 (follow_fork_inferior): Push target on new inferior. Pass target
11931 to add_thread_silent. Call exec_on_vfork. Handle target's
11932 reference count.
11933 (follow_fork): Adjust get_last_target_status call. Also consider
11934 target.
11935 (follow_exec): Push target on new inferior.
11936 (struct execution_control_state) <target>: New field.
11937 (user_visible_resume_target): New.
11938 (do_target_resume): Call target_async.
11939 (resume_1): Set target's threads_executing flag. Consider resume
11940 target.
11941 (commit_resume_all_targets): New.
11942 (proceed): Also consider resume target. Skip threads of inferiors
11943 with no execution. Commit resumtion in all targets.
11944 (start_remote): Pass current inferior to wait_for_inferior.
11945 (infrun_thread_stop_requested): Consider target as well. Pass
11946 thread_info pointer to clear_inline_frame_state instead of ptid.
11947 (infrun_thread_thread_exit): Consider target as well.
11948 (random_pending_event_thread): New inferior parameter. Use it.
11949 (do_target_wait): Rename to ...
11950 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11951 down.
11952 (threads_are_resumed_pending_p, do_target_wait): New.
11953 (prepare_for_detach): Adjust calls.
11954 (wait_for_inferior): New inferior parameter. Handle it. Use
11955 do_target_wait_1 instead of do_target_wait.
11956 (fetch_inferior_event): Adjust. Switch to representative
11957 inferior. Pass target down.
11958 (set_last_target_status): Add process_stratum_target parameter.
11959 Save target in global.
11960 (get_last_target_status): Add process_stratum_target parameter and
11961 handle it.
11962 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11963 (context_switch): Check inferior_ptid == null_ptid before calling
11964 inferior_thread().
11965 (get_inferior_stop_soon): Pass down target.
11966 (wait_one): Rename to ...
11967 (poll_one_curr_target): ... this.
11968 (struct wait_one_event): New.
11969 (wait_one): New.
11970 (stop_all_threads): Adjust.
11971 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11972 event's target.
11973 (switch_back_to_stepped_thread): Also consider target.
11974 (print_stop_event): Update.
11975 (normal_stop): Update. Also consider the resume target.
11976 * infrun.h (wait_for_inferior): Remove declaration.
11977 (user_visible_resume_target): New declaration.
11978 (get_last_target_status, set_last_target_status): New
11979 process_stratum_target parameter.
11980 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11981 process_stratum_target parameter, and use it.
11982 (clear_inline_frame_state (thread_info*)): New.
11983 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11984 process_stratum_target parameter.
11985 (clear_inline_frame_state (thread_info*)): Declare.
11986 * linux-fork.c (delete_checkpoint_command): Pass target down to
11987 find_thread_ptid.
11988 (checkpoint_command): Adjust.
11989 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11990 instead of just tweaking inferior_ptid.
11991 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11992 (exit_lwp): Pass target down to find_thread_ptid.
11993 (attach_proc_task_lwp_callback): Pass target down to
11994 add_thread/set_running/set_executing.
11995 (linux_nat_target::attach): Pass target down to
11996 thread_change_ptid.
11997 (get_detach_signal): Pass target down to find_thread_ptid.
11998 Consider last target status's target.
11999 (linux_resume_one_lwp_throw, resume_lwp)
12000 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12001 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12002 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12003 (linux_nat_target::async_wait_fd): New.
12004 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12005 target down.
12006 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12007 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12008 * linux-thread-db.c (struct thread_db_info::process_target): New
12009 field.
12010 (add_thread_db_info): Save target.
12011 (get_thread_db_info): New process_stratum_target parameter. Also
12012 match target.
12013 (delete_thread_db_info): New process_stratum_target parameter.
12014 Also match target.
12015 (thread_from_lwp): Adjust to pass down target.
12016 (thread_db_notice_clone): Pass down target.
12017 (check_thread_db_callback): Pass down target.
12018 (try_thread_db_load_1): Always push the thread_db target.
12019 (try_thread_db_load, record_thread): Pass target down.
12020 (thread_db_target::detach): Pass target down. Always unpush the
12021 thread_db target.
12022 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12023 target down. Always unpush the thread_db target.
12024 (find_new_threads_callback, thread_db_find_new_threads_2)
12025 (thread_db_target::update_thread_list): Pass target down.
12026 (thread_db_target::pid_to_str): Pass current inferior down.
12027 (thread_db_target::get_thread_local_address): Pass target down.
12028 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12029 target down.
12030 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12031 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12032 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12033 (procfs_init_inferior): Rename to ...
12034 (procfs_target::procfs_init_inferior): ... this and adjust.
12035 (procfs_target::create_inferior, procfs_notice_thread)
12036 (procfs_do_thread_registers): Adjust.
12037 * ppc-fbsd-tdep.c: Include "inferior.h".
12038 (ppcfbsd_get_thread_local_address): Pass down target.
12039 * proc-service.c (ps_xfer_memory): Switch current inferior and
12040 program space as well.
12041 (get_ps_regcache): Pass target down.
12042 * process-stratum-target.c
12043 (process_stratum_target::thread_address_space)
12044 (process_stratum_target::thread_architecture): Pass target down.
12045 * process-stratum-target.h
12046 (process_stratum_target::threads_executing): New field.
12047 (as_process_stratum_target): New.
12048 * ravenscar-thread.c
12049 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12050 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12051 down.
12052 * record-btrace.c (record_btrace_target::info_record): Adjust.
12053 (record_btrace_target::record_method)
12054 (record_btrace_target::record_is_replaying)
12055 (record_btrace_target::fetch_registers)
12056 (get_thread_current_frame_id, record_btrace_target::resume)
12057 (record_btrace_target::wait, record_btrace_target::stop): Pass
12058 target down.
12059 * record-full.c (record_full_wait_1): Switch to event thread.
12060 Pass target down.
12061 * regcache.c (regcache::regcache)
12062 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12063 process_stratum_target parameter and handle it.
12064 (current_thread_target): New global.
12065 (get_thread_regcache): Add process_stratum_target parameter and
12066 handle it. Switch inferior before calling target method.
12067 (get_thread_regcache): Pass target down.
12068 (get_thread_regcache_for_ptid): Pass target down.
12069 (registers_changed_ptid): Add process_stratum_target parameter and
12070 handle it.
12071 (registers_changed_thread, registers_changed): Pass target down.
12072 (test_get_thread_arch_aspace_regcache): New.
12073 (current_regcache_test): Define a couple local test_target_ops
12074 instances and use them for testing.
12075 (readwrite_regcache): Pass process_stratum_target parameter.
12076 (cooked_read_test, cooked_write_test): Pass mock_target down.
12077 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12078 (get_thread_arch_aspace_regcache): Add process_stratum_target
12079 parameter.
12080 (regcache::target): New method.
12081 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12082 (regcache::registers_changed_ptid): Add process_stratum_target
12083 parameter.
12084 (regcache::m_target): New field.
12085 (registers_changed_ptid): Add process_stratum_target parameter.
12086 * remote.c (remote_state::supports_vCont_probed): New field.
12087 (remote_target::async_wait_fd): New method.
12088 (remote_unpush_and_throw): Add remote_target parameter.
12089 (get_current_remote_target): Adjust.
12090 (remote_target::remote_add_inferior): Push target.
12091 (remote_target::remote_add_thread)
12092 (remote_target::remote_notice_new_inferior)
12093 (get_remote_thread_info): Pass target down.
12094 (remote_target::update_thread_list): Skip threads of inferiors
12095 bound to other targets. (remote_target::close): Don't discard
12096 inferiors. (remote_target::add_current_inferior_and_thread)
12097 (remote_target::process_initial_stop_replies)
12098 (remote_target::start_remote)
12099 (remote_target::remote_serial_quit_handler): Pass down target.
12100 (remote_target::remote_unpush_target): New remote_target
12101 parameter. Unpush the target from all inferiors.
12102 (remote_target::remote_unpush_and_throw): New remote_target
12103 parameter. Pass it down.
12104 (remote_target::open_1): Check whether the current inferior has
12105 execution instead of checking whether any inferior is live. Pass
12106 target down.
12107 (remote_target::remote_detach_1): Pass down target. Use
12108 remote_unpush_target.
12109 (extended_remote_target::attach): Pass down target.
12110 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12111 (remote_target::append_resumption): Pass down target.
12112 (remote_target::append_pending_thread_resumptions)
12113 (remote_target::remote_resume_with_hc, remote_target::resume)
12114 (remote_target::commit_resume): Pass down target.
12115 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12116 (remote_target::interrupt_query)
12117 (remote_target::remove_new_fork_children)
12118 (remote_target::check_pending_events_prevent_wildcard_vcont)
12119 (remote_target::remote_parse_stop_reply)
12120 (remote_target::process_stop_reply): Pass down target.
12121 (first_remote_resumed_thread): New remote_target parameter. Pass
12122 it down.
12123 (remote_target::wait_as): Pass down target.
12124 (unpush_and_perror): New remote_target parameter. Pass it down.
12125 (remote_target::readchar, remote_target::remote_serial_write)
12126 (remote_target::getpkt_or_notif_sane_1)
12127 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12128 down target.
12129 (remote_target::mourn_inferior): Pass down target. Use
12130 remote_unpush_target.
12131 (remote_target::core_of_thread)
12132 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12133 (remote_target::pid_to_exec_file)
12134 (remote_target::thread_handle_to_thread_info): Pass down target.
12135 (remote_target::async_wait_fd): New.
12136 * riscv-fbsd-tdep.c: Include "inferior.h".
12137 (riscv_fbsd_get_thread_local_address): Pass down target.
12138 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12139 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12140 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12141 Adjust.
12142 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12143 * solib-svr4.c (enable_break): Pass down target.
12144 * spu-multiarch.c (parse_spufs_run): Pass down target.
12145 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12146 * target-delegates.c: Regenerate.
12147 * target.c (g_target_stack): Delete.
12148 (current_top_target): Return the current inferior's top target.
12149 (target_has_execution_1): Refer to the passed-in inferior's top
12150 target.
12151 (target_supports_terminal_ours): Check whether the initial
12152 inferior was already created.
12153 (decref_target): New.
12154 (target_stack::push): Incref/decref the target.
12155 (push_target, push_target, unpush_target): Adjust.
12156 (target_stack::unpush): Defref target.
12157 (target_is_pushed): Return bool. Adjust to refer to the current
12158 inferior's target stack.
12159 (dispose_inferior): Delete, and inline parts ...
12160 (target_preopen): ... here. Only dispose of the current inferior.
12161 (target_detach): Hold strong target reference while detaching.
12162 Pass target down.
12163 (target_thread_name): Add assertion.
12164 (target_resume): Pass down target.
12165 (target_ops::beneath, find_target_at): Adjust to refer to the
12166 current inferior's target stack.
12167 (get_dummy_target): New.
12168 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12169 has a thread running.
12170 (initialize_targets): Rename to ...
12171 (_initialize_target): ... this.
12172 * target.h: Include "gdbsupport/refcounted-object.h".
12173 (struct target_ops): Inherit refcounted_object.
12174 (target_ops::shortname, target_ops::longname): Make const.
12175 (target_ops::async_wait_fd): New method.
12176 (decref_target): Declare.
12177 (struct target_ops_ref_policy): New.
12178 (target_ops_ref): New typedef.
12179 (get_dummy_target): Declare function.
12180 (target_is_pushed): Return bool.
12181 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12182 (all_matching_threads_iterator::all_matching_threads_iterator):
12183 Handle filter target.
12184 * thread-iter.h (struct all_matching_threads_iterator, struct
12185 all_matching_threads_range, class all_non_exited_threads_range):
12186 Filter by target too. Remove explicit.
12187 * thread.c (threads_executing): Delete.
12188 (inferior_thread): Pass down current inferior.
12189 (clear_thread_inferior_resources): Pass down thread pointer
12190 instead of ptid_t.
12191 (add_thread_silent, add_thread_with_info, add_thread): Add
12192 process_stratum_target parameter. Use it for thread and inferior
12193 searches.
12194 (is_current_thread): New.
12195 (thread_info::deletable): Use it.
12196 (find_thread_ptid, thread_count, in_thread_list)
12197 (thread_change_ptid, set_resumed, set_running): New
12198 process_stratum_target parameter. Pass it down.
12199 (set_executing): New process_stratum_target parameter. Pass it
12200 down. Adjust reference to 'threads_executing'.
12201 (threads_are_executing): New process_stratum_target parameter.
12202 Adjust reference to 'threads_executing'.
12203 (set_stop_requested, finish_thread_state): New
12204 process_stratum_target parameter. Pass it down.
12205 (switch_to_thread): Also match inferior.
12206 (switch_to_thread): New process_stratum_target parameter. Pass it
12207 down.
12208 (update_threads_executing): Reimplement.
12209 * top.c (quit_force): Pop targets from all inferior.
12210 (gdb_init): Don't call initialize_targets.
12211 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12212 Declare.
12213 (windows_add_thread, windows_delete_thread): Adjust.
12214 (get_windows_debug_event): Rename to ...
12215 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12216 * tracefile-tfile.c (tfile_target_open): Pass down target.
12217 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12218 Forward declare.
12219 (switch_to_thread): Add process_stratum_target parameter.
12220 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12221 parameter. Use it.
12222 (mi_on_resume): Pass target down.
12223 * nat/fork-inferior.c (startup_inferior): Add
12224 process_stratum_target parameter. Pass it down.
12225 * nat/fork-inferior.h (startup_inferior): Add
12226 process_stratum_target parameter.
12227 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12228
75c6c844
PA
122292020-01-10 Pedro Alves <palves@redhat.com>
12230
12231 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12232 directly. Instead find the first thread in the thread list and
12233 use switch_to_thread.
12234
78f2c40a
PA
122352020-01-10 Pedro Alves <palves@redhat.com>
12236
12237 * remote.c (remote_target::remote_add_inferior): Don't bind a
12238 process to the current inferior if the current inferior is already
12239 bound to a process.
12240
e7af6c70
TBA
122412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12242 Pedro Alves <palves@redhat.com>
12243
12244 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12245 If no process is specified, return null_ptid instead of
12246 inferior_ptid.
12247 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12248 TARGET_WAITKIND_SIGNALLED with no pid.
12249
31ba933e
PA
122502020-01-10 Pedro Alves <palves@redhat.com>
12251
12252 * remote.c (first_remote_resumed_thread): New.
12253 (remote_target::wait_as): Use it as default event_ptid instead of
12254 inferior_ptid.
12255
735fc2ca
PA
122562020-01-10 Pedro Alves <palves@redhat.com>
12257
12258 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12259
c17e02e1
PA
122602020-01-10 Pedro Alves <palves@redhat.com>
12261
12262 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12263 not -1.
12264
ab1ddbcf
PA
122652020-01-10 Pedro Alves <palves@redhat.com>
12266
12267 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12268 ptid to get_last_target_status.
12269 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12270 ptid to get_last_target_status.
12271 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12272 get_last_target_status.
12273 (info_program_command): Don't pass a target_waitstatus to
12274 get_last_target_status.
12275 * infrun.c (init_wait_for_inferior): Use
12276 nullify_last_target_wait_ptid.
12277 (get_last_target_status): Handle nullptr arguments.
12278 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12279 (print_stop_event): Don't pass a ptid to get_last_target_status.
12280 (normal_stop): Don't pass a ptid to get_last_target_status.
12281 * infrun.h (get_last_target_status, set_last_target_status): Move
12282 comments here and update.
12283 (nullify_last_target_wait_ptid): Declare.
12284 * linux-fork.c (fork_load_infrun_state): Remove local extern
12285 declaration of nullify_last_target_wait_ptid.
12286 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12287 to get_last_target_status.
12288
f3f8ece4
PA
122892020-01-10 Pedro Alves <palves@redhat.com>
12290
12291 * gdbthread.h (scoped_restore_current_thread)
12292 <dont_restore, restore, m_dont_restore>: Declare.
12293 * thread.c (thread_alive): Add assertion. Return bool.
12294 (switch_to_thread_if_alive): New.
12295 (prune_threads): Switch inferior/thread.
12296 (print_thread_info_1): Switch thread before calling target methods.
12297 (scoped_restore_current_thread::restore): New, factored out from
12298 ...
12299 (scoped_restore_current_thread::~scoped_restore_current_thread):
12300 ... this.
12301 (scoped_restore_current_thread::scoped_restore_current_thread):
12302 Add assertion.
12303 (thread_apply_all_command, thread_select): Use
12304 switch_to_thread_if_alive.
12305 * infrun.c (proceed, restart_threads, handle_signal_stop)
12306 (switch_back_to_stepped_thread): Switch current thread before
12307 calling target methods.
12308
db2d40f7
PA
123092020-01-10 Pedro Alves <palves@redhat.com>
12310
12311 * inferior.c (switch_to_inferior_no_thread): New function,
12312 factored out from ...
12313 (inferior_command): ... here.
12314 * inferior.h (switch_to_inferior_no_thread): Declare.
12315 * mi/mi-main.c (run_one_inferior): Use
12316 switch_to_inferior_no_thread.
12317
bd420a2d
PA
123182020-01-10 Pedro Alves <palves@redhat.com>
12319
12320 * infcmd.c (kill_command): Remove dead code.
12321
ddf5db90
PA
123222020-01-10 Pedro Alves <palves@redhat.com>
12323
12324 * remote.c (remote_target::mourn_inferior): No longer check
12325 whether the target is running.
12326
5018ce90
PA
123272020-01-10 Pedro Alves <palves@redhat.com>
12328
12329 * corelow.c (core_target::has_execution): Change parameter type to
12330 inferior pointer.
12331 * inferior.c (number_of_live_inferiors): Use
12332 inferior::has_execution instead of target_has_execution_1.
12333 * inferior.h (inferior::has_execution): New.
12334 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12335 inferior::has_execution instead of target_has_execution_1.
12336 * process-stratum-target.c
12337 (process_stratum_target::has_execution): Change parameter type to
12338 inferior pointer. Check the inferior's PID instead of
12339 inferior_ptid.
12340 * process-stratum-target.h
12341 (process_stratum_target::has_execution): Change parameter type to
12342 inferior pointer.
12343 * record-full.c (record_full_core_target::has_execution): Change
12344 parameter type to inferior pointer.
12345 * target.c (target_has_execution_1): Change parameter type to
12346 inferior pointer.
12347 (target_has_execution_current): Adjust.
12348 * target.h (target_ops::has_execution): Change parameter type to
12349 inferior pointer.
12350 (target_has_execution_1): Change parameter type to inferior
12351 pointer. Change return type to bool.
12352 * tracefile.h (tracefile_target::has_execution): Change parameter
12353 type to inferior pointer.
12354
74375d18
PA
123552020-01-10 Pedro Alves <palves@redhat.com>
12356
12357 * exceptions.c (print_flush): Remove current_top_target() check.
12358
acdf84a6
PA
123592020-01-10 Pedro Alves <palves@redhat.com>
12360
12361 * remote.c (show_remote_exec_file): Show the current inferior's
12362 exec-file instead of the command variable's value.
12363
ec506636
PA
123642020-01-10 Pedro Alves <palves@redhat.com>
12365
12366 * record-full.c (record_full_resume_ptid): New global.
12367 (record_full_target::resume): Set it.
12368 (record_full_wait_1): Use record_full_resume_ptid instead of
12369 inferior_ptid.
12370
873657b9
PA
123712020-01-10 Pedro Alves <palves@redhat.com>
12372
12373 * gdbthread.h (scoped_restore_current_thread)
12374 <dont_restore, restore, m_dont_restore>: Declare.
12375 * thread.c (thread_alive): Add assertion. Return bool.
12376 (switch_to_thread_if_alive): New.
12377 (prune_threads): Switch inferior/thread.
12378 (print_thread_info_1): Switch thread before calling target methods.
12379 (scoped_restore_current_thread::restore): New, factored out from
12380 ...
12381 (scoped_restore_current_thread::~scoped_restore_current_thread):
12382 ... this.
12383 (scoped_restore_current_thread::scoped_restore_current_thread):
12384 Add assertion.
12385 (thread_apply_all_command, thread_select): Use
12386 switch_to_thread_if_alive.
12387
7f0ae84c
GB
123882020-01-10 George Barrett <bob@bob131.so>
12389
12390 * stap-probe.c (stap_modify_semaphore): Don't check for null
12391 semaphores.
12392 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12393 for null semaphores.
12394
f5a7c406
AB
123952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12396
12397 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12398 all source windows, and maintain horizontal scroll status while
12399 doing so.
12400
9ae6bf64
TT
124012020-01-09 Tom Tromey <tom@tromey.com>
12402
12403 PR tui/18932:
12404 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12405 update_source_window, not print_source_lines.
12406
b2efe70c
AB
124072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12408
12409 * tui/tui.c (tui_enable): Register tui hooks after calling
12410 tui_display_main.
12411
5f23a082
CB
124122020-01-09 Christian Biesinger <cbiesinger@google.com>
12413
12414 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12415
3061113b
SM
124162020-01-08 Simon Marchi <simon.marchi@efficios.com>
12417
12418 * thread.c (print_thread_info_1): Fix indentation.
12419
57d75002
CB
124202020-01-09 Christian Biesinger <cbiesinger@google.com>
12421
12422 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12423 unique_xmalloc_ptr outside the if to always free the demangled name.
12424
6a053cb1
TT
124252020-01-08 Tom Tromey <tromey@adacore.com>
12426
12427 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12428 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12429 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12430 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12431 Remove.
12432 (section_offsets): New typedef.
12433 * symtab.c (fixup_section, get_msymbol_address): Update.
12434 * symmisc.c (dump_msymbols): Update.
12435 * symfile.h (relative_addr_info_to_section_offsets)
12436 (symfile_map_offsets_to_segments): Update.
12437 * symfile.c (build_section_addr_info_from_objfile)
12438 (init_objfile_sect_indices): Update.
12439 (struct place_section_arg): Change type of "offsets".
12440 (place_section): Update.
12441 (relative_addr_info_to_section_offsets): Change type of
12442 "section_offsets". Remove "num_sections" parameter.
12443 (default_symfile_offsets, syms_from_objfile_1)
12444 (set_objfile_default_section_offset): Update.
12445 (reread_symbols): No need to preserve section offsets by hand.
12446 (symfile_map_offsets_to_segments): Change type of "offsets".
12447 * stap-probe.c (relocate_address): Update.
12448 * stabsread.h (process_one_symbol): Update.
12449 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12450 (solib_target_relocate_section_addresses): Update.
12451 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12452 Update.
12453 * solib-frv.c (frv_relocate_main_executable): Update.
12454 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12455 * solib-aix.c (solib_aix_get_section_offsets): Change return
12456 type.
12457 (solib_aix_solib_create_inferior_hook): Update.
12458 * remote.c (remote_target::get_offsets): Update.
12459 * psymtab.c (find_pc_sect_psymtab): Update.
12460 * psympriv.h (struct partial_symbol) <address, text_low,
12461 text_high>: Update.
12462 * objfiles.h (obj_section_offset): Update.
12463 (struct objfile) <section_offsets>: Change type.
12464 <num_sections>: Remove.
12465 (objfile_relocate): Update.
12466 * objfiles.c (entry_point_address_query): Update
12467 (relocate_one_symbol): Change type of "section_offsets".
12468 (objfile_relocate1, objfile_relocate1): Change type of
12469 "new_offsets".
12470 (objfile_rebase1): Update.
12471 * mipsread.c (mipscoff_symfile_read): Update.
12472 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12473 parameter.
12474 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12475 (parse_external, psymtab_to_symtab_1): Update.
12476 * machoread.c (macho_symfile_offsets): Update.
12477 * ia64-tdep.c (ia64_find_unwind_table): Update.
12478 * hppa-tdep.c (read_unwind_info): Update.
12479 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12480 * dwarf2read.c (create_addrmap_from_index)
12481 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12482 (process_psymtab_comp_unit_reader, add_partial_symbol)
12483 (add_partial_subprogram, process_full_comp_unit)
12484 (read_file_scope, read_func_scope, read_lexical_block_scope)
12485 (read_call_site_scope, dwarf2_rnglists_process)
12486 (dwarf2_ranges_process, dwarf2_ranges_read)
12487 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12488 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12489 Update.
12490 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12491 Update.
12492 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12493 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12494 (process_one_symbol): Change type of "section_offsets".
12495 * ctfread.c (get_objfile_text_range): Update.
12496 * coffread.c (coff_symtab_read, enter_linenos)
12497 (process_coff_symbol): Update.
12498 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12500
456e800a
TT
125012020-01-08 Tom Tromey <tromey@adacore.com>
12502
12503 * dwarf2read.c (parse_macro_definition): Use std::string.
12504 (parse_macro_definition): Likewise.
12505
6dfa2fc2
TT
125062020-01-08 Tom Tromey <tromey@adacore.com>
12507
12508 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12509 (ATTR_ALLOC_CHUNK): Remove.
12510
421d1616
TT
125112020-01-08 Tom Tromey <tromey@adacore.com>
12512
12513 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12514
43816ebc
TT
125152020-01-08 Tom Tromey <tromey@adacore.com>
12516
12517 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12518 (dwarf2_compute_name, open_dwo_file): Likewise.
12519 (process_enumeration_scope): Use std::vector.
12520 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12521 (partial_die_info::fixup, dwarf2_start_subfile)
12522 (guess_full_die_structure_name, dwarf2_name): Likewise.
12523 (determine_prefix): Update.
12524 (guess_full_die_structure_name): Make return type const.
12525 (partial_die_full_name): Return unique_xmalloc_ptr.
12526 (DW_FIELD_ALLOC_CHUNK): Remove.
12527
4212d509
TT
125282020-01-07 Tom Tromey <tromey@adacore.com>
12529
12530 PR build/24937:
12531 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12532
06a6207a
JT
125332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12534
12535 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12536
153d79c4
AB
125372020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12538
12539 * stack.c (print_frame_info): Move disassemble_next_line code
12540 inside source_print block.
12541
66182876
EZ
125422020-01-06 Eli Zaretskii <eliz@gnu.org>
12543
12544 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12545 gdb/signals.h, as we are now using native signal symbols.
12546
cbfa8581
SV
125472020-01-06 Shahab Vahedi <shahab@synopsys.com>
12548
12549 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12550 overflow by an early check of content vs threshold.
aac66a4c 12551 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12552 Likewise.
12553
3f602821
EZ
125542020-01-06 Eli Zaretskii <eliz@gnu.org>
12555
12556 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12557
a08c904d
JT
125582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12559
12560 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12561 export table if no section contains it's RVA.
12562
89a65580
EZ
125632020-01-06 Eli Zaretskii <eliz@gnu.org>
12564
12565 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12566
8b7fcda2
HD
125672020-01-06 Hannes Domani <ssbssa@yahoo.de>
12568
12569 * source.c (print_source_lines_base): Set last_line_listed.
12570
a61b4f69
SV
125712020-01-06 Shahab Vahedi <shahab@synopsys.com>
12572
12573 * tui/tui-disasm.c: Remove trailing spaces.
12574
559e7e50
EZ
125752020-01-06 Eli Zaretskii <eliz@gnu.org>
12576 Pedro Alves <palves@redhat.com>
12577
12578 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12579 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12580 (windows_gdb_signal_to_target): New function, uses the above
12581 enumeration to convert GDB internal signal codes to equivalent
12582 Windows codes.
12583 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12584 * windows-nat.c: Include "gdb_wait.h".
12585 (get_windows_debug_event): Extract the fatal exception from the
12586 exit status and convert to the equivalent Posix signal number.
12587 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12588 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12589 * gdbsupport/gdb_wait.c: New file, implements
12590 windows_status_to_termsig.
12591 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12592 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12593
f2302a34
AB
125942020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12595
12596 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12597 show_layout.
12598
6a5206eb
LM
125992020-01-05 Luis Machado <luis.machado@linaro.org>
12600
12601 * aarch64-linux-nat.c
12602 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12603 and bfd_mach_aarch64.
12604
6ec1d75e
PW
126052020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12606
12607 * ui-file.c (stdio_file::can_emit_style_escape)
12608 (tee_file::can_emit_style_escape): Ensure style is used also on
12609 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12610 to gdb_stdout.
12611 * main.c (set_gdb_data_directory): Use file style to output the
12612 warning that the given pathname is not a directory.
12613 * top.c (show_history_filename, gdb_safe_append_history)
12614 (show_gdb_datadir): Use file style.
12615
44f81a76
HD
126162020-01-03 Hannes Domani <ssbssa@yahoo.de>
12617
12618 * solib-target.c (struct lm_info_target):
12619 Change offsets to be a unique_xmalloc_ptr.
12620 (solib_target_relocate_section_addresses): Update.
12621
25057eb0
HD
126222020-01-03 Hannes Domani <ssbssa@yahoo.de>
12623
12624 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12625
6e2118f5
BE
126262020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12627
12628 * MAINTAINERS (Write After Approval): Add myself.
12629
8133c7dc
LM
126302020-01-02 Luis Machado <luis.machado@linaro.org>
12631
12632 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12633 Cell BE architecture.
12634 * target.h (struct target_ops) <thread_architecture>: Likewise.
12635
48189bec
HD
126362020-01-01 Hannes Domani <ssbssa@yahoo.de>
12637
12638 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12639
ead1063b
HD
126402020-01-01 Hannes Domani <ssbssa@yahoo.de>
12641
12642 * MAINTAINERS (Write After Approval): Add myself.
12643
e5d78223
JB
126442020-01-01 Joel Brobecker <brobecker@adacore.com>
12645
12646 * gdbarch.sh: Update copyright year range of generated files.
12647
b811d2c2
JB
126482020-01-01 Joel Brobecker <brobecker@adacore.com>
12649
12650 Update copyright year range in all GDB files.
12651
5f4def5c
JB
126522020-01-01 Joel Brobecker <brobecker@adacore.com>
12653
12654 * copyright.py: Convert to Python 3.
12655
51fd4002
JB
126562020-01-01 Joel Brobecker <brobecker@adacore.com>
12657
12658 * copyright.py: Adapt after move of gnulib directory from gdb
12659 directory to toplevel directory.
12660
5fb651f2
JB
126612020-01-01 Joel Brobecker <brobecker@adacore.com>
12662
12663 * copyright.py (main): Exit if run from the wrong directory.
12664
5dd8bf88
JB
126652020-01-01 Joel Brobecker <brobecker@adacore.com>
12666
12667 * top.c (print_gdb_version): Change copyright year to 2020.
12668
9f71dacb 126692020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12670
9f71dacb 12671 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12672
9f71dacb 12673For older changes see ChangeLog-2019.
c906108c
SS
12674\f
12675Local Variables:
12676mode: change-log
12677left-margin: 8
12678fill-column: 74
12679version-control: never
57da7796 12680coding: utf-8
c906108c 12681End: