]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add type::has_varargs / type::set_has_varargs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1d6286ed
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5 use type::set_has_varargs.
6
7f9f399b
SM
72020-09-14 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
10 uses with type::is_prototyped.
11
27e69b7a
SM
122020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
15 New methods.
16 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
17 call sites to use type::set_is_prototyped.
18
d2183968
SM
192020-09-14 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
22 uses with type::target_is_stub.
23
8f53807e
SM
242020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
27 New methods.
28 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
29 sites to use type::set_target_is_stub.
30
e46d3488
SM
312020-09-14 Simon Marchi <simon.marchi@efficios.com>
32
33 * gdbtypes.h (TYPE_STUB): Remove, replace all
34 uses with type::is_stub.
35
b4b73759
SM
362020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
39 (TYPE_STUB): Use type::is_stub, change all write call sites to
40 use type::set_is_stub.
41
20ce4123
SM
422020-09-14 Simon Marchi <simon.marchi@efficios.com>
43
44 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
45 type::has_no_signedness.
46
15152a54
SM
472020-09-14 Simon Marchi <simon.marchi@efficios.com>
48
49 * gdbtypes.h (struct type) <has_no_signedness,
50 set_has_no_signedness>: New methods.
51 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
52 call sites to use type::set_has_no_signedness.
53
c6d940a9
SM
542020-09-14 Simon Marchi <simon.marchi@efficios.com>
55
56 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
57 type::is_unsigned.
58
653223d3
SM
592020-09-14 Simon Marchi <simon.marchi@efficios.com>
60
61 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
62 methods.
63 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
64 sites to use type::set_is_unsigned.
65
55ea94da
FH
662020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
67 Adam Renquinha <arenquinha@cimeq.qc.ca>
68
69 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
70 pointer and stack frame offset when unwinding.
71
6791b117
PA
722020-09-13 Pedro Alves <pedro@palves.net>
73
74 * NEWS: Document "-break-insert --qualified".
75 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
76
77f2120b
PA
772020-09-13 Pedro Alves <pedro@palves.net>
78
79 * linespec.c (classify_mtype, compare_msyms): Delete.
80 (search_minsyms_for_name): Remove classification logic. Instead
81 filter out trampoline symbols if we also found an external
82 function of the same name.
83
ed6a896c
JB
842020-09-13 Joel Brobecker <brobecker@adacore.com>
85
86 * NEWS: Create a new section for the next release branch.
87 Rename the section of the current branch, now that it has
88 been cut.
89
32aea73e
JB
902020-09-13 Joel Brobecker <brobecker@adacore.com>
91
92 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
93 * version.in: Bump version to 11.0.50.DATE-git.
94
8087c3fa
JB
952020-09-12 Joel Brobecker <brobecker@adacore.com>
96
97 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
98
2a67f09d
FW
992020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
100 Felix Willgerodt <Felix.Willgerodt@intel.com>
101
102 * gdbarch.sh: Added bfloat16 type.
103 * gdbarch.c: Regenerated.
104 * gdbarch.h: Regenerated.
105 * gdbtypes.c (floatformats_bfloat16): New struct.
106 (gdbtypes_post_init): Add builtin_bfloat16.
107 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
108 (floatformats_bfloat16): New struct.
109 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
110 (i386_ymm_type): Add field "v16_bfloat16"
111 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
112 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
113 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
114 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
115 * features/i386/64bit-avx512.xml: Add bfloat16 type.
116 * features/i386/64bit-avx512.c: Regenerated.
117 * features/i386/64bit-sse.xml: Add bfloat16 type.
118 * features/i386/64bit-sse.c: Regenerated.
119
1347d111
FW
1202020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
121
122 * i386-tdep.c (i386_zmm_type): Fix field names.
123 (i386_ymm_type): Fix field names.
124
7a4e8e7d
TBA
1252020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
126
127 * breakpoint.c: Fix typo in the help message of the
128 "set breakpoint condition-evaluation" command.
129
cf4ac4be
KR
1302020-09-10 Kamil Rytarowski <n54@gmx.com>
131
132 * nbsd-nat.c: Include "nat/netbsd-nat.h".
133 * (nbsd_nat_target::pid_to_exec_file)
134 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
135 (nbsd_nat_target::post_startup_inferior)
136 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
137 (nbsd_add_threads): Switch local code to common gdb/nat functions.
138 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
139 * (nbsd_thread_lister): Remove.
140
f404573e
KR
1412020-09-10 Kamil Rytarowski <n54@gmx.com>
142
143 * fork-inferior.c (startup_inferior): Avoid double free.
144
1ccb2c17
KR
1452020-09-10 Kamil Rytarowski <n54@gmx.com>
146
147 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
148 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
149
feedfcc7
KR
1502020-09-10 Kamil Rytarowski <n54@gmx.com>
151
152 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
153 * netbsd-nat.c: Include <sys/ptrace.h>.
154 * (netbsd_nat::enable_proc_events): Add.
155
c489f8c6
KR
1562020-09-10 Kamil Rytarowski <n54@gmx.com>
157
158 * netbsd-nat.h: Include "gdbsupport/function-view.h".
159 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
160 (netbsd_nat::for_each_thread): Add.
161 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
162 "gdbsupport/common-debug.h".
163 * (netbsd_nat::netbsd_thread_lister)
164 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
165 (netbsd_nat::for_each_thread): Add.
166
330662f6
KR
1672020-09-10 Kamil Rytarowski <n54@gmx.com>
168
169 * netbsd-nat.h: Include <unistd.h>.
170 * (netbsd_nat::pid_to_exec_file): Add.
171 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
172 * (netbsd_nat::pid_to_exec_file) Add.
173
70b67307
KR
1742020-09-10 Kamil Rytarowski <n54@gmx.com>
175
176 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
177
99cf6da6
KR
1782020-09-10 Kamil Rytarowski <n54@gmx.com>
179
180 * netbsd-nat.h: New file.
181 * netbsd-nat.c: Likewise.
182
1b788fb6
TT
1832020-09-09 Tom Tromey <tromey@adacore.com>
184
185 * ada-lang.c (remove_extra_symbols): Do not increment when
186 removing an element
187
03b0a45f
TT
1882020-09-08 Tom Tromey <tromey@adacore.com>
189
190 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
191
3cae4447
TT
1922020-09-08 Tom Tromey <tromey@adacore.com>
193
194 PR win32/25302:
195 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
196 (gdb_bfd_init_data): New function.
197 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
198
7f08fd51
TBA
1992020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
200
201 * infrun.c (fetch_inferior_event): Use
202 `switch_to_target_no_thread` to switch the target.
203
3e6ff933
TT
2042020-09-06 Tom Tromey <tom@tromey.com>
205
206 * symfile.h (dwarf2_free_objfile): Don't declare.
207
e56798df
AKS
2082020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
209
210 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
211 to match 16 byte real/complex type generated by Flang compiler.
212
8f5c6526
TV
2132020-09-03 Tom de Vries <tdevries@suse.de>
214
215 PR breakpoint/26546
216 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
217 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
218
c5065df0
SM
2192020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * maint.c (index_digits): New function.
222 (struct maint_print_section_data): Remove.
223 (print_bfd_section_info): Remove print_data parameter, add arg
224 and index_digits.
225 (print_objfile_section_info): Likewise.
226 (print_bfd_section_info_maybe_relocated): Likewise (plus
227 objfile).
228 (maintenance_info_sections): Adjust calls.
229
02c6f3f1
TT
2302020-09-02 Tom Tromey <tromey@adacore.com>
231
232 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
233 for null pointers.
234 (ada_varobj_adjust_for_child_access): Special-case null pointers.
235
ef5e5b0b
SM
2362020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * bcache.h (struct bcache) <insert>: Change type of `added` to
239 pointer to bool.
240 * bcache.c (bcache::insert): Likewise.
241 * gdbtypes.c (check_types_worklist): Adjust.
242 * psymtab.c (add_psymbol_to_bcache): Adjust.
243
973695d6
KB
2442020-08-31 Kevin Buettner <kevinb@redhat.com>
245
246 * corelow.c (unordered_set): Include.
247 (class core_target): Add field 'm_core_unavailable_mappings'.
248 (core_target::build_file_mappings): Print only one warning
249 per inaccessible file. Add unavailable/broken mappings
250 to m_core_unavailable_mappings.
251 (core_target::xfer_partial): Call...
252 (core_target::xfer_memory_via_mappings): New method.
253
264fc0e2
SM
2542020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
257 type to bool.
258
2de01bdb
SM
2592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * dwarf2/read.c (struct field_info): Fix indentation.
262
f3bd50f1
SM
2632020-08-31 Simon Marchi <simon.marchi@efficios.com>
264
265 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
266 ordering in comment.
267 * frame.c (frame_id_eq): Fix indentation.
268
22b9b4b0
SL
2692020-08-31 Scott Linder <scott@scottlinder.com>
270 Simon Marchi <simon.marchi@efficios.com>
271
272 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
273 inline frame ids in outer frame.
274
84154d16
SM
2752020-08-31 Simon Marchi <simon.marchi@efficios.com>
276
277 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
278 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
279 (outer_frame_id): Use FID_STACK_OUTER instead of
280 FID_STACK_INVALID.
281 (frame_id_p): Don't check for outer_frame_id.
282
8efaf6b3
SM
2832020-08-31 Simon Marchi <simon.marchi@efficios.com>
284
285 * frame-unwind.c (frame_unwind_got_optimized): Don't set
286 regnum/frame in value. Call allocate_value_lazy.
287 * frame.c (frame_unwind_register_value): Use
288 val_print_not_saved.
289
fe1fe7ea
SM
2902020-08-31 Simon Marchi <simon.marchi@efficios.com>
291
292 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
293
f7c7700d
PA
2942020-08-29 Pedro Alves <pedro@palves.net>
295
296 * progspace.c (print_program_space): Use all_inferiors. Switch to
297 the inferior before calling target_pid_to_str.
298
e0814aae
TT
2992020-08-28 Tom Tromey <tom@tromey.com>
300
301 * xcoffread.c (xcoff_end_psymtab): Update comment.
302 * dbxread.c (dbx_end_psymtab): Update comment.
303
626d2320
TV
3042020-08-28 Tom de Vries <tdevries@suse.de>
305
306 PR breakpoint/26544
307 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
308 event_location.
309 (create_breakpoint): Same.
310 (base_breakpoint_decode_location): Same.
311 (bkpt_create_sals_from_location): Same.
312 (bkpt_decode_location): Same.
313 (bkpt_probe_create_sals_from_location): Same.
314 (bkpt_probe_decode_location): Same.
315 (tracepoint_create_sals_from_location): Same.
316 (tracepoint_decode_location): Same.
317 (tracepoint_probe_decode_location): Same.
318 (strace_marker_create_sals_from_location): Same.
319 (strace_marker_decode_location): Same.
320 (create_sals_from_location_default): Same.
321 (decode_location_default): Same.
322 * breakpoint.h (struct breakpoint_ops): Same.
323 (create_breakpoint): Same.
324 * linespec.h (decode_line_full): Same.
325 * linespec.c (decode_line_full): Same. Throw error if
326 result.size () == 0.
327
df631783
PA
3282020-08-27 Pedro Alves <pedro@palves.net>
329
330 PR gdb/26524
331 * breakpoint.c (until_break_fsm) <location_breakpoint,
332 caller_breakpoint>: Delete fields.
333 <breakpoints>: New field.
334 <until_break_fsm>: Adjust to save a breakpoint vector instead of
335 two individual breakpoints.
336 (until_break_fsm::should_stop): Loop over breakpoints in the
337 breakpoint vector.
338 (until_break_fsm::clean_up): Adjust to clear the breakpoints
339 vector.
340 (until_break_command): Handle location expanding into multiple
341 sals.
342
b2b38aa4
PA
3432020-08-27 Pedro Alves <pedro@palves.net>
344
345 PR gdb/26523
346 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
347 bp_until breakpoints user-specified locations. Update intro
348 comment.
349
b886559f
SM
3502020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
353 gdb_bfd_sections): New.
354 * maint.c (print_bfd_section_info): Change param type to
355 maint_print_section_data.
356 (print_objfile_section_info): Likewise.
357 (print_bfd_section_info_maybe_relocated): Likewise.
358 (maintenance_info_sections): Use gdb_bfd_sections.
359
4c6e63bf
SV
3602020-08-25 Shahab Vahedi <shahab@synopsys.com>
361
362 * MAINTAINERS: Add ARC target and maintainer.
363
8d7f0635
AK
3642020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
365
366 * configure.tgt: ARC support for GNU/Linux.
367 * Makefile.in (ALL_TARGET_OBJS): Likewise.
368 * arc-linux-tdep.c: New file.
369 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
370 * arc-tdep.c (arc_write_pc): Use it.
371
fdd8731b
SV
3722020-08-25 Shahab Vahedi <shahab@synopsys.com>
373
374 * arc-tdep.c (arc_check_for_hardware_loop): New.
375 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
376
22459524
SV
3772020-08-25 Shahab Vahedi <shahab@synopsys.com>
378
379 * arc-tdep.h: Include "gdbarch.h".
380
995d3a19
SV
3812020-08-25 Shahab Vahedi <shahab@synopsys.com>
382
383 * arch/arc.h
384 (arc_gdbarch_features): New class to stir the selection of target XML.
385 (arc_create_target_description): Use FEATURES to choose XML target.
386 (arc_lookup_target_description): Use arc_create_target_description
387 to create _new_ target descriptions or return the already created
388 ones if the FEATURES is the same.
389 * arch/arc.c: Implementation of prototypes described above.
390 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
391 (arc_gdbarch_features_init): Initialize the FEATURES struct.
392 * arc-tdep.c (*_feature_name): Make feature names consistent.
393 (arc_register_feature): A new struct to hold information about
394 registers of a particular target/feature.
395 (arc_check_tdesc_feature): Check if XML provides registers in
396 compliance with ARC_REGISTER_FEATURE structs.
397 (arc_update_acc_reg_names): Add aliases for r58 and r59.
398 (determine_*_reg_feature_set): Which feature name to look for.
399 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
400 (mach_type_to_arc_isa): Convert from a set of binutils machine types
401 to expected ISA enums to be used in arc_gdbarch_features structs.
402 * features/Makefile (FEATURE_XMLFILES): Add new files.
403 * gdb/features/arc/v1-aux.c: New file.
404 * gdb/features/arc/v1-aux.xml: Likewise.
405 * gdb/features/arc/v1-core.c: Likewise.
406 * gdb/features/arc/v1-core.xml: Likewise.
407 * gdb/features/arc/v2-aux.c: Likewise.
408 * gdb/features/arc/v2-aux.xml: Likewise.
409 * gdb/features/arc/v2-core.c: Likewise.
410 * gdb/features/arc/v2-core.xml: Likewise.
411 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
412
3945d2d7
GM
4132020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
414 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 PR m2/26372
fc5d6901 417 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
418 an assert. Remove single element array indexing pattern as the
419 MULTI_SUBSCRIPT support will handle this case too.
420
2677f2d3
SM
4212020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * value.h (valprint_check_validity): Move declaration from
424 here...
425 * valprint.h (valprint_check_validity): ... to here.
426
c426fddb
SM
4272020-08-24 Simon Marchi <simon.marchi@efficios.com>
428
429 * debug.h: New file.
430 * debug.c (debug_prefixed_vprintf): New function.
431 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
432 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
433
1eb8556f
SM
4342020-08-24 Simon Marchi <simon.marchi@efficios.com>
435
436 * infrun.h (infrun_debug_printf_1): New function declaration.
437 (infrun_debug_printf): New macro.
438 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
439 throughout.
440 (infrun_debug_printf): New function.
441 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
442 (handle_jit_event): Likewise.
443
b8fff44e
MW
4442020-08-21 Mark Wielaard <mark@klomp.org>
445
446 * ada-lex.l: Extend register warnings diagnostics comment for g++.
447
d19c3068
SM
4482020-08-22 Simon Marchi <simon.marchi@efficios.com>
449
450 * frame.c (enum class frame_id_status): New.
451 (struct frame_info) <this_id::p>: Change type to frame_id_status.
452 (fprintf_frame): Update.
453 (compute_frame_id): Set frame id status to "computing" on entry.
454 Set it back to "not_computed" on failure and to "computed" on
455 success.
456 (get_frame_id): Assert the frame id is not being computed.
457 (create_sentinel_frame): Use frame_id_status::COMPUTED.
458 (create_new_frame): Likewise.
459 (frame_cleanup_after_sniffer): Update assert.
460
b70e516e
SM
4612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * regcache.c (pid_ptid_regcache_map): New type.
464 (target_ptid_regcache_map): Remove.
465 (target_pid_ptid_regcache_map): New type.
466 (regcaches): Change type to target_pid_ptid_regcache_map.
467 (get_thread_arch_aspace_regcache): Update.
468 (regcache_thread_ptid_changed): Update, handle pid-like ptid
469 case.
470 (regcaches_size): Update.
471 (regcache_count): Update.
472 (registers_changed_ptid_target_pid_test): New.
473 (_initialize_regcache): Register new test.
474
cdd9148a
SM
4752020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * regcache.c (regcache_count): New.
478 (struct regcache_test_data): New.
479 (regcache_test_data_up): New.
480 (populate_regcaches_for_test): New.
481 (regcaches_test): Remove.
482 (get_thread_arch_aspace_regcache_test): New.
483 (registers_changed_ptid_all_test): New.
484 (registers_changed_ptid_target_test): New.
485 (registers_changed_ptid_target_ptid_test): New.
486 (regcache_thread_ptid_changed): Remove regcache_count lambda.
487 (_initialize_regcache): Register new tests.
488
dd125343
SM
4892020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
490
491 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
492 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
493 gdbarch and aspace parameter. Use current inferior's aspace.
494 Validate regcache's arch value.
495 (regcaches_test): Update.
496
3ee93972
SM
4972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * regcache.c (regcaches_test): Call registers_changed.
500
33bf4c5c
TBA
5012020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
502
503 * infrun.c (process_event_stop_test): Fix typo "breapoint".
504
c2fd7fae
AKS
5052020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
506
507 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
508 to find the end of prologue for flang compiled binaries.
509 * arm-tdep.c (arm_skip_prologue): Likewise.
510 * i386-tdep.c (i386_skip_prologue): Likewise.
511 * producer.c (producer_is_llvm): New function.
512 (producer_parsing_tests): Added new tests for clang/flang.
513 * producer.h (producer_is_llvm): New declaration.
514
9327494e
SM
5152020-08-18 Simon Marchi <simon.marchi@efficios.com>
516
517 * linux-nat.c (linux_nat_debug_printf): New function.
518 (linux_nat_debug_printf_1): New macro. Use throughout the file.
519
d138725a
AM
5202020-08-18 Aaron Merey <amerey@redhat.com>
521
522 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
523 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
524 (CLIBS): Add DEBUGINFOD_LIBS.
525
f9b11e6b
ST
5262020-08-17 Sergei Trofimovich <siarheit@google.com>
527
528 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
529 'gdbarch_num_regs'.
530
3ae7ab99
TT
5312020-08-17 Tom Tromey <tromey@adacore.com>
532
533 * ada-varobj.c (ada_varobj_decode_var): Handle case where
534 ada_get_decoded_value returns NULL.
535
b017825f
TT
5362020-08-17 Tom Tromey <tromey@adacore.com>
537
538 * python/py-inferior.c (infpy_search_memory): Use
539 gdb_py_object_from_ulongest.
540 * python/py-infevents.c (create_inferior_call_event_object)
541 (create_memory_changed_event_object): Use
542 gdb_py_object_from_ulongest.
543 * python/py-linetable.c (ltpy_entry_get_pc): Use
544 gdb_py_object_from_ulongest.
545
7635cf79
SM
5462020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * loc.c (class symbol_needs_eval_context): Fix indentation.
549
f54be24b
SM
5502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
551
552 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
553 bool.
554
53d5a2a5
TV
5552020-08-17 Tom de Vries <tdevries@suse.de>
556
557 PR gdb/26393
558 * gdbtypes.c (dump_dynamic_prop): New function.
559 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
560
547ce8f0
TV
5612020-08-15 Tom de Vries <tdevries@suse.de>
562
563 PR backtrace/26390
564 * stack.c (print_frame_args): Temporarily set the selected
565 frame to FRAME while printing the frame's arguments.
566
6ea815e7
PFC
5672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
568
569 PR breakpoints/26385
570 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
571 Always clear watchpoint with PTRACE_SET_DEBUGREG.
572
6e562fa3
PFC
5732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
574
575 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
576 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
577 and >= to check return value instead of == -1 and != -1.
578
d369b608
SM
5792020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
580
581 * utils.h (class gdb_argv) <as_array_view>: New method.
582 * utils.c (gdb_argv_as_array_view_test): New.
583 (_initialize_utils): Register selftest.
584 * maint.c (maintenance_selftest): Use the new method.
585
b31488a3
KR
5862020-08-13 Kamil Rytarowski <n54@gmx.com>
587
588 * target.h (supports_dumpcore, dumpcore): New
589 function declarations.
590 * target.c (supports_dumpcore, dumpcore): New
591 functions.
592 * target-delegates.c: Rebuild.
593 * gcore.c (gcore_command): Use target_supports_dumpcore ()
594 and target_dumpcore ().
595
002a3166
AM
5962020-08-13 Aaron Merey <amerey@redhat.com>
597
598 * debuginfod-support.c: Replace global variables with user_data.
599
ece5bc8a
SM
6002020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * maint.c (maintenance_selftest): Split args and pass array_view
603 to run_tests.
604
6d8a0a5e
LM
6052020-08-12 Luis Machado <luis.machado@linaro.org>
606
607 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
608 type's length.
609 Use %s and pulongest to print the length.
610
7cf663a9
PA
6112020-08-12 Pedro Alves <palves@redhat.com>
612
613 * NEWS: Move "Multi-target debugging support" item to the
614 "Changes since GDB 9" section.
615
27c7b875
PA
6162020-08-12 Pedro Alves <palves@redhat.com>
617
618 PR gdb/26336
619 * progspace.c (program_space::remove_objfile): Invalidate the
620 frame cache.
621
1796a2a1
TV
6222020-08-11 Tom de Vries <tdevries@suse.de>
623
624 * MAINTAINERS: Mark ms1 as deleted.
625
f8e3fe0d
LM
6262020-08-10 Luis Machado <luis.machado@linaro.org>
627
628 PR gdb/26310
629
630 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
631 act accordingly.
632 (aarch64_analyze_prologue_test): Add more unit tests to exercise
633 movz/str/stur/stp skipping behavior.
634
cc308722
LM
6352020-08-10 Luis Machado <luis.machado@linaro.org>
636
637 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
638 struct user_sve_header instead of struct sve_context.
639
041d9819
SM
6402020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * read.h (dwarf2_fetch_die_loc_sect_off,
643 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
644 `void *` parameter with function_view.
645 * read.c (dwarf2_fetch_die_loc_sect_off,
646 dwarf2_fetch_die_loc_cu_off): Likewise.
647 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
648 (per_cu_dwarf_call): Adjust.
649 (get_frame_address_in_block_wrapper): Remove.
650 (indirect_synthetic_pointer): Adjust.
651 (get_ax_pc): Remove.
652 (dwarf2_compile_expr_to_ax): Adjust.
653
38f8aa06
TV
6542020-08-08 Tom de Vries <tdevries@suse.de>
655
656 PR build/26344
657 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
658 constructor.
659 * regcache.c (get_thread_arch_aspace_regcache): Same.
660
a52b3ae2
TT
6612020-08-07 Tom Tromey <tromey@adacore.com>
662
663 * ravenscar-thread.c
664 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
665 New method.
666 (ravenscar_thread_target::wait): Check
667 runtime_initialized.
668 (ravenscar_thread_target::prepare_to_store)
669 (ravenscar_thread_target::stopped_by_sw_breakpoint)
670 (ravenscar_thread_target::stopped_by_hw_breakpoint)
671 (ravenscar_thread_target::stopped_by_watchpoint)
672 (ravenscar_thread_target::stopped_data_address)
673 (ravenscar_thread_target::core_of_thread): Use
674 scoped_restore_current_thread and
675 set_base_thread_from_ravenscar_task.
676
0e29517d
TT
6772020-08-07 Tom Tromey <tromey@adacore.com>
678
679 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
680
592f9bd7
TT
6812020-08-07 Tom Tromey <tromey@adacore.com>
682
683 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
684 update_inferior_ptid before update_thread_list.
685 (temporarily_change_regcache_ptid): New class.
686 (ravenscar_thread_target::fetch_registers)
687 (ravenscar_thread_target::store_registers)
688 (ravenscar_thread_target::prepare_to_store): Use base thread when
689 forwarding operation.
690
39e2018a
TT
6912020-08-07 Tom Tromey <tromey@adacore.com>
692
693 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
694 "is_pid" case.
695
2080266b
TT
6962020-08-07 Tom Tromey <tromey@adacore.com>
697
698 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
699 New methods.
700 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
701 first.
702 (ravenscar_thread_target::add_thread): Rename from
703 ravenscar_add_thread.
704 (ravenscar_thread_target::update_thread_list): Use a lambda.
705 (ravenscar_thread_target::xfer_partial): New method.
706
78c02f21
TT
7072020-08-07 Tom Tromey <tromey@adacore.com>
708
709 * ada-lang.h (ada_task_list_iterator_ftype): Now a
710 gdb::function_view.
711 (iterate_over_live_ada_tasks): Change type of argument.
712 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
713 of argument.
714
d5d833af
TT
7152020-08-07 Tom Tromey <tromey@adacore.com>
716
717 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
718 Remove.
719 (ravenscar_thread_target::extra_thread_info): Remove.
720 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
721 defer to target beneath for non-Ravenscar threads.
722
a8ac85bb
TT
7232020-08-07 Tom Tromey <tromey@adacore.com>
724
725 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
726 get_base_thread_from_ravenscar_task>: Now methods.
727 <m_cpu_map>: New member.
728 (ravenscar_thread_target::get_thread_base_cpu): Rename from
729 ravenscar_get_thread_base_cpu. Check m_cpu_map.
730 (ravenscar_thread_target::task_is_currently_active): Update.
731 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
732 Now a method.
733 (ravenscar_thread_target::add_active_thread): Put initial thread
734 into the m_cpu_map.
735
550ab58d
TT
7362020-08-07 Tom Tromey <tromey@adacore.com>
737
738 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
739 event_ptid.
740
e9546579
TT
7412020-08-07 Tom Tromey <tromey@adacore.com>
742
743 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
744 runtime_initialized.
745
3d4470e5
TT
7462020-08-07 Tom Tromey <tromey@adacore.com>
747
748 * ravenscar-thread.c (ravenscar_thread_target): Don't call
749 add_active_thread.
750 (ravenscar_thread_target::add_active_thread): Now public.
751 (ravenscar_inferior_created): Call add_active_thread after pushing
752 the target.
753
888bdb2b
SM
7542020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * regcache.c (ptid_regcache_map): New type.
757 (target_ptid_regcache_map): New type.
758 (regcaches): Change type to target_ptid_regcache_map.
759 (get_thread_arch_aspace_regcache): Update to regcaches' new
760 type.
761 (regcache_thread_ptid_changed): Likewise.
762 (registers_changed_ptid): Likewise.
763 (regcaches_size): Likewise.
764 (regcaches_test): Update.
765 (regcache_thread_ptid_changed): Update.
766 * regcache.h (regcache_up): New type.
767 * gdbsupport/ptid.h (hash_ptid): New struct.
768
b161a60d
SM
7692020-08-07 Simon Marchi <simon.marchi@efficios.com>
770
771 * observable.h (thread_ptid_changed): Add parameter
772 `process_stratum_target *`.
773 * infrun.c (infrun_thread_ptid_changed): Add parameter
774 `process_stratum_target *` and use it.
775 (selftests): New namespace.
776 (infrun_thread_ptid_changed): New function.
777 (_initialize_infrun): Register selftest.
778 * regcache.c (regcache_thread_ptid_changed): Add parameter
779 `process_stratum_target *` and use it.
780 (regcache_thread_ptid_changed): New function.
781 (_initialize_regcache): Register selftest.
782 * thread.c (thread_change_ptid): Pass target to
783 thread_ptid_changed observable.
784
d2854d8d
CT
7852020-08-06 Caroline Tice <cmtice@google.com>
786
fe4c3d43
SM
787 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
788 (struct dwp_sections): Update field comments. Add loclists and
789 rnglists fields.
790 (struct virtual_v2_dwo_sections): Rename struct to
791 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
792 size & offset fields for loclists and rnglists.
793 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
794 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
795 skipping dummy type units.
796 (create_dwp_hash_table): Update the large comment above the function to
797 discuss Version 5 DWP files as well, with references. Update all the
798 version checks in the function to check for version 5 as well. Add new
799 section at the end to create dwp hash table for version 5.
800 (create_dwp_v2_section): Rename function to
801 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
802 Add V5 to error message text.
803 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
804 into calls to create_dwp_v2_or_v5_section.
805 (create_dwo_unit_in_dwp_v5): New function.
806 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
807 check for version2; add else clause to handle version 5.
808 (open_and_init_dwo_file): Add code to check dwarf version & only call
809 create_debug_types_hash_table (with sections.types) if version is not 5;
810 else call create_debug_type_hash_table, with sections.info.
811 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
812 version 5.
813 (dwarf2_locate_v5_dwp_sections): New function.
814 (open_and_init_dwp_file): Add else-if clause for version 5 to call
815 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 816
159ed7d9
SM
8172020-08-06 Simon Marchi <simon.marchi@efficios.com>
818
819 * regcache.h (class regcache): Remove friend
820 registers_changed_ptid.
821 <regcache_thread_ptid_changed>: Remove.
822 <regcaches>: Remove.
823 * regcache.c (regcache::regcaches): Rename to...
824 (regcaches): ... this. Make static.
825 (get_thread_arch_aspace_regcache): Update.
826 (regcache::regcache_thread_ptid_changed): Rename to...
827 (regcache_thread_ptid_changed): ... this. Update.
828 (class regcache_access): Remove.
829 (regcaches_test): Update.
830 (_initialize_regcache): Update.
831 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
832 <forward_list>.
833
174981ae
SM
8342020-08-06 Simon Marchi <simon.marchi@efficios.com>
835
836 * regcache.h (class regcache) <current_regcache>: Rename to...
837 <regcaches>: ... this. Move doc here.
838 * regcache.c (regcache::current_regcache) Rename to...
839 (regcache::regcaches): ... this. Move doc to header.
840 (get_thread_arch_aspace_regcache): Update.
841 (regcache::regcache_thread_ptid_changed): Update.
842 (registers_changed_ptid): Update.
843 (class regcache_access) <current_regcache_size>: Rename to...
844 <regcaches_size>: ... this.
845 (current_regcache_test): Rename to...
846 (regcaches_test): ... this.
847 (_initialize_regcache): Update.
848
ed908db6
VC
8492020-08-06 Victor Collod <vcollod@nvidia.com>
850
851 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
852
b5582ab7
KB
8532020-08-05 Kevin Buettner <kevinb@redhat.com>
854
855 * corelow.c (core_target::build_file_mappings): Don't output
856 null pathname in warning.
857
ea946b86
SM
8582020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
859
860 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
861 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
862 gdb.dwarf2/dw2-single-line-discriminators.exp,
863 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
864
57d02173
TT
8652020-08-05 Tom Tromey <tromey@adacore.com>
866
867 PR rust/26197:
868 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
869 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
870 Fix off-by-one and type size errors in ordinary case.
871
5555c86d
TV
8722020-08-05 Tom de Vries <tdevries@suse.de>
873
874 * gdbtypes.c (type_not_allocated, type_not_associated): Use
875 "prop->const_val () == 0" instead of "prop->const_val () != 0".
876
97916bfe
SM
8772020-08-04 Simon Marchi <simon.marchi@efficios.com>
878
879 * frame.h (frame_id_p): Return bool.
880 (frame_id_artificial_p): Return bool.
881 (frame_id_eq): Return bool.
882 (has_stack_frames): Return bool.
883 (get_selected_frame): Fix typo in comment.
884 (get_frame_pc_if_available): Return bool.
885 (get_frame_address_in_block_if_available): Return bool.
886 (get_frame_func_if_available): Return bool.
887 (read_frame_register_unsigned): Return bool.
888 (get_frame_register_bytes): Return bool.
889 (safe_frame_unwind_memory): Return bool.
890 (deprecated_frame_register_read): Return bool.
891 (frame_unwinder_is): Return bool.
892 * frame.c (struct frame_info) <prev_arch::p>: Change type to
893 bool.
894 <this_id::p>: Likewise.
895 <prev_p>: Likewise.
896 (frame_stash_add): Return bool.
897 (get_frame_id): Use bool.
898 (frame_id_build_special) Use bool.
899 (frame_id_build_unavailable_stack): Use bool.
900 (frame_id_build): Use bool.
901 (frame_id_p): Return bool, use true/false instead of 1/0.
902 (frame_id_artificial_p): Likewise.
903 (frame_id_eq): Likewise.
904 (frame_id_inner): Likewise.
905 (get_frame_func_if_available): Likewise.
906 (read_frame_register_unsigned): Likewise.
907 (deprecated_frame_register_read): Likewise.
908 (get_frame_register_bytes): Likewise.
909 (has_stack_frames): Likewise.
910 (inside_main_func): Likewise.
911 (inside_entry_func): Likewise.
912 (get_frame_pc_if_available): Likewise.
913 (get_frame_address_in_block_if_available): Likewise.
914 (frame_unwinder_is): Likewise.
915 (safe_frame_unwind_memory): Likewise.
916 (frame_unwind_arch): Likewise.
917
fedfee88
SM
9182020-08-04 Simon Marchi <simon.marchi@efficios.com>
919
920 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
921 type to cached_copy_status.
922 (fprintf_frame): Adjust.
923 (get_frame_func_if_available): Adjust.
924 (frame_cleanup_after_sniffer): Adjust.
925
6cfa9b59
MW
9262020-08-04 Mark Wielaard <mark@klomp.org>
927
928 * MAINTAINERS (Write After Approval): Update email address.
929
66d6346b
SM
9302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
933 dynamic_prop::const_val.
934
8a6d5e35
SM
9352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
938 dynamic_prop::kind.
939
51d6067d
SM
9402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
943
b26e2ae7
JM
9442020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
945
946 * configure.tgt: Set gdb_sim for bpf-*-* targets.
947
39791af2
JM
9482020-08-04 Weimin Pan <weimin.pan@oracle.com>
949 Jose E. Marchesi <jose.marchesi@oracle.com>
950
951 * configure.tgt: Add entry for bpf-*-*.
952 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
953 (ALLDEPFILES): Add bpf-tdep.c.
954 * bpf-tdep.c: New file.
955 * MAINTAINERS: Add bpf target and maintainer.
956 * NEWS: Mention the support for the new target.
957
521894aa
TV
9582020-08-04 Tom de Vries <tdevries@suse.de>
959
960 PR symtab/23270
961 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
962 Error.
963
5d6356e9
JB
9642020-08-03 John Baldwin <jhb@FreeBSD.org>
965
966 * syscalls/freebsd.xml: Regenerate.
967
0cf82b81
JB
9682020-08-03 John Baldwin <jhb@FreeBSD.org>
969
970 * syscalls/update-freebsd.sh: Fix usage and year range.
971
8f34b746
TV
9722020-08-03 Tom de Vries <tdevries@suse.de>
973
974 PR symtab/26333
975 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
976 DW_LNE_lo_user/DW_LNE_hi_user range.
977
5e500d33
SM
9782020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
979
980 PR ada/26318
981 * ada-lang.c (ada_modulus): Return 0 if property is not of const
982 kind.
983
78319c15
TBA
9842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
985
986 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
987
4c55e970
TBA
9882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989
990 * breakpoint.c (set_breakpoint_condition): Update the condition
991 expressions after checking that the input condition string parses
992 successfully and does not contain junk at the end.
993
1e620590
TBA
9942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
995
996 * breakpoint.c (set_breakpoint_condition): Update the
997 condition string after parsing the new condition successfully.
998
c8693053
RO
9992020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1000
1001 * proc-api.c (_STRUCTURED_PROC): Don't define.
1002 * proc-events.c: Likewise.
1003 * proc-flags.c: Likewise.
1004 * proc-why.c: Likewise.
1005 * procfs.c: Likewise.
1006
1007 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1008 * configure, config.in: Regenerate.
1009
5a99adb8
TV
10102020-07-30 Tom de Vries <tdevries@suse.de>
1011
1012 PR build/26320
1013 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1014 m_red/m_green/m_blue in a union.
1015
8ba83e91
TV
10162020-07-29 Tom de Vries <tdevries@suse.de>
1017
1018 PR tdep/26280
1019 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1020
f75a0693
AB
10212020-07-28 Tom Tromey <tromey@adacore.com>
1022
1023 PR symtab/26270:
1024 * symtab.h (find_pc_partial_function_sym): Declare.
1025 * cli/cli-cmds.c (disassemble_command): Use
1026 find_pc_partial_function_sym. Check asm_demangle.
1027 * blockframe.c (cache_pc_function_sym): New global.
1028 (cache_pc_function_name): Remove.
1029 (clear_pc_function_cache): Update.
1030 (find_pc_partial_function_sym): New function, from
1031 find_pc_partial_function.
1032 (find_pc_partial_function): Rewrite using
1033 find_pc_partial_function_sym.
1034
16f3242c
TT
10352020-07-28 Tom Tromey <tromey@adacore.com>
1036
1037 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1038 help. Add usage.
1039
4888741a
TT
10402020-07-28 Tom Tromey <tromey@adacore.com>
1041
1042 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1043 <DW_OP_GNU_variable_value>: Cast to address type.
1044
4d46f402
KR
10452020-07-28 Kamil Rytarowski <n54@gmx.com>
1046
1047 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1048 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1049 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1050 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1051 (nbsd_get_siginfo_type): New.
1052 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1053 (_initialize_nbsd_tdep): New.
1054
d70f978b
L
10552020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1056
1057 PR binutils/26301
1058 * configure: Regenerated.
1059
377170fa
L
10602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 PR binutils/26301
1063 * configure: Regenerated.
1064
43d5901d
AB
10652020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1066
1067 * python/py-frame.c: Remove 'user-regs.h' include.
1068 (frapy_read_register): Rewrite to make use of
1069 gdbpy_parse_register_id.
1070 * python/py-registers.c (gdbpy_parse_register_id): New function,
1071 moved here from python/py-unwind.c. Updated the return type, and
1072 also accepts register descriptor objects.
1073 * python/py-unwind.c: Remove 'user-regs.h' include.
1074 (pyuw_parse_register_id): Moved to python/py-registers.c.
1075 (unwind_infopy_add_saved_register): Update to use
1076 gdbpy_parse_register_id.
1077 (pending_framepy_read_register): Likewise.
1078 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1079
14fa8fb3
AB
10802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * python/py-registers.c: Add 'user-regs.h' include.
1083 (register_descriptor_iter_find): New function.
1084 (register_descriptor_iterator_object_methods): New static global
1085 methods array.
1086 (register_descriptor_iterator_object_type): Add pointer to methods
1087 array.
1088
ddce1758
JB
10892020-07-27 John Baldwin <jhb@FreeBSD.org>
1090
1091 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1092 for all architectures on FreeBSD 11.3 and later.
1093
a4089f52
TT
10942020-07-27 Tom Tromey <tromey@adacore.com>
1095
1096 * gcore.h (load_corefile): Don't declare.
1097
95420d30
TV
10982020-07-27 Tom de Vries <tdevries@suse.de>
1099
1100 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1101 * config.in: Regenerate.
1102 * configure: Regenerate.
1103
05a6b8c2
EZ
11042020-07-26 Eli Zaretskii <eliz@gnu.org>
1105
1106 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1107 ws2tcpip.h. When checking whether socklen_t type is defined, use
1108 ws2tcpip.h if it is available and sys/socket.h isn't.
1109 * configure: Regenerate.
1110 * config.in: Regenerate.
1111
e79eb02f
AB
11122020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 PR fortran/23051
1115 PR fortran/26139
1116 * valops.c (value_ind): Pass address to
1117 readjust_indirect_value_type.
1118 * value.c (readjust_indirect_value_type): Make parameter
1119 non-const, and add extra address parameter. Resolve original type
1120 before using it.
1121 * value.h (readjust_indirect_value_type): Update function
1122 signature and comment.
1123
876518dd
TV
11242020-07-25 Tom de Vries <tdevries@suse.de>
1125
1126 PR symtab/26243
1127 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1128 entries.
1129
f6720b1c
AM
11302020-07-24 Aaron Merey <amerey@redhat.com>
1131
1132 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1133 * configure: Rebuild.
1134
513487e1
KB
11352020-07-23 Kevin Buettner <kevinb@redhat.com>
1136
1137 PR corefiles/26294
1138 * corelow.c (_initialize_corelow): Add period to help text
1139 for "maintenance print core-file-backed-mappings".
1140
e7bc9db8
PA
11412020-07-23 Pedro Alves <pedro@palves.net>
1142
1143 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1144 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1145 meanwhile.
1146 * frame.c (frame_cache_generation, get_frame_cache_generation):
1147 New.
1148 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1149 (get_prev_frame_if_no_cycle): On exception, don't touch
1150 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1151 * frame.h (get_frame_cache_generation): Declare.
1152
90fcc466
TV
11532020-07-23 Tom de Vries <tdevries@suse.de>
1154
1155 PR tui/26282
1156 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1157 New default constructor.
1158
78344df7
AB
11592020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1162 exclude non-statement entries.
1163
b089853a
KB
11642020-07-22 Kevin Buettner <kevinb@redhat.com>
1165
1166 * NEWS (New commands): Mention new command
1167 "maintenance print core-file-backed-mappings".
1168
09c2f5d4
KB
11692020-07-22 Kevin Buettner <kevinb@redhat.com>
1170
1171 * corelow.c (gdbcmd.h): Include.
1172 (core_target::info_proc_mappings): New method.
1173 (get_current_core_target): New function.
1174 (maintenance_print_core_file_backed_mappings): New function.
1175 (_initialize_corelow): Add core-file-backed-mappings to
1176 "maint print" commands.
1177
9c5ec5c2 11782020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1179
9c5ec5c2
KB
1180 * linux-tdep.c (dump_note_entry_p): New function.
1181 (linux_dump_mapping_p_ftype): New typedef.
1182 (linux_find_memory_regions_full): Add new parameter,
1183 should_dump_mapping_p.
1184 (linux_find_memory_regions): Adjust call to
1185 linux_find_memory_regions_full.
1186 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1187 call to linux_find_memory_regions_full.
1188
db082f59
KB
11892020-07-22 Kevin Buettner <kevinb@redhat.com>
1190
1191 * corelow.c (solist.h, unordered_map): Include.
1192 (class core_target): Add field m_core_file_mappings and
1193 method build_file_mappings.
1194 (core_target::core_target): Call build_file_mappings.
1195 (core_target::~core_target): Free memory associated with
1196 m_core_file_mappings.
1197 (core_target::build_file_mappings): New method.
1198 (core_target::xfer_partial): Use m_core_file_mappings
1199 for memory transfers.
1200 * linux-tdep.c (linux_read_core_file_mappings): New
1201 function.
1202 (linux_core_info_proc_mappings): Rewrite to use
1203 linux_read_core_file_mappings.
1204 (linux_init_abi): Register linux_read_core_file_mappings.
1205
7e183d27
KB
12062020-07-22 Kevin Buettner <kevinb@redhat.com>
1207
1208 * arch-utils.c (default_read_core_file_mappings): New function.
1209 * arch-utils.c (default_read_core_file_mappings): Declare.
1210 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1211 * gdbarch.h, gdbarch.c: Regenerate.
1212
2735d421
KB
12132020-07-22 Kevin Buettner <kevinb@redhat.com>
1214
1215 PR corefiles/25631
1216 * corelow.c (core_target:xfer_partial): Revise
1217 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1218 case after first checking the stratum beneath the core
1219 target.
1220 (has_all_memory): Return true.
1221 * target.c (raw_memory_xfer_partial): Revise comment
1222 regarding use of has_all_memory.
1223
e56cb451
KB
12242020-07-22 Kevin Buettner <kevinb@redhat.com>
1225
1226 * exec.h (section_table_xfer_memory): Revise declaration,
1227 replacing section name parameter with an optional callback
1228 predicate.
1229 * exec.c (section_table_xfer_memory): Likewise.
1230 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1231 of section_table_xfer_memory.
1232
32fa152e
TT
12332020-07-22 Tom Tromey <tromey@adacore.com>
1234
1235 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1236 lookup_symbol_search_name.
1237
a67a1c41
AB
12382020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1241 redundant local variable.
1242 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1243 reference, not pointer, update code accordingly.
1244
a7b4ff4f
SM
12452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1246 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247
1248 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1249 * jit.c (jit_breakpoint_re_set_internal): Use the
1250 `skip_jit_symbol_lookup` field.
1251
2340e834
SM
12522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1253 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1254
1255 * jit.c (jit_read_descriptor): Define the descriptor address once,
1256 use twice.
1257 (jit_breakpoint_deleted): Move the declaration of the loop variable
1258 `iter` into the loop header.
1259 (jit_breakpoint_re_set_internal): Move the declaration of the local
1260 variable `objf_data` to the first point of definition.
1261 (jit_event_handler): Move the declaration of local variables
1262 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1263 Rename `objf` to `jited`.
1264
c1072906
SM
12652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1268 Remove.
1269 * jit.c (get_jiter_objfile_data): Update.
1270
c8474dc3
TBA
12712020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * jit.c (struct jit_program_space_data): Remove.
1275 (jit_program_space_key): Remove.
1276 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1277 stuff.
1278 (get_jit_program_space_data): Remove.
1279 (jit_breakpoint_deleted): Iterate on all of the program space's
1280 objfiles.
1281 (jit_inferior_init): Likewise.
1282 (jit_breakpoint_re_set_internal): Likewise. Also change return
1283 type to void.
1284 (jit_breakpoint_re_set): Pass current_program_space to
1285 jit_breakpoint_re_set_internal.
1286
77208eb7
SM
12872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * jit.h (struct jiter_objfile_data) <cached_code_address,
1290 jit_breakpoint>: Move to here from ...
1291 * jit.c (jit_program_space_data): ... here.
1292 (jiter_objfile_data::~jiter_objfile_data): Update.
1293 (jit_breakpoint_deleted): Update.
1294 (jit_breakpoint_re_set_internal): Update.
1295
8c1c720f
SM
12962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1299 checks.
1300 (jit_read_descriptor): Remove NULL check.
1301 (jit_event_handler): Add an assertion.
1302
0e74a041
SM
13032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * jit.h (struct jit_objfile_data): Split into...
1306 (struct jiter_objfile_data): ... this ...
1307 (struct jited_objfile_data): ... and this.
1308 * objfiles.h (struct objfile) <jit_data>: Remove.
1309 <jiter_data, jited_data>: New fields.
1310 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1311 (jiter_objfile_data::~jiter_objfile_data): ... this.
1312 (get_jit_objfile_data): Rename to ...
1313 (get_jiter_objfile_data): ... this.
1314 (add_objfile_entry): Update.
1315 (jit_read_descriptor): Use get_jiter_objfile_data.
1316 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1317 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1318 (jit_inferior_exit_hook): Use objfile's jited_data field.
1319
238b5c9f
SM
13202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1321
1322 * jit.h: Forward-declare `struct minimal_symbol`.
1323 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1324 constructor, destructor, and an objfile* field.
1325 * jit.c (jit_objfile_data): Remove.
1326 (struct jit_objfile_data): Migrate from here to jit.h.
1327 (jit_objfile_data::~jit_objfile_data): New destructor
1328 implementation with code moved from free_objfile_data.
1329 (free_objfile_data): Delete.
1330 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1331 (jit_find_objf_with_entry_addr): Ditto.
1332 (jit_inferior_exit_hook): Ditto.
1333 (_initialize_jit): Remove the call to
1334 register_objfile_data_with_cleanup.
1335 * objfiles.h (struct objfile) <jit_data>: New field.
1336
fe053b9e
TBA
13372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1338
1339 * jit.h: Forward-declare `struct objfile`.
1340 (jit_event_handler): Add a second parameter, the JITer objfile.
1341 * jit.c (jit_read_descriptor): Change the signature to take the
1342 JITer objfile as an argument instead of the jit_program_space_data.
1343 (jit_inferior_init): Update the call to jit_read_descriptor.
1344 (jit_event_handler): Use the new JITer objfile argument when calling
1345 jit_read_descriptor.
1346 * breakpoint.c (handle_jit_event): Update the call to
1347 jit_event_handler to pass the JITer objfile.
1348
4cec0c66
JB
13492020-07-21 John Baldwin <jhb@FreeBSD.org>
1350
1351 * gdbarch.c: Regenerate.
1352 * gdbarch.h: Regenerate.
1353 * gdbarch.sh (handle_segmentation_fault): Remove method.
1354 * infrun.c (handle_segmentation_fault): Remove.
1355 (print_signal_received_reason): Remove call to
1356 handle_segmentation_fault.
1357
0e42f66a
JB
13582020-07-21 John Baldwin <jhb@FreeBSD.org>
1359
1360 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1361 Rename to sparc64_linux_report_signal_info and add siggnal
1362 argument.
1363 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1364 instead of sparc64_linux_handle_segmentation_fault.
1365
77bdfeb2
JB
13662020-07-21 John Baldwin <jhb@FreeBSD.org>
1367
1368 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1369 i386_linux_report_signal_info instead of
1370 i386_linux_handle_segmentation_fault.
1371 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1372 to i386_linux_report_signal_info and add siggnal argument.
1373 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1374 of i386_linux_handle_segmentation_fault.
1375 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1376 to i386_linux_report_signal_info and add siggnal argument.
1377
ad97bfc5
JB
13782020-07-21 John Baldwin <jhb@FreeBSD.org>
1379
1380 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1381 hook if present.
1382
272bb05c
JB
13832020-07-21 John Baldwin <jhb@FreeBSD.org>
1384
1385 * gdbarch.c: Regenerate.
1386 * gdbarch.h: Regenerate.
1387 * gdbarch.sh (report_signal_info): New method.
1388 * infrun.c (print_signal_received_reason): Invoke gdbarch
1389 report_signal_info hook if present.
1390
baf8791e
AB
13912020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * python/py-registers.c : Add 'unordered_map' include.
1394 (gdbpy_new_reggroup): Renamed to...
1395 (gdbpy_get_reggroup): ...this. Update to only create register
1396 group descriptors when needed.
1397 (gdbpy_reggroup_iter_next): Update.
1398
f7306dac
AB
13992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * python/py-registers.c (gdbpy_register_object_data): New static
1402 global.
1403 (gdbpy_register_object_data_init): New function.
1404 (gdbpy_new_register_descriptor): Renamed to...
1405 (gdbpy_get_register_descriptor): ...this, and update to reuse
1406 existing register descriptors where possible.
1407 (gdbpy_register_descriptor_iter_next): Update.
1408 (gdbpy_initialize_registers): Register new gdbarch data.
1409
05c309a8
SM
14102020-07-21 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * linux-nat.c (stopped_pids): Make static.
1413
d1fd641e
SM
14142020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 PR ada/26235
1417 * gdbtypes.c (ada_discrete_type_low_bound,
1418 ada_discrete_type_high_bound): Handle undefined bounds.
1419
1de14d77
KR
14202020-07-21 Kamil Rytarowski <n54@gmx.com>
1421
1422 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1423 declaration.
1424 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1425 function.
1426
ed810cc7
JB
14272020-07-20 John Baldwin <jhb@FreeBSD.org>
1428
1429 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1430 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1431 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1432 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1433 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1434 method.
1435
ae5369e7
LC
14362020-07-20 Ludovic Courtès <ludo@gnu.org>
1437
1438 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1439 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1440 which are deprecated in Guile 3.0.
1441 * configure.ac (try_guile_versions): Add "guile-3.0".
1442 * configure (try_guile_versions): Regenerate.
1443 * NEWS: Update entry.
1444
68cf161c
LC
14452020-07-20 Ludovic Courtès <ludo@gnu.org>
1446 Doug Evans <dje@google.com>
1447
1448 PR gdb/21104
1449 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1450 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1451 USING_GUILE_BEFORE_2_2.
1452 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1453 Change type to 'scm_t_port_type *'.
1454 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1455 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1456 parameter and honor it. Update callers.
1457 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1458 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1459 functions.
1460 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1461 USING_GUILE_BEFORE_2_2.
1462 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1463 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1464 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1465 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1466 and 'SCM_PORT_TYPE'.
1467 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1468 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1469 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1470 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1471 [!USING_GUILE_BEFORE_2_2]: New functions.
1472 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1473 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1474 'gdbscm_memory_port_read'.
1475 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1476 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1477 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1478 function.
1479 (ioscm_init_memory_port): Remove.
1480 (ioscm_init_memory_port_stream): New function
1481 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1482 function.
1483 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1484 Return scm_from_uint (0).
1485 (gdbscm_set_memory_port_read_buffer_size_x)
1486 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1487 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1488 Return scm_from_uint (0).
1489 (gdbscm_set_memory_port_write_buffer_size_x)
1490 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1491 * configure.ac (try_guile_versions): Add "guile-2.2".
1492 * configure: Regenerate.
1493 * NEWS: Add entry.
1494
aee91db3
TT
14952020-07-18 Tom Tromey <tom@tromey.com>
1496
1497 * linux-nat.c (linux_multi_process): Remove.
1498 (linux_nat_target::supports_multi_process): Return true.
1499
0e267416
AB
15002020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1503 (riscv_lookup_target_description): Return pointer out of
1504 unique_ptr.
1505 * target-descriptions.c (allocate_target_description): Add
1506 comment.
1507 (target_desc_deleter::operator()): Likewise.
1508 * target-descriptions.h (struct target_desc_deleter): Moved to
1509 gdbsupport/tdesc.h.
1510 (target_desc_up): Likewise.
1511
f80c8ec4
TT
15122020-07-17 Tom Tromey <tromey@adacore.com>
1513
1514 * linux-nat.c (linux_nat_target::supports_non_stop)
1515 (linux_nat_target::always_non_stop_p): Use "true".
1516 (linux_nat_target::supports_disable_randomization): Use "true" and
1517 "false".
1518
d0ce17d8
CT
15192020-07-16 Caroline Tice <cmtice@google.com>
1520
1521 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1522 (RNGLIST_HEADER_SIZE64): New constant definition.
1523 (struct dwop_section_names): Add rnglists_dwo.
1524 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1525 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1526 (struct dwo_sections): Add rnglists field.
1527 (read_attribut_reprocess): Add tag parameter.
1528 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1529 (cu_debug_rnglists_section): New function (decl & definition).
1530 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1531 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1532 die whose range is being checked; get rnglist section from
1533 cu_debug_rnglists_section, to get from either objfile or dwo file as
1534 appropriate. Add cases for DW_RLE_base_addressx,
1535 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1536 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1537 test inside if-condition and updating complaint message.
1538 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1539 dwarf2_rnglists_process.
1540 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1541 dwarf2_ranges_process.
1542 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1543 need_ranges_base and update comment appropriately. Also pass die tag
1544 to dwarf2_ranges_read.
1545 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1546 need_ranges_base and update comment appropriately. Also pass die tag
1547 to dwarf2_ranges_process.
1548 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1549 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1550 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1551 need_ranges_base and update comment appropriately. Also pass die tag
1552 to read_attribute_reprocess and dwarf2_ranges_read.
1553 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1554 and update function comment appropriately.
1555 (read_loclist_index): Call read_loclists_rnglists_header instead of
1556 read_loclist_header.
1557 (read_rnglist_index): New function.
1558 (read_attribute_reprocess): Add tag parameter. Add code for
1559 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1560 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1561
3dcc261c
AB
15622020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1565 being resolved.
1566
ccb9eba6
AB
15672020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * arch-utils.c (show_architecture): Update formatting of messages.
1570
cf88be68
SM
15712020-07-12 Simon Marchi <simon.marchi@efficios.com>
1572
1573 * gdbtypes.h (struct type) <bounds>: Handle array and string
1574 types.
1575 * ada-lang.c (assign_aggregate): Use type::bounds on
1576 array/string type.
1577 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1578 * c-varobj.c (c_number_of_children): Likewise.
1579 (c_describe_child): Likewise.
1580 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1581 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1582 (f_type_print_base): Likewise.
1583 * f-valprint.c (f77_array_offset_tbl): Likewise.
1584 (f77_get_upperbound): Likewise.
1585 (f77_print_array_1): Likewise.
1586 * guile/scm-type.c (gdbscm_type_range): Likewise.
1587 * m2-typeprint.c (m2_array): Likewise.
1588 (m2_is_long_set_of_type): Likewise.
1589 * m2-valprint.c (get_long_set_bounds): Likewise.
1590 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1591 * python/py-type.c (typy_range): Likewise.
1592 * rust-lang.c (rust_internal_print_type): Likewise.
1593 * type-stack.c (type_stack::follow_types): Likewise.
1594 * valarith.c (value_subscripted_rvalue): Likewise.
1595 * valops.c (value_cast): Likewise.
1596
509971ae
SM
15972020-07-12 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1600 callers to use the equivalent accessor methods.
1601
107406b7
SM
16022020-07-12 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1605 (struct type) <bit_stride>: New method.
1606 (TYPE_BIT_STRIDE): Remove.
1607 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1608
bb789949
SM
16092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1612 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1613 callers to use the equivalent accessor methods instead.
1614
39498edb
SM
16152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1618 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1619 callers to use the equivalent accessor methods instead.
1620
3b606f38
SM
16212020-07-12 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1624 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1625 to use dynamic_prop::kind.
1626
064d9cb9
SM
16272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1628
1629 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1630 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1631 to get the bound property's kind and check against
1632 PROP_UNDEFINED.
1633
5537ddd0
SM
16342020-07-12 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1637 all callers to use type::range_bounds followed by
1638 dynamic_prop::{low,high}.
1639
8c2e4e06
SM
16402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1643 const_val, set_const_val, baton, set_locexpr, set_loclist,
1644 set_addr_offset, variant_parts, set_variant_parts,
1645 original_type, set_original_type>: New methods.
1646 <kind>: Rename to...
1647 <m_kind>: ... this. Update all users to use the new methods
1648 instead.
1649 <data>: Rename to...
1650 <m_data>: ... this. Update all users to use the new methods
1651 instead.
1652
7c6f2712
SM
16532020-07-12 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * gdbtypes.c (get_discrete_bounds): Return failure if
1656 the range type's bounds are not both defined and constant
1657 values.
1658 (get_array_bounds): Update comment. Remove undefined bound check.
1659
599088e3
SM
16602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1663 the type::bounds method directly.
1664
c4dfcb36
SM
16652020-07-12 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1668 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1669 are used to set the range type's bounds to use set_bounds.
1670
0a278aa7
PW
16712020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1672
1673 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1674
cce20f10
PA
16752020-07-10 Pedro Alves <pedro@palves.net>
1676
1677 * gdbthread.h (inferior_ref): Define.
1678 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1679 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1680 * thread.c
1681 (scoped_restore_current_thread::restore):
1682 Adjust to gdb::ref_ptr.
1683 (scoped_restore_current_thread::~scoped_restore_current_thread):
1684 Remove manual decref handling.
1685 (scoped_restore_current_thread::scoped_restore_current_thread):
1686 Adjust to use
1687 inferior_ref::new_reference/thread_info_ref::new_reference.
1688 Incref the thread before calling get_frame_id instead of after.
1689 Let TARGET_CLOSE_ERROR propagate.
1690
6d7aa592
PA
16912020-07-10 Pedro Alves <pedro@palves.net>
1692
1693 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1694 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1695 NOT_AVAILABLE_ERROR.
1696 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1697 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1698
b3e3a4c1
SM
16992020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1700 Pedro Alves <pedro@palves.net>
1701
1702 PR gdb/26199
1703 * infrun.c (threads_are_resumed_pending_p): Delete.
1704 (do_target_wait): Remove threads_are_executing and
1705 threads_are_resumed_pending_p checks from the inferior_matches
1706 lambda. Update comments.
1707
d6cc5d98
PA
17082020-07-10 Pedro Alves <pedro@palves.net>
1709
1710 PR gdb/26199
1711 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1712 executing threads.
1713
7d3badc6
PA
17142020-07-10 Pedro Alves <pedro@palves.net>
1715
1716 PR gdb/26199
1717 * infrun.c (handle_no_resumed): Handle multiple targets.
1718
42bd97a6
PA
17192020-07-10 Pedro Alves <pedro@palves.net>
1720
1721 PR gdb/26199
1722 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1723 target_is_async_p.
1724
43667cc6
PA
17252020-07-10 Pedro Alves <pedro@palves.net>
1726
1727 PR gdb/26199
1728 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1729 threads, not all threads.
1730
96118d11
PA
17312020-07-10 Pedro Alves <pedro@palves.net>
1732
1733 PR gdb/26199
1734 * remote.c (remote_target::open_1): Pass remote target pointer as
1735 data to create_async_event_handler.
1736 (remote_async_inferior_event_handler): Mark async event handler
1737 before returning if the remote target still has either pending
1738 events or unacknowledged notifications.
1739
54904d81
JB
17402020-07-10 John Baldwin <jhb@FreeBSD.org>
1741
1742 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1743 declaration.
1744 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1745 function.
1746
f37e5866
JB
17472020-07-09 John Baldwin <jhb@FreeBSD.org>
1748
1749 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1750 inferior_ptid.
1751
fc238d4a
JB
17522020-07-09 John Baldwin <jhb@FreeBSD.org>
1753
1754 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1755 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1756 AT_FREEBSD_PS_STRINGS.
1757
6e2469ff
HD
17582020-07-08 Hannes Domani <ssbssa@yahoo.de>
1759
1760 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1761 of debugfile path on Windows.
1762
d1076c41
JB
17632020-07-08 John Baldwin <jhb@FreeBSD.org>
1764
1765 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1766 argument to 'data'.
1767
15f3b077
TT
17682020-07-08 Tom Tromey <tromey@adacore.com>
1769
1770 * ada-lang.c (ada_exception_message_1): Use read_memory.
1771
9fc501fd
AB
17722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 PR python/22748
1775 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1776 special handling for inline frames.
1777 * findvar.c (value_of_register_lazy): Skip inline frames when
1778 creating lazy register values.
1779 * frame.c (frame_id_computed_p): Delete definition.
1780 * frame.h (frame_id_computed_p): Delete declaration.
1781
64cb3757
AB
17822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * NEWS: Mention additions to Python API.
1785 * python/py-arch.c (archpy_register_groups): New function.
1786 (arch_object_methods): Add 'register_groups' method.
1787 * python/py-registers.c (reggroup_iterator_object): New struct.
1788 (reggroup_object): New struct.
1789 (gdbpy_new_reggroup): New function.
1790 (gdbpy_reggroup_to_string): New function.
1791 (gdbpy_reggroup_name): New function.
1792 (gdbpy_reggroup_iter): New function.
1793 (gdbpy_reggroup_iter_next): New function.
1794 (gdbpy_new_reggroup_iterator): New function
1795 (gdbpy_initialize_registers): Register new types.
1796 (reggroup_iterator_object_type): Define new Python type.
1797 (gdbpy_reggroup_getset): New static global.
1798 (reggroup_object_type): Define new Python type.
1799 * python/python-internal.h
1800
0f767f94
AB
18012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1804 * python/py-arch.c (archpy_registers): New function.
1805 (arch_object_methods): Add 'registers' method.
1806 * python/py-registers.c: New file.
1807 * python/python-internal.h
1808 (gdbpy_new_register_descriptor_iterator): Declare.
1809 (gdbpy_initialize_registers): Declare.
1810 * python/python.c (do_start_initialization): Call
1811 gdbpy_initialize_registers.
1812 * NEWS: Mention additions to the Python API.
1813
87dbc774
AB
18142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * NEWS: Mention new Python API method.
1817 * python/py-unwind.c (pending_framepy_architecture): New function.
1818 (pending_frame_object_methods): Add architecture method.
1819
3bc98c0c
AB
18202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * gdbarch.c: Regenerate.
1823 * gdbarch.h: Regenerate.
1824 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1825 (gdbarch_data): Use internal_error for the case where
1826 deprecated_set_gdbarch_data was originally needed.
1827 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1828 and use passed in obstack.
1829 (libunwind_frame_set_descr): Should no longer get back NULL from
1830 gdbarch_data.
1831 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1832 type.
1833 * user-regs.c (user_regs_init): Update parameters, and use passed
1834 in obstack.
1835 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1836 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1837
d8cc8af6
TV
18382020-07-06 Tom de Vries <tdevries@suse.de>
1839
1840 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1841 End-Of-Sequence in lte_is_less_than.
1842 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1843 "gdb: Don't reorder line table entries too much when sorting".
1844
947f7597
TV
18452020-07-06 Tom de Vries <tdevries@suse.de>
1846
1847 PR tui/26205
1848 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1849
1e7c1b22
TV
18502020-07-05 Tom de Vries <tdevries@suse.de>
1851
1852 PR build/26187
1853 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1854 std::uncaught_exceptions instead of deprecated
1855 std::uncaught_exception.
1856
a36158ec
SM
18572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * macroexp.h (macro_stringify): Return
1860 gdb::unique_xmalloc_ptr<char>.
1861 * macroexp.c (macro_stringify): Likewise.
1862 * macrotab.c (fixup_definition): Update.
1863
14d960c8
SM
18642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1867 (lex_one_token): Update.
1868 * macroexp.c (struct macro_buffer) <release>: Return
1869 gdb::unique_xmalloc_ptr<char>.
1870 (macro_stringify): Update.
1871 (macro_expand): Update.
1872 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1873 * macroexp.h (macro_expand_next): Likewise.
1874
211d5b1c
SM
18752020-07-02 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * macroexp.h (macro_lookup_ftype): Remove.
1878 (macro_expand, macro_expand_once, macro_expand_next): Remove
1879 lookup function parameters, add scope parameter.
1880 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1881 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1882 * macroscope.h (standard_macro_lookup): Change parameter type
1883 to macro_scope.
1884 * macroscope.c (standard_macro_lookup): Likewise.
1885 * c-exp.y (lex_one_token): Update.
1886 * macrocmd.c (macro_expand_command): Likewise.
1887 (macro_expand_once_command): Likewise.
1888
b1a35af2
SM
18892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * inf-loop.c (inferior_event_handler): Remove client_data param.
1892 * inf-loop.h (inferior_event_handler): Likewise.
1893 * infcmd.c (step_1): Adjust.
1894 * infrun.c (proceed): Adjust.
1895 (fetch_inferior_event): Remove client_data param.
1896 (infrun_async_inferior_event_handler): Adjust.
1897 * infrun.h (fetch_inferior_event): Remove `void *` param.
1898 * linux-nat.c (handle_target_event): Adjust.
1899 * record-btrace.c (record_btrace_handle_async_inferior_event):
1900 Adjust.
1901 * record-full.c (record_full_async_inferior_event_handler):
1902 Adjust.
1903 * remote.c (remote_async_inferior_event_handler): Adjust.
1904
1cdf9e33
TT
19052020-07-01 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1908 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1909
32c1e210
TT
19102020-07-01 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1913 tui_gen_win_info.
1914 (tui_win_info::make_window): Merge with
1915 tui_gen_win_info::make_window.
1916 (tui_win_info::make_visible): Move from tui_gen_win_info.
1917 * tui/tui-win.c (tui_win_info::max_width): Move from
1918 tui_gen_win_info.
1919 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1920 type.
1921 <window_factory>: Likewise.
1922 * tui/tui-layout.c (tui_win_info::resize): Move from
1923 tui_gen_win_info.
1924 (make_standard_window): Change return type.
1925 (get_locator_window, tui_get_window_by_name): Likewise.
1926 (tui_layout_window::apply): Remove a cast.
1927 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1928 (struct tui_win_info): Merge with tui_gen_win_info.
1929 (struct tui_gen_win_info): Remove.
1930
a30cb6da
TT
19312020-07-01 Tom Tromey <tom@tromey.com>
1932
1933 * tui/tui-stack.h (struct tui_locator_window): Derive from
1934 tui_win_info.
1935 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1936 <can_box>: New method.
1937
1eb2161f
TT
19382020-07-01 Tom Tromey <tom@tromey.com>
1939
1940 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1941
7134f2eb
TT
19422020-07-01 Tom Tromey <tom@tromey.com>
1943
1944 * tui/tui-regs.c (tui_data_window::display_registers_from)
1945 (tui_data_window::display_registers_from)
1946 (tui_data_window::first_data_item_displayed)
1947 (tui_data_window::delete_data_content_windows): Update.
1948 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1949 Remove.
1950 (tui_data_window::check_register_values): Update.
1951 (tui_data_item_window::rerender): Add parameters. Update.
1952 (tui_data_item_window::refresh_window): Remove.
1953 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1954 virtual.
1955 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1956 tui_gen_win_info.
1957 <refresh_window, max_height, min_height>: Remove.
1958 <rerender>: Add parameters.
1959 <x, y, visible>: New members.
1960 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1961 <m_item_width>: New member.
1962
22b7b041
TT
19632020-07-01 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-regs.c (tui_data_window::show_register_group)
1966 (tui_data_window::check_register_values): Update.
1967 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1968 from item_no.
1969
c9753adb
TT
19702020-07-01 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1973 useless "if".
1974
9ab26b4a
TT
19752020-07-01 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1978 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1979
e555083f
TT
19802020-07-01 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1983 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1984 (struct tui_line_or_address): Move from tui-data.h.
1985 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1986 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1987 (tui_cmd_window, tui_source_window_base, tui_source_window)
1988 (tui_disasm_window): Don't declare.
1989 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1990 to tui-winsource.h.
1991 (SINGLE_KEY): Move to tui-stack.c.
1992
7a02bab7
TT
19932020-07-01 Tom Tromey <tom@tromey.com>
1994
1995 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1996 std::string.
1997 * tui/tui-regs.c (class tab_expansion_file): New.
1998 (tab_expansion_file::write): New method.
1999 (tui_register_format): Change return type. Use
2000 tab_expansion_file.
2001 (tui_get_register, tui_data_window::display_registers_from)
2002 (tui_data_item_window::rerender): Update.
2003 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2004 * tui/tui-io.c (tui_expand_tabs): Remove.
2005
ea68593b
TT
20062020-07-01 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2009
a8caed5d
FS
20102020-07-01 Fangrui Song <maskray@google.com>
2011
2012 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2013
9cdf9820
AKS
20142020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2015
2016 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2017 forms for DW_AT_associated and DW_AT_allocated attributes,
2018 which is already checked in function attr_to_dynamic_prop.
2019
a1520ad8
TT
20202020-06-30 Tom Tromey <tromey@adacore.com>
2021
2022 * dwarf2/read.c (quirk_rust_enum): Correctly call
2023 alloc_rust_variant for default-less enum.
2024
5ac58899
TT
20252020-06-30 Tom Tromey <tromey@adacore.com>
2026
2027 PR build/26183:
2028 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2029 gdb::to_string.
2030
19b187a9
SM
20312020-06-29 Simon Marchi <simon.marchi@efficios.com>
2032
2033 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2034 * gdbarch.h: Re-generate.
2035
cd4c4c07
TT
20362020-06-28 Tom Tromey <tom@tromey.com>
2037
2038 * command.h (cmd_types): Remove.
2039 (cmd_type): Don't declare.
2040 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2041 typedef.
2042 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2043 * cli/cli-decode.c (cmd_type): Remove.
2044
05779d57
PA
20452020-06-27 Pedro Alves <palves@redhat.com>
2046
2047 * fork-child.c (prefork_hook): Adjust.
2048 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2049 Delete.
2050 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2051 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2052 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2053 Remove declarations.
2054 (struct inferior) <set_tty, tty>: New methods.
2055 (struct inferior) <terminal>: Rename to ...
2056 (struct inferior) <m_terminal>: ... this and make private.
2057 * main.c (captured_main_1): Adjust.
2058 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2059 (mi_cmd_inferior_tty_show): Adjust.
2060 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2061 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2062
1776e3e5
NA
20632020-06-26 Nick Alcock <nick.alcock@oracle.com>
2064
2065 * configure.ac: Add --enable-libctf: handle --disable-static
2066 properly.
2067 * acinclude.m4: sinclude ../config/enable.m4.
2068 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2069 (LIBCTF): Substitute in.
2070 (CTF_DEPS): New, likewise.
2071 (CLIBS): libctf needs symbols from libbfd: move earlier.
2072 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2073 flags.
2074 * ctfread.c: Surround in ENABLE_LIBCTF.
2075 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2076 * configure: Regenerate.
2077 * config.in: Likewise.
2078
58373b80
SM
20792020-06-25 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2082
277474ee
SM
20832020-06-25 Simon Marchi <simon.marchi@efficios.com>
2084
2085 * inferior.h (struct inferior) <terminal>: Change type to
2086 gdb::unique_xmalloc_ptr<char>.
2087 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2088 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2089 field, adjust to unique pointer.
2090 (get_inferior_io_terminal): Adjust to unique pointer.
2091
6d74da72
AB
20922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2095 registers, not just the known core set of registers.
2096
2e52d038
AB
20972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2100 fflags, frm, and fcsr registers.
2101 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2102 restore groups.
2103 (riscv_tdesc_unknown_reg): New function.
2104 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2105 tdesc_use_registers.
2106 * riscv-tdep.h (struct gdbarch_tdep): Add
2107 unknown_csrs_first_regnum, unknown_csrs_count,
2108 duplicate_fflags_regnum, duplicate_frm_regnum, and
2109 duplicate_fcsr_regnum fields.
2110
be64fd07
AB
21112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2114 callback, use the callback (when not null) to help number unknown
2115 registers.
2116 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2117 (tdesc_use_registers): Add extra parameter to declaration.
2118
3b9fce96
AB
21192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2122 in the file.
2123 (class riscv_pending_register_alias): Likewise.
2124 (riscv_register_feature::register_info): Change 'required_p' field
2125 to 'required', and change its type. Add 'check' member function.
2126 (riscv_register_feature::register_info::check): Define new member
2127 function.
2128 (riscv_xreg_feature): Change initialisation of 'required' field.
2129 (riscv_freg_feature): Likewise.
2130 (riscv_virtual_feature): Likewise.
2131 (riscv_csr_feature): Likewise.
2132 (riscv_check_tdesc_feature): Take extra parameter, the csr
2133 tdesc_feature, rewrite the function to use the new
2134 riscv_register_feature::register_info::check function.
2135 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2136
865bad26
AB
21372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * features/Makefile: Remove all references to the deleted files
2140 below.
2141 * features/riscv/32bit-csr.c: Deleted.
2142 * features/riscv/32bit-csr.xml: Deleted.
2143 * features/riscv/64bit-csr.c: Deleted.
2144 * features/riscv/64bit-csr.xml: Deleted.
2145 * features/riscv/rebuild-csr-xml.sh: Deleted.
2146
ed69cbc8
AB
21472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2150 whitespace error for declaration of names member variable.
2151 (struct riscv_register_feature): Add new prefer_first_name member
2152 variable, and fix whitespace error in declaration of registers.
2153 (riscv_xreg_feature): Initialize prefer_first_name field.
2154 (riscv_freg_feature): Likewise.
2155 (riscv_virtual_feature): Likewise.
2156 (riscv_csr_feature): Likewise.
2157 (riscv_register_name): Expand on comments. Remove register name
2158 modifications for CSR and virtual registers.
2159
4445e8f5
AB
21602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2163 errors.
2164
767a879e
AB
21652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2168 riscv-opc.h.
2169 (class riscv_pending_register_alias): New class.
2170 (riscv_check_tdesc_feature): Take vector of pending aliases and
2171 populate it as appropriate.
2172 (riscv_setup_register_aliases): Delete.
2173 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2174 to riscv_check_tdesc_feature in all cases. Use the vector to
2175 create the register aliases.
2176
bb6e55f3
RO
21772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2178
2179 * sol2-tdep.c (sol2_static_transform_name): Remove.
2180 (sol2_init_abi): Don't register it.
2181 * gdbarch.sh (static_transform_name): Remove.
2182 * gdbarch.c, gdbarch.h: Regenerate.
2183
2184 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2185 gdbarch_static_transform_name.
2186 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2187 * stabsread.c (define_symbol) <'X'>: Remove.
2188 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2189 handling.
2190 <'V'>: Likewise.
2191 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2192 <'S'>: Remove call to gdbarch_static_transform_name.
2193
c6d36836
RO
21942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2195
2196 * procfs.c (procfs_pre_trace): New function.
2197 (procfs_target::create_inferior): Pass it to fork_inferior.
2198
a7e6196b
RO
21992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2200
2201 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2202 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2203 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2204 sol2-tdep.o, sparc-sol2-tdep.o.
2205 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2206 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2207 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2208 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2209
d412e696
RO
22102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2211
2212 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2213 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2214 Call sol2_init_abi.
2215 Remove calls to set_gdbarch_skip_solib_resolver,
2216 set_gdbarch_core_pid_to_str.
2217 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2218 (i386_sol2_static_transform_name): Remove.
2219 (i386_sol2_init_abi): Call sol2_init_abi.
2220 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2221 set_gdbarch_static_transform_name,
2222 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2223 Use sol2_sigtramp_p.
2224 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2225 (sol2_sigtramp_p): New function.
2226 (sol2_static_transform_name): New function.
2227 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2228 (sol2_init_abi): New function.
2229 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2230 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2231 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2232 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2233 (sparc_sol2_static_transform_name): Remove.
2234 (sparc32_sol2_init_abi): Call sol2_init_abi.
2235 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2236 set_gdbarch_static_transform_name,
2237 set_gdbarch_skip_solib_resolver,
2238 set_gdbarch_core_pid_to_str.
2239 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2240 (sparc_sol2_static_transform_name): Remove
2241 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2242 call sol2_sigtramp_p.
2243 (sparc64_sol2_init_abi): Call sol2_init_abi.
2244 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2245 set_gdbarch_static_transform_name,
2246 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2247
a8654e7d
PW
22482020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2249
2250 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2251 * exec.c (validate_exec_file): If from_tty, set both
2252 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2253 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2254 and from_tty, unconditionally ask a confirmation.
2255
caa7fd04
AB
22562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2257
2258 * target-descriptions.c (tdesc_architecture_name): Protect against
2259 NULL pointer dereference.
2260 (maint_print_xml_tdesc_cmd): New function.
2261 (_initialize_target_descriptions): Register new 'maint print
2262 xml-tdesc' command and give it the filename completer.
2263 * NEWS: Mention new 'maint print xml-tdesc' command.
2264
fbf42f4e
AB
22652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 * target-descriptions.c (class tdesc_compatible_info): New class.
2268 (struct target_desc): Change type of compatible vector.
2269 (tdesc_compatible_p): Update for change in type of
2270 target_desc::compatible.
2271 (tdesc_compatible_info_list): New function.
2272 (tdesc_compatible_info_arch_name): New function.
2273 (tdesc_add_compatible): Update for change in type of
2274 target_desc::compatible.
2275 (print_c_tdesc::visit_pre): Likewise.
2276
20821f4e
AB
22772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2280 whitespace to underscore.
2281 (maint_print_c_tdesc_cmd): Use fake filename for target
2282 descriptions that came from the target.
2283 (_initialize_target_descriptions): Add filename command completion
2284 for 'maint print c-tdesc'.
2285
1fb5ee62
SM
22862020-06-23 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2289 lines.
2290
fc3ecb3e
SM
22912020-06-23 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2294 lines.
2295 (dwarf2_find_location_expression): Likewise.
2296 (call_site_parameter_matches): Likewise.
2297 (dwarf2_compile_expr_to_ax): Likewise.
2298 (disassemble_dwarf_expression): Likewise.
2299 (loclist_describe_location): Likewise.
2300
236ef034
PA
23012020-06-23 Pedro Alves <palves@redhat.com>
2302
2303 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2304 progspace-and-thread.h. Include scoped-mock-context.h instead.
2305 (register_to_value_test): Use scoped_mock_context.
2306 * regcache.c: Include "scoped-mock-context.h".
2307 (cooked_read_test): Don't error out if a target is already pushed.
2308 Use scoped_mock_context. Adjust.
2309 * scoped-mock-context.h: New file.
2310
39e7ecca
AB
23112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2314 initializer.
2315 (ada_language::is_string_type_p): New member function.
2316 * c-lang.c (c_language_data): Delete la_is_string_type_p
2317 initializer.
2318 (cplus_language_data): Likewise.
2319 (asm_language_data): Likewise.
2320 (minimal_language_data): Likewise.
2321 * d-lang.c (d_language_data): Likewise.
2322 * f-lang.c (f_is_string_type_p): Delete function, implementation
2323 moved to f_language::is_string_type_p.
2324 (f_language_data): Delete la_is_string_type_p initializer.
2325 (f_language::is_string_type_p): New member function,
2326 implementation from f_is_string_type_p.
2327 * go-lang.c (go_is_string_type_p): Delete function, implementation
2328 moved to go_language::is_string_type_p.
2329 (go_language_data): Delete la_is_string_type_p initializer.
2330 (go_language::is_string_type_p): New member function,
2331 implementation from go_is_string_type_p.
2332 * language.c (language_defn::is_string_type_p): Define new member
2333 function.
2334 (default_is_string_type_p): Make static, add comment copied from
2335 header file.
2336 (unknown_language_data): Delete la_is_string_type_p initializer.
2337 (unknown_language::is_string_type_p): New member function.
2338 (auto_language_data): Delete la_is_string_type_p initializer.
2339 (auto_language::is_string_type_p): New member function.
2340 * language.h (language_data): Delete la_is_string_type_p field.
2341 (language_defn::is_string_type_p): Declare new function.
2342 (default_is_string_type_p): Delete desclaration, move comment to
2343 definition.
2344 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2345 moved to m2_language::is_string_type_p.
2346 (m2_language_data): Delete la_is_string_type_p initializer.
2347 (m2_language::is_string_type_p): New member function,
2348 implementation from m2_is_string_type_p.
2349 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2350 initializer.
2351 * opencl-lang.c (opencl_language_data): Likewise.
2352 * p-lang.c (pascal_is_string_type_p): Delete function,
2353 implementation moved to pascal_language::is_string_type_p.
2354 (pascal_language_data): Delete la_is_string_type_p initializer.
2355 (pascal_language::is_string_type_p): New member function,
2356 implementation from pascal_is_string_type_p.
2357 * rust-lang.c (rust_is_string_type_p): Delete function,
2358 implementation moved to rust_language::is_string_type_p.
2359 (rust_language_data): Delete la_is_string_type_p initializer.
2360 (rust_language::is_string_type_p): New member function,
2361 implementation from rust_is_string_type_p.
2362 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2363 is_string_type_p.
2364
4ffc13fb
AB
23652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * ada-lang.c (ada_language_data): Delete la_print_typedef
2368 initializer.
2369 (ada_language::print_typedef): New member function.
2370 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2371 (cplus_language_data): Likewise.
2372 (asm_language_data): Likewise.
2373 (minimal_language_data): Likewise.
2374 * d-lang.c (d_language_data): Likewise.
2375 * f-lang.c (f_language_data): Likewise.
2376 (f_language::print_typedef): New member function.
2377 * go-lang.c (go_language_data): Delete la_print_typedef
2378 initializer.
2379 * language.c (language_defn::print_typedef): Define member
2380 function.
2381 (unknown_language_data): Delete la_print_typedef initializer.
2382 (unknown_language::print_typedef): New member function.
2383 (auto_language_data): Delete la_print_typedef initializer.
2384 (auto_language::print_typedef): New member function.
2385 * language.h (language_data): Delete la_print_typedef field.
2386 (language_defn::print_typedef): Declare new member function.
2387 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2388 (default_print_typedef): Delete declaration.
2389 * m2-lang.c (m2_language_data): Delete la_print_typedef
2390 initializer.
2391 (m2_language::print_typedef): New member function.
2392 * objc-lang.c (objc_language_data): Delete la_print_typedef
2393 initializer.
2394 * opencl-lang.c (opencl_language_data): Likewise.
2395 * p-lang.c (pascal_language_data): Likewise.
2396 (pascal_language::print_typedef): New member function.
2397 * rust-lang.c (rust_print_typedef): Delete function,
2398 implementation moved to rust_language::print_typedef.
2399 (rust_language): Delete la_print_typedef initializer.
2400 (rust_language::print_typedef): New member function,
2401 implementation from rust_print_typedef.
2402 * typeprint.c (default_print_typedef): Delete.
2403
d711ee67
AB
24042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2407 (ada_language::printstr): New member function.
2408 * c-lang.c (c_language_data): Delete la_printstr initializer.
2409 (cplus_language_data): Likewise.
2410 (asm_language_data): Likewise.
2411 (minimal_language_data): Likewise.
2412 * d-lang.c (d_language_data): Likewise.
2413 * f-lang.c (f_printstr): Rename to f_language::printstr.
2414 (f_language_data): Delete la_printstr initializer.
2415 (f_language::printstr): New member function, implementation from
2416 f_printstr.
2417 * go-lang.c (go_language_data): Delete la_printstr initializer.
2418 * language.c (language_defn::printstr): Define new member
2419 function.
2420 (unk_lang_printstr): Delete.
2421 (unknown_language_data): Delete la_printstr initializer.
2422 (unknown_language::printstr): New member function.
2423 (auto_language_data): Delete la_printstr initializer.
2424 (auto_language::printstr): New member function.
2425 * language.h (language_data): Delete la_printstr field.
2426 (language_defn::printstr): Declare new member function.
2427 (LA_PRINT_STRING): Update call to printstr.
2428 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2429 (m2_language_data): Delete la_printstr initializer.
2430 (m2_language::printstr): New member function, implementation from
2431 m2_printstr.
2432 * objc-lang.c (objc_language_data): Delete la_printstr
2433 initializer.
2434 * opencl-lang.c (opencl_language_data): Likewise.
2435 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2436 (pascal_language_data): Delete la_printstr initializer.
2437 (pascal_language::printstr): New member function, implementation
2438 from pascal_printstr.
2439 * p-lang.h (pascal_printstr): Delete declaration.
2440 * rust-lang.c (rust_printstr): Update header comment.
2441 (rust_language_data): Delete la_printstr initializer.
2442 (rust_language::printstr): New member function.
2443
52b50f2c
AB
24442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2447 (ada_language::printchar): New member function.
2448 * c-lang.c (c_language_data): Delete la_printchar initializer.
2449 (cplus_language_data): Likewise.
2450 (asm_language_data): Likewise.
2451 (minimal_language_data): Likewise.
2452 * d-lang.c (d_language_data): Likewise.
2453 * f-lang.c (f_printchar): Rename to f_language::printchar.
2454 (f_language_data): Delete la_printchar initializer.
2455 (f_language::printchar): New member function, implementation from
2456 f_printchar.
2457 * go-lang.c (go_language_data): Delete la_printchar initializer.
2458 * language.c (unk_lang_printchar): Delete.
2459 (language_defn::printchar): Define new member function.
2460 (unknown_language_data): Delete la_printchar initializer.
2461 (unknown_language::printchar): New member function.
2462 (auto_language_data): Delete la_printchar initializer.
2463 (auto_language::printchar): New member function.
2464 * language.h (language_data): Delete la_printchar field.
2465 (language_defn::printchar): Declare new member function.
2466 (LA_PRINT_CHAR): Update call to printchar.
2467 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2468 (m2_language::printchar): New member function.
2469 * objc-lang.c (objc_language_data): Delete la_printchar
2470 initializer.
2471 * opencl-lang.c (opencl_language_data): Likewise.
2472 * p-lang.c (pascal_language_data): Delete la_printchar
2473 initializer.
2474 (pascal_language::printchar): New member function.
2475 * rust-lang.c (rust_printchar): Rename to
2476 rust_language::printchar.
2477 (rust_language_data): Delete la_printchar initializer.
2478 (rust_language::printchar): New member function, implementation
2479 from rust_printchar.
2480
ec8cec5b
AB
24812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2484 (ada_language_data): Delete la_emitchar initializer.
2485 (ada_language::emitchar): New member function, implementation from
2486 emit_char.
2487 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2488 (cplus_language_data): Likewise.
2489 (asm_language_data): Likewise.
2490 (minimal_language_data): Likewise.
2491 * d-lang.c (d_language_data): Likewise.
2492 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2493 (f_language_data): Delete la_emitchar initializer.
2494 (f_language::emitchar): New member function, implementation from
2495 f_emit_char.
2496 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2497 * language.c (unk_lang_emit_char): Delete.
2498 (language_defn::emitchar): New member function definition.
2499 (unknown_language_data): Delete la_emitchar initializer.
2500 (unknown_language::emitchar): New member function.
2501 (auto_language_data): Delete la_emitchar initializer.
2502 (auto_language::emitchar): New member function.
2503 * language.h (language_data): Delete la_emitchar field.
2504 (language_defn::emitchar): New member field declaration.
2505 (LA_EMIT_CHAR): Update call to emitchar.
2506 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2507 (m2_language_data): Delete la_emitchar initializer.
2508 (m2_language::emitchar): New member function, implementation from
2509 m2_emit_char.
2510 * objc-lang.c (objc_language_data): Delete la_emitchar
2511 initializer.
2512 * opencl-lang.c (opencl_language_data): Likewise.
2513 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2514 (pascal_language_data): Delete la_emitchar initializer.
2515 (pascal_language::emitchar): New member function, implementation
2516 from pascal_emit_char.
2517 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2518 (rust_language_data): Delete la_emitchar initializer.
2519 (rust_language::emitchar): New member function, implementation
2520 from rust_emitchar.
2521
1bf9c363
AB
25222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2525 (ada_language_data): Delete la_post_parser initializer.
2526 (ada_language::post_parser): New member function.
2527 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2528 (cplus_language_data): Likewise.
2529 (asm_language_data): Likewise.
2530 (minimal_language_data): Likewise.
2531 * d-lang.c (d_language_data): Likewise.
2532 * f-lang.c (f_language_data): Likewise.
2533 * go-lang.c (go_language_data): Likewise.
2534 * language.c (unknown_language_data): Likewise.
2535 (auto_language_data): Likewise.
2536 * language.h (language_data): Delete la_post_parser field.
2537 (language_defn::post_parser): New member function.
2538 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2539 * objc-lang.c (objc_language_data): Likewise.
2540 * opencl-lang.c (opencl_language_data): Likewise.
2541 * p-lang.c (pascal_language_data): Likewise.
2542 * parse.c (parse_exp_in_context): Update call to post_parser.
2543 (null_post_parser): Delete definition.
2544 * parser-defs.h (null_post_parser): Delete declaration.
2545 * rust-lang.c (rust_language_data): Delete la_post_parser
2546 initializer.
2547
87afa652
AB
25482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * ada-lang.c (parse): Rename to ada_language::parser.
2551 (ada_language_data): Delete la_parser initializer.
2552 (ada_language::parser): New member function, implementation from
2553 parse.
2554 * c-lang.c (c_language_data): Delete la_parser initializer.
2555 (cplus_language_data): Likewise.
2556 (asm_language_data): Likewise.
2557 (minimal_language_data): Likewise.
2558 * d-lang.c (d_language_data): Likewise.
2559 (d_language::parser): New member function.
2560 * f-lang.c (f_language_data): Delete la_parser initializer.
2561 (f_language::parser): New member function.
2562 * go-lang.c (go_language_data): Delete la_parser initializer.
2563 (go_language::parser): New member function.
2564 * language.c (unk_lang_parser): Delete.
2565 (language_defn::parser): Define new member function.
2566 (unknown_language_data): Delete la_parser initializer.
2567 (unknown_language::parser): New member function.
2568 (auto_language_data): Delete la_parser initializer.
2569 (auto_language::parser): New member function.
2570 * language.h (language_data): Delete la_parser field.
2571 (language_defn::parser): Declare new member function.
2572 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2573 (m2_language::parser): New member function.
2574 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2575 * opencl-lang.c (opencl_language_data): Likewise.
2576 * p-lang.c (pascal_language_data): Likewise.
2577 (pascal_language::parser): New member function.
2578 * parse.c (parse_exp_in_context): Update call to parser.
2579 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2580 (rust_language::parser): New member function.
2581
37825800
AB
25822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * top.c (print_gdb_configuration): Print --with-python-libdir
2585 configuration value.
2586
5b860c93
PW
25872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2588
2589 * NEWS: Mention change to the alias command.
2590
cf00cd6f
PW
25912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2592
2593 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2594 (alias_command_completer)
2595 (make_alias_options_def_group): New functions.
2596 (alias_opts, alias_option_defs): New struct and array.
2597 (alias_usage_error): Update usage.
2598 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2599 Use option framework.
2600 (_initialize_cli_cmds): Update alias command help.
2601 Update aliases command help.
2602 (show_user):
2603 Add NULL for new default_args lookup_cmd argument.
2604 (valid_command_p): Rename to validate_aliased_command.
2605 Add NULL for new default_args lookup_cmd argument. Verify that the
2606 aliased_command has no default args.
2607 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2608 (lookup_cmd_1, lookup_cmd): New argument default_args.
2609 (add_alias_cmd):
2610 Add NULL for new default_args lookup_cmd argument.
2611 (print_help_for_command): Show default args under the layout
2612 alias some_alias = some_aliased_cmd some_alias_default_arg.
2613 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2614 xfree default_args in destructor.
2615 * cli/cli-script.c (process_next_line, do_define_command):
2616 Add NULL for new default_args lookup_cmd argument.
2617 * command.h: Declare new default_args argument in lookup_cmd
2618 and lookup_cmd_1.
2619 * completer.c (complete_line_internal_1):
2620 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2621 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2622 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2623 Likewise.
2624 * infcmd.c (_initialize_infcmd): Likewise.
2625 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2626 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2627 * python/py-param.c (add_setshow_generic): Likewise.
2628 * remote.c (_initialize_remote): Likewise.
2629 * top.c (execute_command): Prepend default_args if command has some.
2630 (set_verbose):
2631 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2632 * tracepoint.c (validate_actionline, encode_actions_1):
2633 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2634
bd920864
TBA
26352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2636
2637 * jit.c (jit_read_descriptor): Use bool as the return type.
2638 (jit_breakpoint_re_set_internal): Use bool as the return type.
2639 Invert the return value logic; return true if the jit breakpoint
2640 has been successfully initialized.
2641 (jit_inferior_init): Update the call to
2642 jit_breakpoint_re_set_internal.
2643
f8098322
PA
26442020-06-22 Pedro Alves <palves@redhat.com>
2645
2646 PR gdb/25939
2647 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2648 Use the current inferior instead. Don't return
2649 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2650 wait again.
2651 * sol-thread.c (sol_thread_target::wait): Don't reference
2652 inferior_ptid.
2653 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2654 (sol_update_thread_list_callback): Use the current inferior's pid
2655 instead of inferior_ptid.
2656
196535a6
RO
26572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2658
2659 * procfs.c: Cleanup many comments.
2660
2661 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2662 (AFTER_WATCHFLAG): Replace by value.
2663
2664 (MAIN_PROC_NAME_FORMAT): Inline ...
2665 (create_procinfo): ... here.
2666
2667 (procfs_debug_inferior): Remove SYS_exec handling.
2668 (syscall_is_exec): Likewise.
2669 (procfs_set_exec_trap): Likewise.
2670
2671 (syscall_is_lwp_exit): Inline in callers.
2672 (syscall_is_exit): Likewise.
2673 (syscall_is_exec): Likewise.
2674 (syscall_is_lwp_create): Likewise.
2675
2676 (invalidate_cache): Remove #if 0 code.
2677
2678 (make_signal_thread_runnable): Remove.
2679 (procfs_target::resume): Remove #if 0 code.
2680
cf6f3e86
RO
26812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2682
2683 PR gdb/25939
2684 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2685 call ...
2686 (procfs_target::create_inferior): ... here.
2687
48e9cc84
PW
26882020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2689
2690 * exec.c (validate_exec_file): Ensure the build-id is up to
2691 date by calling reopen_exec_file (that checks file timestamp
2692 to decide to re-read the file).
2693
3922b302
PA
26942020-06-18 Pedro Alves <palves@redhat.com>
2695
2696 PR gdb/25412
2697 * gdbthread.h (delete_thread, delete_thread_silent)
2698 (find_thread_ptid): Update comments.
2699 * thread.c (current_thread_): New global.
2700 (is_current_thread): Move higher, and reimplement.
2701 (inferior_thread): Reimplement.
2702 (set_thread_exited): Use bool. Add assertions.
2703 (add_thread_silent): Simplify thread-reuse handling by always
2704 calling delete_thread.
2705 (delete_thread): Remove intro comment.
2706 (find_thread_ptid): Skip exited threads.
2707 (switch_to_thread_no_regs): Write to current_thread_.
2708 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2709 INFERIOR_PTID. Clear current_thread_.
2710
6dbdab44
PA
27112020-06-18 Pedro Alves <palves@redhat.com>
2712
2713 * aix-thread.c (pd_update): Use switch_to_thread.
2714
2da4b788
PA
27152020-06-18 Pedro Alves <palves@redhat.com>
2716
2717 * ravenscar-thread.c (ravenscar_thread_target): Update.
2718 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2719 (ravenscar_thread_target::add_active_thread): ... this. Don't
2720 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2721 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2722
50838d1b
PA
27232020-06-18 Pedro Alves <palves@redhat.com>
2724
2725 * nat/windows-nat.c (current_windows_thread): Remove.
2726 * nat/windows-nat.h (current_windows_thread): Remove.
2727 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2728 Adjust.
2729 (display_selectors): Adjust to fetch the current
2730 windows_thread_info based on inferior_ptid.
2731 (fake_create_process): No longer write to current_windows_thread.
2732 (windows_nat_target::get_windows_debug_event):
2733 Don't set inferior_ptid or current_windows_thread.
2734 (windows_nat_target::wait): Adjust to not rely on
2735 current_windows_thread.
2736 (do_initial_windows_stuff): Now a method of windows_nat_target.
2737 Switch to the last_ptid thread.
2738 (windows_nat_target::attach): Adjust.
2739 (windows_nat_target::detach): Use switch_to_no_thread instead of
2740 writing to inferior_ptid directly.
2741 (windows_nat_target::create_inferior): Adjust.
2742
31ce04e9
PA
27432020-06-18 Pedro Alves <palves@redhat.com>
2744
2745 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2746
1ee1a363
PA
27472020-06-18 Pedro Alves <palves@redhat.com>
2748
2749 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2750 after creating it, instead of writing to inferior_ptid. Don't
2751 write to inferior_ptid.
2752
6d350754
PA
27532020-06-18 Pedro Alves <palves@redhat.com>
2754
2755 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2756
5d971d48
PA
27572020-06-18 Pedro Alves <palves@redhat.com>
2758
2759 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2760 it, instead of writing to inferior_ptid.
2761
86e57d1b
PA
27622020-06-18 Pedro Alves <palves@redhat.com>
2763
2764 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2765 to inferior_ptid.
2766
f2e1c129
PA
27672020-06-18 Pedro Alves <palves@redhat.com>
2768
2769 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2770 instead of writing to inferior_ptid directly.
2771
60db1b85
PA
27722020-06-18 Pedro Alves <palves@redhat.com>
2773
2774 * corelow.c (core_target::close): Use switch_to_no_thread instead
2775 of writing to inferior_ptid directly.
2776 (add_to_thread_list, core_target_open): Use switch_to_thread
2777 instead of writing to inferior_ptid directly.
2778
fe7d6a8d
PA
27792020-06-18 Pedro Alves <palves@redhat.com>
2780
2781 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2782 inferior_ptid.
2783 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2784 inferior_ptid.
2785 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2786 inferior_ptid directly.
2787 (darwin_nat_target::init_thread_list): Switch to thread, instead
2788 of writing to inferior_ptid.
2789 (darwin_nat_target::attach): Don't write to inferior_ptid.
2790 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2791
975f8708
PA
27922020-06-18 Pedro Alves <palves@redhat.com>
2793
2794 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2795 thread.
2796 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2797 Instead use switch_to_thread.
2798 (gnu_nat_target::detach): Use switch_to_no_thread
2799 instead of writing to inferior_ptid directly. Used passed-in
2800 inferior instead of looking up the inferior by pid.
2801
1a204730
PA
28022020-06-18 Pedro Alves <palves@redhat.com>
2803
2804 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2805 inferior_ptid.
2806
ebe84f23
PA
28072020-06-18 Pedro Alves <palves@redhat.com>
2808
2809 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2810 inferior_ptid.
2811 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2812 thread.
2813 (nto_procfs_target::detach): Avoid referencing
2814 inferior_ptid. Use switch_to_no_thread instead of writing to
2815 inferior_ptid directly.
2816 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2817 instead of writing to inferior_ptid directly.
2818 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2819 to thread.
2820
191f02e5
PA
28212020-06-18 Pedro Alves <palves@redhat.com>
2822
2823 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2824 after creating it, instead of writing to inferior_ptid.
2825 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2826 to inferior_ptid directly.
2827 (gdbsim_target::wait): Don't write to inferior_ptid.
2828
0ac55310
PA
28292020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * remote.c (remote_target::remote_notice_new_inferior): Use
2832 switch_to_thread instead of writing to inferior_ptid directly.
2833 (remote_target::add_current_inferior_and_thread): Use
2834 switch_to_no_thread instead of writing to inferior_ptid directly.
2835 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2836 and switch_to_thread instead of using set_current_inferior or
2837 writing to inferior_ptid directly.
2838
5233f39b
PA
28392020-06-18 Pedro Alves <palves@redhat.com>
2840
2841 * tracectf.c (ctf_target_open): Switch to added thread instead of
2842 writing to inferior_ptid directly.
2843 (ctf_target::close): Use switch_to_no_thread instead of writing to
2844 inferior_ptid directly.
2845
087e161b
PA
28462020-06-18 Pedro Alves <palves@redhat.com>
2847
2848 * tracefile-tfile.c (tfile_target_open): Don't write to
2849 inferior_ptid directly, instead switch to added thread.
2850 (tfile_target::close): Use switch_to_no_thread instead of writing
2851 to inferior_ptid directly.
2852
7fb43e53
PA
28532020-06-18 Pedro Alves <palves@redhat.com>
2854
2855 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2856 (procfs_target::detach): Use switch_to_no_thread
2857 instead of writing to inferior_ptid directly.
2858 (do_attach): Change return type to void. Switch to the added
2859 thread.
2860 (procfs_target::create_inferior): Switch to the added thread.
2861 (procfs_do_thread_registers): Don't write to inferior_ptid.
2862
18493a00
PA
28632020-06-18 Pedro Alves <palves@redhat.com>
2864
2865 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2866 of writing to inferior_ptid.
2867 (scoped_restore_exited_inferior): Delete.
2868 (handle_vfork_child_exec_or_exit): Simplify using
2869 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2870 instead of writing to inferior_ptid.
2871 (THREAD_STOPPED_BY): Delete.
2872 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2873 (thread_stopped_by_hw_breakpoint): Delete.
2874 (save_waitstatus): Use
2875 scoped_restore_current_thread+switch_to_thread, and call
2876 target_stopped_by_watchpoint instead of
2877 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2878 instead of thread_stopped_by_sw_breakpoint, and
2879 target_stopped_by_hw_breakpoint instead of
2880 thread_stopped_by_hw_breakpoint.
2881 (handle_inferior_event)
2882 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2883 inferior_ptid directly, nor
2884 set_current_inferior/set_current_program_space. Use
2885 switch_to_thread / switch_to_inferior_no_thread instead.
2886
a0776b13
PA
28872020-06-18 Pedro Alves <palves@redhat.com>
2888
2889 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2890 instead of writing to inferior_ptid.
2891
6155c136
PA
28922020-06-18 Pedro Alves <palves@redhat.com>
2893
2894 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2895 added thread.
2896 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2897 to the added thread.
2898 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2899 instead of writing to inferior_ptid.
2900
c5316fc6
PA
29012020-06-18 Pedro Alves <palves@redhat.com>
2902
2903 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2904 (register_to_value_test): Mock a program_space too. Heap-allocate
2905 the address space. Don't write to inferior_ptid. Use
2906 switch_to_thread instead.
2907
8df01799
PA
29082020-06-18 Pedro Alves <palves@redhat.com>
2909
2910 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2911 Delete.
2912 (find_signalled_thread()): New, factored out from
2913 linux_make_corefile_notes and adjusted to handle exited threads.
2914 (linux_make_corefile_notes): Adjust to use the new
2915 find_signalled_thread.
2916
41792d68
PA
29172020-06-18 Pedro Alves <palves@redhat.com>
2918
2919 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2920 of saving/restoring inferior_ptid.
2921
612f258a
TT
29222020-06-17 Tom Tromey <tom@tromey.com>
2923
2924 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2925 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2926 declare.
2927 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2928
efb763a5
SM
29292020-06-15 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2932 of partial symtabs.
2933
2951f6c0
SM
29342020-06-17 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * regformats/reg-arm.dat: Remove.
2937 * regformats/reg-bfin.dat: Remove.
2938 * regformats/reg-cris.dat: Remove.
2939 * regformats/reg-crisv32.dat: Remove.
2940 * regformats/reg-m32r.dat: Remove.
2941 * regformats/reg-tilegx.dat: Remove.
2942 * regformats/reg-tilegx32.dat: Remove.
2943
7d458ea5
SM
29442020-06-17 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * features/Makefile (WHICH): Remove arm files.
2947 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2948 * regformats/arm/arm-with-neon.dat: Remove.
2949 * regformats/arm/arm-with-vfpv2.dat: Remove.
2950 * regformats/arm/arm-with-vfpv3.dat: Remove.
2951
3af96c0d
SM
29522020-06-17 Simon Marchi <simon.marchi@efficios.com>
2953
2954 * features/Makefile (XMLTOC): Remove rx.xml.
2955
b25e22fd
PA
29562020-06-17 Pedro Alves <palves@redhat.com>
2957
2958 * gdbthread.h (thread_control_state) <trap_expected> Update
2959 comments.
2960
a78a19b1
AB
29612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2964 ada_language::lookup_symbol_nonlocal.
2965 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2966 (ada_language::lookup_symbol_nonlocal): New member function,
2967 implementation from ada_lookup_symbol_nonlocal.
2968 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2969 initializer.
2970 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2971 initializer.
2972 (cplus_language::lookup_symbol_nonlocal): New member function.
2973 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2974 (minimal_language_data) Likewise.
2975 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2976 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2977 initializer.
2978 (d_language::lookup_symbol_nonlocal): New member function.
2979 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2980 initializer.
2981 (f_language::lookup_symbol_nonlocal): New member function.
2982 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2983 initializer.
2984 * language.c (unknown_language_data): Likewise.
2985 (auto_language_data): Likewise.
2986 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2987 field.
2988 (language_defn::lookup_symbol_nonlocal): New member function.
2989 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2990 initializer.
2991 * objc-lang.c (objc_language_data): Likewise.
2992 * opencl-lang.c (opencl_language_data): Likewise.
2993 * p-lang.c (pascal_language_data): Likewise.
2994 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2995 rust_language::lookup_symbol_nonlocal.
2996 (rust_language_data): Delete la_lookup_symbol_nonlocal
2997 initializer.
2998 (rust_language::lookup_symbol_nonlocal): New member function,
2999 implementation from rust_lookup_symbol_nonlocal.
3000 * symtab.c (lookup_symbol_aux): Update call to
3001 lookup_symbol_nonlocal.
3002 (basic_lookup_symbol_nonlocal): Rename to...
3003 (language_defn::lookup_symbol_nonlocal): ...this, and update
3004 header comment. Remove language_defn parameter, and replace with
3005 uses of `this'.
3006 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3007
ebe2334e
AB
30082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3011 initializer.
3012 (ada_language::value_print_inner): New member function.
3013 * c-lang.c (c_language_data): Delete la_value_print_inner
3014 initializer.
3015 (cplus_language_data): Likewise.
3016 (asm_language_data): Likewise.
3017 (minimal_language_data): Likewise.
3018 * d-lang.c (d_language_data): Likewise.
3019 (d_language::value_print_inner): New member function.
3020 * f-lang.c (f_language_data): Delete la_value_print_inner
3021 initializer.
3022 (f_language::value_print_inner): New member function.
3023 * f-lang.h (f_value_print_innner): Rename to...
3024 (f_value_print_inner): ...this (note spelling of 'inner').
3025 * f-valprint.c (f_value_print_innner): Rename to...
3026 (f_value_print_inner): ...this (note spelling of 'inner').
3027 * go-lang.c (go_language_data): Delete la_value_print_inner
3028 initializer.
3029 (go_language::value_print_inner): New member function.
3030 * language.c (language_defn::value_print_inner): Define new member
3031 function.
3032 (unk_lang_value_print_inner): Delete.
3033 (unknown_language_data): Delete la_value_print_inner initializer.
3034 (unknown_language::value_print_inner): New member function.
3035 (auto_language_data): Delete la_value_print_inner initializer.
3036 (auto_language::value_print_inner): New member function.
3037 * language.h (language_data): Delete la_value_print_inner field.
3038 (language_defn::value_print_inner): Delcare new member function.
3039 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3040 initializer.
3041 (m2_language::value_print_inner): New member function.
3042 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3043 initializer.
3044 * opencl-lang.c (opencl_language_data): Likewise.
3045 * p-lang.c (pascal_language_data): Likewise.
3046 (pascal_language::value_print_inner): New member function.
3047 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3048 initializer.
3049 (rust_language::value_print_inner): New member function.
3050 * valprint.c (do_val_print): Update call to value_print_inner.
3051
a1d1fa3e
AB
30522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 * ada-lang.c (ada_language_data): Delete la_value_print
3055 initializer.
3056 (ada_language::value_print): New member function.
3057 * c-lang.c (c_language_data): Delete la_value_print initializer.
3058 (cplus_language_data): Likewise.
3059 (asm_language_data): Likewise.
3060 (minimal_language_data): Likewise.
3061 * d-lang.c (d_language_data): Likewise.
3062 * f-lang.c (f_language_data): Likewise.
3063 * go-lang.c (go_language_data): Likewise.
3064 * language.c (unk_lang_value_print): Delete.
3065 (language_defn::value_print): Define new member function.
3066 (unknown_language_data): Delete la_value_print initializer.
3067 (unknown_language::value_print): New member function.
3068 (auto_language_data): Delete la_value_print initializer.
3069 (auto_language::value_print): New member function.
3070 * language.h (language_data): Delete la_value_print field.
3071 (language_defn::value_print): Declare new member function.
3072 (LA_VALUE_PRINT): Update call to value_print.
3073 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3074 * objc-lang.c (objc_language_data): Likewise.
3075 * opencl-lang.c (opencl_language_data): Likewise.
3076 * p-lang.c (pascal_language_data): Likewise.
3077 (pascal_language::value_print): New member function.
3078 * rust-lang.c (rust_language_data): Delete la_value_print
3079 initializer.
3080
f16a9f57
AB
30812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * ada-lang.c (ada_watch_location_expression): Rename to
3084 ada_language::watch_location_expression.
3085 (ada_language_data): Delete la_watch_location_expression
3086 initializer.
3087 (ada_language::watch_location_expression): New member function,
3088 implementation from ada_watch_location_expression.
3089 * breakpoint.c (watch_command_1): Update call to
3090 watch_location_expression.
3091 * c-lang.c (c_watch_location_expression): Rename to
3092 language_defn::watch_location_expression.
3093 (c_language_data): Delete la_watch_location_expression
3094 initializer.
3095 (cplus_language_data): Likewise.
3096 (asm_language_data): Likewise.
3097 (minimal_language_data): Likewise.
3098 * c-lang.h (c_watch_location_expression): Delete declaration.
3099 * d-lang.c (d_language_data): Delete la_watch_location_expression
3100 initializer.
3101 * f-lang.c (f_language_data): Likewise.
3102 * go-lang.c (go_language_data): Likewise.
3103 * language.c (language_defn::watch_location_expression): Member
3104 function implementation from c_watch_location_expression.
3105 (unknown_language_data): Delete la_watch_location_expression
3106 initializer.
3107 (auto_language_data): Likewise.
3108 * language.h (language_data): Delete la_watch_location_expression
3109 field.
3110 (language_defn::watch_location_expression): Declare new member
3111 function.
3112 * m2-lang.c (m2_language_data): Delete
3113 la_watch_location_expression initializer.
3114 * objc-lang.c (objc_language_data): Likewise.
3115 * opencl-lang.c (opencl_language_data): Likewise.
3116 * p-lang.c (pascal_language_data): Likewise.
3117 * rust-lang.c (rust_watch_location_expression): Rename to
3118 rust_language::watch_location_expression.
3119 (rust_language_data): Delete la_watch_location_expression
3120 initializer.
3121 (rust_language::watch_location_expression): New member function,
3122 implementation from rust_watch_location_expression.
3123
7e56227d
AB
31242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3127 ada_language::collect_symbol_completion_matches.
3128 (ada_language_data): Delete la_collect_symbol_completion_matches
3129 initializer.
3130 (ada_language::collect_symbol_completion_matches): New member
3131 function, implementation from
3132 ada_collect_symbol_completion_matches.
3133 * c-lang.c (c_language_data): Delete
3134 la_collect_symbol_completion_matches initializer.
3135 (cplus_language_data): Likewise.
3136 (asm_language_data): Likewise.
3137 (minimal_language_data): Likewise.
3138 * d-lang.c (d_language_data): Likewise.
3139 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3140 f_language::collect_symbol_completion_matches.
3141 (f_language_data): Delete la_collect_symbol_completion_matches
3142 initializer.
3143 (f_language::collect_symbol_completion_matches) New member
3144 function, implementation from f_collect_symbol_completion_matches.
3145 * go-lang.c (go_language_data): Delete
3146 la_collect_symbol_completion_matches initializer.
3147 * language.c (unknown_language_data): Likewise.
3148 (auto_language_data): Likewise.
3149 * language.h (language_data): Delete
3150 la_collect_symbol_completion_matches field.
3151 (language_defn::collect_symbol_completion_matches): New member
3152 function.
3153 * m2-lang.c (m2_language_data): Delete
3154 la_collect_symbol_completion_matches initializer.
3155 * objc-lang.c (objc_language_data): Likewise.
3156 * opencl-lang.c (opencl_language_data): Likewise.
3157 * p-lang.c (pascal_language_data): Likewise.
3158 * rust-lang.c (rust_language_data): Likewise.
3159 * symtab.c (default_collect_symbol_completion_matches): Delete.
3160 (collect_symbol_completion_matches): Update call to
3161 collect_symbol_completion_matches.
3162 (collect_symbol_completion_matches_type): Likewise.
3163 * symtab.h (default_collect_symbol_completion_matches): Delete
3164 declaration.
3165
53fc67f8
AB
31662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3169 (ada_language_data): Delete la_word_break_characters initializer.
3170 (ada_language::word_break_characters): New member function.
3171 * c-lang.c (c_language_data): Delete la_word_break_characters
3172 initializer.
3173 (cplus_language_data): Likewise.
3174 (asm_language_data): Likewise.
3175 (minimal_language_data): Likewise.
3176 * completer.c: Update global comment.
3177 (advance_to_expression_complete_word_point): Update call to
3178 word_break_characters.
3179 (complete_files_symbols): Likewise.
3180 (complete_line_internal_1): Likewise.
3181 (default_completer_handle_brkchars): Likewise.
3182 (skip_quoted_chars): Likewise.
3183 * d-lang.c (d_language_data): Delete la_word_break_characters
3184 initializer.
3185 * f-lang.c (f_word_break_characters): Delete.
3186 (f_language_data): Delete la_word_break_characters initializer.
3187 (f_language::word_break_characters): New member function.
3188 * go-lang.c (go_language_data): Delete la_word_break_characters
3189 initializer.
3190 * language.c (unknown_language_data): Likewise.
3191 (auto_language_data): Likewise.
3192 * language.h (default_word_break_characters): Move declaration to
3193 earlier in the file.
3194 (language_data): Delete la_word_break_characters field.
3195 (language_defn::word_break_characters): New member function.
3196 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3197 initializer.
3198 * objc-lang.c (objc_language_data): Likewise.
3199 * opencl-lang.c (opencl_language_data): Likewise.
3200 * p-lang.c (pascal_language_data): Likewise.
3201 * rust-lang.c (rust_language_data): Likewise.
3202
c9debfb9
AB
32032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3204
3205 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3206 (ada_language_data): Delete la_get_symbol_name_matcher
3207 initializer.
3208 (language_defn::get_symbol_name_matcher_inner): New member
3209 function.
3210 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3211 initializer.
3212 (cplus_language_data): Likewise.
3213 (cplus_language::get_symbol_name_matcher_inner): New member
3214 function.
3215 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3216 (minimal_language_data): Likewise.
3217 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3218 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3219 initializer.
3220 * dictionary.c (iter_match_first_hashed): Update call to
3221 get_symbol_name_matcher.
3222 (iter_match_next_hashed): Likewise.
3223 (iter_match_next_linear): Likewise.
3224 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3225 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3226 initializer.
3227 (f_language::get_symbol_name_matcher_inner): New member function.
3228 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3229 initializer.
3230 * language.c (default_symbol_name_matcher): Update header comment,
3231 make static.
3232 (language_defn::get_symbol_name_matcher): New definition.
3233 (language_defn::get_symbol_name_matcher_inner): Likewise.
3234 (get_symbol_name_matcher): Delete.
3235 (unknown_language_data): Delete la_get_symbol_name_matcher
3236 initializer.
3237 (auto_language_data): Likewise.
3238 * language.h (language_data): Delete la_get_symbol_name_matcher
3239 field.
3240 (language_defn::get_symbol_name_matcher): New member function.
3241 (language_defn::get_symbol_name_matcher_inner): Likewise.
3242 (default_symbol_name_matcher): Delete declaration.
3243 * linespec.c (find_methods): Update call to
3244 get_symbol_name_matcher.
3245 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3246 initializer.
3247 * minsyms.c (lookup_minimal_symbol): Update call to
3248 get_symbol_name_matcher.
3249 (iterate_over_minimal_symbols): Likewise.
3250 * objc-lang.c (objc_language_data): Delete
3251 la_get_symbol_name_matcher initializer.
3252 * opencl-lang.c (opencl_language_data): Likewise.
3253 * p-lang.c (pascal_language_data): Likewise.
3254 * psymtab.c (psymbol_name_matches): Update call to
3255 get_symbol_name_matcher.
3256 * rust-lang.c (rust_language_data): Delete
3257 la_get_symbol_name_matcher initializer.
3258 * symtab.c (symbol_matches_search_name): Update call to
3259 get_symbol_name_matcher.
3260 (compare_symbol_name): Likewise.
3261
9a49ad8c
AB
32622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3263
3264 * ada-lang.c (ada_language_data): Delete la_compute_program
3265 initializer.
3266 * c-lang.c (c_language_data): Likewise.
3267 (c_language::compute_program): New member function.
3268 (cplus_language_data): Delete la_compute_program initializer.
3269 (cplus_language::compute_program): New member function.
3270 (asm_language_data): Delete la_compute_program initializer.
3271 (minimal_language_data): Likewise.
3272 * c-lang.h (c_compute_program): Update comment.
3273 (cplus_compute_program): Likewise.
3274 * compile/compile-c-support.c (c_compute_program): Likewise.
3275 (cplus_compute_program): Likewise.
3276 * compile/compile.c (compile_to_object): Update call to
3277 la_compute_program.
3278 * d-lang.c (d_language_data): Delete la_compute_program
3279 initializer.
3280 * f-lang.c (f_language_data): Likewise.
3281 * go-lang.c (go_language_data): Likewise.
3282 * language.c (unknown_language_data): Likewise.
3283 (auto_language_data): Likewise.
3284 * language.h (language_data): Delete la_compute_program field.
3285 (language_defn::compute_program): New member function.
3286 * m2-lang.c (m2_language_data): Delete la_compute_program
3287 initializer.
3288 * objc-lang.c (objc_language_data): Likewise.
3289 * opencl-lang.c (opencl_language_data): Likewise.
3290 * p-lang.c (pascal_language_data): Likewise.
3291 * rust-lang.c (rust_language_data): Likewise.
3292
eff93b4d
AB
32932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 * ada-lang.c (ada_language_data) Delete
3296 la_class_name_from_physname initializer.
3297 * c-lang.c (c_language_data): Likewise.
3298 (cplus_language_data): Likewise.
3299 (cplus_language::class_name_from_physname): New member function.
3300 (asm_language_data): Delete la_class_name_from_physname
3301 initializer.
3302 (minimal_language_data): Likewise.
3303 * d-lang.c (d_language_data): Likewise.
3304 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3305 method on language_defn class.
3306 (guess_full_die_structure_name): Likewise.
3307 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3308 initializer.
3309 * go-lang.c (go_language_data): Likewise.
3310 * language.c (language_class_name_from_physname): Delete.
3311 (unk_lang_class_name): Delete.
3312 (unknown_language_data): Delete la_class_name_from_physname
3313 initializer.
3314 (auto_language_data): Likewise.
3315 * language.h (language_data): Delete la_class_name_from_physname
3316 field.
3317 (language_defn::class_name_from_physname): New function.
3318 (language_class_name_from_physname): Delete declaration.
3319 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3320 initializer.
3321 * objc-lang.c (objc_language_data): Likewise.
3322 * opencl-lang.c (opencl_language_data): Likewise.
3323 * p-lang.c (pascal_language_data): Likewise.
3324 * rust-lang.c (rust_language_data): Likewise.
3325
de543742
TT
33262020-06-16 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-data.h (STATUS_NAME): New macro.
3329 * tui/tui-layout.c (tui_remove_some_windows)
3330 (initialize_known_windows, tui_register_window)
3331 (tui_layout_split::remove_windows, initialize_layouts)
3332 (tui_new_layout_command): Don't use hard-coded window names.
3333
a350efd4
TT
33342020-06-16 Tom Tromey <tom@tromey.com>
3335
3336 PR tui/25348:
3337 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3338 tui_initialize_readline. Only run once. Call rl_initialize.
3339 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3340 tui_initialize_readline.
3341 * tui/tui-io.c (tui_setup_io): Call
3342 tui_ensure_readline_initialized.
3343 * tui/tui-interp.c (tui_interp::init): Update.
3344
39ec0490
TT
33452020-06-16 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3348 Also preserve the status window.
3349
d2d1ea20
TT
33502020-06-16 Tom Tromey <tom@tromey.com>
3351
3352 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3353 where m_window==nullptr.
3354
66920317
TT
33552020-06-15 Tom Tromey <tromey@adacore.com>
3356
3357 * windows-nat.c (windows_nat::handle_output_debug_string):
3358 Update.
3359 (windows_nat::handle_ms_vc_exception): Update.
3360 * target.h (target_read_string): Change API.
3361 * target.c (target_read_string): Change API.
3362 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3363 Update.
3364 * solib-frv.c (frv_current_sos): Update.
3365 * solib-dsbt.c (dsbt_current_sos): Update.
3366 * solib-darwin.c (darwin_current_sos): Update.
3367 * linux-thread-db.c (inferior_has_bug): Update.
3368 * expprint.c (print_subexp_standard): Update.
3369 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3370 (ada_exception_message_1): Update.
3371
a5d871dd
TT
33722020-06-15 Tom Tromey <tromey@adacore.com>
3373
3374 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3375
670e35fa
TT
33762020-06-15 Tom Tromey <tromey@adacore.com>
3377
3378 * valprint.c (read_string): Update comment.
3379 * target.c (MIN): Remove.
3380 (target_read_string): Rewrite.
3381
f5272a3b
TT
33822020-06-15 Tom Tromey <tromey@adacore.com>
3383
3384 * corefile.c (read_memory_string): Remove.
3385 * ada-valprint.c (ada_value_print_ptr): Update.
3386 * ada-lang.h (ada_tag_name): Change return type.
3387 * ada-lang.c (type_from_tag): Update.
3388 (ada_tag_name_from_tsd): Change return type. Use
3389 target_read_string.
3390 (ada_tag_name): Likewise.
3391 * gdbcore.h (read_memory_string): Don't declare.
3392
2c074f49
HD
33932020-06-14 Hannes Domani <ssbssa@yahoo.de>
3394
3395 * symtab.c (rbreak_command): Ignore Windows drive colon.
3396
6a17d503
SM
33972020-06-12 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * NEWS: Mention removed GDBserver host support.
3400
453c733f
NC
34012020-06-12 Nelson Chu <nelson.chu@sifive.com>
3402
3403 * features/riscv/rebuild-csr-xml.sh: Updated.
3404
2b4e6a3f
TT
34052020-06-11 Tom Tromey <tom@tromey.com>
3406
3407 PR gdb/18318:
3408 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3409
4412332f
JG
34102020-06-09 Jonny Grant <jg@jguk.org>
34112020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * main.c (captured_main_1): Don't print new line after help.
3414 (print_gdb_help): add mailing list and IRC channel information
3415 to --help. Add new lines between items in the footer. Remove
3416 quotes around bug url.
3417
2f33032a
KS
34182020-06-11 Keith Seitz <keiths@redhat.com>
3419
3420 PR gdb/21356
3421 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3422 Resolve typedefs for type length calculations.
3423
7ab96794
TV
34242020-06-10 Tom de Vries <tdevries@suse.de>
3425
3426 PR ada/24713
3427 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3428 (write_psymbols): Enable .gdb_index for ada.
3429 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3430 ada.
3431
e5f3ece2
TV
34322020-06-10 Tom de Vries <tdevries@suse.de>
3433
3434 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3435 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3436 namei" instead of "const char *name" argument.
3437 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3438 dw2_symtab_iter_init.
3439
940da03e
SM
34402020-06-08 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3443 to use type::field and field::type instead.
3444
b6cdac4b
SM
34452020-06-08 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3448 to use field::type instead.
3449
5d14b6e5
SM
34502020-06-08 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * gdbtypes.h (struct field) <type, set_type>: New methods.
3453 Rename `type` field to...
3454 <m_type>: ... this. Change references throughout to use type or
3455 set_type methods.
3456 (FIELD_TYPE): Use field::type. Change call sites that modify
3457 the field's type to use field::set_type instead.
3458
3d967001
SM
34592020-06-08 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3462 to use type::index_type instead.
3463
262abc0d
SM
34642020-06-08 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3467 methods.
3468 (TYPE_INDEX_TYPE): Use type::index_type.
3469 * gdbtypes.c (create_array_type_with_stride): Likewise.
3470
82836c92
TT
34712020-06-07 Tom Tromey <tom@tromey.com>
3472
3473 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3474 parameter.
3475 (generic_value_print): Update.
3476
940dace9
AB
34772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 Revert commit 982a38f60b0.
3480 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3481
982a38f6
AB
34822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3485 avoid use after free.
3486
82f06518
TV
34872020-06-05 Tom de Vries <tdevries@suse.de>
3488
3489 * NEWS: Fix typos.
3490
f8c41851
SM
34912020-06-04 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3494 the per_bfd object.
3495 (dwarf2_read_debug_names): Likewise.
3496 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3497 object when re-using a per_bfd object with an index.
3498
f9b5d5ea
TV
34992020-06-03 Tom de Vries <tdevries@suse.de>
3500
3501 PR symtab/26046
3502 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3503 children for C++.
3504 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3505 DW_TAG_subprogram.
3506
f6eee2d0
AB
35072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * ada-lang.c (ada_language_data): Delete skip_trampoline
3510 initializer.
3511 * c-lang.c (c_language_data): Likewise.
3512 (cplus_language_data): Likewise.
3513 (cplus_language::skip_trampoline): New member function.
3514 (asm_language_data): Delete skip_trampoline initializer.
3515 (minimal_language_data): Likewise.
3516 * d-lang.c (d_language_data): Likewise.
3517 * f-lang.c (f_language_data): Likewise.
3518 * go-lang.c (go_language_data): Likewise.
3519 * language.c (unk_lang_trampoline): Delete function.
3520 (skip_language_trampoline): Update.
3521 (unknown_language_data): Delete skip_trampoline initializer.
3522 (auto_language_data): Likewise.
3523 * language.h (language_data): Delete skip_trampoline field.
3524 (language_defn::skip_trampoline): New function.
3525 * m2-lang.c (m2_language_data): Delete skip_trampoline
3526 initializer.
3527 * objc-lang.c (objc_skip_trampoline): Delete function, move
3528 implementation to objc_language::skip_trampoline.
3529 (objc_language_data): Delete skip_trampoline initializer.
3530 (objc_language::skip_trampoline): New member function with
3531 implementation from objc_skip_trampoline.
3532 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3533 initializer.
3534 * p-lang.c (pascal_language_data): Likewise.
3535 * rust-lang.c (rust_language_data): Likewise.
3536
0a50df5d
AB
35372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3538
3539 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3540 (ada_language::demangle): New member function.
3541 * c-lang.c (c_language_data): Delete la_demangle initializer.
3542 (cplus_language_data): Delete la_demangle initializer.
3543 (cplus_language::demangle): New member function.
3544 (asm_language_data): Delete la_demangle initializer.
3545 (minimal_language_data): Delete la_demangle initializer.
3546 * d-lang.c (d_language_data): Delete la_demangle initializer.
3547 (d_language::demangle): New member function.
3548 * f-lang.c (f_language_data): Delete la_demangle initializer.
3549 (f_language::demangle): New member function.
3550 * go-lang.c (go_language_data): Delete la_demangle initializer.
3551 (go_language::demangle): New member function.
3552 * language.c (language_demangle): Update.
3553 (unk_lang_demangle): Delete.
3554 (unknown_language_data): Delete la_demangle initializer.
3555 (unknown_language::demangle): New member function.
3556 (auto_language_data): Delete la_demangle initializer.
3557 (auto_language::demangle): New member function.
3558 * language.h (language_data): Delete la_demangle field.
3559 (language_defn::demangle): New function.
3560 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3561 * objc-lang.c (objc_language_data): Delete la_demangle
3562 initializer.
3563 (objc_language::demangle): New member function.
3564 * opencl-lang.c (opencl_language_data): Delete la_demangle
3565 initializer.
3566 * p-lang.c (pascal_language_data): Likewise.
3567 * rust-lang.c (rust_language_data): Likewise.
3568 (rust_language::demangle): New member function.
3569
fbfb0a46
AB
35702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3571
3572 * ada-lang.c (ada_language_data): Delete la_print_type
3573 initializer.
3574 (ada_language::print_type): New member function.
3575 * c-lang.c (c_language_data): Delete la_print_type initializer.
3576 (c_language::print_type): New member function.
3577 (cplus_language_data): Delete la_print_type initializer.
3578 (cplus_language::print_type): New member function.
3579 (asm_language_data): Delete la_print_type initializer.
3580 (asm_language::print_type): New member function.
3581 (minimal_language_data): Delete la_print_type initializer.
3582 (minimal_language::print_type): New member function.
3583 * d-lang.c (d_language_data): Delete la_print_type initializer.
3584 (d_language::print_type): New member function.
3585 * f-lang.c (f_language_data): Delete la_print_type initializer.
3586 (f_language::print_type): New member function.
3587 * go-lang.c (go_language_data): Delete la_print_type initializer.
3588 (go_language::print_type): New member function.
3589 * language.c (unk_lang_print_type): Delete.
3590 (unknown_language_data): Delete la_print_type initializer.
3591 (unknown_language::print_type): New member function.
3592 (auto_language_data): Delete la_print_type initializer.
3593 (auto_language::print_type): New member function.
3594 * language.h (language_data): Delete la_print_type field.
3595 (language_defn::print_type): New function.
3596 (LA_PRINT_TYPE): Update.
3597 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3598 (m2_language::print_type): New member function.
3599 * objc-lang.c (objc_language_data): Delete la_print_type
3600 initializer.
3601 (objc_language::print_type): New member function.
3602 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3603 to opencl_language::print_type.
3604 (opencl_language_data): Delete la_print_type initializer.
3605 (opencl_language::print_type): New member function, implementation
3606 from opencl_print_type.
3607 * p-lang.c (pascal_language_data): Delete la_print_type
3608 initializer.
3609 (pascal_language::print_type): New member function.
3610 * rust-lang.c (rust_print_type): Delete, implementation moved to
3611 rust_language::print_type.
3612 (rust_language_data): Delete la_print_type initializer.
3613 (rust_language::print_type): New member function, implementation
3614 from rust_print_type.
3615
6f827019
AB
36162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3617
3618 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3619 implementation moves to...
3620 (ada_language::sniff_from_mangled_name): ...here. Update return
3621 type.
3622 (ada_language_data): Delete la_sniff_from_mangled_name
3623 initializer.
3624 * c-lang.c (c_language_data): Likewise.
3625 (cplus_language_data): Likewise.
3626 (cplus_language::sniff_from_mangled_name): New member function,
3627 implementation taken from gdb_sniff_from_mangled_name.
3628 (asm_language_data): Delete la_sniff_from_mangled_name
3629 initializer.
3630 (minimal_language_data): Likewise.
3631 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3632 implementation moves to cplus_language::sniff_from_mangled_name.
3633 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3634 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3635 moves to...
3636 (d_language::sniff_from_mangled_name): ...here.
3637 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3638 * f-lang.c (f_language_data): Likewise.
3639 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3640 moves to...
3641 (go_language::sniff_from_mangled_name): ...here.
3642 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3643 * language.c (language_sniff_from_mangled_name): Delete.
3644 (unknown_language_data): Delete la_sniff_from_mangled_name
3645 initializer.
3646 (auto_language_data): Likewise.
3647 * language.h (language_data): Delete la_sniff_from_mangled_name
3648 field.
3649 (language_defn::sniff_from_mangled_name): New function.
3650 (language_sniff_from_mangled_name): Delete declaration.
3651 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3652 field.
3653 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3654 implementation moves to...
3655 (objc_language::sniff_from_mangled_name): ...here.
3656 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3657 * opencl-lang.c (opencl_language_data): Likewise.
3658 * p-lang.c (pascal_language_data): Likewise.
3659 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3660 implementation moves to...
3661 (rust_language::sniff_from_mangled_name): ...here.
3662 (rust_language_data): Delete la_sniff_from_mangled_name
3663 initializer.
3664 * symtab.c (symbol_find_demangled_name): Call
3665 sniff_from_mangled_name member function.
3666
fb8006fd
AB
36672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3668
3669 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3670 initializer.
3671 * c-lang.c (c_language_data): Likewise.
3672 (cplus_language_data): Likewise.
3673 (cplus_language::search_name_hash): New member function.
3674 (asm_language_data): Delete la_search_name_hash initializer.
3675 (minimal_language_data): Likewise.
3676 * d-lang.c (d_language_data): Likewise.
3677 * dictionary.c (default_search_name_hash): Rename to...
3678 (language_defn::search_name_hash): ...this.
3679 * f-lang.c (f_language_data): Likewise.
3680 (f_language::search_name_hash): New member function.
3681 * go-lang.c (go_language_data): Delete la_search_name_hash
3682 initializer.
3683 * language.c (unknown_language_data): Likewise.
3684 (auto_language_data): Likewise.
3685 * language.h (struct language_data): Delete la_search_name_hash
3686 field.
3687 (language_defn::search_name_hash): Declare new member function.
3688 (default_search_name_hash): Delete declaration.
3689 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3690 initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 * opencl-lang.c (opencl_language_data): Likewise.
3693 * p-lang.c (pascal_language_data): Likewise.
3694 * rust-lang.c (rust_language_data): Likewise.
3695 * symtab.c (search_name_hash): Update call.
3696
8e25bafe
AB
36972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3700 initializer.
3701 * c-lang.c (class compile_instance): Declare.
3702 (c_language_data): Delete la_get_compile_instance initializer.
3703 (c_language::get_compile_instance): New member function.
3704 (cplus_language_data): Delete la_get_compile_instance initializer.
3705 (cplus_language::get_compile_instance): New member function.
3706 (asm_language_data): Delete la_get_compile_instance initializer.
3707 (minimal_language_data): Likewise.
3708 * c-lang.h (c_get_compile_context): Update comment.
3709 (cplus_get_compile_context): Update comment.
3710 * compile/compile.c (compile_to_object): Update calls, don't rely
3711 on function pointer being NULL.
3712 * d-lang.c (d_language_data): Delete la_get_compile_instance
3713 initializer.
3714 * f-lang.c (f_language_data): Likewise.
3715 * go-lang.c (go_language_data): Likewise.
3716 * language.c (unknown_language_data): Likewise.
3717 (auto_language_data): Likewise.
3718 * language.h (language_data): Delete la_get_compile_instance field.
3719 (language_defn::get_compile_instance): New member function.
3720 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3721 initializer.
3722 * objc-lang.c (objc_language_data): Likewise.
3723 * opencl-lang.c (opencl_language_data): Likewise.
3724 * p-lang.c (pascal_language_data): Likewise.
3725 * rust-lang.c (rust_language_data): Likewise.
3726
4009ee92
AB
37272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * ada-lang.c (ada_add_all_symbols): Update comment.
3730 (ada_iterate_over_symbols): Delete, move implementation to...
3731 (ada_language::iterate_over_symbols): ...here, a new member
3732 function, rewrite to use range based for loop.
3733 (ada_language_data): Delete la_iterate_over_symbols initializer.
3734 * c-lang.c (c_language_data): Likewise.
3735 (cplus_language_data): Likewise.
3736 (asm_language_data): Likewise.
3737 (minimal_language_data): Likewise.
3738 * d-lang.c (d_language_data): Likewise.
3739 * f-lang.c (f_language_data): Likewise.
3740 * go-lang.c (go_language_data): Likewise.
3741 * language.c (unknown_language_data): Likewise.
3742 (auto_language_data): Likewise.
3743 * language.h (language_data): Delete la_iterate_over_symbols field.
3744 (language_defn::iterate_over_symbols): New member function.
3745 (LA_ITERATE_OVER_SYMBOLS): Update.
3746 * linespec.c (iterate_over_all_matching_symtabs): Update.
3747 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3748 initializer.
3749 * objc-lang.c (objc_language_data): Likewise.
3750 * opencl-lang.c (opencl_language_data): Likewise.
3751 * p-lang.c (pascal_language_data): Likewise.
3752 * rust-lang.c (rust_language_data): Likewise.
3753
54f4ca46
AB
37542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * ada-lang.c (ada_language_data): Delete
3757 la_lookup_transparent_type initializer.
3758 * c-lang.c (c_language_data): Likewise.
3759 (cplus_language_data): Likewise.
3760 (cplus_language::lookup_transparent_type): New member function.
3761 (asm_language_data): Delete la_lookup_transparent_type
3762 initializer.
3763 (minimal_language_data): Likewise.
3764 * d-lang.c (d_language_data): Likewise.
3765 * f-lang.c (f_language_data): Likewise.
3766 * go-lang.c (go_language_data): Likewise.
3767 * language.c (unknown_language_data): Likewise.
3768 (auto_language_data): Likewise.
3769 * language.h (struct language_data): Delete
3770 la_lookup_transparent_type field.
3771 (language_defn::lookup_transparent_type): New member function.
3772 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3773 initializer.
3774 * objc-lang.c (objc_language_data): Likewise.
3775 * opencl-lang.c (opencl_language_data): Likewise.
3776 * p-lang.c (pascal_language_data): Likewise.
3777 * rust-lang.c (rust_language_data): Likewise.
3778 * symtab.c (symbol_matches_domain): Update call.
3779
1fb314aa
AB
37802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * ada-lang.c (ada_language_arch_info): Delete function, move
3783 implementation to...
3784 (ada_language::language_arch_info): ...here, a new member
3785 function.
3786 (ada_language_data): Delete la_language_arch_info.
3787 * c-lang.c (c_language_data): Likewise.
3788 (c_language::language_arch_info): New member function.
3789 (cplus_language_arch_info): Delete function, move
3790 implementation to...
3791 (cplus_language::language_arch_info): ...here, a new member
3792 function.
3793 (cplus_language_data): Delete la_language_arch_info.
3794 (asm_language_data): Likewise.
3795 (asm_language::language_arch_info): New member function.
3796 (minimal_language_data): Delete la_language_arch_info.
3797 (minimal_language::language_arch_info): New member function.
3798 * d-lang.c (d_language_arch_info): Delete function, move
3799 implementation to...
3800 (d_language::language_arch_info): ...here, a new member
3801 function.
3802 (d_language_data): Delete la_language_arch_info.
3803 * f-lang.c (f_language_arch_info): Delete function, move
3804 implementation to...
3805 (f_language::language_arch_info): ...here, a new member
3806 function.
3807 (f_language_data): Delete la_language_arch_info.
3808 * go-lang.c (go_language_arch_info): Delete function, move
3809 implementation to...
3810 (go_language::language_arch_info): ...here, a new member
3811 function.
3812 (go_language_data): Delete la_language_arch_info.
3813 * language.c (unknown_language_data): Likewise.
3814 (unknown_language::language_arch_info): New member function.
3815 (auto_language_data): Delete la_language_arch_info.
3816 (auto_language::language_arch_info): New member function.
3817 (language_gdbarch_post_init): Update call to
3818 la_language_arch_info.
3819 * language.h (language_data): Delete la_language_arch_info
3820 function pointer.
3821 (language_defn::language_arch_info): New function.
3822 * m2-lang.c (m2_language_arch_info): Delete function, move
3823 implementation to...
3824 (m2_language::language_arch_info): ...here, a new member
3825 function.
3826 (m2_language_data): Delete la_language_arch_info.
3827 * objc-lang.c (objc_language_arch_info): Delete function, move
3828 implementation to...
3829 (objc_language::language_arch_info): ...here, a new member
3830 function.
3831 (objc_language_data): Delete la_language_arch_info.
3832 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3833 implementation to...
3834 (opencl_language::language_arch_info): ...here, a new member
3835 function.
3836 (opencl_language_data): Delete la_language_arch_info.
3837 * p-lang.c (pascal_language_arch_info): Delete function, move
3838 implementation to...
3839 (pascal_language::language_arch_info): ...here, a new member
3840 function.
3841 (pascal_language_data): Delete la_language_arch_info.
3842 * rust-lang.c (rust_language_arch_info): Delete function, move
3843 implementation to...
3844 (rust_language::language_arch_info): ...here, a new member
3845 function.
3846 (rust_language_data): Delete la_language_arch_info.
3847
48448202
AB
38482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3851 initializer.
3852 * c-lang.c (c_language_data): Likewise.
3853 (cplus_language_data): Likewise.
3854 (cplus_language::pass_by_reference_info): New method.
3855 (asm_language_data): Delete la_pass_by_reference initializer.
3856 (minimal_language_data): Likewise.
3857 * cp-abi.c (cp_pass_by_reference): Remove use of
3858 default_pass_by_reference.
3859 * d-lang.c (d_language_data): Likewise.
3860 * f-lang.c (f_language_data): Likewise.
3861 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3862 default_pass_by_reference.
3863 * go-lang.c (go_language_data): Likewise.
3864 * language.c (language_pass_by_reference): Update.
3865 (default_pass_by_reference): Delete.
3866 (unknown_language_data): Delete la_pass_by_reference
3867 initializer.
3868 (auto_language_data): Likewise.
3869 * language.h (struct language_data): Delete la_pass_by_reference
3870 field.
3871 (language_defn::pass_by_reference_info): New member function.
3872 (default_pass_by_reference): Delete declaration.
3873 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3874 initializer.
3875 * objc-lang.c (objc_language_data): Likewise.
3876 * opencl-lang.c (opencl_language_data): Likewise.
3877 * p-lang.c (pascal_language_data): Likewise.
3878 * rust-lang.c (rust_language_data): Likewise.
3879
15e5fd35
AB
38802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * ada-lang.c (ada_read_var_value): Delete function, move
3883 implementation to...
3884 (ada_language::read_var_value): ...here.
3885 (ada_language_data): Delete la_read_var_value initializer.
3886 * c-lang.c (c_language_data): Likewise.
3887 (cplus_language_data): Likewise.
3888 (minimal_language_data): Likewise.
3889 * d-lang.c (d_language_data): Likewise.
3890 * f-lang.c (f_language_data): Likewise.
3891 * findvar.c (default_read_var_value): Rename to...
3892 (language_defn::read_var_value): ...this.
3893 * findvar.c (read_var_value): Update header comment, and change to
3894 call member function instead of function pointer.
3895 * go-lang.c (go_language_data): Likewise.
3896 * language.c (unknown_language_data): Delete la_read_var_value
3897 initializer.
3898 (auto_language_data): Likewise.
3899 * language.h (struct language_data): Delete la_read_var_value
3900 field.
3901 (language_defn::read_var_value): New member function.
3902 (default_read_var_value): Delete declaration.
3903 * m2-lang.c (m2_language_data): Delete la_read_var_value
3904 initializer.
3905 * objc-lang.c (objc_language_data): Likewise.
3906 * opencl-lang.c (opencl_language_data): Likewise.
3907 * p-lang.c (pascal_language_data): Likewise.
3908 * rust-lang.c (rust_language_data): Likewise.
3909 * value.h (default_read_var_value): Delete declaration.
3910
5bd40f2a
AB
39112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * ada-lang.c (ada_print_array_index): Delete function, move
3914 implementation to...
3915 (ada_language::print_array_index): ...here.
3916 (ada_language_data): Delete la_print_array_index initializer.
3917 * c-lang.c (c_language_data): Likewise.
3918 (cplus_language_data): Likewise.
3919 (minimal_language_data): Likewise.
3920 * d-lang.c (d_language_data): Likewise.
3921 * f-lang.c (f_language_data): Likewise.
3922 * go-lang.c (go_language_data): Likewise.
3923 * language.c (default_print_array_index): Delete function, move
3924 implementation to...
3925 (language_defn::print_array_index): ...here.
3926 (unknown_language_data): Delete la_print_array_index initializer.
3927 (auto_language_data): Likewise.
3928 * language.h (struct language_data): Delete la_print_array_index
3929 field.
3930 (language_defn::print_array_index): New member function.
3931 (LA_PRINT_ARRAY_INDEX): Update.
3932 (default_print_array_index): Delete declaration.
3933 * m2-lang.c (m2_language_data): Delete la_print_array_index
3934 initializer.
3935 * objc-lang.c (objc_language_data): Likewise.
3936 * opencl-lang.c (opencl_language_data): Likewise.
3937 * p-lang.c (pascal_language_data): Likewise.
3938 * rust-lang.c (rust_language_data): Likewise.
3939
0874fd07
AB
39402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * gdb/ada-lang.c (ada_language_defn): Convert to...
3943 (ada_language_data): ...this.
3944 (class ada_language): New class.
3945 (ada_language_defn): New static global.
3946 * gdb/c-lang.c (c_language_defn): Convert to...
3947 (c_language_data): ...this.
3948 (class c_language): New class.
3949 (c_language_defn): New static global.
3950 (cplus_language_defn): Convert to...
3951 (cplus_language_data): ...this.
3952 (class cplus_language): New class.
3953 (cplus_language_defn): New static global.
3954 (asm_language_defn): Convert to...
3955 (asm_language_data): ...this.
3956 (class asm_language): New class.
3957 (asm_language_defn): New static global.
3958 (minimal_language_defn): Convert to...
3959 (minimal_language_data): ...this.
3960 (class minimal_language): New class.
3961 (minimal_language_defn): New static global.
3962 * gdb/d-lang.c (d_language_defn): Convert to...
3963 (d_language_data): ...this.
3964 (class d_language): New class.
3965 (d_language_defn): New static global.
3966 * gdb/f-lang.c (f_language_defn): Convert to...
3967 (f_language_data): ...this.
3968 (class f_language): New class.
3969 (f_language_defn): New static global.
3970 * gdb/go-lang.c (go_language_defn): Convert to...
3971 (go_language_data): ...this.
3972 (class go_language): New class.
3973 (go_language_defn): New static global.
3974 * gdb/language.c (unknown_language_defn): Remove declaration.
3975 (current_language): Initialize to nullptr, real initialization is
3976 moved to _initialize_language.
3977 (languages): Delete global.
3978 (language_defn::languages): Define.
3979 (set_language_command): Use language_defn::languages.
3980 (set_language): Likewise.
3981 (range_error): Likewise.
3982 (language_enum): Likewise.
3983 (language_def): Likewise.
3984 (add_set_language_command): Use language_def::languages for the
3985 language list, and language_def to lookup language pointers.
3986 (skip_language_trampoline): Use language_defn::languages.
3987 (unknown_language_defn): Convert to...
3988 (unknown_language_data): ...this.
3989 (class unknown_language): New class.
3990 (unknown_language_defn): New static global.
3991 (auto_language_defn): Convert to...
3992 (auto_language_data): ...this.
3993 (class auto_language): New class.
3994 (auto_language_defn): New static global.
3995 (language_gdbarch_post_init): Use language_defn::languages.
3996 (_initialize_language): Initialize current_language.
3997 * gdb/language.h (struct language_defn): Rename to...
3998 (struct language_data): ...this.
3999 (struct language_defn): New.
4000 (auto_language_defn): Delete.
4001 (unknown_language_defn): Delete.
4002 (minimal_language_defn): Delete.
4003 (ada_language_defn): Delete.
4004 (asm_language_defn): Delete.
4005 (c_language_defn): Delete.
4006 (cplus_language_defn): Delete.
4007 (d_language_defn): Delete.
4008 (f_language_defn): Delete.
4009 (go_language_defn): Delete.
4010 (m2_language_defn): Delete.
4011 (objc_language_defn): Delete.
4012 (opencl_language_defn): Delete.
4013 (pascal_language_defn): Delete.
4014 (rust_language_defn): Delete.
4015 * gdb/m2-lang.c (m2_language_defn): Convert to...
4016 (m2_language_data): ...this.
4017 (class m2_language): New class.
4018 (m2_language_defn): New static global.
4019 * gdb/objc-lang.c (objc_language_defn): Convert to...
4020 (objc_language_data): ...this.
4021 (class objc_language): New class.
4022 (objc_language_defn): New static global.
4023 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4024 (opencl_language_data): ...this.
4025 (class opencl_language): New class.
4026 (opencl_language_defn): New static global.
4027 * gdb/p-lang.c (pascal_language_defn): Convert to...
4028 (pascal_language_data): ...this.
4029 (class pascal_language): New class.
4030 (pascal_language_defn): New static global.
4031 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4032 language pointer, update comment format.
4033 * gdb/rust-lang.c (rust_language_defn): Convert to...
4034 (rust_language_data): ...this.
4035 (class rust_language): New class.
4036 (rust_language_defn): New static global.
4037
1313c56e
AB
40382020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4039
4040 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4041 member variable.
4042 <m_stmt_at_address>: New member variable.
4043 (lnp_state_machine::record_line): Don't record some lines, update
4044 tracking of is_stmt at the same address.
4045 (lnp_state_machine::lnp_state_machine): Initialise new member
4046 variables.
4047
b7ed9f3d
ST
40482020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4049
4050 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4051 "-include gnu-nat-mig.h".
4052 * gnu-nat-mig.h: New file.
4053 * gnu-nat.c: Include "gnu-nat-mig.h".
4054 (exc_server, msg_reply_server, notify_server,
4055 process_reply_server): Remove declarations.
4056
14a8ad62
ST
40572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4058
4059 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4060 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4061 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4062 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4063 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4064 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4065 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4066 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4067 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4068 to gnu_nat_target class.
4069 * gnu-nat.c: Likewise.
4070 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4071 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4072 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4073 object.
4074 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4075 instead of `gnu_target'.
4076
0af5e106
ST
40772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4078
4079 * i386-gnu-tdep.c: Include "gdbcore.h"
4080 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4081 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4082 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4083 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4084 i386_gnu_sigcontext_addr): New functions
4085 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4086 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4087 tdep.
4088
078f2fc9
ST
40892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4090
4091 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4092 before fork_inferior call. Avoid calling it if target_is_pushed returns
4093 true.
4094
53dff92c
ST
40952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4096
4097 * gnu-nat.h (gnu_target): New variable declaration.
4098 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4099 gnu_target.
4100 * gnu-nat.c (gnu_target): New variable.
4101 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4102 add_thread_silent, and add_thread calls.
4103 (gnu_nat_target::create_inferior): Pass gnu_target to
4104 add_thread_silent, thread_change_ptid call.
4105 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4106 call.
4107
5a8b8627
ST
41082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4109
4110 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4111 (gnu_nat_target::find_memory_regions): Remove unused
4112 `old_address' variable.
4113
366f550a
ST
41142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4115
4116 * gnu-nat.c: Include "gdbarch.h".
4117
f14871bf
ST
41182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4119
4120 * reply_mig_hack.awk (Error return): Cast function through
4121 void *, to bypass compiler function call check.
4122
c6887cfb
ST
41232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4124
4125 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4126 $(srcdir)/reply_mig_hack.awk.
4127
6930bffe
ST
41282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4129
4130 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4131
112c22ed
JG
41322020-05-30 Jonny Grant <jg@jguk.org>
4133
4134 * configure.ac (ACX_BUGURL): change bug URL to https.
4135
f68f85b5
PA
41362020-05-30 Pedro Alves <palves@redhat.com>
4137
4138 * cp-support.c (replace_typedefs_template): New.
4139 (replace_typedefs_qualified_name): Handle
4140 DEMANGLE_COMPONENT_TEMPLATE.
4141
976ca316
SM
41422020-05-29 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4145 dwarf2/index-cache.h, dwarf2/index-write.c,
4146 dwarf2/index-write.h, dwarf2/line-header.c,
4147 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4148 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4149 variables and fields from `dwarf2_per_objfile` to just
4150 `per_objfile` throughout.
4151
989ade05
SM
41522020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4153
4154 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4155 <push_dwarf_reg_entry_value>: Add comment.
4156
c47bae85
KB
41572020-05-28 Kevin Buettner <kevinb@redhat.com>
4158 Keith Seitz <keiths@redhat.com>
4159
4160 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4161 instead of PyEval_ReleaseLock.
4162 (class gdbpy_gil): Move to earlier in file.
4163 (finalize_python): Set gdb_python_initialized.
4164 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4165 when not initialized.
4166
44486dcf
SM
41672020-05-28 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4170 <push_dwarf_reg_entry_value>: Remove assert. Override
4171 per_objfile with caller_per_objfile.
4172
f030440d
TV
41732020-05-28 Tom de Vries <tdevries@suse.de>
4174
4175 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4176 PR gold/15646 workaround to symbol kind "type".
4177
f0fbb768
TT
41782020-05-27 Tom Tromey <tromey@adacore.com>
4179
4180 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4181
af0b2a3e
TT
41822020-05-27 Tom Tromey <tromey@adacore.com>
4183
4184 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4185 Use htab_find_with_hash.
4186 <add_abbrev>: Remove "abbrev_number" parameter.
4187 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4188 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4189 (hash_abbrev): Add comment.
4190 (abbrev_table::lookup_abbrev): Move to header file.
4191 (abbrev_table::read): Update.
4192
7d00ffec
TT
41932020-05-27 Tom Tromey <tromey@adacore.com>
4194
4195 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4196 method.
4197 <canonical_name>: New member.
4198 <raw_name>: Rename from "name".
4199 (partial_die_info): Initialize canonical_name.
4200 (scan_partial_symbols): Check raw_name.
4201 (partial_die_parent_scope, partial_die_full_name)
4202 (add_partial_symbol, add_partial_subprogram)
4203 (add_partial_enumeration, load_partial_dies): Use "name" method.
4204 (partial_die_info::name): New method.
4205 (partial_die_info::read, guess_partial_die_structure_name)
4206 (partial_die_info::fixup): Update.
4207
697bba18
TT
42082020-05-27 Tom Tromey <tromey@adacore.com>
4209
4210 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4211 <get_ref_die_offset>: Inline.
4212 <get_ref_die_offset_complaint>: New method.
4213 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4214 (attribute::get_ref_die_offset_complaint): Rename from
4215 get_ref_die_offset. Just issue complaint.
4216
c17ace43
HD
42172020-05-27 Hannes Domani <ssbssa@yahoo.de>
4218
4219 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4220
96445f0b
HD
42212020-05-27 Hannes Domani <ssbssa@yahoo.de>
4222
4223 * exec.c (exec_file_attach): Use errno value of first openp failure.
4224
ac637ec3
HD
42252020-05-27 Hannes Domani <ssbssa@yahoo.de>
4226
4227 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4228 Don't close thread handle.
4229
17ee85fc
TT
42302020-05-27 Tom Tromey <tom@tromey.com>
4231 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4234 shared_ptr.
4235 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4236 member.
4237 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4238 dwarf2_per_bfd_objfile_data_key>: New globals.
4239 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4240 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4241 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4242 shared.
4243 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4244 short-circuit when sharing.
4245 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4246 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4247
39b16f87
SM
42482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4251 to...
4252 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4253 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4254
fcf23d5b
SM
42552020-05-27 Simon Marchi <simon.marchi@efficios.com>
4256
4257 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4258 build_name_components, find_name_components_bounds>:
4259 Add per_objfile parameter.
4260 (struct mapped_index) <symbol_name_at>: Likewise.
4261 (struct mapped_debug_names): Remove constructor.
4262 <dwarf2_per_objfile>: Remove field.
4263 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4264 (mapped_index_base::find_name_components_bounds,
4265 mapped_index_base::build_name_components,
4266 dw2_expand_symtabs_matching_symbol): Likewise.
4267 (class mock_mapped_index) <symbol_name_at>: Likewise.
4268 (check_match): Likewise.
4269 (check_find_bounds_finds): Likewise.
4270 (test_mapped_index_find_name_component_bounds): Update.
4271 (CHECK_MATCH): Update.
4272 (dw2_expand_symtabs_matching): Update.
4273 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4274 per_objfile parameter.
4275 <find_vec_in_debug_names>: Likewise.
4276 <m_per_objfile>: New field.
4277 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4278 parameter.
4279 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4280 (dw2_debug_names_iterator::next): Update.
4281 (dw2_debug_names_lookup_symbol): Update.
4282 (dw2_debug_names_expand_symtabs_for_function): Update.
4283 (dw2_debug_names_map_matching_symbols): Update.
4284 (dw2_debug_names_expand_symtabs_matching): Update.
4285 (dwarf2_read_debug_names): Update.
4286
7188ed02
SM
42872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4290 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4291 move to dwarf2_per_objfile.
4292 <read_in_chain>: Remove.
4293 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4294 remove_all_cus, age_comp_units>: New methods.
4295 <m_dwarf2_cus>: New member.
4296 (struct dwarf2_per_cu_data) <cu>: Remove.
4297 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4298 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4299 moved to methods of dwarf2_per_objfile.
4300 (dwarf2_clear_marks): Remove.
4301 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4302 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4303 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4304 (dwarf2_per_objfile::remove_all_cus): New.
4305 (class free_cached_comp_units) <~free_cached_comp_units>:
4306 Update.
4307 (load_cu): Update.
4308 (dw2_do_instantiate_symtab): Adjust.
4309 (fill_in_sig_entry_from_dwo_entry): Adjust.
4310 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4311 (cutu_reader::cutu_reader): Likewise.
4312 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4313 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4314 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4315 and dwarf2_per_objfile::age_comp_units.
4316 (load_partial_comp_unit): Update.
4317 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4318 (process_queue): Likewise.
4319 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4320 backlink.
4321 (dwarf2_read_addr_index): Likewise.
4322 (follow_die_offset): Likewise.
4323 (dwarf2_fetch_die_loc_sect_off): Likewise.
4324 (dwarf2_fetch_constant_bytes): Likewise.
4325 (dwarf2_fetch_die_type_sect_off): Likewise.
4326 (follow_die_sig_1): Likewise.
4327 (load_full_type_unit): Likewise.
4328 (read_signatured_type): Likewise.
4329 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4330 (dwarf2_cu::~dwarf2_cu): Remove.
4331 (dwarf2_per_objfile::get_cu): New.
4332 (dwarf2_per_objfile::set_cu): New.
4333 (age_cached_comp_units): Rename to...
4334 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4335 to std::unordered_map.
4336 (free_one_cached_comp_unit): Rename to...
4337 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4338 to std::unordered_map.
4339 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4340 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4341 a dwarf2_per_objfile in data.
4342 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4343 (dwarf2_clear_marks): Remove.
4344
2e671100
SM
43452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4348 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4349 (init_tu_and_read_dwo_dies): Likewise.
4350 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4351 (cutu_reader::cutu_reader): Likewise.
4352 (load_partial_comp_unit): Likewise.
4353 (process_psymtab_comp_unit): Update.
4354 (build_type_psymtabs_1): Update.
4355 (process_skeletonless_type_unit): Update.
4356 (load_full_comp_unit): Update.
4357 (find_partial_die): Update.
4358 (dwarf2_read_addr_index): Update.
4359 (read_signatured_type): Update.
4360
2e6a9f79
SM
43612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4362
4363 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4364 m_header_read_in>: New fields.
4365 <get_header>: New method.
4366 * dwarf2/read.c (per_cu_header_read_in): Remove.
4367 (dwarf2_per_cu_data::get_header): New.
4368 (dwarf2_per_cu_data::addr_size): Update.
4369 (dwarf2_per_cu_data::offset_size): Update.
4370 (dwarf2_per_cu_data::ref_addr_size): Update.
4371
1b555f17
SM
43722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4375 (dw2_do_instantiate_symtab): Update.
4376 (queue_and_load_all_dwo_tus): Change parameter from
4377 dwarf2_per_cu_data to dwarf2_cu.
4378 (dwarf2_fetch_die_loc_sect_off): Update.
4379 (dwarf2_fetch_constant_bytes): Update.
4380 (dwarf2_fetch_die_type_sect_off): Update.
4381
8fc0b21d
SM
43822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4383
4384 * dwarf2/read.c (process_full_comp_unit,
4385 process_full_type_unit): Remove per_cu, per_objfile paramters.
4386 Add dwarf2_cu parameter.
4387 (process_queue): Update.
4388
168c9250
SM
43892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * dwarf2/read.c (create_cu_from_index_list): Replace
4392 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4393 (create_cus_from_index_list): Likewise.
4394 (create_cus_from_index): Likewise.
4395 (create_signatured_type_table_from_index): Likewise.
4396 (create_cus_from_debug_names_list): Likewise.
4397 (create_cus_from_debug_names): Likewise.
4398 (dwarf2_read_gdb_index): Update.
4399 (dwarf2_read_debug_names): Update.
4400
e286671b
TT
44012020-05-27 Tom Tromey <tom@tromey.com>
4402 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * dwarf2/read.h (struct dwarf2_per_objfile)
4405 <get_type_for_signatured_type, set_type_for_signatured_type>:
4406 New methods.
4407 <m_type_map>: New member.
4408 (struct signatured_type) <type>: Remove.
4409 * dwarf2/read.c
4410 (dwarf2_per_objfile::get_type_for_signatured_type,
4411 dwarf2_per_objfile::set_type_for_signatured_type): New.
4412 (get_signatured_type): Use new methods.
4413
8adb8487
TT
44142020-05-27 Tom Tromey <tom@tromey.com>
4415 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4418 (struct dwarf2_per_objfile) <type_units>: New member.
4419 <get_type_unit_group_unshareable>: New method.
4420 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4421 num_symtabs, symtabs>: Remove; move to
4422 type_unit_group_unshareable.
4423 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4424 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4425 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4426
127bbf4b
SM
44272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * dwarf2/read.h (struct dwarf2_per_cu_data):
4430 <dwarf2_per_objfile>: Remove.
4431 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4432 dwarf2_per_objfile.
4433 (create_signatured_type_table_from_index): Likewise.
4434 (create_signatured_type_table_from_debug_names): Likewise.
4435 (create_debug_type_hash_table): Likewise.
4436 (fill_in_sig_entry_from_dwo_entry): Likewise.
4437 (create_type_unit_group): Likewise.
4438 (read_comp_units_from_section): Likewise.
4439 (create_cus_hash_table): Likewise.
4440
f6e649dd
SM
44412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4444 dwarf2_per_cu_data::dwarf2_per_objfile.
4445 (compute_compunit_symtab_includes): Likewise.
4446 (dwarf2_cu::start_symtab): Likewise.
4447
aa66c379
SM
44482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4451 parameter.
4452 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4453 (read_namespace_alias): Update.
4454 (lookup_die_type): Update.
4455 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4457 Update.
4458 (disassemble_dwarf_expression): Update.
4459
120ce1b5
SM
44602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * dwarf2/read.h (struct dwarf2_queue_item): Add
4463 dwarf2_per_objfile parameter, assign new parameter.
4464 <per_objfile>: New field.
4465 * dwarf2/read.c (free_one_cached_comp_unit): Add
4466 dwarf2_per_objfile parameter.
4467 (queue_comp_unit): Likewise.
4468 (dw2_do_instantiate_symtab): Update.
4469 (process_psymtab_comp_unit): Update.
4470 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4471 (process_imported_unit_die): Update.
4472 (queue_and_load_dwo_tu): Update.
4473 (follow_die_offset): Update.
4474 (follow_die_sig_1): Update.
4475
9f47c707
SM
44762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4479 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4480 (read_call_site_scope): Assign per_objfile.
4481 (dwarf2_per_cu_data::objfile): Remove.
4482 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4483 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4484 dwarf2_per_objfile parameter.
4485 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4486 dwarf2_per_objfile parameter.
4487 (dwarf_expr_reg_to_entry_parameter): Add output
4488 dwarf2_per_objfile parameter.
4489 (locexpr_get_frame_base): Update.
4490 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4491 <push_dwarf_reg_entry_value>: Update.
4492 <call_site_to_target_addr>: Update.
4493 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4494 parameter.
4495 (value_of_dwarf_reg_entry): Update.
4496 (rw_pieced_value): Update.
4497 (indirect_synthetic_pointer): Update.
4498 (dwarf2_evaluate_property): Update.
4499 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4500 parameter.
4501 (locexpr_read_variable): Update.
4502 (locexpr_get_symbol_read_needs): Update.
4503 (loclist_read_variable): Update.
4504
14095eb3
SM
45052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4508 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4509 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4510 parameter.
4511 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4512 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4513 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4514 parameter.
4515 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4516 sect_variable_value): Add dwarf2_per_objfile parameter.
4517 (class dwarf_evaluate_loc_desc) <dwarf_call,
4518 dwarf_variable_value>: Update.
4519 (fetch_const_value_from_synthetic_pointer): Add
4520 dwarf2_per_objfile parameter.
4521 (fetch_const_value_from_synthetic_pointer): Update.
4522 (coerced_pieced_ref): Update.
4523 (class symbol_needs_eval_context) <dwarf_call,
4524 dwarf_variable_value>: Update.
4525 (dwarf2_compile_expr_to_ax): Update.
4526
3c3cd3d4
SM
45272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4530 parameter.
4531 (dwarf2_evaluate_loc_desc_full): Update.
4532
82ca3f51
SM
45332020-05-27 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4536 parameter.
4537 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4538 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4539 dwarf2_per_objfile parameter.
4540 (decode_debug_loc_dwo_addresses): Likewise.
4541 (dwarf2_find_location_expression): Update.
4542 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4543 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4544 parameter.
4545 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4546 parameter.
4547 (locexpr_describe_location_1): Likewise.
4548 (locexpr_describe_location): Update.
4549
4b167ea1
SM
45502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4553 Remove.
4554 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4555 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4556 (dwarf2_compile_property_to_c): Update.
4557 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4558 use text offset from objfile.
4559 (locexpr_tracepoint_var_ref): Update.
4560 (locexpr_generate_c_location): Update.
4561 (loclist_describe_location): Update.
4562 (loclist_tracepoint_var_ref): Update.
4563 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4564 dwarf2_per_objfile parameter.
4565 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4566 use text offset from objfile.
4567 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4568
89b07335
SM
45692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * dwarf2/expr.h (struct dwarf_expr_context)
4572 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4573 <offset>: Remove.
4574 <per_objfile>: New member.
4575 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4576 dwarf2_per_objfile parameter. Don't set offset, set
4577 per_objfile.
4578 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4579 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4580 a dwarf2_per_objfile object instead of an offset.
4581 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4582 constructor.
4583 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4584 to dwarf2_expr_executor constructor. Don't set offset.
4585 (dwarf2_fetch_cfa_info): Update.
4586 (struct dwarf2_frame_cache) <text_offset>: Remove.
4587 <per_objfile>: New field.
4588 (dwarf2_frame_cache): Update.
4589 (dwarf2_frame_prev_register): Update.
4590 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4591 <dwarf_evaluate_loc_desc>: Add constructor.
4592 (dwarf2_evaluate_loc_desc_full): Update.
4593 (dwarf2_locexpr_baton_eval): Update.
4594 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4595 Add constructor.
4596 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4597
293e7e51
SM
45982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4601 addr_sized_int_type>: Move to dwarf2_cu.
4602 <int_type>: Move to dwarf2_per_objfile.
4603 (struct dwarf2_per_objfile) <int_type>: Move here.
4604 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4605 addr_sized_int_type>: Move here.
4606 (read_func_scope): Update.
4607 (read_array_type): Update.
4608 (read_tag_string_type): Update.
4609 (attr_to_dynamic_prop): Update.
4610 (dwarf2_per_cu_data::int_type): Rename to...
4611 (dwarf2_per_objfile::int_type): ... this.
4612 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4613 (dwarf2_cu::addr_sized_int_type): ... this.
4614 (read_subrange_type): Update.
4615 (dwarf2_per_cu_data::addr_type): Rename to...
4616 (dwarf2_cu::addr_type): ... this.
4617 (set_die_type): Update.
4618
64874a40
SM
46192020-05-27 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4622 data through per_cu->cu.
4623
4ab09049
SM
46242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4627 dwarf2_per_cu_data parameter fo dwarf2_cu.
4628 (lookup_dwo_type_unit): Likewise.
4629 (read_cutu_die_from_dwo): Likewise.
4630 (lookup_dwo_unit): Likewise.
4631 (open_and_init_dwo_file): Likewise.
4632 (lookup_dwo_cutu): Likewise.
4633 (lookup_dwo_comp_unit): Likewise.
4634 (lookup_dwo_type_unit): Likewise.
4635 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4636 (cutu_reader::cutu_reader): Update.
4637
47b14e86
SM
46382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4641 parameter.
4642 (process_full_type_unit): Likewise.
4643 (process_queue): Update.
4644
43182c09
SM
46452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * dwarf2/read.c (recursively_compute_inclusions): Add
4648 dwarf2_per_objfile parameter.
4649 (compute_compunit_symtab_includes): Likewise.
4650 (process_cu_includes): Update.
4651
7aa104c4
SM
46522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4655 parameter.
4656 (create_type_unit_group): Update.
4657 (process_psymtab_comp_unit_reader): Update.
4658 (build_type_psymtabs_reader): Update.
4659
e3beb21d
SM
46602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4663 object through m_this_cu->cu.
4664
d460f660
SM
46652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4668 the info parameter.
4669 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4670
ab432490
SM
46712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4672
4673 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4674 per_objfile parameter.
4675 (load_full_type_unit): Add per_objfile parameter.
4676 (read_signatured_type): Likewise.
4677 (load_full_comp_unit): Likewise.
4678 (load_cu): Likewise.
4679 (dw2_do_instantiate_symtab): Likewise.
4680 (dw2_get_file_names): Likewise.
4681 (dw2_map_symtabs_matching_filename): Update.
4682 (dw_expand_symtabs_matching_file_matcher): Update.
4683 (dw2_map_symbol_filenames): Update.
4684 (process_psymtab_comp_unit): Add per_objfile parameter.
4685 (build_type_psymtabs_1): Update.
4686 (process_skeletonless_type_unit): Update.
4687 (dwarf2_build_psymtabs_hard): Update.
4688 (load_partial_comp_unit): Add per_objfile parameter.
4689 (scan_partial_symbols): Update.
4690 (load_full_comp_unit): Add per_objfile parameter.
4691 (process_imported_unit_die): Update.
4692 (create_cus_hash_table): Update.
4693 (find_partial_die): Update.
4694 (dwarf2_read_addr_index): Update.
4695 (follow_die_offset): Update.
4696 (dwarf2_fetch_die_loc_sect_off): Update.
4697 (dwarf2_fetch_constant_bytes): Update.
4698 (dwarf2_fetch_die_type_sect_off): Update.
4699 (follow_die_sig_1): Update.
4700 (load_full_type_unit): Add per_objfile parameter.
4701 (read_signatured_type): Likewise.
4702
313bad1b
SM
47032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4706 of objfile_name.
4707
c3699833
SM
47082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4711 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4712 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4713 field.
4714 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4715 (create_cus_from_index): Update.
4716 (dwarf2_read_gdb_index): Update.
4717 (create_cus_from_debug_names): Update.
4718 (dwarf2_read_debug_names): Update.
4719 (get_abbrev_section_for_cu): Update.
4720 (create_all_comp_units): Update.
4721 (read_attribute_value): Update.
4722 (get_debug_line_section): Update.
4723 * dwarf2/index-cache.c (index_cache::store): Update.
4724 * dwarf2/index-write.c (save_gdb_index_command): Update.
4725 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4726
1859c670
SM
47272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4730 member.
4731 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4732 dwarf2_per_cu_data::per_bfd.
4733 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4734 (create_type_unit_group): Likewise.
4735 (queue_comp_unit): Remove reference to
4736 per_cu->dwarf2_per_objfile.
4737 (maybe_queue_comp_unit): Likewise.
4738 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4739 (create_cus_hash_table): Assign new field.
4740
5e22e966
SM
47412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * dwarf2/read.c: Replace
4744 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4745 dwarf2_cu->per_objfile throughout.
4746
97a1449a
SM
47472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4750 parameter, don't use per_cu->dwarf2_per_objfile.
4751 (dw2_instantiate_symtab): Likewise.
4752 (dw2_find_last_source_symtab): Update.
4753 (dw2_map_expand_apply): Update.
4754 (dw2_lookup_symbol): Update.
4755 (dw2_expand_symtabs_for_function): Update.
4756 (dw2_expand_all_symtabs): Update.
4757 (dw2_expand_symtabs_with_fullname): Update.
4758 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4759 don't use per_cu->dwarf2_per_objfile.
4760 (dw2_expand_marked_cus): Update.
4761 (dw2_find_pc_sect_compunit_symtab): Update.
4762 (dw2_debug_names_lookup_symbol): Update.
4763 (dw2_debug_names_expand_symtabs_for_function): Update.
4764 (dw2_debug_names_map_matching_symbols): Update.
4765 (dwarf2_psymtab::expand_psymtab): Update.
4766
9e021579
SM
47672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4770 <per_objfile>: New member.
4771 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4772 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4773 call to dwarf2_cu.
4774 (cutu_reader::cutu_reader): Update.
4775 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4776
ae090bdb
SM
47772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4780 struct dwarf2_per_objfile.
4781 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4782 dwarf2_per_bfd.
4783 * dwarf2/read.c (set_die_type): Update.
4784 (get_die_type_at_offset): Update.
4785
af758d11
SM
47862020-05-27 Tom Tromey <tom@tromey.com>
4787 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4790 method.
4791 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4792 get_symtab, set_symtab>: New methods.
4793 <m_symtabs>: New field.
4794 (struct dwarf2_psymtab): Derive from partial_symtab.
4795 <readin_p, get_compunit_symtab>: Declare methods.
4796 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4797 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4798 New methods.
4799 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4800 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4801 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4802 (dw2_symtab_iter_next, dw2_print_stats)
4803 (dw2_expand_symtabs_with_fullname)
4804 (dw2_expand_symtabs_matching_one)
4805 (dw_expand_symtabs_matching_file_matcher)
4806 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4807 (dw2_debug_names_iterator::next)
4808 (dw2_debug_names_map_matching_symbols)
4809 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4810 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4811 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4812 New methods.
4813 (get_compunit_symtab, process_full_comp_unit)
4814 (process_full_type_unit): Update.
4815 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4816
5989a64e
SM
48172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4818
4819 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4820 then introduce a new dwarf2_per_objfile type.
4821 <read_line_string>: Move to the new dwarf2_per_objfile type.
4822 <objfile>: Likewise.
4823 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4824 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4825 dwarf2_per_objfile->per_bfd.
4826 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4827 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4828 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4829 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4830 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4831 (dwarf2_per_objfile::locate_sections): Rename to...
4832 (dwarf2_per_bfd::locate_sections): ... this.
4833 (dwarf2_per_objfile::get_cutu): Rename to...
4834 (dwarf2_per_bfd::get_cutu): ... this.
4835 (dwarf2_per_objfile::get_cu): Rename to...
4836 (dwarf2_per_bfd::get_cu): ... this.
4837 (dwarf2_per_objfile::get_tu): Rename to...
4838 (dwarf2_per_bfd::get_tu): ... this.
4839 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4840 (dwarf2_per_bfd::allocate_per_cu): ... this.
4841 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4842 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4843 (get_gdb_index_contents_ftype): Change parameter from
4844 dwarf2_per_objfile to dwarf2_per_bfd.
4845 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4846 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4847
a50264ba
TT
48482020-05-27 Tom Tromey <tom@tromey.com>
4849 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4852 (allocate_piece_closure): Set "per_objfile" member.
4853 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4854 (locexpr_describe_location, loclist_describe_location): Use new
4855 member.
4856 * dwarf2/read.c (read_call_site_scope)
4857 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4858 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4859 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4860 handle_data_member_location): Set per_objfile member.
4861 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4862 member.
4863 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4864
d3473f0c
TT
48652020-05-27 Tom Tromey <tom@tromey.com>
4866
4867 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4868 allocate_signatured_type>: Declare new methods.
4869 <m_num_psymtabs>: New member.
4870 (struct dwarf2_per_cu_data) <index>: New member.
4871 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4872 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4873 (create_cu_from_index_list): Use allocate_per_cu.
4874 (create_signatured_type_table_from_index)
4875 (create_signatured_type_table_from_debug_names)
4876 (create_debug_type_hash_table, add_type_unit)
4877 (read_comp_units_from_section): Use allocate_signatured_type.
4878
5717c425
TT
48792020-05-27 Tom Tromey <tom@tromey.com>
4880
4881 * psymtab.c (partial_map_expand_apply)
4882 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4883 (psym_lookup_global_symbol_language)
4884 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4885 (psym_print_stats, psym_expand_symtabs_for_function)
4886 (psym_map_symbol_filenames, psym_map_matching_symbols)
4887 (psym_expand_symtabs_matching)
4888 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4889 (maintenance_check_psymtabs): Update.
4890 * psympriv.h (struct partial_symtab) <readin_p,
4891 get_compunit_symtab>: Add objfile parameter.
4892 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4893 Likewise.
4894 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4895 get_compunit_symtab>: Likewise.
4896 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4897
45940949
TT
48982020-05-27 Tom Tromey <tom@tromey.com>
4899
4900 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4901 member.
4902 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4903 (create_cu_from_index_list)
4904 (create_signatured_type_table_from_index)
4905 (create_signatured_type_table_from_debug_names)
4906 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4907 (dwarf2_create_include_psymtab)
4908 (create_debug_type_hash_table, add_type_unit)
4909 (create_type_unit_group, read_comp_units_from_section)
4910 (dwarf2_compute_name, create_cus_hash_table)
4911 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4912 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4913 obstack.
4914 (dw2_get_real_path): Likewise. Change argument to
4915 dwarf2_per_objfile.
4916
f8c6d152
LM
49172020-05-27 Luis Machado <luis.machado@linaro.org>
4918
4919 PR tdep/26000
4920 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4921 for ldrd (immediate).
4922
e98d2e6d
PW
49232020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4924
4925 * command.h: Add comment giving the name of class_tui.
4926 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4927 create the fake command for the help for class_tui.
4928
53a47a3e
TT
49292020-05-26 Tom Tromey <tromey@adacore.com>
4930
4931 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4932 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4933 (val_atr): New function.
4934 (value_val_atr): Use it.
4935 * ada-valprint.c (print_optional_low_bound): Change low bound
4936 handling for enums.
4937 (val_print_packed_array_elements): Don't call discrete_position.
4938 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4939 discrete_position for enum types.
4940 * language.c (default_print_array_index): Change type.
4941 * language.h (struct language_defn) <la_print_array_index>: Add
4942 index_type parameter, change type of index_value.
4943 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4944 (default_print_array_index): Update.
4945 * valprint.c (maybe_print_array_index): Don't call
4946 value_from_longest. Update.
4947 (value_print_array_elements): Don't call discrete_position.
4948
0bc2354b
TT
49492020-05-26 Tom Tromey <tromey@adacore.com>
4950
4951 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4952 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4953
1218a4bf
CDA
49542020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4955
4956 PR gdb/13519
4957 * avr-tdep.c (avr_integer_to_address): Return data or code
4958 address accordingly to the second 'type' argument of the
4959 function.
4960
92651b1d
MW
49612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4962
4963 * infcmd.c, inferior.h: (construct_inferior_arguments):
4964 Moved function from here to gdbsupport/common-inferior.{h,cc}
4965
0a4f5f8c
TT
49662020-05-23 Tom Tromey <tom@tromey.com>
4967
4968 Revert commit eca1f90c:
4969 * NEWS: Remove entry for completion styling.
4970 * completer.c (_rl_completion_prefix_display_length): Move
4971 declaration later.
4972 (gdb_fnprint): Revert.
4973 (gdb_display_match_list_1): Likewise.
4974 * cli/cli-style.c (completion_prefix_style)
4975 (completion_difference_style, completion_suffix_style): Remove.
4976 (_initialize_cli_style): Revert.
4977 * cli/cli-style.h (completion_prefix_style)
4978 (completion_difference_style, completion_suffix_style): Don't
4979 declare.
4980
e08bd6c5
PA
49812020-05-24 Pedro Alves <palves@redhat.com>
4982
4983 * symtab.c (completion_list_add_name): Return boolean indication
4984 of whether the symbol matched.
4985 (completion_list_add_symbol): Don't try to remove C++ aliases if
4986 the symbol didn't match in the first place.
4987 * symtab.h (completion_list_add_name): Return bool.
4988
ceacbf6e
SM
49892020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4992 type::field.
4993
26f16254
JB
49942020-05-23 Joel Brobecker <brobecker@adacore.com>
4995
4996 GDB 9.2 released.
4997
eca1f90c
TT
49982020-05-23 Tom Tromey <tom@tromey.com>
4999
5000 * NEWS: Add entry for completion styling.
5001 * completer.c (_rl_completion_prefix_display_length): Move
5002 declaration earlier.
5003 (gdb_fnprint): Use completion_style.
5004 (gdb_display_match_list_1): Likewise.
5005 * cli/cli-style.c (completion_prefix_style)
5006 (completion_difference_style, completion_suffix_style): New
5007 globals.
5008 (_initialize_cli_style): Register new globals.
5009 * cli/cli-style.h (completion_prefix_style)
5010 (completion_difference_style, completion_suffix_style): Declare.
5011
51e2cfa2
PA
50122020-05-23 Pedro Alves <palves@redhat.com>
5013
5014 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5015 (parse_escape): Use ISDIGIT instead of isdigit.
5016 (puts_debug): Use gdb_isprint instead of isprint.
5017 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5018 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5019 ISSPACE instead of isspace.
5020 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5021 instead of isspace.
5022 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5023 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5024 instead of isxdigit and ISDIGIT instead of isdigit.
5025
80fc5e77
SM
50262020-05-22 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * gdbtypes.h (struct type) <field>: New method.
5029 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5030 or type::field.
5031
3cabb6b0
SM
50322020-05-22 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5035 (TYPE_FIELDS): Use type::fields. Change all call sites that
5036 modify the propery to use type::set_fields instead.
5037
1f704f76
SM
50382020-05-22 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5041 type::num_fields instead.
5042
5e33d5f4
SM
50432020-05-22 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5046 methods.
5047 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5048 that modify the number of fields to use type::set_num_fields
5049 instead.
5050
9392ebb3
TT
50512020-05-22 Tom Tromey <tromey@adacore.com>
5052
5053 * compile/compile-object-load.h (munmap_list_free): Don't
5054 declare.
5055
7c13f4e8
AB
50562020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5057
5058 * annotate.c (annotate_source_line): Update return type, add call
5059 to update current symtab and line.
5060 * annotate.h (annotate_source_line): Update return type, and
5061 extend header comment.
5062 * source.c (info_line_command): Check annotation_level before
5063 calling annotate_source_line.
5064 * stack.c (print_frame_info): If calling annotate_source_line
5065 returns true, then don't print any other source line information.
5066
aa370940
SM
50672020-05-21 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5070
84d53fa9
SM
50712020-05-21 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * coffread.c (patch_type): Remove NULL check before xfree.
5074 * corefile.c (set_gnutarget): Likewise.
5075 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5076 * exec.c (build_section_table): Likewise.
5077 * remote.c (remote_target::pass_signals): Likewise.
5078 * utils.c (n_spaces): Likewise.
5079 * cli/cli-script.c (document_command): Likewise.
5080 * i386-windows-tdep.c (core_process_module_section): Likewise.
5081 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5082
9d428aae
SM
50832020-05-20 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * symfile.c (reread_symbols): Clear objfile's section_offsets
5086 vector and section indices, re-compute them by calling
5087 sym_offsets.
5088
250106a7
TT
50892020-05-20 Tom Tromey <tromey@adacore.com>
5090
5091 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5092 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5093
9a0bacfb
TV
50942020-05-20 Tom de Vries <tdevries@suse.de>
5095
5096 PR symtab/25833
5097 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5098
7b958a48
AM
50992020-05-20 Alan Modra <amodra@gmail.com>
5100
5101 PR 25993
5102 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5103 bfd_set_filename.
5104 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5105 passed to bfd_set_filename.
5106 * symfile-mem.c (add_vsyscall_page): Likewise for string
5107 passed to symbol_file_add_from_memory.
5108 (symbol_file_add_from_memory): Make name param a const char* and
5109 don't strdup.
5110
c7e97679
AM
51112020-05-20 Alan Modra <amodra@gmail.com>
5112
5113 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5114 rather than accessing bfd->filename directly.
5115 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5116 and use bfd_section_name.
5117 * dwarf2/frame.c (decode_frame_entry): Likewise.
5118 * exec.c (exec_set_section_address): Likewise.
5119 * solib-aix.c (solib_aix_bfd_open): Likewise.
5120 * stap-probe.c (get_stap_base_address): Likewise.
5121 * symfile.c (reread_symbols): Likewise.
5122
563c591b
TT
51232020-05-19 Tom Tromey <tromey@adacore.com>
5124
5125 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5126
f408d82c
SM
51272020-05-19 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5130
98c59b52
PA
51312020-05-19 Pedro Alves <palves@redhat.com>
5132
5133 * NEWS (set exec-file-mismatch): Adjust entry.
5134 * exec.c: Include "build-id.h".
5135 (validate_exec_file): Try to match build IDs instead of filenames.
5136 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5137 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5138 and pass down 'warn_if_slow'.
5139 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5140 gdb_bfd_open_closure to pass it down.
5141 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5142
4111f652
PA
51432020-05-19 Pedro Alves <palves@redhat.com>
5144
5145 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5146 * target.c (target_fileio_open_1): Rename to target_fileio_open
5147 and make extern. Use bool.
5148 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5149 (target_fileio_read_alloc_1): Adjust.
5150 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5151 (target_fileio_open_warn_if_slow): Delete declaration.
5152
ad80db5b
PA
51532020-05-19 Pedro Alves <palves@redhat.com>
5154
5155 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5156 Adjust all callers.
5157
1d6ce4d3
YS
51582020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5159
5160 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5161 whether disp is negative.
5162
9005fbbb
SM
51632020-05-19 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * symfile.h (struct symfile_segment_data)
5166 <~symfile_segment_data>: Remove.
5167 <segment_info>: Change to std::vector.
5168 * symfile.c (default_symfile_segments): Update.
5169 * elfread.c (elf_symfile_segments): Update.
5170
68b888ff
SM
51712020-05-19 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5174 <segments>: New.
5175 <segment_bases, segment_sizes>: Remove.
5176 * symfile.c (default_symfile_segments): Update.
5177 * elfread.c (elf_symfile_segments): Update.
5178 * remote.c (remote_target::get_offsets): Update.
5179 * solib-target.c (solib_target_relocate_section_addresses):
5180 Update.
5181
62982abd
SM
51822020-05-19 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * symfile.h (struct symfile_segment_data): Initialize fields.
5185 <~symfile_segment_data>: Add.
5186 (symfile_segment_data_up): New.
5187 (struct sym_fns) <sym_segments>: Return a
5188 symfile_segment_data_up.
5189 (default_symfile_segments): Return a symfile_segment_data_up.
5190 (free_symfile_segment_data): Remove.
5191 (get_symfile_segment_data): Return a symfile_segment_data_up.
5192 * symfile.c (default_symfile_segments): Likewise.
5193 (get_symfile_segment_data): Likewise.
5194 (free_symfile_segment_data): Remove.
5195 (symfile_find_segment_sections): Update.
5196 * elfread.c (elf_symfile_segments): Return a
5197 symfile_segment_data_up.
5198 * remote.c (remote_target::get_offsets): Update.
5199 * solib-target.c (solib_target_relocate_section_addresses):
5200 Update.
5201 * symfile-debug.c (debug_sym_segments): Return a
5202 symfile_segment_data_up.
5203
7f204339
RO
52042020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5205
e52a0f1b
RO
5206 PR build/25981
5207 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5208 Hardcode register numbers.
5209
7f204339
RO
5210 PR build/25981
5211 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5212 procfs_find_LDT_entry): Remove.
5213 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5214 procfs_find_LDT_entry): Remove.
5215 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5216 Remove.
5217
7f32a4d5
PA
52182020-05-17 Pedro Alves <palves@redhat.com>
5219 Andrew Burgess <andrew.burgess@embecosm.com>
5220 Keno Fischer <keno@juliacomputing.com>
5221
5222 PR gdb/25741
5223 * breakpoint.c (build_target_condition_list): Update comments.
5224 (build_target_command_list): Update comments and skip matching
5225 locations.
5226 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5227 a separate function. Simplify "set breakpoint auto-hw off"
5228 handling.
5229 (insert_breakpoints): Update comment.
5230 (tracepoint_locations_match): New parameter. For breakpoints,
5231 compare location types too, if the caller wants to.
5232 (handle_automatic_hardware_breakpoints): New functions.
5233 (bp_location_is_less_than): Also sort by location type and
5234 hardware breakpoint length.
5235 (update_global_location_list): Handle "set breakpoint auto-hw on"
5236 here.
5237 (update_breakpoint_locations): Ask breakpoint_locations_match to
5238 ignore location types.
5239
7d93a1e0
SM
52402020-05-16 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5243 type::name instead.
5244
d0e39ea2
SM
52452020-05-16 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (struct type) <name, set_name>: New methods.
5248 (TYPE_CODE): Use type::name. Change all call sites used to set
5249 the name to use type::set_name instead.
5250
2dab0c7b
TT
52512020-05-16 Tom Tromey <tom@tromey.com>
5252
5253 * top.c (quit_force): Update.
5254 * infrun.c (handle_no_resumed): Update.
5255 * top.h (all_uis): New function.
5256 (ALL_UIS): Remove.
5257
59f7bd8d
SM
52582020-05-16 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5261
9bf058f0
PA
52622020-05-16 Pedro Alves <palves@redhat.com>
5263
5264 * ia64-linux-nat.c
5265 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5266 Declare method.
5267 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5268
8f86ae1a
SM
52692020-05-15 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5272 (sparc64_adi_info): Likewise.
5273
d6bc0792
TT
52742020-05-15 Tom Tromey <tom@tromey.com>
5275
5276 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5277 block_objfile.
5278 (lookup_objfile_from_block): Remove.
5279 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5280 (lookup_global_symbol): Use block_objfile.
5281 * symtab.h (lookup_objfile_from_block): Don't declare.
5282 * printcmd.c (clear_dangling_display_expressions): Use
5283 block_objfile.
5284 * parse.c (operator_check_standard): Use block_objfile.
5285
8c14c3a3
TT
52862020-05-15 Tom Tromey <tom@tromey.com>
5287
5288 * language.c (language_alloc_type_symbol): Set
5289 SYMBOL_SECTION.
5290 * symtab.c (initialize_objfile_symbol): Remove.
5291 (allocate_symbol): Remove.
5292 (allocate_template_symbol): Remove.
5293 * dwarf2/read.c (fixup_go_packaging): Use "new".
5294 (new_symbol): Use "new".
5295 (read_variable): Don't call initialize_objfile_symbol. Use
5296 "new".
5297 (read_func_scope): Use "new".
5298 * xcoffread.c (process_xcoff_symbol): Don't call
5299 initialize_objfile_symbol.
5300 (SYMBOL_DUP): Remove.
5301 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5302 "new".
5303 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5304 (allocate_template_symbol): Don't declare.
5305 (struct symbol): Add copy constructor. Change defaults.
5306 * jit.c (finalize_symtab): Use "new".
5307 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5308 Use "new".
5309 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5310 (common_block_end): Use "new".
5311 * mdebugread.c (parse_symbol): Use "new".
5312 (new_symbol): Likewise.
5313
5b4a1a8d
PW
53142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5315
5316 * NEWS: Mention changes to help and apropos.
5317
57b4f16e
PW
53182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319
5320 * command.h (enum command_class): Improve comments, document
5321 that class_alias is for user-defined aliases, give the class
5322 name for each class, remove unused class_xdb.
5323 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5324 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5325 by a precise class.
5326 * infcmd.c (_initialize_infcmd): Likewise.
5327 * reverse.c (_initialize_reverse): Likewise.
5328 * stack.c (_initialize_stack): Likewise.
5329 * symfile.c (_initialize_symfile): Likewise.
5330 * tracepoint.c (_initialize_tracepoint): Likewise.
5331
7c05caf7
PW
53322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5333
5334 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5335 when their aliased command is traversed.
5336 (help_cmd): Add fput_command_names_styled call to
5337 output command name and aliases when command has an alias.
5338
3b3aaacb
PW
53392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5340
5341 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5342 * cli/cli-decode.c (help_cmd_list): Declare as static,
5343 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5344 a command together with the command.
5345 (fput_command_name_styled, fput_command_names_styled): New functions.
5346 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5347 fput_command_name_styled.
5348 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5349 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5350
7aa1b46f
PW
53512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5352
5353 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5354 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5355 * command.h (cmd_show_list): Likewise.
5356 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5357 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5358
89bcba74
PW
53592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * unittests/command-def-selftests.c (traverse_command_structure):
5362 Verify all commands of a list have the same prefix command and
5363 that only the top cmdlist commands have a null prefix.
5364
3f4d92eb
PW
53652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5366
5367 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5368 as prefix, not one of its aliases.
5369 (set_cmd_prefix): Remove.
5370 (do_add_cmd): Centralize the setting of the prefix of a command, when
5371 command is defined after its full chain of prefix commands.
5372 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5373 (add_setshow_cmd_full): Likewise.
5374 (update_prefix_field_of_prefixed_commands): New function.
5375 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5376 update_prefix_field_of_prefixed_commands.
5377 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5378 addresses of remote_set_cmdlist and remote_show_cmdlist given
5379 as argument, not the address of an argument.
5380 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5381 * gdb/remote.c (_initialize_remote): Likewise.
5382
0605465f
PW
53832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5384
5385 * cli/cli-cmds.c (alias_command): Check for an existing alias
5386 using lookup_cmd_composition, as valid_command_p is too strict
5387 and forbids aliases that are the prefix of an existing alias
5388 or command.
5389 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5390 command is properly recognised as a valid command.
5391
58e6ac70
PW
53922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5393
5394 * unittests/help-doc-selftests.c: Rename to
5395 unittests/command-def-selftests.c
5396 * unittests/command-def-selftests.c (help_doc_tests): Update some
5397 comments.
5398 (command_structure_tests, traverse_command_structure): New namespace
5399 and function.
5400 (command_structure_invariants_tests): New function.
5401 (_initialize_command_def_selftests) Renamed from
5402 _initialize_help_doc_selftests, register command_structure_invariants
5403 selftest.
5404
a7b9ceb8
PW
54052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5406
5407 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5408 an alias of 'show'.
5409
b2188a06
JB
54102020-05-15 Joel Brobecker <brobecker@adacore.com>
5411
5412 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5413 ada_is_fixed_point_type. Update all callers.
5414 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5415 all callers.
5416 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5417 Update all callers.
5418 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5419 print_fixed_point_type. Update all callers.
5420 * ada-valprint.c (ada_value_print_num): Replace call to
5421 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5422
a51951c2
KB
54232020-05-14 Kevin Buettner <kevinb@redhat.com>
5424
5425 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5426 processors.
5427 (cpu_supports_bts): Add CV_AMD case.
5428
29d6859f
LM
54292020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5430 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * infrun.c (stop_all_threads): Collect multiple wait events at
5433 each pass.
5434
78134374
SM
54352020-05-14 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5438 type::code instead.
5439
67607e24
SM
54402020-05-14 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * gdbtypes.h (struct type) <code, set_code>: New methods.
5443 (TYPE_CODE): Use type::code. Change all call sites used to set
5444 the code to use type::set_code instead.
5445
a05575d3
TBA
54462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5447 Tom de Vries <tdevries@suse.de>
5448 Pedro Alves <palves@redhat.com>
5449
5450 PR threads/25478
5451 * infrun.c (stop_all_threads): Do NOT ignore
5452 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5453 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5454 received.
5455 (handle_no_resumed): Remove code handling a live inferior with no
5456 threads.
5457 * remote.c (has_single_non_exited_thread): New.
5458 (remote_target::update_thread_list): Do not delete a thread if is
5459 the last thread of the process.
5460 * thread.c (thread_select): Call delete_exited_threads instead of
5461 prune_threads.
5462
6ad82919
TBA
54632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5464
5465 * infrun.c (stop_all_threads): Enable/disable thread events of all
5466 targets. Move a debug message denoting the end of the function
5467 into the SCOPED_EXIT block.
5468
d890404b
TBA
54692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5470
5471 * process-stratum-target.h: Include <set>.
5472 (all_non_exited_process_targets, switch_to_target_no_thread): New
5473 function declarations.
5474 * process-stratum-target.c (all_non_exited_process_targets)
5475 (switch_to_target_no_thread): New function implementations.
5476
293b3ebc
TBA
54772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5478
5479 * infrun.c (handle_inferior_event): Extract out a piece of code
5480 into...
5481 (mark_non_executing_threads): ...this new function.
5482
7ca9b62a
TBA
54832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5484
5485 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5486 use.
5487
fc75c28b
TBA
54882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5489
5490 * regcache.c (regcache_read_pc_protected): New function
5491 implementation that returns 0 if the PC cannot read via
5492 'regcache_read_pc'.
5493 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5494 instead of 'regcache_read_pc'.
5495 (keep_going_pass_signal): Ditto.
5496
a89febbd
TT
54972020-05-13 Tom Tromey <tromey@adacore.com>
5498
5499 * ada-lang.c (align_value): Remove.
5500 (ada_template_to_fixed_record_type_1): Use align_up.
5501
f7e23710
TBA
55022020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5503
5504 * async-event.c: Update the copyright year.
5505 * async-event.h: Update the copyright year.
5506
02ff80c2
SM
55072020-05-12 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * objfiles.h (is_addr_in_objfile,
5510 shared_objfile_contains_address_p): Return bool.
5511 * objfile.c (is_addr_in_objfile,
5512 shared_objfile_contains_address_p): Return bool.
5513
4fd6c7e8
TT
55142020-05-11 Tom Tromey <tromey@adacore.com>
5515
5516 * cli/cli-cmds.c (info_command): Restore.
5517 (_initialize_cli_cmds): Use add_prefix_command for "info".
5518 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5519
5eb68a39
TT
55202020-05-11 Tom Tromey <tromey@adacore.com>
5521
5522 * ada-lang.c (ada_value_primitive_field): Now public.
5523 * ada-lang.h (ada_value_primitive_field): Declare.
5524 * ada-valprint.c (print_field_values): Use
5525 ada_value_primitive_field for wrapper fields.
5526
7666722f
TV
55272020-05-11 Tom de Vries <tdevries@suse.de>
5528
5529 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5530 MODULE_DOMAIN.
5531
3ee6bb11
TV
55322020-05-11 Tom de Vries <tdevries@suse.de>
5533
5534 PR symtab/25941
5535 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5536 with length 0, if not gdb-produced.
5537 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5538
43434996
TV
55392020-05-09 Tom de Vries <tdevries@suse.de>
5540
5541 PR gdb/25955
5542 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5543 calculation.
5544
2f78cffc
TT
55452020-05-09 Tom Tromey <tom@tromey.com>
5546
5547 * top.c (server_command): Now bool.
5548 * top.h (server_command): Now bool.
5549
4f7bc5ed
TT
55502020-05-08 Tom Tromey <tromey@adacore.com>
5551
5552 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5553 already being processed.
5554
8be4b118
TT
55552020-05-08 Tom Tromey <tom@tromey.com>
5556
5557 * printcmd.c (struct display) <next>: Remove.
5558 <display>: New constructor.
5559 <exp_string>: Now a std::string.
5560 <enabled_p>: Now a bool.
5561 (display_number): Move definition earlier.
5562 (displays): Rename from display_chain. Now a std::vector.
5563 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5564 (display_command): Update.
5565 (do_one_display, disable_display)
5566 (enable_disable_display_command, do_enable_disable_display):
5567 Update.
5568 (free_display): Remove.
5569 (clear_displays): Rewrite.
5570 (delete_display): Update.
5571 (map_display_numbers): Use function_view. Remove "data"
5572 parameter. Update.
5573 (do_delete_display): Remove.
5574 (undisplay_command): Update.
5575 (do_one_display, do_displays, disable_display)
5576 (info_display_command): Update.
5577 (do_enable_disable_display): Remove.
5578 (enable_disable_display_command)
5579 (clear_dangling_display_expressions): Update.
5580
94c93c35
TT
55812020-05-08 Tom Tromey <tom@tromey.com>
5582
5583 * symtab.c (set_symbol_cache_size)
5584 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5585 (maintenance_print_symbol_cache_statistics): Update.
5586 * symmisc.c (print_symbol_bcache_statistics)
5587 (print_objfile_statistics, maintenance_print_objfiles)
5588 (maintenance_info_symtabs, maintenance_check_symtabs)
5589 (maintenance_expand_symtabs, maintenance_info_line_tables):
5590 Update.
5591 * symfile-debug.c (set_debug_symfile): Update.
5592 * source.c (forget_cached_source_info): Update.
5593 * python/python.c (gdbpy_progspaces): Update.
5594 * psymtab.c (maintenance_info_psymtabs): Update.
5595 * probe.c (parse_probes): Update.
5596 * linespec.c (iterate_over_all_matching_symtabs)
5597 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5598 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5599 * exec.c (exec_target::close): Update.
5600 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5601 * breakpoint.c (print_one_breakpoint_location)
5602 (create_longjmp_master_breakpoint)
5603 (create_std_terminate_master_breakpoint): Update.
5604 * progspace.c (program_spaces): Now a std::vector.
5605 (maybe_new_address_space): Update.
5606 (add_program_space): Remove.
5607 (program_space::program_space): Update.
5608 (remove_program_space): Update.
5609 (number_of_program_spaces): Remove.
5610 (print_program_space, update_address_spaces): Update.
5611 * progspace.h (program_spaces): Change type.
5612 (ALL_PSPACES): Remove.
5613 (number_of_program_spaces): Don't declare.
5614 (struct program_space) <next>: Remove.
5615
a1fd1ac9
TT
56162020-05-08 Tom Tromey <tom@tromey.com>
5617
5618 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5619 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5620 (enable_break): Update.
5621 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5622 (frv_fdpic_find_canonical_descriptor): Update.
5623 (frv_fetch_objfile_link_map): Update.
5624 * progspace.c (program_space::free_all_objfiles): Update.
5625 (program_space::solibs): New method.
5626 * progspace.h (struct program_space) <solibs>: New method.
5627 * solist.h (master_so_list): Don't declare.
5628 (ALL_SO_LIBS): Remove.
5629 * solib.h (so_list_head): Remove.
5630 (update_solib_list): Update comment.
5631 * solib.c (master_so_list): Remove.
5632 (solib_used, update_solib_list, solib_add)
5633 (info_sharedlibrary_command, clear_solib)
5634 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5635
38eae084
TT
56362020-05-08 Tom Tromey <tom@tromey.com>
5637
5638 * extension.c (extension_languages): Now a std::array.
5639 (ALL_EXTENSION_LANGUAGES): Remove.
5640 (get_ext_lang_defn, get_ext_lang_of_file)
5641 (eval_ext_lang_from_control_command): Update.
5642 (finish_ext_lang_initialization)
5643 (auto_load_ext_lang_scripts_for_objfile)
5644 (ext_lang_type_printers::ext_lang_type_printers)
5645 (apply_ext_lang_type_printers)
5646 (ext_lang_type_printers::~ext_lang_type_printers)
5647 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5648 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5649 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5650 (get_matching_xmethod_workers, ext_lang_colorize)
5651 (ext_lang_before_prompt): Update.
5652 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5653
596dc4ad
TT
56542020-05-08 Tom Tromey <tom@tromey.com>
5655
5656 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5657 overload.
5658 <swap_string, m_string>: Remove.
5659 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5660 Update.
5661 * stabsread.c (define_symbol, read_type): Update.
5662 * linespec.c (find_linespec_symbols): Update.
5663 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5664 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5665 * dbxread.c (read_dbx_symtab): Update.
5666 * cp-support.h (cp_canonicalize_string_full)
5667 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5668 Return unique_xmalloc_ptr.
5669 * cp-support.c (inspect_type): Update.
5670 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5671 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5672 Likewise.
5673 * c-typeprint.c (print_name_maybe_canonical): Update.
5674 * break-catch-throw.c (check_status_exception_catchpoint):
5675 Update.
5676
bf4cb9be
TV
56772020-05-08 Tom de Vries <tdevries@suse.de>
5678
5679 * infrun.c (follow_fork): Copy current_line and current_symtab to
5680 child thread.
5681
a1b68f28
SM
56822020-05-07 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * async-event.c (struct async_signal_handler, struct
5685 async_event_handler): Reformat, remove typedef.
5686
98d48915
SM
56872020-05-07 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5690 access thistype->main_type->dyn_prop_list directly.
5691
7aa91313
SM
56922020-05-07 Simon Marchi <simon.marchi@efficios.com>
5693
5694 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5695 (remove_dyn_prop): Remove. Update all users to use
5696 type::remove_dyn_prop.
5697 * gdbtypes.c (remove_dyn_prop): Rename to...
5698 (type::remove_dyn_prop): ... this.
5699
5c54719c
SM
57002020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5701
5702 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5703 (add_dyn_prop): Remove. Update all users to use
5704 type::add_dyn_prop.
5705 * gdbtypes.c (add_dyn_prop): Rename to...
5706 (type::add_dyn_prop): ... this.
5707
24e99c6c
SM
57082020-05-07 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5711 (get_dyn_prop): Remove. Update all users to use
5712 type::dyn_prop.
5713 * gdbtypes.c (get_dyn_prop): Rename to...
5714 (type::dyn_prop): ... this.
5715
0d4bf016
SM
57162020-05-06 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5719
ac4a4f1c
SM
57202020-05-06 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5723 instruction, skip it if it's there.
5724
a3bbacc1
SM
57252020-05-05 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5728
c3236f84
SM
57292020-05-04 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5732 * gdbtypes.c (recursive_dump_type): Remove use of
5733 TYPE_INCOMPLETE.
5734
3b6acaee
TT
57352020-05-03 Tom Tromey <tom@tromey.com>
5736
5737 * breakpoint.c (catch_command, tcatch_command): Remove.
5738 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5739 add_show_prefix_cmd.
5740 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5741 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5742 Remove.
5743 (add_internal_problem_command): Use add_basic_prefix_cmd,
5744 add_show_prefix_cmd.
5745 * mips-tdep.c (set_mipsfpu_command): Remove.
5746 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5747 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5748 (_initialize_index_cache): Use add_basic_prefix_cmd.
5749 * memattr.c (dummy_cmd): Remove.
5750 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5751 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5752 (_initialize_tui_win): Use add_basic_prefix_cmd,
5753 add_show_prefix_cmd.
5754 * cli/cli-logging.c (set_logging_command): Remove.
5755 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5756 add_show_prefix_cmd.
5757 (show_logging_command): Remove.
5758 * target.c (target_command): Remove.
5759 (add_target): Use add_basic_prefix_cmd.
5760
a51119cd
HD
57612020-05-02 Hannes Domani <ssbssa@yahoo.de>
5762
5763 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5764
652fc23a 57652020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5766
652fc23a
PW
5767 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5768 info_command.
5769
117539e6
KR
57702020-04-30 Kamil Rytarowski <n54@gmx.com>
5771
5772 * nbsd-nat.c (nbsd_enable_proc_events)
5773 (nbsd_nat_target::post_startup_inferior): Add.
5774 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5775 (nbsd_nat_target::update_thread_list): Rewrite.
5776 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5777 "PTRACE_LWP_CREATE".
5778 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5779
102e38eb 57802020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5781
102e38eb
PW
5782 * stack.c (_initialize_stack): Remove duplicated creation
5783 of "frame" command and "f" alias.
5784
ee9d1e5f
HD
57852020-04-30 Hannes Domani <ssbssa@yahoo.de>
5786
5787 PR gdb/18706
5788 * gdbtypes.c (check_typedef): Calculate size of array of
5789 stubbed type.
5790
627c7fb8
HD
57912020-04-30 Hannes Domani <ssbssa@yahoo.de>
5792
5793 PR gdb/15559
5794 * i386-tdep.c (i386_push_dummy_call): Call
5795 i386_thiscall_push_dummy_call.
5796 (i386_thiscall_push_dummy_call): New function.
5797 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5798 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5799 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5800
ffc2844e
SM
58012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * gdbarch.sh (do_read): Add shellcheck disable directive for
5804 warning SC2162.
5805
1207375d
SM
58062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5809 "referenced but not assigned" warning.
5810
9fdb2916
SM
58112020-04-29 Simon Marchi <simon.marchi@efficios.com>
5812
5813 * gdbarch.sh: Remove code that sets fallbackdefault.
5814
759cea5e
SM
58152020-04-29 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * gdbarch.sh: Use shell operators && and || instead of
5818 -a and -o.
5819
cb02ab24
SM
58202020-04-29 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbarch.sh: Use $(...) instead of `...`.
5823
a6fc5ffc
SM
58242020-04-29 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * gdbarch.sh: Use double quotes around variables.
5827
8d113d13
SM
58282020-04-29 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * gdbarch.sh: Use %s with printf, instead of variables in the
5831 format string.
5832
ed6acedd
TT
58332020-04-29 Tom Tromey <tromey@adacore.com>
5834
5835 PR ada/25875:
5836 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5837 type fields here.
5838 (read_enumeration_type): Call
5839 update_enumeration_type_from_children later. Update comments.
5840 (process_enumeration_scope): Don't create type fields.
5841
b68b1b58
KR
58422020-04-29 Kamil Rytarowski <n54@gmx.com>
5843
5844 * nbsd-tdep.c: Include "xml-syscall.h".
5845 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5846
f94b2e03
KR
58472020-04-29 Kamil Rytarowski <n54@gmx.com>
5848
5849 * nbsd-nat.c: Include "sys/wait.h".
5850 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5851 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5852 (nbsd_nat_target::remove_exec_catchpoint)
5853 (nbsd_nat_target::set_syscall_catchpoint): Add.
5854 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5855 (nbsd_nat_target::insert_exec_catchpoint)
5856 (nbsd_nat_target::remove_exec_catchpoint)
5857 (nbsd_nat_target::set_syscall_catchpoint): Add.
5858 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5859 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5860 `nbsd_get_syscall_number'.
5861
fc49bc72
TT
58622020-04-29 Tom Tromey <tom@tromey.com>
5863
5864 * stack.c (print_block_frame_labels): Remove.
5865
d642b692
HD
58662020-04-29 Hannes Domani <ssbssa@yahoo.de>
5867
5868 PR gdb/17320
5869 * ada-valprint.c (val_print_packed_array_elements): Move array
5870 end bracket to new line.
5871 (ada_val_print_string): Remove extra spaces before first array
5872 element.
5873 * c-valprint.c (c_value_print_array): Likewise.
5874 * m2-valprint.c (m2_print_array_contents): Likewise.
5875 (m2_value_print_inner): Likewise.
5876 * p-valprint.c (pascal_value_print_inner): Likewise.
5877 * valprint.c (generic_val_print_array): Likewise.
5878 (value_print_array_elements): Move first array element and array
5879 end bracket to new line.
5880
ea90f227
TV
58812020-04-29 Tom de Vries <tdevries@suse.de>
5882
5883 PR symtab/25889
5884 * linespec.c (find_method): Fix ix calculation.
5885
4498ef4f
KR
58862020-04-28 Kamil Rytarowski <n54@gmx.com>
5887
5888 * syscalls/update-netbsd.sh: New file.
5889 * syscalls/netbsd.xml: Regenerate.
5890 * data-directory/Makefile.in: Register `netbsd.xml' in
5891 `SYSCALLS_FILES'.
5892
a55e30b5
SM
58932020-04-28 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * syscalls/update-freebsd.sh: Add double quotes.
5896
2b2fbab8
TT
58972020-04-28 Tom Tromey <tom@tromey.com>
5898
5899 * NEWS: Update.
5900 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5901 (cmdpy_init): Allow class_tui.
5902
a65189c9
TV
59032020-04-28 Mark Williams <mark@myosotissp.com>
5904
5905 PR gdb/24480
5906 * dwarf2read.c: Add missing assingments to list_in_scope when
5907 start_symtab was already called.
5908
1b95cdb7
SM
59092020-04-28 Simon Marchi <simon.marchi@efficios.com>
5910
5911 PR gdb/25881
5912 * dwarf2/read.c (offset_map_type): Use
5913 gdb:hash_enum<sect_offset> as hash function.
5914
15cd93d0
TV
59152020-04-28 Tom de Vries <tdevries@suse.de>
5916
5917 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5918 with DW_AT_signature.
5919
1eb39914
SM
59202020-04-27 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * configure.ac: Remove check for fs_base/gs_base in
5923 user_regs_struct.
5924 * configure: Re-generate.
5925 * config.in: Re-generate.
5926 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5927 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5928 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5929
991a3e2e
LM
59302020-04-27 Luis Machado <luis.machado@linaro.org>
5931
5932 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5933 problematic inline frame unwinding situation.
5934 * frame.c (frame_id_computed_p): New function.
5935 * frame.h (frame_id_computed_p): New prototype.
5936
361ba0e8
TT
59372020-04-26 Tom Tromey <tom@tromey.com>
5938
5939 * command.h (enum command_class) <class_pseudo>: Remove.
5940
bc3609fd
PW
59412020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5942
5943 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5944 and whitespace.
5945
b9771db7
KR
59462020-04-25 Kamil Rytarowski <n54@gmx.com>
5947
ec16513e
SM
5948 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5949 `PT_GET_PROCESS_STATE' block.
b9771db7 5950
7151c1af
TT
59512020-04-24 Tom Tromey <tom@tromey.com>
5952
5953 * symtab.h (symbol_get_demangled_name): Don't declare.
5954 * symtab.c (symbol_get_demangled_name): Remove.
5955 (general_symbol_info::natural_name)
5956 (general_symbol_info::demangled_name): Update.
5957
906bb4c5
TT
59582020-04-24 Tom Tromey <tom@tromey.com>
5959
5960 PR rust/25025:
5961 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5962
bcfe6157
TT
59632020-04-24 Tom Tromey <tom@tromey.com>
5964
5965 PR symtab/12707:
5966 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5967 exists.
5968 (new_symbol): Likewise.
5969 * compile/compile-object-load.c (get_out_value_type): Use
5970 symbol_matches_search_name.
5971
f049a313
TT
59722020-04-24 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/read.c (add_partial_symbol): Do not call
5975 compute_and_set_names.
5976
76e288d1
TT
59772020-04-24 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5980 overload.
5981
2467f4f6
TT
59822020-04-24 Tom Tromey <tom@tromey.com>
5983
5984 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5985 (add_psymbol_to_list): New overload. Make old overload call new
5986 one.
5987 * psympriv.h (add_psymbol_to_list): New overload.
5988
e61108c9
TT
59892020-04-24 Tom Tromey <tom@tromey.com>
5990
5991 * dwarf2/read.c (partial_die_info::read) <case
5992 DW_AT_linkage_name>: Use value_as_string.
5993 (dwarf2_string_attr): Use value_as_string.
5994 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5995 method.
5996 * dwarf2/attribute.c (attribute::value_as_string): New method.
5997
8c87a452
TT
59982020-04-24 Tom Tromey <tom@tromey.com>
5999
6000 * symtab.c (general_symbol_info::natural_name)
6001 (general_symbol_info::demangled_name): Check for language_rust.
6002
787de330
TT
60032020-04-24 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6006 (dwarf2_physname): ... from here.
6007 (partial_die_info::read): Add Rust "{" hack.
6008
ff985671
TT
60092020-04-24 Tom Tromey <tom@tromey.com>
6010
6011 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6012 method.
6013 (symbol_set_demangled_name): Don't declare.
6014 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6015 symbol_set_demangled_name.
6016 (general_symbol_info::set_language)
6017 (general_symbol_info::compute_and_set_names): Update.
6018 * minsyms.c (minimal_symbol_reader::install): Update.
6019 * dwarf2/read.c (new_symbol): Update.
6020
1acda803
TT
60212020-04-24 Tom Tromey <tromey@adacore.com>
6022
6023 PR python/23662:
6024 * python/py-type.c (convert_field): Handle
6025 FIELD_LOC_KIND_DWARF_BLOCK.
6026 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6027 (typy_get_dynamic): Nw function.
6028 (type_object_getset): Add "dynamic".
6029 * NEWS: Add entry.
6030
d656f129
TT
60312020-04-24 Tom Tromey <tromey@adacore.com>
6032
6033 * ada-typeprint.c (print_choices, print_variant_part)
6034 (print_record_field_types_dynamic): New functions.
6035 (print_record_field_types): Use print_record_field_types_dynamic.
6036
7d79de9a
TT
60372020-04-24 Tom Tromey <tromey@adacore.com>
6038
6039 * dwarf2/read.c (handle_data_member_location): New overload.
6040 (dwarf2_add_field): Use it.
6041 (decode_locdesc): Add "computed" parameter. Update comment.
6042 * gdbtypes.c (is_dynamic_type_internal): Also look for
6043 FIELD_LOC_KIND_DWARF_BLOCK.
6044 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6045 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6046 virtual base classes.
6047 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6048 FIELD_LOC_KIND_DWARF_BLOCK.
6049
f8e89861
TT
60502020-04-24 Tom Tromey <tromey@adacore.com>
6051
6052 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6053 * gdbtypes.c (is_dynamic_type_internal): Check
6054 TYPE_HAS_DYNAMIC_LENGTH.
6055 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6056 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6057 New macros.
6058 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6059 constant.
6060
9c6a1327
TT
60612020-04-24 Tom Tromey <tromey@adacore.com>
6062
6063 * dwarf2/read.c (struct variant_field): Rewrite.
6064 (struct variant_part_builder): New.
6065 (struct nextfield): Remove "variant" field. Add "offset".
6066 (struct field_info): Add "current_variant_part" and
6067 "variant_parts".
6068 (alloc_discriminant_info): Remove.
6069 (alloc_rust_variant): New function.
6070 (quirk_rust_enum): Update.
6071 (dwarf2_add_field): Set "offset" member. Don't handle
6072 DW_TAG_variant_part.
6073 (offset_map_type): New typedef.
6074 (convert_variant_range, create_one_variant)
6075 (create_one_variant_part, create_variant_parts)
6076 (add_variant_property): New functions.
6077 (dwarf2_attach_fields_to_type): Call add_variant_property.
6078 (read_structure_type): Don't handle DW_TAG_variant_part.
6079 (handle_variant_part, handle_variant): New functions.
6080 (handle_struct_member_die): Use them.
6081 (process_structure_scope): Don't handle variant parts.
6082 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6083 (struct discriminant_info): Remove.
6084 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6085 (struct main_type) <flag_discriminated_union>: Remove.
6086 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6087 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6088 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6089 Update.
6090 * valops.c (value_union_variant): Remove.
6091 * value.h (value_union_variant): Don't declare.
6092
b249d2c2
TT
60932020-04-24 Tom Tromey <tromey@adacore.com>
6094
6095 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6096 (ada_value_primitive_packed_val): Update.
6097 * ada-valprint.c (ada_value_print_1): Update.
6098 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6099 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6100 just an address. Use evaluate_for_locexpr_baton.
6101 (dwarf2_evaluate_property): Update.
6102 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6103 array_view.
6104 * findvar.c (default_read_var_value): Update.
6105 * gdbtypes.c (compute_variant_fields_inner)
6106 (resolve_dynamic_type_internal): Update.
6107 (resolve_dynamic_type): Change type of valaddr parameter.
6108 * gdbtypes.h (resolve_dynamic_type): Update.
6109 * valarith.c (value_subscripted_rvalue): Update.
6110 * value.c (value_from_contents_and_address): Update.
6111
61122aa9
TT
61122020-04-24 Tom Tromey <tromey@adacore.com>
6113
6114 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6115 "push_initial_value" parameter.
6116 (dwarf2_evaluate_property): Likewise.
6117 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6118
ef83a141
TT
61192020-04-24 Tom Tromey <tromey@adacore.com>
6120
6121 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6122 (variant::matches, compute_variant_fields_recurse)
6123 (compute_variant_fields_inner, compute_variant_fields): New
6124 functions.
6125 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6126 Use resolved_type after type is made.
6127 (operator==): Add new cases.
6128 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6129 (struct discriminant_range, struct variant, struct variant_part):
6130 New.
6131 (union dynamic_prop_data) <variant_parts, original_type>: New
6132 members.
6133 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6134 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6135 constants.
6136 * value.c (unpack_bits_as_long): Now public.
6137 * value.h (unpack_bits_as_long): Declare.
6138
675127ec
TT
61392020-04-24 Tom Tromey <tromey@adacore.com>
6140
6141 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6142 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6143
9852ceef
HD
61442020-04-24 Hannes Domani <ssbssa@yahoo.de>
6145
6146 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6147
7632c6ce
KR
61482020-04-24 Kamil Rytarowski <n54@gmx.com>
6149
6150 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6151 (remove_fork_catchpoint, post_startup_inferior)
6152 (post_attach): Move...
6153 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6154 (remove_fork_catchpoint, post_startup_inferior)
6155 (post_attach): ...here.
6156 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6157 (remove_fork_catchpoint, post_startup_inferior)
6158 (post_attach): Move...
6159 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6160 (remove_fork_catchpoint, post_startup_inferior)
6161 (post_attach): ...here.
6162
7be2bb4f
TT
61632020-04-24 Tom Tromey <tromey@adacore.com>
6164
6165 * nat/windows-nat.h (struct windows_thread_info)
6166 <pc_adjusted>: New member.
6167 * windows-nat.c (windows_fetch_one_register): Check
6168 pc_adjusted.
6169 (windows_nat_target::get_windows_debug_event)
6170 (windows_nat_target::wait): Set pc_adjusted.
6171
f80cb3b4
TV
61722020-04-24 Tom de Vries <tdevries@suse.de>
6173
6174 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6175 Run gdb-add-index inside temp dir.
6176
29514b87
TT
61772020-04-23 Tom Tromey <tromey@adacore.com>
6178
6179 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6180 in loop.
6181
5939967b
LM
61822020-04-23 Luis Machado <luis.machado@linaro.org>
6183
6184 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6185 get_frame_register instead of gdbarch_unwind_pc.
6186
70bc38f5
TV
61872020-04-23 Tom de Vries <tdevries@suse.de>
6188
6189 * symtab.c (lookup_global_symbol): Prefer def over decl.
6190
de82891c
TV
61912020-04-23 Tom de Vries <tdevries@suse.de>
6192
6193 PR symtab/25807
6194 * block.c (best_symbol, better_symbol): Promote to external.
6195 * block.h (best_symbol, better_symbol): Declare.
6196 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6197 decl.
6198
ecc6c606
TT
61992020-04-23 Tom Tromey <tromey@adacore.com>
6200
6201 PR ada/25837:
6202 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6203 "const char *", not a "const std::string &".
6204 <name_and_matcher::operator==>: Update.
6205 * unittests/lookup_name_info-selftests.c: Change type of
6206 "result".
6207
740480b8
TT
62082020-04-23 Tom Tromey <tom@tromey.com>
6209
6210 * inferior.h (iterate_over_inferiors): Don't declare.
6211 * inferior.c (iterate_over_inferiors): Remove.
6212 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6213 Remove.
6214 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6215 use iterate_over_inferiors.
6216 (darwin_resume_inferior_it)
6217 (struct resume_inferior_threads_param)
6218 (darwin_resume_inferior_threads_it): Remove.
6219 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6220
ae3ab1f0
TV
62212020-04-23 Tom de Vries <tdevries@suse.de>
6222
6223 * blockframe.c (find_pc_partial_function): Use
6224 find_pc_sect_compunit_symtab rather than
6225 objfile->sf->qf->find_pc_sect_compunit_symtab.
6226
317d2668
TV
62272020-04-22 Tom de Vries <tdevries@suse.de>
6228
6229 PR symtab/25764
6230 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6231 in psymtabs.
6232
eea9e357
TV
62332020-04-22 Tom de Vries <tdevries@suse.de>
6234
6235 PR symtab/25801
6236 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6237 symtabs.
6238
3d5afab3
TV
62392020-04-22 Tom de Vries <tdevries@suse.de>
6240
6241 PR symtab/25700
6242 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6243 CU if already created.
6244
d43b7a2d
TBA
62452020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6246
6247 * infrun.c (displaced_step_fixup): Switch to the event_thread
6248 before calling displaced_step_restore, not after.
6249
d89edf9b
MM
62502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6251
6252 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6253 its inferior is not recorded by us.
6254 (record_btrace_target_open): Replace call to
6255 all_non_exited_threads () with call to current_inferior
6256 ()->non_exited_threads ().
6257 (record_btrace_target::stop_recording): Likewise.
6258 (record_btrace_target::close): Likewise.
6259 (record_btrace_target::wait): Likewise.
6260 (record_btrace_target::record_stop_replaying): Likewise.
6261
5897fd49
MM
62622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6263
6264 * btrace.c (btrace_enable): Throw an error on double enables and
6265 when enabling recording fails.
6266 (btrace_disable): Throw an error if the thread is not recorded.
6267
1a476b6d
MM
62682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6269
6270 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6271 request if we do not have a thread_info.
6272
4778a5f8
TV
62732020-04-21 Tom de Vries <tdevries@suse.de>
6274
6275 PR gdb/25471
6276 * thread.c
6277 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6278 exception in get_frame_id.
6279
0fa7617d
TT
62802020-04-20 Tom Tromey <tromey@adacore.com>
6281
6282 * python/python.c (struct gdbpy_event): Mark move constructor as
6283 noexcept.
6284 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6285 constructor as noexcept.
6286 * completer.h (struct completion_result): Mark move constructor as
6287 noexcept.
6288 * completer.c (completion_result::completion_result): Use
6289 initialization style. Don't call reset_match_list.
6290
ad23bda0
MS
62912020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6292
6293 * MAINTAINERS (Write After Approval): Add myself.
6294
45e1f031
TT
62952020-04-18 Tom Tromey <tom@tromey.com>
6296
6297 * windows-tdep.c (init_w32_command_list)
6298 (w32_prefix_command_valid): Restore.
6299 (_initialize_windows_tdep): Call init_w32_command_list.
6300
08feed99
TT
63012020-04-18 Tom Tromey <tom@tromey.com>
6302
6303 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6304 * value.c (value_fn_field): Update.
6305 * valops.c (find_function_in_inferior)
6306 (value_allocate_space_in_inferior): Update.
6307 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6308 Update.
6309 * tui/tui-source.c (tui_source_window::set_contents): Update.
6310 * symtab.c (lookup_global_or_static_symbol)
6311 (find_function_start_sal_1, skip_prologue_sal)
6312 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6313 * symmisc.c (dump_msymbols, dump_symtab_1)
6314 (maintenance_print_one_line_table): Update.
6315 * symfile.c (init_entry_point_info, section_is_mapped)
6316 (list_overlays_command, simple_read_overlay_table)
6317 (simple_overlay_update_1): Update.
6318 * stap-probe.c (handle_stap_probe): Update.
6319 * stabsread.c (dbx_init_float_type, define_symbol)
6320 (read_one_struct_field, read_enum_type, read_range_type): Update.
6321 * source.c (info_line_command): Update.
6322 * python/python.c (gdbpy_source_objfile_script)
6323 (gdbpy_execute_objfile_script): Update.
6324 * python/py-type.c (save_objfile_types): Update.
6325 * python/py-objfile.c (py_free_objfile): Update.
6326 * python/py-inferior.c (python_new_objfile): Update.
6327 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6328 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6329 (maintenance_check_psymtabs): Update.
6330 * printcmd.c (info_address_command): Update.
6331 * objfiles.h (struct objfile) <arch>: New method, from
6332 get_objfile_arch.
6333 (get_objfile_arch): Don't declare.
6334 * objfiles.c (get_objfile_arch): Remove.
6335 (filter_overlapping_sections): Update.
6336 * minsyms.c (msymbol_is_function): Update.
6337 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6338 (output_nondebug_symbol): Update.
6339 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6340 (mdebug_expand_psymtab): Update.
6341 * machoread.c (macho_add_oso_symfile): Update.
6342 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6343 Update.
6344 * linux-fork.c (checkpoint_command): Update.
6345 * linespec.c (convert_linespec_to_sals): Update.
6346 * jit.c (finalize_symtab): Update.
6347 * infrun.c (insert_exception_resume_from_probe): Update.
6348 * ia64-tdep.c (ia64_find_unwind_table): Update.
6349 * hppa-tdep.c (internalize_unwinds): Update.
6350 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6351 Update.
6352 * gcore.c (call_target_sbrk): Update.
6353 * elfread.c (record_minimal_symbol, elf_symtab_read)
6354 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6355 (elf_gnu_ifunc_resolve_by_got): Update.
6356 * dwarf2/read.c (create_addrmap_from_index)
6357 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6358 (read_debug_names_from_section)
6359 (process_psymtab_comp_unit_reader, add_partial_symbol)
6360 (add_partial_subprogram, process_full_comp_unit)
6361 (read_file_scope, read_func_scope, read_lexical_block_scope)
6362 (read_call_site_scope, dwarf2_ranges_read)
6363 (dwarf2_record_block_ranges, dwarf2_add_field)
6364 (mark_common_block_symbol_computed, read_tag_pointer_type)
6365 (read_tag_string_type, dwarf2_init_float_type)
6366 (dwarf2_init_complex_target_type, read_base_type)
6367 (partial_die_info::read, partial_die_info::read)
6368 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6369 (dwarf2_fetch_die_loc_sect_off): Update.
6370 * dwarf2/loc.c (dwarf2_find_location_expression)
6371 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6372 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6373 (dwarf2_loc_desc_get_symbol_read_needs)
6374 (locexpr_describe_location_piece, locexpr_describe_location_1)
6375 (loclist_describe_location): Update.
6376 * dwarf2/index-write.c (write_debug_names): Update.
6377 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6378 * dtrace-probe.c (dtrace_process_dof): Update.
6379 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6380 (process_one_symbol): Update.
6381 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6382 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6383 (coff_read_enum_type): Update.
6384 * cli/cli-cmds.c (edit_command, list_command): Update.
6385 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6386 * breakpoint.c (create_overlay_event_breakpoint)
6387 (create_longjmp_master_breakpoint)
6388 (create_std_terminate_master_breakpoint)
6389 (create_exception_master_breakpoint, get_sal_arch): Update.
6390 * block.c (block_gdbarch): Update.
6391 * annotate.c (annotate_source_line): Update.
6392
0743fc83
TT
63932020-04-17 Tom Tromey <tromey@adacore.com>
6394
6395 * auto-load.c (show_auto_load_cmd): Remove.
6396 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6397 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6398 (maintenance_print_arc_command): Remove.
6399 * tui/tui-win.c (tui_command): Remove.
6400 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6401 * tui/tui-layout.c (tui_layout_command): Remove.
6402 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6403 * python/python.c (user_set_python, user_show_python): Remove.
6404 (_initialize_python): Use add_basic_prefix_cmd,
6405 add_show_prefix_cmd.
6406 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6407 (install_gdb_commands): Use add_basic_prefix_cmd,
6408 add_show_prefix_cmd.
6409 (info_guile_command): Remove.
6410 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6411 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6412 add_show_prefix_cmd.
6413 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6414 Remove do_set and do_show parameters.
6415 * cli/cli-style.c (set_style, show_style): Remove.
6416 (_initialize_cli_style): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 (cli_style_option::add_setshow_commands): Remove do_set and
6419 do_show parameters.
6420 (cli_style_option::add_setshow_commands): Use
6421 add_basic_prefix_cmd, add_show_prefix_cmd.
6422 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6423 (set_style_name): Remove.
6424 * cli/cli-dump.c (dump_command, append_command): Remove.
6425 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6426 (tekhex_dump_command, binary_dump_command)
6427 (binary_append_command): Remove.
6428 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6429 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6430 (init_w32_command_list): Remove; move into ...
6431 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6432 * valprint.c (set_print, show_print, set_print_raw)
6433 (show_print_raw): Remove.
6434 (_initialize_valprint): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * typeprint.c (set_print_type, show_print_type): Remove.
6437 (_initialize_typeprint): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 * record.c (set_record_command, show_record_command): Remove.
6440 (_initialize_record): Use add_basic_prefix_cmd,
6441 add_show_prefix_cmd.
6442 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 (info_command, show_command, set_debug, show_debug): Remove.
6445 * top.h (set_history, show_history): Don't declare.
6446 * top.c (set_history, show_history): Remove.
6447 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6448 (unset_tdesc_cmd): Remove.
6449 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 * symtab.c (info_module_command): Remove.
6452 (_initialize_symtab): Use add_basic_prefix_cmd.
6453 * symfile.c (overlay_command): Remove.
6454 (_initialize_symfile): Use add_basic_prefix_cmd.
6455 * sparc64-tdep.c (info_adi_command): Remove.
6456 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6457 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6458 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6459 add_show_prefix_cmd.
6460 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6461 (_initialize_serial): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6464 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6467 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6468 add_show_prefix_cmd.
6469 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6470 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6471 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * remote.c (remote_command, set_remote_cmd): Remove.
6474 (_initialize_remote): Use add_basic_prefix_cmd.
6475 * record-full.c (set_record_full_command)
6476 (show_record_full_command): Remove.
6477 (_initialize_record_full): Use add_basic_prefix_cmd,
6478 add_show_prefix_cmd.
6479 * record-btrace.c (cmd_set_record_btrace)
6480 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6481 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6482 (cmd_show_record_btrace_pt): Remove.
6483 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6484 add_show_prefix_cmd.
6485 * ravenscar-thread.c (set_ravenscar_command)
6486 (show_ravenscar_command): Remove.
6487 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6488 add_show_prefix_cmd.
6489 * mips-tdep.c (show_mips_command, set_mips_command)
6490 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6491 add_show_prefix_cmd.
6492 * maint.c (maintenance_command, maintenance_info_command)
6493 (maintenance_check_command, maintenance_print_command)
6494 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6495 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6496 add_show_prefix_cmd.
6497 (show_per_command_cmd): Remove.
6498 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6499 Remove.
6500 (maintenance_show_test_settings_cmd): Remove.
6501 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6502 add_show_prefix_cmd.
6503 * maint-test-options.c (maintenance_test_options_command):
6504 Remove.
6505 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6506 * macrocmd.c (macro_command): Remove
6507 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6508 * language.c (set_check, show_check): Remove.
6509 (_initialize_language): Use add_basic_prefix_cmd,
6510 add_show_prefix_cmd.
6511 * infcmd.c (unset_command): Remove.
6512 (_initialize_infcmd): Use add_basic_prefix_cmd.
6513 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6514 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6515 add_show_prefix_cmd.
6516 * go32-nat.c (go32_info_dos_command): Remove.
6517 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6518 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6519 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6520 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6521 (_initialize_frame): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6524 (_initialize_dcache): Use add_basic_prefix_cmd,
6525 add_show_prefix_cmd.
6526 * cp-support.c (maint_cplus_command): Remove.
6527 (_initialize_cp_support): Use add_basic_prefix_cmd.
6528 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6529 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6530 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6531 add_basic_prefix_cmd, add_show_prefix_cmd.
6532 * breakpoint.c (save_command): Remove.
6533 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6534 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6535 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6536 add_show_prefix_cmd.
6537 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6538 (set_ada_command, show_ada_command): Remove.
6539 (_initialize_ada_language): Use add_basic_prefix_cmd,
6540 add_show_prefix_cmd.
6541 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6542
3557f442
KR
65432020-04-16 Kamil Rytarowski <n54@gmx.com>
6544
6545 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6546 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6547
16197208
SM
65482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6549
6550 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6551 warning messages.
6552
00ac85d3
SM
65532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6556 import table is not at beginning of .idata section.
6557
381ce63f
PA
65582020-04-16 Pedro Alves <palves@redhat.com>
6559
6560 * inferior.c (delete_inferior): Use delete operator directly
6561 instead of delete_program_space.
6562 * progspace.c (add_program_space): New, factored out from
6563 program_space::program_space.
6564 (remove_program_space): New, factored out from
6565 delete_program_space.
6566 (program_space::program_space): Remove intro comment. Rewrite.
6567 (program_space::~program_space): Remove intro comment. Call
6568 remove_program_space.
6569 (delete_program_space): Delete.
6570 * progspace.h (program_space::program_space): Make explicit. Move
6571 intro comment here, adjusted.
6572 (program_space::~program_space): Move intro comment here,
6573 adjusted.
6574 (delete_program_space): Remove.
6575
a010605f
TT
65762020-04-16 Tom Tromey <tromey@adacore.com>
6577
6578 * windows-nat.c (windows_nat::handle_access_violation): New
6579 function.
6580 * nat/windows-nat.h (handle_access_violation): Declare.
6581 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6582 windows-nat.c. Call handle_access_violation.
6583
efba5c23
TV
65842020-04-16 Tom de Vries <tdevries@suse.de>
6585
6586 PR symtab/25791
6587 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6588 CUs without psymtab.
6589
97ed802d
KB
65902020-04-16 Kevin Buettner <kevinb@redhat.com>
6591
6592 * python/python.c (do_start_initialization): Don't call
6593 PyEval_InitThreads for Python 3.9 and beyond.
6594
c7d64809
KR
65952020-04-15 Kamil Rytarowski <n54@gmx.com>
6596
6597 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6598 thread functions.
6599 (obsd_nat_target::wait): Likewise.
6600
ce127a96
TT
66012020-04-15 Tom Tromey <tromey@adacore.com>
6602
6603 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6604 (DEBUG_EXCEPT): Use debug_printf.
6605
99f1bc6a
AB
66062020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * completer.c (class completion_tracker::completion_hash_entry)
6609 <hash_name>: New member function.
6610 (completion_tracker::discard_completions): New callback to hash a
6611 completion_hash_entry, pass this to htab_create_alloc.
6612
a0e9b532
JT
66132016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6614
6615 * windows-nat.c (windows_make_so): Warn rather than stopping with
6616 an error if realpath() fails.
6617
06ca5dd4
KR
66182020-04-14 Kamil Rytarowski <n54@gmx.com>
6619
6620 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6621 (nbsd_nat_target::info_proc): Add do_status.
6622
194d088f
TV
66232020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6624 Tom de Vries <tdevries@suse.de>
6625
6626 PR symtab/25718
6627 * psympriv.h (struct partial_symtab::read_symtab)
6628 (struct partial_symtab::expand_psymtab)
6629 (struct partial_symtab::read_dependencies): Update comments.
6630 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6631 read_symtab for includer.
6632 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6633 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6634 (struct dwarf2_include_psymtab::m_readin): Remove.
6635 (struct dwarf2_include_psymtab::includer): New member function.
6636 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6637
c1a66c06
TV
66382020-04-14 Tom de Vries <tdevries@suse.de>
6639
6640 PR symtab/25720
6641 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6642 with NULL symbol_matcher and lookup_name.
6643 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6644 and lookup_name.
6645 * dwarf2/read.c (dw2_expand_symtabs_matching)
6646 (dw2_debug_names_expand_symtabs_matching): Same.
6647 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6648 Make lookup_name a pointer. Update comment.
6649 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6650 lookup_name being a pointer.
6651 * symfile.c (expand_symtabs_matching): Same.
6652 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6653 * linespec.c (iterate_over_all_matching_symtabs): Same.
6654
400b5eca
TT
66552020-04-13 Tom Tromey <tom@tromey.com>
6656
6657 * run-on-main-thread.c: Update include.
6658 * unittests/main-thread-selftests.c: Update include.
6659 * tui/tui-win.c: Update include.
6660 * tui/tui-io.c: Update include.
6661 * tui/tui-interp.c: Update include.
6662 * tui/tui-hooks.c: Update include.
6663 * top.h: Update include.
6664 * top.c: Update include.
6665 * ser-base.c: Update include.
6666 * remote.c: Update include.
6667 * remote-notif.c: Update include.
6668 * remote-fileio.c: Update include.
6669 * record-full.c: Update include.
6670 * record-btrace.c: Update include.
6671 * python/python.c: Update include.
6672 * posix-hdep.c: Update include.
6673 * mingw-hdep.c: Update include.
6674 * mi/mi-main.c: Update include.
6675 * mi/mi-interp.c: Update include.
6676 * main.c: Update include.
6677 * linux-nat.c: Update include.
6678 * interps.c: Update include.
6679 * infrun.c: Update include.
6680 * inf-loop.c: Update include.
6681 * event-top.c: Update include.
6682 * event-loop.c: Move to ../gdbsupport/.
6683 * event-loop.h: Move to ../gdbsupport/.
6684 * async-event.h: Update include.
6685 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6686
93b54c8e
TT
66872020-04-13 Tom Tromey <tom@tromey.com>
6688
6689 * tui/tui-win.c: Include async-event.h.
6690 * remote.c: Include async-event.h.
6691 * remote-notif.c: Include async-event.h.
6692 * record-full.c: Include async-event.h.
6693 * record-btrace.c: Include async-event.h.
6694 * infrun.c: Include async-event.h.
6695 * event-top.c: Include async-event.h.
6696 * event-loop.h: Move some declarations to async-event.h.
6697 * event-loop.c: Don't include ser-event.h or top.h. Move some
6698 code to async-event.c.
6699 * async-event.h: New file.
6700 * async-event.c: New file.
6701 * Makefile.in (COMMON_SFILES): Add async-event.c.
6702 (HFILES_NO_SRCDIR): Add async-event.h.
6703
c1cd3163
TT
67042020-04-13 Tom Tromey <tom@tromey.com>
6705
6706 * utils.c (flush_streams): New function.
6707 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6708
29f2bf4f
TT
67092020-04-13 Tom Tromey <tom@tromey.com>
6710
6711 * event-loop.c (handle_file_event): Use warning, not
6712 printf_unfiltered.
6713
98029d02
TT
67142020-04-13 Tom Tromey <tom@tromey.com>
6715
6716 * event-loop.c: Include <chrono>.
6717
06cc9596
TT
67182020-04-13 Tom Tromey <tom@tromey.com>
6719
6720 * gdb_select.h: Move to ../gdbsupport/.
6721 * event-loop.c: Update include path.
6722 * top.c: Update include path.
6723 * ser-base.c: Update include path.
6724 * ui-file.c: Update include path.
6725 * ser-tcp.c: Update include path.
6726 * guile/scm-ports.c: Update include path.
6727 * posix-hdep.c: Update include path.
6728 * ser-unix.c: Update include path.
6729 * gdb_usleep.c: Update include path.
6730 * mingw-hdep.c: Update include path.
6731 * inflow.c: Update include path.
6732 * infrun.c: Update include path.
6733 * event-top.c: Update include path.
6734
8ae8e197
TT
67352020-04-13 Tom Tromey <tom@tromey.com>
6736
6737 * configure: Rebuild.
6738 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6739
58cf28e8
TT
67402020-04-13 Tom Tromey <tom@tromey.com>
6741
6742 * event-loop.h (start_event_loop): Don't declare.
6743 * event-loop.c (start_event_loop): Move...
6744 * main.c (start_event_loop): ...here. Now static.
6745
b7f999ae
SDJ
67462020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6747
6748 * MAINTAINERS: Update my email address.
6749
1085dfd4
KR
67502020-04-12 Kamil Rytarowski <n54@gmx.com>
6751
6752 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6753 IP_ALL.
6754
49d1d1f5
KR
67552020-04-12 Kamil Rytarowski <n54@gmx.com>
6756
6757 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6758 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6759
b4848d2a
KR
67602020-04-12 Kamil Rytarowski <n54@gmx.com>
6761
6762 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6763 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6764
51c133d5
KR
67652020-04-12 Kamil Rytarowski <n54@gmx.com>
6766
6767 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6768
54b8cbd0
KR
67692020-04-11 Kamil Rytarowski <n54@gmx.com>
6770
6771 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6772 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6773 (nbsd_nat_target::info_proc): New functions.
6774 * nbsd-nat.c (kinfo_get_vmmap): New function.
6775 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6776 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6777 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6778 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6779 functions.
6780 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6781 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6782 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6783 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6784 (KINFO_VME_FLAG_GROWS_DOWN): New.
6785
cf83625d
AS
67862020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6787
6788 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6789 bit shift.
6790
0c4311ab
TT
67912020-04-10 Tom Tromey <tromey@adacore.com>
6792
6793 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6794
3e65b3e9
TT
67952020-04-10 Tom Tromey <tromey@adacore.com>
6796
6797 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6798 separate debug files.
6799
13302e95
HD
68002020-04-10 Hannes Domani <ssbssa@yahoo.de>
6801
6802 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6803 Move to...
6804 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6805 ... here.
6806 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6807 Check for STATUS_WX86_BREAKPOINT.
6808 (windows_nat_target::wait): Same.
6809
bdfc1e8a
TV
68102020-04-10 Tom de Vries <tdevries@suse.de>
6811
6812 PR cli/25808
6813 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6814
f4460aec
SM
68152020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6816
6817 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6818 (Write After Approval): Remove Tom de Vries.
6819
a25198bb
BE
68202020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6821
6822 revert partially:
6823 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6824
aac66a4c
SM
6825 * buildsym.c (record_line): Fix undefined behavior and preserve
6826 lines at eof.
a25198bb 6827
206c98a6
KR
68282020-04-09 Kamil Rytarowski <n54@gmx.com>
6829
6830 * auxv.h (svr4_auxv_parse): New.
6831 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6832 and generic_auxv_parse.
6833 (svr4_auxv_parse): Add.
6834 * obsd-tdep.c: Include "auxv.h".
6835 (obsd_auxv_parse): Remove.
6836 (obsd_init_abi): Remove comment.
6837 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6838 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6839 * nbsd-tdep.c: Include "auxv.h".
6840 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6841
71fbdbaf
TT
68422020-04-08 Tom Tromey <tromey@adacore.com>
6843
6844 * nat/windows-nat.h (last_wait_event): Don't declare.
6845 (wait_for_debug_event): Update comment.
6846 * nat/windows-nat.c (last_wait_event): Now static.
6847
2c1d95e8
TT
68482020-04-08 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (wait_for_debug_event): Move to
6851 nat/windows-nat.c.
6852 * nat/windows-nat.h (wait_for_debug_event): Declare.
6853 * nat/windows-nat.c (wait_for_debug_event): Move from
6854 windows-nat.c. No longer static.
6855
d2977bc4
TT
68562020-04-08 Tom Tromey <tromey@adacore.com>
6857
6858 * windows-nat.c (get_windows_debug_event): Use
6859 fetch_pending_stop.
6860 * nat/windows-nat.h (fetch_pending_stop): Declare.
6861 * nat/windows-nat.c (fetch_pending_stop): New function.
6862
e758e19c
TT
68632020-04-08 Tom Tromey <tromey@adacore.com>
6864
6865 * windows-nat.c (windows_continue): Use matching_pending_stop and
6866 continue_last_debug_event.
6867 * nat/windows-nat.h (matching_pending_stop)
6868 (continue_last_debug_event): Declare.
6869 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6870 (matching_pending_stop, continue_last_debug_event): New
6871 functions.
6872
8d30e395
TT
68732020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6876 (handle_exception_result): Move to nat/windows-nat.h.
6877 (DEBUG_EXCEPTION_SIMPLE): Remove.
6878 (windows_nat::handle_ms_vc_exception): New function.
6879 (handle_exception): Move to nat/windows-nat.c.
6880 (get_windows_debug_event): Update.
6881 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6882 nat/windows-nat.c.
6883 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6884 (handle_exception_result): Move from windows-nat.c.
6885 (handle_exception): Declare.
6886 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6887 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6888 windows-nat.c.
6889
29de418d
TT
68902020-04-08 Tom Tromey <tromey@adacore.com>
6891
6892 * windows-nat.c (exception_count, event_count): Remove.
6893 (handle_exception, get_windows_debug_event)
6894 (do_initial_windows_stuff): Update.
6895
a816ba18
TT
68962020-04-08 Tom Tromey <tromey@adacore.com>
6897
6898 * windows-nat.c (windows_nat::handle_load_dll)
6899 (windows_nat::handle_unload_dll): Rename. No longer static.
6900 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6901 Declare.
6902
a00caa12
TT
69032020-04-08 Tom Tromey <tromey@adacore.com>
6904
6905 * complaints.h (stop_whining): Declare at top-level.
6906 (complaint): Don't declare stop_whining.
6907
d41b524f
TT
69082020-04-08 Tom Tromey <tromey@adacore.com>
6909
6910 * windows-nat.c (windows_nat::handle_output_debug_string):
6911 Rename. No longer static.
6912 * nat/windows-nat.h (handle_output_debug_string): Declare.
6913
3c76026d
TT
69142020-04-08 Tom Tromey <tromey@adacore.com>
6915
6916 * windows-nat.c (current_process_handle, current_process_id)
6917 (main_thread_id, last_sig, current_event, last_wait_event)
6918 (current_windows_thread, desired_stop_thread_id, pending_stops)
6919 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6920 (display_selectors, fake_create_process)
6921 (get_windows_debug_event): Update.
6922 * nat/windows-nat.h (current_process_handle, current_process_id)
6923 (main_thread_id, last_sig, current_event, last_wait_event)
6924 (current_windows_thread, desired_stop_thread_id, pending_stops)
6925 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6926 * nat/windows-nat.c (current_process_handle, current_process_id)
6927 (main_thread_id, last_sig, current_event, last_wait_event)
6928 (current_windows_thread, desired_stop_thread_id, pending_stops)
6929 (siginfo_er): New globals. Move from windows-nat.c.
6930
9d8679cc
TT
69312020-04-08 Tom Tromey <tromey@adacore.com>
6932
6933 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6934 (handle_load_dll): Update.
6935 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6936
28688adf
TT
69372020-04-08 Tom Tromey <tromey@adacore.com>
6938
6939 * windows-nat.c (enum thread_disposition_type): Move to
6940 nat/windows-nat.h.
6941 (windows_nat::thread_rec): Rename from thread_rec. No longer
6942 static.
6943 (windows_add_thread, windows_nat_target::fetch_registers)
6944 (windows_nat_target::store_registers, handle_exception)
6945 (windows_nat_target::resume, get_windows_debug_event)
6946 (windows_nat_target::get_tib_address)
6947 (windows_nat_target::thread_name)
6948 (windows_nat_target::thread_alive): Update.
6949 * nat/windows-nat.h (enum thread_disposition_type): Move from
6950 windows-nat.c.
6951 (thread_rec): Declare.
6952
4834dad0
TT
69532020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * windows-nat.c: Add "using namespace".
6956 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6957 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6958
65bafd5b
TT
69592020-04-08 Tom Tromey <tromey@adacore.com>
6960
6961 * nat/windows-nat.h (struct windows_thread_info): Declare
6962 destructor.
6963 * nat/windows-nat.c (~windows_thread_info): New.
6964
0a4afda3
TT
69652020-04-08 Tom Tromey <tromey@adacore.com>
6966
6967 PR gdb/22992
6968 * windows-nat.c (current_event): Update comment.
6969 (last_wait_event, desired_stop_thread_id): New globals.
6970 (struct pending_stop): New.
6971 (pending_stops): New global.
6972 (windows_nat_target) <stopped_by_sw_breakpoint>
6973 <supports_stopped_by_sw_breakpoint>: New methods.
6974 (windows_fetch_one_register): Add assertions. Adjust PC.
6975 (windows_continue): Handle pending stops. Suspend other threads
6976 when stepping. Use last_wait_event
6977 (wait_for_debug_event): New function.
6978 (get_windows_debug_event): Use wait_for_debug_event. Handle
6979 pending stops. Queue spurious stops.
6980 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6981 (windows_nat_target::kill): Use wait_for_debug_event.
6982 * nat/windows-nat.h (struct windows_thread_info)
6983 <stopped_at_software_breakpoint>: New field.
6984 * nat/windows-nat.c (windows_thread_info::resume): Clear
6985 stopped_at_software_breakpoint.
6986
8e61ebec
TT
69872020-04-08 Tom Tromey <tromey@adacore.com>
6988
6989 * windows-nat.c (enum thread_disposition_type): New.
6990 (thread_rec): Replace "get_context" parameter with "disposition";
6991 change type.
6992 (windows_add_thread, windows_nat_target::fetch_registers)
6993 (windows_nat_target::store_registers, handle_exception)
6994 (windows_nat_target::resume, get_windows_debug_event)
6995 (windows_nat_target::get_tib_address)
6996 (windows_nat_target::thread_name)
6997 (windows_nat_target::thread_alive): Update.
6998
98a03287
TT
69992020-04-08 Tom Tromey <tromey@adacore.com>
7000
7001 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7002 (windows_continue): Use windows_continue::resume.
7003 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7004 resume>: Declare new methods.
7005 * nat/windows-nat.c: New file.
7006 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7007
7c7411bc
TT
70082020-04-08 Tom Tromey <tromey@adacore.com>
7009
7010 * windows-nat.c (windows_add_thread, windows_delete_thread)
7011 (windows_nat_target::fetch_registers)
7012 (windows_nat_target::store_registers, fake_create_process)
7013 (windows_nat_target::resume, windows_nat_target::resume)
7014 (get_windows_debug_event, windows_nat_target::wait)
7015 (windows_nat_target::pid_to_str)
7016 (windows_nat_target::get_tib_address)
7017 (windows_nat_target::get_ada_task_ptid)
7018 (windows_nat_target::thread_name)
7019 (windows_nat_target::thread_alive): Use lwp, not tid.
7020
2950fdf7
TT
70212020-04-08 Tom Tromey <tromey@adacore.com>
7022
7023 * windows-nat.c (handle_exception)
7024 (windows_nat_target::thread_name): Update.
7025 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7026 <name>: Now unique_xmalloc_ptr.
7027
62fe396b
TT
70282020-04-08 Tom Tromey <tromey@adacore.com>
7029
7030 * windows-nat.c (thread_rec)
7031 (windows_nat_target::fetch_registers): Update.
7032 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7033 Update comment.
7034 <debug_registers_changed, reload_context>: Now bool.
7035
e9534bd2
TT
70362020-04-08 Tom Tromey <tromey@adacore.com>
7037
7038 * windows-nat.c (windows_add_thread): Use new.
7039 (windows_init_thread_list, windows_delete_thread): Use delete.
7040 (get_windows_debug_event): Update.
7041 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7042 destructor, and initializers.
7043
ae1f8880
TT
70442020-04-08 Tom Tromey <tromey@adacore.com>
7045
7046 * windows-nat.c (struct windows_thread_info): Remove.
7047 * nat/windows-nat.h: New file.
7048
55a1e039
TT
70492020-04-08 Tom Tromey <tromey@adacore.com>
7050
7051 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7052 (thread_rec, windows_add_thread, windows_delete_thread)
7053 (windows_continue): Update.
7054
93366324
TT
70552020-04-08 Tom Tromey <tromey@adacore.com>
7056
7057 * windows-nat.c (struct windows_thread_info): Remove typedef.
7058 (thread_head): Remove.
7059 (thread_list): New global.
7060 (thread_rec, windows_add_thread, windows_init_thread_list)
7061 (windows_delete_thread, windows_continue): Update.
7062
0f2265e2
SM
70632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * windows-tdep.h (windows_init_abi): Add comment.
7066 (cygwin_init_abi): New declaration.
7067 * windows-tdep.c: Split signal enumeration in two, one for
7068 Windows and one for Cygwin.
7069 (windows_gdb_signal_to_target): Only deal with signal of the
7070 Windows OS ABI.
7071 (cygwin_gdb_signal_to_target): New function.
7072 (windows_init_abi): Rename to windows_init_abi_common, don't set
7073 gdb_signal_to_target gdbarch method. Add new new function with
7074 this name.
7075 (cygwin_init_abi): New function.
7076 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7077 comment. Don't call windows_init_abi.
7078 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7079 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7080 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7081 i386_windows_init_abi_common, don't call windows_init_abi. Add
7082 a new function of this name.
7083 (i386_cygwin_init_abi): New function.
7084 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7085 OS ABI Cygwin.
7086
3810f182
SM
70872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7088
7089 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7090 parameter.c.
7091 (dwarf2_read_gdb_index): Update.
7092
063f8e80
KR
70932020-04-07 Kamil Rytarowski <n54@gmx.com>
7094
7095 * nbsd-tdep.c: Include "objfiles.h".
7096 (nbsd_skip_solib_resolver): New.
7097 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7098
85a9510c 70992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7100
7101 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7102 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7103 with DW_LLE_base_addressx are being emitted in DWARFv5.
7104 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7105 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7106 unsigned integer.
7107
9fc3eaae 71082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7109
7110 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7111 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7112 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7113 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7114 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7115 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7116 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7117
7118
41144253 71192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7120
7121 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7122 (read_loclist_index): New function definition.
7123 (lookup_loclist_base): New function definition.
7124 (read_loclist_header): New function definition.
7125 (dwarf2_cu): Add loclist_base and loclist_header field.
7126 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7127 (read_full_die_1): Read the value of DW_AT_loclists_base.
7128 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7129 (read_attribute_value): Handle DW_FORM_loclistx.
7130 (skip_one_die): Handle DW_FORM_loclistx.
7131 (loclist_header): New structure declaration.
7132 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7133
9f4e76a4
SM
71342020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7135
7136 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7137 constructor. Remove `addr` parameter from other constructor and
7138 add `per_cu` parameter.
7139 * dwarf2/read.c (create_partial_symtab): Update.
7140
25c11aca
TV
71412020-04-07 Tom de Vries <tdevries@suse.de>
7142
7143 PR symtab/25796
7144 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7145 (partial_die_info::fixup): Inherit has_const_value.
7146
5707e24b
TV
71472020-04-07 Tom de Vries <tdevries@suse.de>
7148
7149 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7150 symbols without address.
7151
05f00e22
KR
71522020-04-06 Kamil Rytarowski <n54@gmx.com>
7153
7154 * nbsd-nat.h (struct thread_info): Add forward declaration.
7155 (nbsd_nat_target::thread_alive): Add.
7156 (nbsd_nat_target::thread_name): Likewise.
7157 (nbsd_nat_target::update_thread_list): Likewise.
7158 (update_thread_list::post_attach): Likewise.
7159 (post_attach::pid_to_str): Likewise.
7160 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7161 (nbsd_thread_lister): Add.
7162 (nbsd_nat_target::thread_alive): Likewise.
7163 (nbsd_nat_target::thread_name): Likewise.
7164 (nbsd_add_threads): Likewise.
7165 (update_thread_list::post_attach): Likewise.
7166 (nbsd_nat_target::update_thread_list): Likewise.
7167 (post_attach::pid_to_str): Likewise.
7168
6ee448cc
TT
71692020-04-06 Tom Tromey <tromey@adacore.com>
7170
7171 * ada-valprint.c (print_variant_part): Extract the variant field.
7172 (print_field_values): Use the field as the outer value when
7173 recursing.
7174
dea34e8c
TT
71752020-04-06 Tom Tromey <tromey@adacore.com>
7176
7177 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7178 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7179 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7180 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7181 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7182
93689ce9
TT
71832020-04-06 Tom Tromey <tromey@adacore.com>
7184
7185 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7186 TYPE_CODE_ERROR.
7187
79743962
KR
71882020-04-06 Kamil Rytarowski <n54@gmx.com>
7189
7190 * nbsd-tdep.c: Include "gdbarch.h".
7191 Define enum with NetBSD signal numbers.
7192 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7193 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7194 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7195 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7196 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7197 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7198 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7199 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7200 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7201 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7202 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7203 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7204
9e7c9a03
HD
72052020-04-03 Hannes Domani <ssbssa@yahoo.de>
7206
7207 PR gdb/25325
7208 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7209
d9e49b61
TT
72102020-04-03 Tom Tromey <tromey@adacore.com>
7211
7212 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7213 Read constant block.
7214
e0fc5c3f
SM
72152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7216
7217 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7218 (gdb_bfd_get_full_section_contents): New declaration.
7219 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7220 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7221 gdb_bfd_get_full_section_contents.
7222
e2ff18a0
SM
72232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * exec.c (build_section_table): Replace internal_error with
7226 gdb_assert.
7227 (section_table_xfer_memory_partial): Likewise.
7228 * mdebugread.c (parse_partial_symbols): Likewise.
7229 * psymtab.c (lookup_partial_symbol): Likewise.
7230 * utils.c (wrap_here): Likewise.
7231
0830d301
TT
72322020-04-02 Tom Tromey <tromey@adacore.com>
7233
7234 * f-lang.c (build_fortran_types): Use arch_type to initialize
7235 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7236
e7da7f8f
TT
72372020-04-02 Tom Tromey <tromey@adacore.com>
7238
7239 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7240 of attributes.
7241
c90d28ac
AB
72422020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7243 Bernd Edlinger <bernd.edlinger@hotmail.de>
7244 Tom Tromey <tromey@adacore.com>
7245
7246 * buildsym.c (buildsym_compunit::record_line): Remove
7247 deduplication code.
7248
1aa98955
TV
72492020-04-02 Tom de Vries <tdevries@suse.de>
7250
7251 PR ada/24671
7252 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7253
d3214198
TV
72542020-04-02 Tom de Vries <tdevries@suse.de>
7255
7256 * dwarf2/read.c (dwarf2_gdb_index_functions,
7257 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7258 NULL.
7259 * psymtab.c (psym_lookup_global_symbol_language): New function.
7260 (psym_functions): Init psym_lookup_global_symbol_language with
7261 psym_lookup_global_symbol_language.
7262 * symfile-debug.c (debug_sym_quick_functions): Init
7263 lookup_global_symbol_language with NULL.
7264 * symfile.c (set_initial_language): Remove fixme comment.
7265 * symfile.h (struct quick_symbol_functions): Add
7266 lookup_global_symbol_language.
7267 * symtab.c (find_quick_global_symbol_language): New function.
7268 (find_main_name): Use find_quick_global_symbol_language.
7269
2836752f
SM
72702020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7271
7272 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7273
64dc2d4b
BE
72742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7275
7276 * buildsym.c (record_line): Fix undefined behavior and preserve
7277 lines at eof.
7278
bbe3dc41
BE
72792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7280
7281 * buildsym.c (record_line): Fix the resizing condition.
7282
6b4a335b
TT
72832020-04-01 Tom Tromey <tom@tromey.com>
7284
7285 * value.h (value_literal_complex): Add comment.
7286 * valops.c (value_literal_complex): Refer to value.h.
7287
3638a098
TT
72882020-04-01 Tom Tromey <tom@tromey.com>
7289
7290 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7291 (scalar_type): New rule, from typebase.
7292 (typebase): Use scalar_type. Recognize complex types.
7293 (field_name): Handle FLOAT_KEYWORD.
7294 (ident_tokens): Add _Complex and __complex__.
7295
c34e8714
TT
72962020-04-01 Tom Tromey <tom@tromey.com>
7297
7298 PR exp/25299:
7299 * valarith.c (promotion_type, complex_binop): New functions.
7300 (scalar_binop): Handle complex numbers. Use promotion_type.
7301 (value_pos, value_neg, value_complement): Handle complex numbers.
7302
fa649bb7
TT
73032020-04-01 Tom Tromey <tom@tromey.com>
7304
7305 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7306 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7307 (parse_number): Handle complex numbers.
7308
981c08ce
TT
73092020-04-01 Tom Tromey <tom@tromey.com>
7310
7311 * c-valprint.c (c_decorations): Change complex suffix to "i".
7312
4c99290d
TT
73132020-04-01 Tom Tromey <tom@tromey.com>
7314
7315 * valprint.c (generic_value_print_complex): Use accessors.
7316 * value.h (value_real_part, value_imaginary_part): Declare.
7317 * valops.c (value_real_part, value_imaginary_part): New
7318 functions.
7319 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7320
5b930b45
TT
73212020-04-01 Tom Tromey <tom@tromey.com>
7322
7323 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7324 (read_range_type): Update.
7325 * mdebugread.c (basic_type): Update.
7326 * go-lang.c (build_go_types): Use init_complex_type.
7327 * gdbtypes.h (struct main_type) <complex_type>: New member.
7328 (init_complex_type): Update.
7329 (arch_complex_type): Don't declare.
7330 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7331 Make name if none given. Use alloc_type_copy. Look for cached
7332 complex type.
7333 (arch_complex_type): Remove.
7334 (gdbtypes_post_init): Use init_complex_type.
7335 * f-lang.c (build_fortran_types): Use init_complex_type.
7336 * dwarf2/read.c (read_base_type): Update.
7337 * d-lang.c (build_d_types): Use init_complex_type.
7338 * ctfread.c (read_base_type): Update.
7339
53cccef1
TBA
73402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7341
7342 * infrun.c (stop_all_threads): Update assertion, plus when
7343 stopping threads, take into account that we might be trying
7344 to stop an all-stop target.
7345 (stop_waiting): Call 'stop_all_threads' if there exists a
7346 non-stop target.
7347
a0714d30
TBA
73482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7349
7350 * target.h (exists_non_stop_target): New function declaration.
7351 * target.c (exists_non_stop_target): New function.
7352
60e22c1e
HD
73532020-04-01 Hannes Domani <ssbssa@yahoo.de>
7354
7355 PR gdb/24789
7356 * eval.c (is_integral_or_integral_reference): New function.
7357 (evaluate_subexp_standard): Allow integer references in
7358 pointer arithmetic.
7359
e139a727
TBA
73602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7361
7362 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7363 check for no ptid in the stop reply when the target is non-stop.
7364
e0802d59
TT
73652020-04-01 Tom Tromey <tromey@adacore.com>
7366
7367 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7368 "name" parameter to rvalue reference. Initialize m_name_holder.
7369 <lookup_name_info>: New overloads.
7370 <name>: Return gdb::string_view.
7371 <c_str>: New method.
7372 <make_ignore_params>: Update.
7373 <search_name_hash>: Update.
7374 <language_lookup_name>: Return const char *.
7375 <m_name>: Change type.
7376 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7377 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7378 (lookup_name_info::match_any): Update.
7379 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7380 Update.
7381 * minsyms.c (linkage_name_str): Update.
7382 * language.c (default_symbol_name_matcher): Update.
7383 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7384 Update.
7385 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7386 (ada_lookup_name_info::ada_lookup_name_info): Update.
7387 (literal_symbol_name_matcher): Update.
7388
8c072cb6
TT
73892020-04-01 Tom Tromey <tromey@adacore.com>
7390
7391 * psymtab.c (psymtab_search_name): Remove function.
7392 (psym_lookup_symbol): Create search name and lookup name here.
7393 (lookup_partial_symbol): Remove "name" parameter; add
7394 lookup_name.
7395 (psym_expand_symtabs_for_function): Update.
7396
6f29a534
TT
73972020-03-31 Joel Jones <joelkevinjones@gmail.com>
7398
7399 PR tui/25597:
7400 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7401
af62665e
TT
74022020-03-31 Tom Tromey <tromey@adacore.com>
7403
7404 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7405 memcpy.
7406
d1a89da5
NC
74072020-03-30 Nelson Chu <nelson.chu@sifive.com>
7408
7409 * features/riscv/32bit-csr.xml: Regenerated.
7410 * features/riscv/64bit-csr.xml: Regenerated.
7411
d8af9068
TT
74122020-03-30 Tom Tromey <tromey@adacore.com>
7413
7414 * ada-valprint.c (print_variant_part): Update.
7415 * ada-lang.h (ada_which_variant_applies): Update.
7416 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7417 outer_valaddr parameters; replace with "outer" value parameter.
7418 (to_fixed_variant_branch_type): Update.
7419
227c0bf4
PFC
74202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7421
7422 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7423 <list>. Remove inclusion of observable.h.
7424 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7425 (struct arch_lwp_info): New struct.
7426 (class ppc_linux_dreg_interface): New class.
7427 (struct ppc_linux_process_info): New struct.
7428 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7429 <low_new_clone, low_forget_process, low_prepare_to_resume>
7430 <copy_thread_dreg_state, mark_thread_stale>
7431 <mark_debug_registers_changed, register_hw_breakpoint>
7432 <clear_hw_breakpoint, register_wp, clear_wp>
7433 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7434 <num_memory_accesses, get_trigger_type>
7435 <create_watchpoint_request, hwdebug_point_cmp>
7436 <init_arch_lwp_info, get_arch_lwp_info>
7437 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7438 methods.
7439 <struct ptid_hash>: New inner struct.
7440 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7441 members.
7442 (saved_dabr_value, hwdebug_info, max_slots_number)
7443 (struct hw_break_tuple, struct thread_points, ppc_threads)
7444 (have_ptrace_hwdebug_interface)
7445 (hwdebug_find_thread_points_by_tid)
7446 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7447 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7448 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7449 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7450 use m_dreg_interface.
7451 (hwdebug_point_cmp): Change to...
7452 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7453 reference arguments instead of pointers.
7454 (ppc_linux_nat_target::ranged_break_num_registers): Use
7455 m_dreg_interface.
7456 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7457 m_dreg_interface. Call register_hw_breakpoint.
7458 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7459 m_dreg_interface. Call clear_hw_breakpoint.
7460 (get_trigger_type): Change to...
7461 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7462 comment.
7463 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7464 use m_dreg_interface. Call register_hw_breakpoint.
7465 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7466 use m_dreg_interface. Call clear_hw_breakpoint.
7467 (can_use_watchpoint_cond_accel): Change to...
7468 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7469 method. Update comment, use m_dreg_interface and
7470 m_process_info.
7471 (calculate_dvc): Change to...
7472 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7473 m_dreg_interface.
7474 (num_memory_accesses): Change to...
7475 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7476 (check_condition): Change to...
7477 (ppc_linux_nat_target::check_condition): ...this method.
7478 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7479 comment, use m_dreg_interface.
7480 (create_watchpoint_request): Change to...
7481 (ppc_linux_nat_target::create_watchpoint_request): ...this
7482 method. Use m_dreg_interface.
7483 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7484 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7485 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7486 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7487 (ppc_linux_nat_target::low_forget_process)
7488 (ppc_linux_nat_target::low_new_fork)
7489 (ppc_linux_nat_target::low_new_clone)
7490 (ppc_linux_nat_target::low_delete_thread)
7491 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7492 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7493 only call mark_thread_stale.
7494 (ppc_linux_thread_exit): Remove.
7495 (ppc_linux_nat_target::stopped_data_address): Change to...
7496 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7497 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7498 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7499 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7500 comment. Call low_stopped_data_address.
7501 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7502 m_dreg_interface.
7503 (ppc_linux_nat_target::masked_watch_num_registers): Use
7504 m_dreg_interface.
7505 (ppc_linux_nat_target::copy_thread_dreg_state)
7506 (ppc_linux_nat_target::mark_thread_stale)
7507 (ppc_linux_nat_target::mark_debug_registers_changed)
7508 (ppc_linux_nat_target::register_hw_breakpoint)
7509 (ppc_linux_nat_target::clear_hw_breakpoint)
7510 (ppc_linux_nat_target::register_wp)
7511 (ppc_linux_nat_target::clear_wp)
7512 (ppc_linux_nat_target::init_arch_lwp_info)
7513 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7514 (_initialize_ppc_linux_nat): Remove observer callback.
7515
4db10d8f
PFC
75162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7517
7518 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7519 (ppc_linux_nat_target::auxv_parse)
7520 (ppc_linux_nat_target::read_description)
7521 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7522 Move up.
7523
1310c1b0
PFC
75242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7525
7526 * linux-nat.h (low_new_clone): New method.
7527 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7528
69b037c3
SM
75292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7532 (dbx_expand_psymtab): ... this.
7533 (start_psymtab): Update.
7534 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7535 (mdebug_expand_psymtab): ... this.
7536 (parse_partial_symbols): Update.
7537 (new_psymtab): Update.
7538 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7539 (xcoff_expand_psymtab): ... this.
7540 (xcoff_start_psymtab): Update.
7541
48993951
SM
75422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7543
7544 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7545 <expand_dependencies>: ... this.
7546 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7547 (partial_symtab::expand_dependencies): ... this.
7548 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7549 Update.
7550 (dwarf2_psymtab::expand_psymtab): Update.
7551 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7552 * mdebugread.c (psymtab_to_symtab_1): Update.
7553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7554
3ad83046
SM
75552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7556
7557 * psympriv.h (discard_psymtab): Remove.
7558 * dbxread.c (dbx_end_psymtab): Update.
7559 * xcoffread.c (xcoff_end_psymtab): Update.
7560
4d1b9ab6
TT
75612020-03-28 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7564 comment.
7565
f1749218
TT
75662020-03-28 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7569
ebea7626
HD
75702020-03-27 Hannes Domani <ssbssa@yahoo.de>
7571
7572 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7573
a879b4d5
JB
75742020-03-26 John Baldwin <jhb@FreeBSD.org>
7575
7576 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7577
0826b30a
TT
75782020-03-26 Tom Tromey <tom@tromey.com>
7579
7580 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7581 (mark_common_block_symbol_computed, read_tag_string_type)
7582 (attr_to_dynamic_prop, read_subrange_type): Update.
7583 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7584 to be methods on struct attribute.
7585 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7586 (read_call_site_scope, partial_die_info::read)
7587 (partial_die_info::read, lookup_die_type, follow_die_ref):
7588 Update.
7589 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7590 from dwarf2_get_ref_die_offset.
7591 (attribute::constant_value): New method, from
7592 dwarf2_get_attr_constant_value.
7593 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7594 Declare method.
7595 <constant_value>: New method.
7596
2b2558bf
TT
75972020-03-26 Tom Tromey <tom@tromey.com>
7598
7599 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7600 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7601 (dwarf_type_encoding_name): Move to stringify.c.
7602 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7603 * dwarf2/stringify.c: New file.
7604 * dwarf2/stringify.h: New file.
7605
eeb64781
TT
76062020-03-26 Tom Tromey <tom@tromey.com>
7607
7608 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7609 Rewrite.
7610
a39fdb41
TT
76112020-03-26 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7614 methods.
7615 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7616 (lookup_ranges_base): Likewise.
7617 (read_cutu_die_from_dwo, read_full_die_1): Update.
7618
436c571c
TT
76192020-03-26 Tom Tromey <tom@tromey.com>
7620
7621 * dwarf2/read.c (read_import_statement, read_file_scope)
7622 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7623 (read_lexical_block_scope, read_call_site_scope)
7624 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7625 (handle_struct_member_die, process_structure_scope)
7626 (update_enumeration_type_from_children)
7627 (process_enumeration_scope, read_array_type, read_common_block)
7628 (read_namespace, read_module, read_subroutine_type): Update.
7629 (sibling_die): Remove.
7630
052c8bb8
TT
76312020-03-26 Tom Tromey <tom@tromey.com>
7632
7633 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7634 (build_type_psymtabs_reader, read_structure_type)
7635 (read_enumeration_type, read_full_die_1): Update.
7636 (dwarf2_attr_no_follow): Move to die.h.
7637 * dwarf2/die.h (struct die_info) <attr>: New method.
7638
2b24b6e4
TT
76392020-03-26 Tom Tromey <tom@tromey.com>
7640
7641 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7642 <base_address>: Now an optional.
7643 (dwarf2_find_base_address, dwarf2_rnglists_process)
7644 (dwarf2_ranges_process, fill_in_loclist_baton)
7645 (dwarf2_symbol_mark_computed): Update.
7646
c2d50fd0
TT
76472020-03-26 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/read.c (struct die_info): Move to die.h.
7650 * dwarf2/die.h: New file.
7651
0df7ad3a
TT
76522020-03-26 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7655 * dwarf2/read.c
7656 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7657 Move to line-header.c.
7658 (read_checked_initial_length_and_offset, read_formatted_entries):
7659 Likewise.
7660 (dwarf_decode_line_header): Split into two.
7661 * dwarf2/line-header.c
7662 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7663 Move from read.c.
7664 (read_checked_initial_length_and_offset, read_formatted_entries):
7665 Likewise.
7666 (dwarf_decode_line_header): New function, split from read.c.
7667
86c0bb4c
TT
76682020-03-26 Tom Tromey <tom@tromey.com>
7669
7670 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7671 Declare method.
7672 * dwarf2/read.c (read_attribute_value): Update.
7673 (dwarf2_per_objfile::read_line_string): Rename from
7674 read_indirect_line_string.
7675 (read_formatted_entries): Update.
7676
2ef46c2f
TT
76772020-03-26 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7680 variable.
7681
4f9c1eda
TT
76822020-03-26 Tom Tromey <tom@tromey.com>
7683
7684 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7685 const.
7686 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7687 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7688 parameter const.
7689
5a0e026f
TT
76902020-03-26 Tom Tromey <tom@tromey.com>
7691
7692 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7693 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7694 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7695 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7696
8844c11b
TT
76972020-03-26 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7700 file_names_size, file_full_name, file_file_name>: Use const.
7701 <file_name_at, file_names>: Add const overload.
7702 * dwarf2/line-header.c (line_header::file_file_name)
7703 (line_header::file_full_name): Update.
7704
c90ec28a
TT
77052020-03-26 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7708 (macro_start_file, consume_improper_spaces)
7709 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7710 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7711 (dwarf_decode_macros): Move to macro.c.
7712 * dwarf2/macro.c: New file.
7713 * dwarf2/macro.h: New file.
7714 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7715
4f44ae6c
TT
77162020-03-26 Tom Tromey <tom@tromey.com>
7717
7718 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7719 method.
7720 * dwarf2/section.c: New method. From
7721 read_indirect_string_at_offset_from.
7722 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7723 (read_indirect_string_at_offset_from): Move to section.c.
7724 (read_indirect_string_at_offset): Rewrite.
7725 (read_indirect_line_string_at_offset): Remove.
7726 (read_indirect_string, read_indirect_line_string)
7727 (dwarf_decode_macro_bytes): Update.
7728
a0194fa8
TT
77292020-03-26 Tom Tromey <tom@tromey.com>
7730
7731 * dwarf2/section.h (struct dwarf2_section_info)
7732 <overload_complaint>: Declare.
7733 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7734 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7735 Rename from dwarf2_section_buffer_overflow_complaint.
7736 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7737 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7738
3d27bbdb
TT
77392020-03-26 Tom Tromey <tom@tromey.com>
7740
7741 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7742 Declare.
7743 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7744 Move from read.c.
7745 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7746 to section.c.
7747
9eac9650
TT
77482020-03-26 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7751
bf80d710
TT
77522020-03-26 Tom Tromey <tom@tromey.com>
7753
7754 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7755 "builder".
7756 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7757 parameter.
7758 (dwarf_decode_macros): Update.
7759
0314b390
TT
77602020-03-26 Tom Tromey <tom@tromey.com>
7761
7762 * dwarf2/read.c (read_attribute_value): Update.
7763 (read_indirect_string_from_dwz): Move to dwz.c; change into
7764 method.
7765 (dwarf_decode_macro_bytes): Update.
7766 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7767 * dwarf2/dwz.c: New file.
7768 * Makefile.in (COMMON_SFILES): Add dwz.c.
7769
9fda78b6
TT
77702020-03-26 Tom Tromey <tom@tromey.com>
7771
7772 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7773 * dwarf2/read.c: Add include.
7774 * dwarf2/index-write.c: Add include.
7775 * dwarf2/index-cache.c: Add include.
7776 * dwarf2/dwz.h: New file.
7777
33aa3c10
TT
77782020-03-25 Tom Tromey <tom@tromey.com>
7779
7780 * compile/compile-object-load.c (get_out_value_type): Mention
7781 correct symbol name in error message.
7782
d503b685
HD
77832020-03-25 Hannes Domani <ssbssa@yahoo.de>
7784
7785 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7786
7b1eff95
TV
77872020-03-25 Tom de Vries <tdevries@suse.de>
7788
7789 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7790 * symmisc.c (dump_symtab_1): Print user and includes fields.
7791 (maintenance_info_symtabs): Same.
7792
dd895392
AB
77932020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 PR gdb/25534
7796 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7797 (riscv_regcache_cooked_write): New function.
7798 (riscv_push_dummy_call): Use new function.
7799 (riscv_return_value): Likewise.
7800
5ab2fbf1
SM
78012020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7802
7803 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7804 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7805 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7806 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7807 * infrun.c (follow_fork): Likewise.
7808 (follow_fork_inferior): Likewise.
7809 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7810 * linux-nat.h (class linux_nat_target): Likewise.
7811 * remote.c (class remote_target) <follow_fork>: Likewise.
7812 (remote_target::follow_fork): Likewise.
7813 * target-delegates.c: Re-generate.
7814 * target.c (default_follow_fork): Likewise.
7815 (target_follow_fork): Likewise.
7816 * target.h (struct target_ops) <follow_fork>: Likewise.
7817 (target_follow_fork): Likewise.
7818
a64fafb5
TV
78192020-03-24 Tom de Vries <tdevries@suse.de>
7820
7821 * psymtab.c (maintenance_info_psymtabs): Print user field.
7822
fe26d3a3
TT
78232020-03-20 Tom Tromey <tromey@adacore.com>
7824
7825 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7826 const.
7827 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7828 const.
7829
c884cc46
SM
78302020-03-20 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * ptrace.m4: Don't check for ptrace declaration.
7833 * config.in: Re-generate.
7834 * configure: Re-generate.
7835 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7836 not defined.
7837
1ff700c2
KR
78382020-03-20 Kamil Rytarowski <n54@gmx.com>
7839
7840 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7841 `PTRACE_TYPE_RET'.
7842 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7843 * sparc-nat.c (gdb_ptrace): Likewise.
7844 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7845
f7d4f0b1
TT
78462020-03-20 Tom Tromey <tromey@adacore.com>
7847
7848 * c-exp.y (lex_one_token): Fix assert.
7849
f67210ff
TT
78502020-03-20 Tom Tromey <tromey@adacore.com>
7851
7852 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7853 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7854 strncpy call.
7855
1773be9e
TT
78562020-03-20 Tom Tromey <tromey@adacore.com>
7857
7858 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7859
70304be9
TT
78602020-03-20 Tom Tromey <tromey@adacore.com>
7861
7862 * ada-valprint.c (print_variant_part): Remove parameters; switch
7863 to value-based API.
7864 (print_field_values): Likewise.
7865 (ada_val_print_struct_union): Likewise.
7866 (ada_value_print_1): Update.
7867
9faa006d
KR
78682020-03-20 Kamil Rytarowski <n54@gmx.com>
7869
7870 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7871 nbsd_nat_target instead of inf_ptrace_target.
7872 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7873 nbsd_nat_target.
7874
4a90f062
KR
78752020-03-20 Kamil Rytarowski <n54@gmx.com>
7876
7877 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7878 it to the ptrace call.
7879 * (store_registers): Likewise.
7880
78812020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7882
7883 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7884 it to the ptrace call.
7885 * (store_registers): Likewise.
7886
2d07da27
LM
78872020-03-19 Luis Machado <luis.machado@linaro.org>
7888
7889 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7890 valid, fetch vg value from ptrace.
7891
f09db380
KR
78922020-03-19 Kamil Rytarowski <n54@gmx.com>
7893 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7894 * inf-ptrace.c: Likewise.
7895 * (gdb_ptrace): Add.
7896 * (inf_ptrace_target::resume): Update.
7897 * (inf_ptrace_target::xfer_partial): Likewise.
7898 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7899 * (inf_ptrace_peek_poke): Update.
7900
fcc7376e
KR
79012020-03-19 Kamil Rytarowski <n54@gmx.com>
7902
7903 * x86-bsd-nat.c (gdb_ptrace): New.
7904 * (x86bsd_dr_set): Add new argument `ptid'.
7905 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7906 x86bsd_dr_set_addr): Update.
7907
cada5fc9
AB
79082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * remote.c (remote_target::process_stop_reply): Handle events for
7911 all threads differently.
7912
19a2740f
AB
79132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * completer.c (completion_tracker::remove_completion): Define new
7916 function.
7917 * completer.h (completion_tracker::remove_completion): Declare new
7918 function.
7919 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7920 when adding a C++ function symbol.
7921
724fd9ba
AB
79222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * completer.c (completion_tracker::completion_hash_entry): Define
7925 new class.
7926 (advance_to_filename_complete_word_point): Call
7927 recompute_lowest_common_denominator.
7928 (completion_tracker::completion_tracker): Call discard_completions
7929 to setup the hash table.
7930 (completion_tracker::discard_completions): Allow for being called
7931 from the constructor, pass new equal function, and element deleter
7932 when constructing the hash table. Initialise new class member
7933 variables.
7934 (completion_tracker::maybe_add_completion): Remove use of
7935 m_entries_vec, and store more information into m_entries_hash.
7936 (completion_tracker::recompute_lcd_visitor): New function, most
7937 content taken from...
7938 (completion_tracker::recompute_lowest_common_denominator):
7939 ...here, this now just visits each item in the hash calling the
7940 above visitor.
7941 (completion_tracker::build_completion_result): Remove use of
7942 m_entries_vec, call recompute_lowest_common_denominator.
7943 * completer.h (completion_tracker::have_completions): Remove use
7944 of m_entries_vec.
7945 (completion_tracker::completion_hash_entry): Declare new class.
7946 (completion_tracker::recompute_lowest_common_denominator): Change
7947 function signature.
7948 (completion_tracker::recompute_lcd_visitor): Declare new function.
7949 (completion_tracker::m_entries_vec): Delete.
7950 (completion_tracker::m_entries_hash): Initialize to NULL.
7951 (completion_tracker::m_lowest_common_denominator_valid): New
7952 member variable.
7953 (completion_tracker::m_lowest_common_denominator_max_length): New
7954 member variable.
7955
5a82b8a1
KR
79562020-03-17 Kamil Rytarowski <n54@gmx.com>
7957
7958 * regformats/regdef.h: Put reg in gdb namespace.
7959
fb516a69
KR
79602020-03-17 Kamil Rytarowski <n54@gmx.com>
7961
7962 * i386-bsd-nat.c (gdb_ptrace): New.
7963 * (i386bsd_fetch_inferior_registers,
7964 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7965 * (i386bsd_fetch_inferior_registers,
7966 i386bsd_store_inferior_registers) Use gdb_ptrace.
7967
1c0aa1fb
KR
79682020-03-17 Kamil Rytarowski <n54@gmx.com>
7969
7970 * amd64-bsd-nat.c (gdb_ptrace): New.
7971 * (amd64bsd_fetch_inferior_registers,
7972 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7973 * (amd64bsd_fetch_inferior_registers,
7974 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7975
5ccd2fb7
KR
79762020-03-17 Kamil Rytarowski <n54@gmx.com>
7977
7978 * user-regs.c (user_reg::read): Rename to...
7979 (user_reg::xread): ...this.
7980 * (append_user_reg): Rename argument `read' to `xread'.
7981 * (user_reg_add_builtin): Likewise.
7982 * (user_reg_add): Likewise.
7983 * (value_of_user_reg): Likewise.
7984
2108a63a
KR
79852020-03-17 Kamil Rytarowski <n54@gmx.com>
7986
7987 * sparc-nat.c (gdb_ptrace): New.
7988 * sparc-nat.c (sparc_fetch_inferior_registers)
7989 (sparc_store_inferior_registers) Remove obsolete comment.
7990 * sparc-nat.c (sparc_fetch_inferior_registers)
7991 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7992 * sparc-nat.c (sparc_fetch_inferior_registers)
7993 (sparc_store_inferior_registers) Use gdb_ptrace.
7994
a225c9a8
KR
79952020-03-17 Kamil Rytarowski <n54@gmx.com>
7996
7997 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7998 it to the ptrace call.
7999 * sh-nbsd-nat.c (store_registers): Likewise.
8000
98097623
KR
80012020-03-17 Kamil Rytarowski <n54@gmx.com>
8002
8003 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8004 nbsd_nat_target instead of inf_ptrace_target.
8005 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8006 nbsd_nat_target.
8007
9e38d619
KR
80082020-03-17 Kamil Rytarowski <n54@gmx.com>
8009
8010 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8011
a2ecbe9f
KR
80122020-03-17 Kamil Rytarowski <n54@gmx.com>
8013
8014 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8015 <sys/sysctl.h>.
8016 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8017
58990295
TV
80182020-03-17 Tom de Vries <tdevries@suse.de>
8019
8020 PR gdb/23710
8021 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8022 fields.
8023 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8024 fields.
8025 (process_imported_unit_die): Skip import of c++ CUs.
8026
771dd3a8
TT
80272020-03-16 Tom Tromey <tom@tromey.com>
8028
8029 * p-valprint.c (pascal_object_print_value): Initialize
8030 base_value.
8031
817a7585
AK
80322020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8033 Shahab Vahedi <shahab@synopsys.com>
8034
8035 * Makefile.in: Add arch/arc.o
8036 * configure.tgt: Likewise.
8037 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8038 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8039 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8040 * arc-tdep.h (arc_read_description): Add proto type.
8041 * arch/arc.c: New file.
8042 * arch/arc.h: Likewise.
8043 * features/Makefile: Replace old target descriptions with new.
8044 * features/arc-arcompact.c: Remove.
8045 * features/arc-arcompact.xml: Likewise.
8046 * features/arc-v2.c: Likewise
8047 * features/arc-v2.xml: Likewise
8048 * features/arc/aux-arcompact.xml: New file.
8049 * features/arc/aux-v2.xml: Likewise.
8050 * features/arc/core-arcompact.xml: Likewise.
8051 * features/arc/core-v2.xml: Likewise.
8052 * features/arc/aux-arcompact.c: Generate.
8053 * features/arc/aux-v2.c: Likewise.
8054 * features/arc/core-arcompact.c: Likewise.
8055 * features/arc/core-v2.c: Likewise.
8056 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8057
67430cd0
TT
80582020-03-16 Tom Tromey <tromey@adacore.com>
8059
8060 PR gdb/25663:
8061 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8062 putting value into bcache.
8063
30efb6c7
SM
80642020-03-16 Simon Marchi <simon.marchi@efficios.com>
8065
8066 PR gdb/21500
8067 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8068 to...
8069 (amd64_windows_init_abi_common): ... this. Don't set size of
8070 long type.
8071 (amd64_windows_init_abi): New function.
8072 (amd64_cygwin_init_abi): New function.
8073 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8074 the Cygwin OS ABI.
8075 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8076 comment.
8077
8db52437
SM
80782020-03-16 Simon Marchi <simon.marchi@efficios.com>
8079
8080 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8081 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8082 (pe_import_directory_entry): New struct type.
8083 (is_linked_with_cygwin_dll): New function.
8084 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8085 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8086 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8087
5982a56a
SM
80882020-03-16 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8091 i386_cygwin_core_osabi_sniffer.
8092
7a1998df
SM
80932020-03-16 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * i386-cygwin-tdep.c: Rename to...
8096 * i386-windows-tdep.c: ... this.
8097 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8098 i386-windows-tdep.c.
8099 * configure.tgt: Likewise.
8100
053205cc
SM
81012020-03-16 Simon Marchi <simon.marchi@efficios.com>
8102
8103 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8104 * osabi.c (gdb_osabi_names): Add "Windows".
8105 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8106 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8107 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8108 i386_cygwin_osabi_sniffer.
8109 (_initialize_i386_cygwin_tdep): Register OS ABI
8110 GDB_OSABI_WINDOWS for i386.
8111 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8112 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8113 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8114 for x86-64.
8115 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8116 when the target matches '*-*-mingw*'.
8117
fe4b2ee6
SM
81182020-03-16 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * defs.h (enum gdb_osabi): Move to...
8121 * osabi.h (enum gdb_osabi): ... here.
8122 * gdbarch.sh: Include osabi.h in gdbarch.h.
8123 * gdbarch.h: Re-generate.
8124
cb9b645d
SM
81252020-03-16 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8128 function.
8129 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8130
3293bbaf
TT
81312020-03-14 Tom Tromey <tom@tromey.com>
8132
8133 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8134 for C++.
8135 (c_type_print_modifier): Likewise. Add "language" parameter.
8136 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8137 (c_type_print_base_1): Update.
8138 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8139 constants.
8140 * type-stack.c (type_stack::insert): Handle tp_atomic and
8141 tp_restrict.
8142 (type_stack::follow_type_instance_flags): Likewise.
8143 (type_stack::follow_types): Likewise. Merge type-following code.
8144 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8145 (space_identifier, cv_with_space_id)
8146 (const_or_volatile_or_space_identifier_noopt)
8147 (const_or_volatile_or_space_identifier): Remove.
8148 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8149 rules.
8150 (ptr_operator, typebase): Update.
8151 (enum token_flag) <FLAG_C>: New constant.
8152 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8153 "_Atomic".
8154 (lex_one_token): Handle FLAG_C.
8155
154151a6
KR
81562020-03-14 Kamil Rytarowski <n54@gmx.com>
8157
8158 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8159 it to the ptrace call.
8160 * m68k-bsd-nat.c (store_registers): Likewise.
8161
bc107784
KR
81622020-03-14 Kamil Rytarowski <n54@gmx.com>
8163
8164 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8165 gdb_byte *.
8166 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8167 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8168 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8169
01a80117
KR
81702020-03-14 Kamil Rytarowski <n54@gmx.com>
8171
8172 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8173 nbsd_nat_target instead of inf_ptrace_target.
8174 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8175 nbsd_nat_target.
8176
f90280ca
KR
81772020-03-14 Kamil Rytarowski <n54@gmx.com>
8178
8179 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8180 register_t.
8181
6def66f1
KR
81822020-03-14 Kamil Rytarowski <n54@gmx.com>
8183
8184 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8185 it to the ptrace call.
8186 * alpha-bsd-nat.c (store_registers): Likewise.
8187
66eaca97
KR
81882020-03-14 Kamil Rytarowski <n54@gmx.com>
8189
8190 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8191 includes.
8192 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8193 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8194 fill_fpregset): Likewise.
8195
4fed520b
KR
81962020-03-14 Kamil Rytarowski <n54@gmx.com>
8197
8198 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8199 nbsd_nat_target instead of inf_ptrace_target.
8200 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8201 nbsd_nat_target.
8202
2190cf06
KR
82032020-03-14 Kamil Rytarowski <n54@gmx.com>
8204
8205 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8206 register_t.
8207
75c56d3d
KR
82082020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8211 it to the ptrace call.
8212 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8213 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8214 * arm-nbsd-nat.c (store_register): Likewise.
8215 * arm-nbsd-nat.c (store_regs): Likewise.
8216 * arm-nbsd-nat.c (store_fp_register): Likewise.
8217 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8218
6018d381
KR
82192020-03-14 Kamil Rytarowski <n54@gmx.com>
8220
8221 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8222 nbsd_nat_target instead of inf_ptrace_target.
8223 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8224 nbsd_nat_target.
8225
013f99f0
KR
82262020-03-14 Kamil Rytarowski <n54@gmx.com>
8227
8228 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8229 it to the ptrace call.
8230 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8231
12753073
KR
82322020-03-14 Kamil Rytarowski <n54@gmx.com>
8233
6227b330
KR
8234 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8235 it to the ptrace call.
8236 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8237
82382020-03-14 Kamil Rytarowski <n54@gmx.com>
8239
8240 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8241 gdb_byte *.
12753073
KR
8242 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8243
d5be5fa4
KR
82442020-03-14 Kamil Rytarowski <n54@gmx.com>
8245
8246 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8247 instead of inf_ptrace_target.
8248 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8249 nbsd_nat_target.
8250
8110f842
KR
82512020-03-14 Kamil Rytarowski <n54@gmx.com>
8252
8253 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8254 register_t.
8255
52feded7
KR
82562020-03-14 Kamil Rytarowski <n54@gmx.com>
8257
8258 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8259 register_t.
8260
25567eee
KR
82612020-03-14 Kamil Rytarowski <n54@gmx.com>
8262
8263 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8264 register_t.
8265
426a9c18
TT
82662020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * value.h (val_print): Don't declare.
8269 * valprint.h (val_print_array_elements)
8270 (val_print_scalar_formatted, generic_val_print): Don't declare.
8271 * valprint.c (generic_val_print_array): Take a struct value.
8272 (generic_val_print_ptr, generic_val_print_memberptr)
8273 (generic_val_print_bool, generic_val_print_int)
8274 (generic_val_print_char, generic_val_print_complex)
8275 (generic_val_print): Remove.
8276 (generic_value_print): Update.
8277 (do_val_print): Remove unused parameters. Don't call
8278 la_val_print.
8279 (val_print): Remove.
8280 (common_val_print): Update. Don't call value_check_printable.
8281 (val_print_scalar_formatted, val_print_array_elements): Remove.
8282 * rust-lang.c (rust_val_print): Remove.
8283 (rust_language_defn): Update.
8284 * p-valprint.c (pascal_val_print): Remove.
8285 (pascal_value_print_inner): Update.
8286 (pascal_object_print_val_fields, pascal_object_print_val):
8287 Remove.
8288 (pascal_object_print_static_field): Update.
8289 * p-lang.h (pascal_val_print): Don't declare.
8290 * p-lang.c (pascal_language_defn): Update.
8291 * opencl-lang.c (opencl_language_defn): Update.
8292 * objc-lang.c (objc_language_defn): Update.
8293 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8294 * m2-lang.h (m2_val_print): Don't declare.
8295 * m2-lang.c (m2_language_defn): Update.
8296 * language.h (struct language_defn) <la_val_print>: Remove.
8297 * language.c (unk_lang_value_print_inner): Rename. Change
8298 argument types.
8299 (unknown_language_defn, auto_language_defn): Update.
8300 * go-valprint.c (go_val_print): Remove.
8301 * go-lang.h (go_val_print): Don't declare.
8302 * go-lang.c (go_language_defn): Update.
8303 * f-valprint.c (f_val_print): Remove.
8304 * f-lang.h (f_value_print): Don't declare.
8305 * f-lang.c (f_language_defn): Update.
8306 * d-valprint.c (d_val_print): Remove.
8307 * d-lang.h (d_value_print): Don't declare.
8308 * d-lang.c (d_language_defn): Update.
8309 * cp-valprint.c (cp_print_value_fields)
8310 (cp_print_value_fields_rtti, cp_print_value): Remove.
8311 (cp_print_static_field): Update.
8312 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8313 (c_val_print_struct, c_val_print_union, c_val_print_int)
8314 (c_val_print_memberptr, c_val_print): Remove.
8315 * c-lang.h (c_val_print_array, cp_print_value_fields)
8316 (cp_print_value_fields_rtti): Don't declare.
8317 * c-lang.c (c_language_defn, cplus_language_defn)
8318 (asm_language_defn, minimal_language_defn): Update.
8319 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8320 (ada_val_print_enum): Take a struct value.
8321 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8322 (ada_val_print): Remove.
8323 (ada_value_print_1): Update.
8324 (printable_val_type): Remove.
8325 * ada-lang.h (ada_val_print): Don't declare.
8326 * ada-lang.c (ada_language_defn): Update.
8327
42331a1e
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * valprint.c (do_val_print): Update.
8331 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8332 a struct value.
8333 (value_to_value_object_no_release): Declare.
8334 * python/py-value.c (value_to_value_object_no_release): New
8335 function.
8336 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8337 struct value.
8338 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8339 function.
8340 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8341 a struct value.
8342 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8343 Declare.
8344 (gdbscm_apply_val_pretty_printer): Take a struct value.
8345 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8346 value.
8347 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8348 value.
8349 * extension-priv.h (struct extension_language_ops)
8350 <apply_val_pretty_printer>: Take a struct value.
8351 * cp-valprint.c (cp_print_value): Create a struct value.
8352 (cp_print_value): Update.
8353
3a916a97
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * ada-valprint.c (print_field_values): Call common_val_print.
8357
b59eac37
TT
83582020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * ada-valprint.c (val_print_packed_array_elements): Remove
8361 bitoffset and val parameters. Call common_val_print.
8362 (ada_val_print_string): Remove offset, address, and original_value
8363 parameters.
8364 (ada_val_print_array): Update.
8365 (ada_value_print_array): New function.
8366 (ada_value_print_1): Call it.
8367
03371129
TT
83682020-03-13 Tom Tromey <tom@tromey.com>
8369
8370 * ada-valprint.c (ada_value_print): Use common_val_print.
8371
2e088f8b
TT
83722020-03-13 Tom Tromey <tom@tromey.com>
8373
8374 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8375
39ef85a8
TT
83762020-03-13 Tom Tromey <tom@tromey.com>
8377
8378 * ada-valprint.c (ada_value_print_num): New function.
8379 (ada_value_print_1): Use it.
8380
b9fa6e07
TT
83812020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8384
416595d6
TT
83852020-03-13 Tom Tromey <tom@tromey.com>
8386
8387 * ada-valprint.c (ada_value_print_ptr): New function.
8388 (ada_value_print_1): Use it.
8389
5b5e15ec
TT
83902020-03-13 Tom Tromey <tom@tromey.com>
8391
8392 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8393 call common_val_print.
8394 (ada_val_print_1): Update.
8395 (ada_value_print_1): New function.
8396 (ada_value_print_inner): Rewrite.
8397
fbf54e75
TT
83982020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * cp-valprint.c (cp_print_value_fields): Update.
8401 (cp_print_value): New function.
8402
64b653ca
TT
84032020-03-13 Tom Tromey <tom@tromey.com>
8404
8405 * m2-valprint.c (m2_value_print_inner): Use
8406 cp_print_value_fields.
8407 * cp-valprint.c (cp_print_value_fields): New function.
8408 * c-valprint.c (c_value_print_struct): New function.
8409 (c_value_print_inner): Use c_value_print_struct.
8410 * c-lang.h (cp_print_value_fields): Declare.
8411
6999f067
TT
84122020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * c-valprint.c (c_value_print_array): New function.
8415 (c_value_print_inner): Use it.
8416
ce80b8bd
TT
84172020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * c-valprint.c (c_value_print_memberptr): New function.
8420 (c_value_print_inner): Use it.
8421
2faac269
TT
84222020-03-13 Tom Tromey <tom@tromey.com>
8423
8424 * c-valprint.c (c_value_print_int): New function.
8425 (c_value_print_inner): Use it.
8426
da3e2c29
TT
84272020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * c-valprint.c (c_value_print_ptr): New function.
8430 (c_value_print_inner): Use it.
8431
50836231
TT
84322020-03-13 Tom Tromey <tom@tromey.com>
8433
8434 * c-valprint.c (c_value_print_inner): Rewrite.
8435
4f412b6e
TT
84362020-03-13 Tom Tromey <tom@tromey.com>
8437
8438 * valprint.c (generic_value_print_complex): New function.
8439 (generic_value_print): Use it.
8440
f5354008
TT
84412020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * valprint.c (generic_val_print_float): Don't call
8444 val_print_scalar_formatted.
8445 (generic_val_print, generic_value_print): Update.
8446
3eec3b05
TT
84472020-03-13 Tom Tromey <tom@tromey.com>
8448
8449 * valprint.c (generic_value_print_char): New function
8450 (generic_value_print): Use it.
8451
fdddfccb
TT
84522020-03-13 Tom Tromey <tom@tromey.com>
8453
8454 * valprint.c (generic_value_print_int): New function.
8455 (generic_value_print): Use it.
8456
6dde7521
TT
84572020-03-13 Tom Tromey <tom@tromey.com>
8458
8459 * valprint.c (generic_value_print_bool): New function.
8460 (generic_value_print): Use it.
8461
4112d2e6
TT
84622020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * valprint.c (generic_val_print_func): Simplify.
8465 (generic_val_print, generic_value_print): Update.
8466
65786af6
TT
84672020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * valprint.c (generic_val_print_flags): Remove.
8470 (generic_val_print, generic_value_print): Update.
8471 (val_print_type_code_flags): Add original_value parameter.
8472
40f3ce18
TT
84732020-03-13 Tom Tromey <tom@tromey.com>
8474
8475 * valprint.c (generic_val_print): Update.
8476 (generic_value_print): Update.
8477 * valprint.c (generic_val_print_enum): Don't call
8478 val_print_scalar_formatted.
8479
2a5b130b
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8483 * valprint.c (generic_value_print_ptr): New function.
8484
abc66ce9
TT
84852020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * valprint.c (generic_value_print): Rewrite.
8488
07a32858
TT
84892020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * p-valprint.c (pascal_object_print_value_fields)
8492 (pascal_object_print_value): New functions.
8493
64d64d3a
TT
84942020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * p-valprint.c (pascal_value_print_inner): Rewrite.
8497
6a95a1f5
TT
84982020-03-13 Tom Tromey <tom@tromey.com>
8499
8500 * f-valprint.c (f_value_print_innner): Rewrite.
8501
59fcdac6
TT
85022020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * m2-valprint.c (m2_print_unbounded_array): New overload.
8505 (m2_print_unbounded_array): Update.
8506 (m2_print_array_contents): Take a struct value.
8507 (m2_value_print_inner): Rewrite.
8508
d133c3e1
TT
85092020-03-13 Tom Tromey <tom@tromey.com>
8510
8511 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8512 (d_value_print_inner): New function.
8513 * d-lang.h (d_value_print_inner): Declare.
8514 * d-lang.c (d_language_defn): Use d_value_print_inner.
8515
23b0f06b
TT
85162020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * go-valprint.c (go_value_print_inner): New function.
8519 * go-lang.h (go_value_print_inner): Declare.
8520 * go-lang.c (go_language_defn): Use go_value_print_inner.
8521
5f56f7cb
TT
85222020-03-13 Tom Tromey <tom@tromey.com>
8523
8524 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8525 API.
8526 (rust_val_print): Rewrite.
8527 (rust_value_print_inner): New function, from rust_val_print.
8528 (rust_language_defn): Use rust_value_print_inner.
8529
26792ee0
TT
85302020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * ada-valprint.c (ada_value_print_inner): New function.
8533 * ada-lang.h (ada_value_print_inner): Declare.
8534 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8535
24051bbe
TT
85362020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * f-valprint.c (f_value_print_innner): New function.
8539 * f-lang.h (f_value_print_innner): Declare.
8540 * f-lang.c (f_language_defn): Use f_value_print_innner.
8541
c0941be6
TT
85422020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * p-valprint.c (pascal_value_print_inner): New function.
8545 * p-lang.h (pascal_value_print_inner): Declare.
8546 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8547
62c4663d
TT
85482020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * m2-valprint.c (m2_value_print_inner): New function.
8551 * m2-lang.h (m2_value_print_inner): Declare.
8552 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8553
62182190
TT
85542020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8557 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8558 * c-valprint.c (c_value_print_inner): New function.
8559 * c-lang.h (c_value_print_inner): Declare.
8560 * c-lang.c (c_language_defn, cplus_language_defn)
8561 (asm_language_defn, minimal_language_defn): Use
8562 c_value_print_inner.
8563
1e592a8a
TT
85642020-03-13 Tom Tromey <tom@tromey.com>
8565
8566 * p-valprint.c (pascal_object_print_value_fields): Now static.
8567 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8568
7fe471e9
TT
85692020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * c-valprint.c (c_val_print_array): Simplify.
8572
d121c6ce
TT
85732020-03-13 Tom Tromey <tom@tromey.com>
8574
8575 * valprint.c (value_print_array_elements): New function.
8576 * valprint.h (value_print_array_elements): Declare.
8577
4dba70ee
TT
85782020-03-13 Tom Tromey <tom@tromey.com>
8579
8580 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8581 * mips-tdep.c (mips_print_register): Use
8582 value_print_scalar_formatted.
8583
4f9ae810
TT
85842020-03-13 Tom Tromey <tom@tromey.com>
8585
8586 * valprint.h (value_print_scalar_formatted): Declare.
8587 * valprint.c (value_print_scalar_formatted): New function.
8588
156bfec9
TT
85892020-03-13 Tom Tromey <tom@tromey.com>
8590
8591 * valprint.h (generic_value_print): Declare.
8592 * valprint.c (generic_value_print): New function.
8593
2b4e573d
TT
85942020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * valprint.c (do_val_print): Call la_value_print_inner, if
8597 available.
8598 * rust-lang.c (rust_language_defn): Update.
8599 * p-lang.c (pascal_language_defn): Update.
8600 * opencl-lang.c (opencl_language_defn): Update.
8601 * objc-lang.c (objc_language_defn): Update.
8602 * m2-lang.c (m2_language_defn): Update.
8603 * language.h (struct language_defn) <la_value_print_inner>: New
8604 member.
8605 * language.c (unknown_language_defn, auto_language_defn): Update.
8606 * go-lang.c (go_language_defn): Update.
8607 * f-lang.c (f_language_defn): Update.
8608 * d-lang.c (d_language_defn): Update.
8609 * c-lang.c (c_language_defn, cplus_language_defn)
8610 (asm_language_defn, minimal_language_defn): Update.
8611 * ada-lang.c (ada_language_defn): Update.
8612
a1f6a07c
TT
86132020-03-13 Tom Tromey <tom@tromey.com>
8614
8615 * c-valprint.c (c_value_print): Use common_val_print.
8616
410cf315
TT
86172020-03-13 Tom Tromey <tom@tromey.com>
8618
8619 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8620
72a45c93
TT
86212020-03-13 Tom Tromey <tom@tromey.com>
8622
8623 * f-valprint.c (f77_print_array_1, f_val_print): Use
8624 common_val_print.
8625
040f66bd
TT
86262020-03-13 Tom Tromey <tom@tromey.com>
8627
8628 * riscv-tdep.c (riscv_print_one_register_info): Use
8629 common_val_print.
8630
a6e05a6c
TT
86312020-03-13 Tom Tromey <tom@tromey.com>
8632
8633 * mi/mi-main.c (output_register): Use common_val_print.
8634
3444c526
TT
86352020-03-13 Tom Tromey <tom@tromey.com>
8636
8637 * infcmd.c (default_print_one_register_info): Use
8638 common_val_print.
8639
c2a44efe
TT
86402020-03-13 Tom Tromey <tom@tromey.com>
8641
8642 * valprint.h (common_val_print_checked): Declare.
8643 * valprint.c (common_val_print_checked): New function.
8644 * stack.c (print_frame_arg): Use common_val_print_checked.
8645
b0c26e99
TT
86462020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * valprint.c (do_val_print): New function, from val_print.
8649 (val_print): Use do_val_print.
8650 (common_val_print): Use do_val_print.
8651
ce3acbe9
TT
86522020-03-13 Tom Tromey <tom@tromey.com>
8653
8654 * valprint.c (value_print): Use scoped_value_mark.
8655
96c7f873
TV
86562020-03-13 Tom de Vries <tdevries@suse.de>
8657
8658 PR symtab/25646
8659 * psymtab.c (partial_symtab::partial_symtab): Don't set
8660 globals_offset and statics_offset. Push element onto
8661 current_global_psymbols and current_static_psymbols stacks.
8662 (concat): New function.
8663 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8664 element from current_global_psymbols and current_static_psymbols
8665 stacks. Concat popped elements to global_psymbols and
8666 static_symbols.
8667 (add_psymbol_to_list): Use current_global_psymbols and
8668 current_static_psymbols stacks.
8669 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8670 current_static_psymbols fields.
8671
6ba0a321
CB
86722020-03-12 Christian Biesinger <cbiesinger@google.com>
8673
8674 * corelow.c (sniff_core_bfd): Remove.
8675 (class core_target) <m_core_vec>: Remove.
8676 (core_target::core_target): Update.
8677 (core_file_fns): Remove.
8678 (deprecated_add_core_fns): Remove.
8679 (default_core_sniffer): Remove.
8680 (sniff_core_bfd): Remove.
8681 (default_check_format): Remove.
8682 (gdb_check_format): Remove.
8683 (core_target_open): Update.
8684 (core_target::get_core_register_section): Update.
8685 (get_core_registers_cb): Update.
8686 (core_target::fetch_registers): Update.
8687 * gdbcore.h (struct core_fns): Remove.
8688 (deprecated_add_core_fns): Remove.
8689 (default_core_sniffer): Remove.
8690 (default_check_format): Remove.
8691
227031b2
TT
86922020-03-12 Tom Tromey <tom@tromey.com>
8693
8694 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8695 CORE_ADDR.
8696 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8697
53807e9f
TT
86982020-03-12 Tom Tromey <tom@tromey.com>
8699
8700 * remote.c (remote_target::download_tracepoint)
8701 (remote_target::enable_tracepoint)
8702 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8703 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8704 sprintf_vma.
8705
64f25102
TT
87062020-03-12 Tom Tromey <tom@tromey.com>
8707
8708 * symfile-mem.c: Update CORE_ADDR size assert.
8709
272cd5a3
SM
87102020-03-12 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * selftest.m4: Move to gdbsupport/.
8713 * acinclude.m4: Update path to selftest.m4.
8714
74cd3f9d
SM
87152020-03-12 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8718 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8719 gdbarch-selfselftests.c and selftest-arch.c.
8720 (SUBDIR_UNITTESTS_OBS): Rename to...
8721 (SELFTESTS_OBS): ... this.
8722 (COMMON_SFILES): Remove disasm-selftests.c and
8723 gdbarch-selftests.c.
8724 * configure.ac: Don't add selftest-arch.{c,o} to
8725 CONFIG_{SRCS,OBS}.
8726 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8727 preprocessor conditions.
8728
db6878ac
SM
87292020-03-12 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * configure.ac: Don't source bfd/development.sh.
8732 * selftest.m4: Modify comment.
8733 * configure: Re-generate.
8734
4d696a5c
SM
87352020-03-12 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8738 not "true" or "false".
8739 * configure: Re-generate.
8740
8dd8e1c7
CB
87412020-03-12 Christian Biesinger <cbiesinger@google.com>
8742
8743 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8744 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8745 renamed to arm_nbsd_supply_gregset.
8746 (fetch_register): Update to call arm_nbsd_supply_gregset.
8747 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8748 (arm_netbsd_nat_target::fetch_registers): Update.
8749 (fetch_elfcore_registers): Removed.
8750 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8751 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8752 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8753 not require NetBSD system headers.
8754 (arm_nbsd_regset): New struct.
8755 (arm_nbsd_iterate_over_regset_sections): New function.
8756 (arm_netbsd_init_abi_common): Updated to call
8757 set_gdbarch_iterate_over_regset_sections.
8758 * arm-nbsd-tdep.h: New file.
8759
dd69bf7a
KB
87602020-03-11 Kevin Buettner <kevinb@redhat.com>
8761
8762 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8763 recursion.
8764
a0761e34
SM
87652020-03-11 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * configure: Re-generate.
8768
e7a82140
TT
87692020-03-11 Tom Tromey <tromey@adacore.com>
8770
8771 * ada-typeprint.c (print_choices): Fix comment.
8772
dcc050c8
AB
87732020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8776 previous item in the list, when the list has no items.
8777
1c33af77
TV
87782020-03-11 Tom de Vries <tdevries@suse.de>
8779
8780 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8781 PROP_LOCLIST handling code.
8782
8c95582d
AB
87832020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8784
8785 * buildsym-legacy.c (record_line): Pass extra parameter to
8786 record_line.
8787 * buildsym.c (buildsym_compunit::record_line): Take an extra
8788 parameter, reduce duplication in the line table, and record the
8789 is_stmt flag in the line table.
8790 * buildsym.h (buildsym_compunit::record_line): Add extra
8791 parameter.
8792 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8793 non-statement lines.
8794 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8795 this to the symtab builder.
8796 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8797 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8798 through to dwarf_record_line_1.
8799 * infrun.c (process_event_stop_test): When stepping, don't stop at
8800 a non-statement instruction, and only refresh the step info when
8801 we land in the middle of a line's range. Also add an extra
8802 comment.
8803 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8804 field.
8805 * record-btrace.c (btrace_find_line_range): Only record lines
8806 marked as is-statement.
8807 * stack.c (frame_show_address): Show the frame address if we are
8808 in a non-statement sal.
8809 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8810 (maintenance_print_one_line_table): Print a header for the is_stmt
8811 column, and include is_stmt information in the output.
8812 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8813 preference to non-statements.
8814 (find_pcs_for_symtab_line): Prefer is-statement entries.
8815 (find_line_common): Likewise.
8816 * symtab.h (struct linetable_entry): Add is_stmt field.
8817 (struct symtab_and_line): Likewise.
8818 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8819 arranging the line table.
8820
e4003a34
TV
88212020-03-07 Tom de Vries <tdevries@suse.de>
8822
8823 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8824 DIE.
8825
e8932576
TT
88262020-03-07 Tom Tromey <tom@tromey.com>
8827
8828 * valops.c (value_literal_complex): Remove obsolete comment.
8829 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8830 comment.
8831
29734269
SM
88322020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * infrun.h: Forward-declare thread_info.
8835 (set_step_info): Add thread_info parameter, add doc.
8836 * infrun.c (set_step_info): Add thread_info parameter, move doc
8837 to header.
8838 * infrun.c (process_event_stop_test): Pass thread to
8839 set_step_info call.
8840 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8841 set_step_info.
8842 (prepare_one_step): Add thread_info parameter, pass it to
8843 set_step_frame and prepare_one_step (recursive) call.
8844 (step_1): Pass thread to prepare_one_step call.
8845 (step_command_fsm::should_stop): Pass thread to
8846 prepare_one_step.
8847 (until_next_fsm): Pass thread to set_step_frame call.
8848 (finish_command): Pass thread to set_step_info call.
8849
b7d64b29
HD
88502020-03-06 Hannes Domani <ssbssa@yahoo.de>
8851
8852 * windows-tdep.c (windows_solib_create_inferior_hook):
8853 Check if inferior is running.
8854
09f2921c
TV
88552020-03-06 Tom de Vries <tdevries@suse.de>
8856
8857 * NEWS: Fix "the the".
8858 * ctfread.c: Same.
8859
fd760e79
TV
88602020-03-06 Tom de Vries <tdevries@suse.de>
8861
8862 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8863
20ea4a60
AB
88642020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * .dir-locals.el: Add a comment referencing the other copies of
8867 this file.
8868
0afbabf0
JB
88692020-03-05 John Baldwin <jhb@FreeBSD.org>
8870
8871 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8872 psargs.
8873
842806cb
TBA
88742020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8875
8876 * .gitattributes: New file.
8877
be1e3d3e
TT
88782020-03-04 Tom Tromey <tom@tromey.com>
8879
8880 * symmisc.c (print_symbol_bcache_statistics)
8881 (print_objfile_statistics): Update.
8882 * symfile.c (allocate_symtab): Use intern.
8883 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8884 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8885 macro_cache>: Remove.
8886 <string_cache>: New member.
8887 (struct objfile) <intern>: New methods.
8888 * elfread.c (elf_symtab_read): Use intern.
8889 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8890 (dwarf2_compute_name, dwarf2_physname)
8891 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8892 names.
8893 (guess_partial_die_structure_name): Update.
8894 (partial_die_info::fixup): Intern name.
8895 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8896 name.
8897 (dwarf2_name): Intern name. Update.
8898 * buildsym.c (buildsym_compunit::get_macro_table): Use
8899 string_cache.
8900
4e7625fd
TT
89012020-03-04 Tom Tromey <tom@tromey.com>
8902
8903 * jit.c (bfd_open_from_target_memory): Make "target" const.
8904 * corefile.c (gnutarget): Now const.
8905 * gdbcore.h (gnutarget): Now const.
8906
46f9f931
HD
89072020-03-04 Hannes Domani <ssbssa@yahoo.de>
8908
8909 * NEWS: Mention support for WOW64 processes.
8910 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8911 (amd64_windows_segment_register_p): Remove static.
8912 (_initialize_amd64_windows_nat): Update.
8913 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8914 * i386-windows-nat.c (context_offset): Update.
8915 (i386_mappings): Rename and remove static.
8916 (i386_windows_segment_register_p): Remove static.
8917 (_initialize_i386_windows_nat): Update.
8918 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8919 (STATUS_WX86_SINGLE_STEP): New macro.
8920 (EnumProcessModulesEx): New macro.
8921 (Wow64SuspendThread): New macro.
8922 (Wow64GetThreadContext): New macro.
8923 (Wow64SetThreadContext): New macro.
8924 (Wow64GetThreadSelectorEntry): New macro.
8925 (windows_set_context_register_offsets): Add static.
8926 (windows_set_segment_register_p): Likewise.
8927 (windows_add_thread): Adapt for WOW64 processes.
8928 (windows_fetch_one_register): Likewise.
8929 (windows_nat_target::fetch_registers): Likewise.
8930 (windows_store_one_register): Likewise.
8931 (display_selector): Likewise.
8932 (display_selectors): Likewise.
8933 (handle_exception): Likewise.
8934 (windows_continue): Likewise.
8935 (windows_nat_target::resume): Likewise.
8936 (windows_add_all_dlls): Likewise.
8937 (do_initial_windows_stuff): Likewise.
8938 (windows_nat_target::attach): Likewise.
8939 (windows_get_exec_module_filename): Likewise.
8940 (windows_nat_target::create_inferior): Likewise.
8941 (windows_xfer_siginfo): Likewise.
8942 (_initialize_loadable): Initialize Wow64SuspendThread,
8943 Wow64GetThreadContext, Wow64SetThreadContext,
8944 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8945 * windows-nat.h (windows_set_context_register_offsets):
8946 Remove declaration.
8947 (windows_set_segment_register_p): Likewise.
8948 (i386_windows_segment_register_p): Add declaration.
8949 (amd64_windows_segment_register_p): Likewise.
8950
440cf44e
LM
89512020-03-04 Luis Machado <luis.machado@linaro.org>
8952
8953 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8954 in "info registers" for AArch64/ARM.
8955
8956 The change caused "info registers" to not print GPR's.
8957
8958 gdb/ChangeLog:
8959
8960 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8961
8962 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8963 when reg->group is empty and reggroup is not.
8964
1009d92f
TT
89652020-03-03 Tom Tromey <tromey@adacore.com>
8966
8967 * dwarf2/frame.c (struct dwarf2_frame_cache)
8968 <checked_tailcall_bottom, entry_cfa_sp_offset,
8969 entry_cfa_sp_offset_p>: Remove members.
8970 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8971 (dwarf2_frame_prev_register): Don't call
8972 dwarf2_tailcall_sniffer_first.
8973 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8974 * frame-unwind.c (add_unwinder): New fuction.
8975 (frame_unwind_init): Use it. Add tailcall unwinder.
8976
5e5d66b6
AB
89772020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8978 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8979
8980 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8981 value should be printed as true.
8982
584cf46d
HD
89832020-03-03 Hannes Domani <ssbssa@yahoo.de>
8984
8985 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8986 (windows_init_abi): Set and use windows_so_ops.
8987
7b973adc
SDJ
89882020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8989
8990 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8991 when verifying if dealing with a convenience variable.
8992
bb7b70ab
LM
89932020-03-03 Luis Machado <luis.machado@linaro.org>
8994
8995 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8996
9822cb57
SM
89972020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8998
8999 * infrun.c (gdbarch_supports_displaced_stepping): New.
9000 (use_displaced_stepping): Break up conditions in smaller pieces.
9001 Use gdbarch_supports_displaced_stepping.
9002 (displaced_step_prepare_throw): Use
9003 gdbarch_supports_displaced_stepping.
9004
63e163f2
AB
90052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * NEWS: Mention new behaviour of the history filename.
9008 * top.c (write_history_p): Add comment.
9009 (show_write_history_p): Add header comment, give a different
9010 message when history writing is on, but the history filename is
9011 empty.
9012 (history_filename): Add comment.
9013 (history_filename_empty): New function.
9014 (show_history_filename): Add header comment, give a different
9015 message when the filename is empty.
9016 (init_history): Compare history_filename against nullptr, and only
9017 read history if the filename is not empty.
9018 (set_history_filename): Add header comment, and only make
9019 non-empty filenames absolute.
9020 (init_main): Make the filename argument to 'set history filename'
9021 optional.
9022
81b86b97
CB
90232020-03-02 Christian Biesinger <cbiesinger@google.com>
9024
9025 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9026 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9027 (fetch_fp_register): Update.
9028 (fetch_fp_regs): Update.
9029 (store_fp_register): Update.
9030 (store_fp_regs): Update.
9031 (arm_netbsd_nat_target::read_description): New function.
9032 (fetch_elfcore_registers): Update.
9033
24ed6739
AB
90342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9035
9036 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9037 general_thread if the stop reply is missing a thread-id.
9038 (remote_target::process_stop_reply): Use the first non-exited
9039 thread if the target didn't pass a thread-id.
9040 * infrun.c (do_target_wait): Move call to
9041 switch_to_inferior_no_thread to ....
9042 (do_target_wait_1): ... here.
9043
a84bb2a0
JT
90442020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9045
9046 * debuginfod-support.c: Include defs.h first.
9047
658dadf0
TV
90482020-02-28 Tom de Vries <tdevries@suse.de>
9049
9050 * symfile.c (set_initial_language): Use default language for lookup.
9051
4ebe4877
SM
90522020-02-28 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9055 reader variable, pass `this` to read_cutu_die_from_dwo.
9056
e5da1139
AM
90572020-02-27 Aaron Merey <amerey@redhat.com>
9058
9059 * source.c (open_source_file): Check for nullptr when computing
9060 srcpath.
9061
317f7127
TT
90622020-02-27 Tom Tromey <tromey@adacore.com>
9063
9064 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9065 member.
9066 (dwarf2_add_field): Don't update nfields.
9067 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9068
3104d9ee
AB
90692020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9072 abs.
9073
b83470bf
TT
90742020-02-26 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9077 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9078 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9079 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9080 per_cu_data.
9081
edfe0a0c
TT
90822020-02-26 Tom Tromey <tom@tromey.com>
9083
9084 * dwarf2/index-write.c (psym_index_map): Change type.
9085 (add_address_entry_worker, write_one_signatured_type)
9086 (recursively_count_psymbols, recursively_write_psymbols)
9087 (class debug_names, psyms_seen_size, write_gdbindex)
9088 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9089
0d79cdc4
AM
90902020-02-26 Aaron Merey <amerey@redhat.com>
9091
9092 * Makefile.in: Handle optional debuginfod support.
9093 * NEWS: Update.
9094 * README: Add --with-debuginfod summary.
9095 * config.in: Regenerate.
9096 * configure: Regenerate.
9097 * configure.ac: Handle optional debuginfod support.
9098 * debuginfod-support.c: debuginfod helper functions.
9099 * debuginfod-support.h: Ditto.
9100 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9101 summary.
9102 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9103 when a dwz file cannot be found.
9104 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9105 debuginfo file cannot be found.
9106 * source.c (open_source_file): Query debuginfod servers when a
9107 source file cannot be found.
9108 * top.c (print_gdb_configuration): Include
9109 --{with,without}-debuginfod in the output.
9110
b65ce565
JG
91112020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9112
9113 * thread.c (thr_try_catch_cmd): Print thread name.
9114
d4c9a4f8
SM
91152020-02-26 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9118 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9119 dwarf2_fetch_die_type_sect_off): Move to...
9120 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9121 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9122 dwarf2_fetch_die_type_sect_off): ... here.
9123 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9124 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9125 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9126
0dce4280
TV
91272020-02-26 Tom de Vries <tdevries@suse.de>
9128
9129 PR gdb/25603
9130 * symfile.c (set_initial_language): Exit-early if
9131 language_mode == language_mode_manual.
9132
450a1bfc
SM
91332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9134
9135 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9136 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9137 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9138
9e80cfa1
AB
91392020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * gdbtypes.c (create_array_type_with_stride): Handle negative
9142 array strides.
9143 * valarith.c (value_subscripted_rvalue): Likewise.
9144
09624f1f
LM
91452020-02-25 Luis Machado <luis.machado@linaro.org>
9146
9147 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9148
8cb5117c
SM
91492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9150
9151 * loc.h (dwarf2_get_die_type): Move to...
9152 * read.h (dwarf2_get_die_type): ... here.
9153 * read.c (dwarf2_get_die_type): Move doc to header.
9154
c325c44e
JB
91552020-02-25 Joel Brobecker <brobecker@adacore.com>
9156
9157 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9158 'gnulib/Makefile.in' to the list.
9159
4ac93832
TT
91602020-02-24 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9163 Remove.
9164 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9165 XOBNEWVEC.
9166
197400e8
TT
91672020-02-24 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9170 New method.
9171 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9172 (dw2_do_instantiate_symtab, dw2_get_file_names)
9173 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9174
76935768
TT
91752020-02-24 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9178 make_scoped_restore.
9179 (dwarf2_psymtab::read_symtab): Don't clear
9180 reading_partial_symbols.
9181
a88ef40d
TV
91822020-02-24 Tom de Vries <tdevries@suse.de>
9183
9184 PR gdb/25592
9185 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9186
c9af6521
TV
91872020-02-24 Tom de Vries <tdevries@suse.de>
9188
9189 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9190 commands layout next/prev/regs.
9191
5707a07a
TT
91922020-02-22 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9195 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9196
3b0fb49e
TT
91972020-02-22 Tom Tromey <tom@tromey.com>
9198
9199 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9200
283be8bf
TT
92012020-02-22 Tom Tromey <tom@tromey.com>
9202
9203 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9204 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9205 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9206 * tui/tui.c (_initialize_tui): Add usage text.
9207
ca793b96
TT
92082020-02-22 Tom Tromey <tom@tromey.com>
9209
9210 * tui/tui-win.c (tui_set_focus_command)
9211 (tui_set_win_height_command): Use error_no_arg.
9212 (_initialize_tui_win): Update help text.
9213 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9214
432b5c40
TT
92152020-02-22 Tom Tromey <tom@tromey.com>
9216
9217 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9218 * tui/tui-disasm.h (struct tui_disasm_window)
9219 <display_start_addr>: Declare.
9220 * tui/tui-source.h (struct tui_source_window)
9221 <display_start_addr>: Declare.
9222 * tui/tui-winsource.h (struct tui_source_window_base)
9223 <show_source_line, display_start_addr>: New methods.
9224 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9225 Rename and move to protected section.
9226 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9227 (tui_source_window_base::do_erase_source_content): Update.
9228 (tui_source_window_base::show_source_line): Now a method.
9229 (tui_source_window_base::show_source_content)
9230 (tui_source_window_base::tui_source_window_base)
9231 (tui_source_window_base::rerender)
9232 (tui_source_window_base::refill)
9233 (tui_source_window_base::do_scroll_horizontal)
9234 (tui_source_window_base::set_is_exec_point_at)
9235 (tui_source_window_base::update_breakpoint_info)
9236 (tui_source_window_base::update_exec_info): Update.
9237 * tui/tui-source.c (tui_source_window::set_contents)
9238 (tui_source_window::showing_source_p)
9239 (tui_source_window::do_scroll_vertical)
9240 (tui_source_window::location_matches_p)
9241 (tui_source_window::line_is_displayed): Update.
9242 (tui_source_window::display_start_addr): New method.
9243 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9244 (tui_disasm_window::do_scroll_vertical)
9245 (tui_disasm_window::location_matches_p): Update.
9246 (tui_disasm_window::display_start_addr): New method.
9247
01b1af32
TT
92482020-02-22 Tom Tromey <tom@tromey.com>
9249
9250 * NEWS: Add entry for gdb.register_window_type.
9251 * tui/tui-layout.h (window_factory): New typedef.
9252 (tui_register_window): Declare.
9253 * tui/tui-layout.c (saved_tui_windows): New global.
9254 (tui_apply_current_layout): Use it.
9255 (tui_register_window): New function.
9256 * python/python.c (do_start_initialization): Call
9257 gdbpy_initialize_tui.
9258 (python_GdbMethods): Add "register_window_type" function.
9259 * python/python-internal.h (gdbpy_register_tui_window)
9260 (gdbpy_initialize_tui): Declare.
9261 * python/py-tui.c: New file.
9262 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9263
fc96d20b
TT
92642020-02-22 Tom Tromey <tom@tromey.com>
9265
9266 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9267
935c78c0
TT
92682020-02-22 Tom Tromey <tom@tromey.com>
9269
9270 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9271 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9272 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9273 (tui_set_win_focus_to): Move from tui-win.c.
9274
0240c8f1
TT
92752020-02-22 Tom Tromey <tom@tromey.com>
9276
9277 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9278 functions.
9279 (known_window_types): New global.
9280 (tui_get_window_by_name): Reimplement.
9281 (initialize_known_windows): New function.
9282 (validate_window_name): Rewrite.
9283 (_initialize_tui_layout): Call initialize_known_windows.
9284
fdb01f0c
TT
92852020-02-22 Tom Tromey <tom@tromey.com>
9286
9287 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9288 Remove constants.
9289 * tui/tui-winsource.h (struct tui_source_window_base)
9290 <tui_source_window_base>: Remove parameter.
9291 * tui/tui-winsource.c
9292 (tui_source_window_base::tui_source_window_base): Remove
9293 parameter.
9294 (tui_source_window_base::refill): Update.
9295 * tui/tui-stack.h (struct tui_locator_window)
9296 <tui_locator_window>: Update.
9297 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9298 Default the constructor.
9299 * tui/tui-regs.h (struct tui_data_item_window)
9300 <tui_data_item_window>: Default the constructor.
9301 (struct tui_data_window) <tui_data_window>: Likewise.
9302 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9303 Default the constructor.
9304 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9305 Default the constructor.
9306 <type>: Remove.
9307 (struct tui_win_info) <tui_win_info>: Default the constructor.
9308 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9309 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9310 Default the constructor.
9311
865a5aec
TT
93122020-02-22 Tom Tromey <tom@tromey.com>
9313
9314 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9315 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9316 * tui/tui-win.c (tui_resize_all): Don't call
9317 tui_delete_invisible_windows.
9318 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9319 done.
9320 (tui_set_layout): Update.
9321 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9322 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9323 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9324
e098d18c
TT
93252020-02-22 Tom Tromey <tom@tromey.com>
9326
9327 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9328 correctly.
9329
eb9c8874
TT
93302020-02-22 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9333
7eed1a8e
TT
93342020-02-22 Tom Tromey <tom@tromey.com>
9335
9336 * tui/tui-winsource.h (struct tui_source_window_iterator)
9337 <inner_iterator>: New etytypedef.
9338 <tui_source_window_iterator>: Take "end" parameter.
9339 <tui_source_window_iterator>: Take iterator.
9340 <operator*, advance>: Update.
9341 <m_iter>: Change type.
9342 <m_end>: New field.
9343 (struct tui_source_windows) <begin, end>: Update.
9344 * tui/tui-layout.c (tui_windows): New global.
9345 (tui_apply_current_layout): Clear tui_windows.
9346 (tui_layout_window::apply): Update tui_windows.
9347 * tui/tui-data.h (tui_windows): Declare.
9348 (all_tui_windows): Now inline function.
9349 (class tui_window_iterator, struct all_tui_windows): Remove.
9350
7c043ba6
TT
93512020-02-22 Tom Tromey <tom@tromey.com>
9352
9353 PR tui/17850:
9354 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9355 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9356 "height" argument.
9357 (class tui_layout_window) <get_sizes>: Likewise.
9358 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9359 argument.
9360 <get_sizes>: Add "height" argument.
9361 <m_vertical>: New field.
9362 * tui/tui-layout.c (tui_layout_split::clone): Update.
9363 (tui_layout_split::get_sizes): Add "height" argument.
9364 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9365 (tui_new_layout_command): Parse "-horizontal".
9366 (_initialize_tui_layout): Update help string.
9367 (tui_layout_split::specification): Add "-horizontal" when needed.
9368 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9369 argument.
9370 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9371 New methods.
9372
6bc56648
TT
93732020-02-22 Tom Tromey <tom@tromey.com>
9374
9375 * tui/tui-layout.h (enum tui_adjust_result): New.
9376 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9377 (class tui_layout_window) <adjust_size>: Return
9378 tui_adjust_result. Rewrite.
9379 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9380 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9381
c22fef7e
TT
93822020-02-22 Tom Tromey <tom@tromey.com>
9383
9384 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9385 parameter and return types.
9386 (class tui_layout_base) <specification>: Add "depth".
9387 (class tui_layout_window) <specification>: Add "depth".
9388 (class tui_layout_split) <specification>: Add "depth".
9389 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9390 and return types.
9391 (tui_new_layout_command): Parse sub-layouts.
9392 (_initialize_tui_layout): Update help string.
9393 (tui_layout_window::specification): Add "depth".
9394 (add_layout_command): Update.
9395
ee325b61
TT
93962020-02-22 Tom Tromey <tom@tromey.com>
9397
9398 * NEWS: Add "tui new-layout" item.
9399 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9400 Add new-layout command to help text.
9401 (validate_window_name): New function.
9402 (tui_new_layout_command): New function.
9403 (_initialize_tui_layout): Register "new-layout".
9404 (tui_layout_window::specification): New method.
9405 (tui_layout_window::specification): New method.
9406 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9407 method.
9408 (class tui_layout_window) <specification>: New method.
9409 (class tui_layout_split) <specification>: New method.
9410
416eb92d
TT
94112020-02-22 Tom Tromey <tom@tromey.com>
9412
9413 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9414 * tui/tui-win.c (window_name_completer): Update comment.
9415 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9416 Declare method.
9417 (class tui_layout_window) <replace_window>: Likewise.
9418 (class tui_layout_split) <replace_window>: Likewise.
9419 (tui_set_layout): Don't declare.
9420 (tui_set_initial_layout): Declare function.
9421 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9422 (asm_regs_layout): New globals.
9423 (tui_current_layout, show_layout): Remove.
9424 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9425 (find_layout, tui_apply_layout): New function.
9426 (layout_completer): Remove.
9427 (tui_next_layout): Reimplement.
9428 (tui_next_layout_command): New function.
9429 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9430 (tui_regs_layout): Reimplement.
9431 (tui_regs_layout_command): New function.
9432 (extract_display_start_addr): Rewrite.
9433 (next_layout, prev_layout): Remove.
9434 (tui_layout_window::replace_window): New method.
9435 (tui_layout_split::replace_window): New method.
9436 (destroy_layout): New function.
9437 (layout_list): New global.
9438 (add_layout_command): New function.
9439 (initialize_layouts): Update.
9440 (tui_layout_command): New function.
9441 (_initialize_tui_layout): Install "layout" commands.
9442 * tui/tui-data.h (enum tui_layout_type): Remove.
9443 (tui_current_layout): Don't declare.
9444
0dbc2fc7
TT
94452020-02-22 Tom Tromey <tom@tromey.com>
9446
9447 * tui/tui-regs.c (tui_reg_layout): Remove.
9448 (tui_reg_command): Use tui_regs_layout.
9449 * tui/tui-layout.h (tui_reg_command): Declare.
9450 * tui/tui-layout.c (tui_reg_command): New function.
9451
5afe342e
TT
94522020-02-22 Tom Tromey <tom@tromey.com>
9453
9454 * tui/tui.c (tui_rl_delete_other_windows): Call
9455 tui_remove_some_windows.
9456 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9457 Declare method.
9458 (class tui_layout_window) <remove_windows>: New method.
9459 (class tui_layout_split) <remove_windows>: Declare.
9460 (tui_remove_some_windows): Declare.
9461 * tui/tui-layout.c (tui_remove_some_windows): New function.
9462 (tui_layout_split::remove_windows): New method.
9463
427326a8
TT
94642020-02-22 Tom Tromey <tom@tromey.com>
9465
9466 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9467 * tui/tui-layout.h (tui_next_layout): Declare.
9468 * tui/tui-layout.c (tui_next_layout): New function.
9469
3fe12b6d
TT
94702020-02-22 Tom Tromey <tom@tromey.com>
9471
9472 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9473 correct coordinates.
9474
59b8b5d2
TT
94752020-02-22 Tom Tromey <tom@tromey.com>
9476
9477 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9478 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9479 DATA_WIN case.
9480
2a3d458b
TT
94812020-02-22 Tom Tromey <tom@tromey.com>
9482
9483 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9484 TUI_DISASM_WIN, not tui_win_list.
9485
3f0cbb04
TT
94862020-02-22 Tom Tromey <tom@tromey.com>
9487
9488 * valprint.c (generic_val_print_enum_1)
9489 (val_print_type_code_flags): Style member names.
9490 * rust-lang.c (val_print_struct, rust_print_enum)
9491 (rust_print_struct_def, rust_internal_print_type): Style member
9492 names.
9493 * p-valprint.c (pascal_object_print_value_fields): Style member
9494 names. Only call fprintf_symbol_filtered for static members.
9495 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9496 * f-valprint.c (f_val_print): Style member names.
9497 * f-typeprint.c (f_type_print_base): Style member names.
9498 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9499 call fprintf_symbol_filtered for static members.
9500 (cp_print_class_member): Style member names.
9501 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9502 member names.
9503 * ada-valprint.c (ada_print_scalar): Style enum names.
9504 (ada_val_print_enum): Likewise.
9505 * ada-typeprint.c (print_enum_type): Style enum names.
9506
d4d947ae
TT
95072020-02-21 Tom Tromey <tom@tromey.com>
9508
9509 * psympriv.h (struct partial_symtab): Update comment.
9510
e94e944b
TT
95112020-02-21 Tom Tromey <tromey@adacore.com>
9512
9513 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9514 type is CORE_ADDR.
9515
1eb73179
TV
95162020-02-21 Tom de Vries <tdevries@suse.de>
9517
9518 PR gdb/25534
9519 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9520 if dependencies[i]->user != NULL.
9521
4f180d53
AT
95222020-02-21 Ali Tamur <tamur@google.com>
9523
9524 * dwarf2/read.c (dwarf2_name): Add null check.
9525
22b6cd70
TT
95262020-02-20 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9529 ">=", in binary search.
9530 (dwarf2_find_containing_comp_unit): New overload.
9531 (run_test): New self-test.
9532 (_initialize_dwarf2_read): Register new test.
9533
bd0cf5a6
NC
95342020-02-20 Nelson Chu <nelson.chu@sifive.com>
9535
9536 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9537 * riscv-tdep.h: Likewise.
9538 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9539 rv32-only CSR.
9540 * features/riscv/64bit-csr.xml: Regenerated.
9541
3f702acd
SDJ
95422020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9543 Tom Tromey <tom@tromey.com>
9544
9545 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9546 of 'fputc_unfiltered'.
9547 (putchar_unfiltered): Call 'fputc_unfiltered'.
9548 (fputc_unfiltered): Call 'fputs_unfiltered'.
9549
d13c7322
AB
95502020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9551
9552 * config.in: Regenerate.
9553 * configure: Regenerate.
9554 * configure.ac: Add --with-python-libdir option.
9555 * main.c: Use WITH_PYTHON_LIBDIR.
9556
869d8950
TT
95572020-02-19 Tom Tromey <tom@tromey.com>
9558
9559 * symtab.c (general_symbol_info::compute_and_set_names): Use
9560 obstack_strndup. Simplify call to symbol_set_demangled_name.
9561
298e9637
SM
95622020-02-19 Simon Marchi <simon.marchi@efficios.com>
9563
9564 * dwarf2/read.c (allocate_signatured_type_table,
9565 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9566 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9567 Remove objfile parameter, update all callers.
9568
08410482
DE
95692020-02-19 Doug Evans <dje@google.com>
9570
9571 PR rust/25535
9572 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9573 rust_enum_variant calculation.
9574
dfdeeca1
TT
95752020-02-19 Tom Tromey <tromey@adacore.com>
9576
9577 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9578
2ef5453b
TT
95792020-02-19 Tom Tromey <tromey@adacore.com>
9580
9581 * ada-lang.c (cache_symbol): Use obstack_strdup.
9582
9f1528a1
AB
95832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9584
9585 * configure: Regenerate.
9586
d3c22fa8
TT
95872020-02-19 Tom Tromey <tromey@adacore.com>
9588
9589 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9590 NULL check.
9591
bf84f706
MR
95922020-02-19 Maciej W. Rozycki <macro@wdc.com>
9593
9594 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9595
d1c9b20f
AB
95962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9599 if GDBSERVER is not defined.
9600 (riscv_tdesc_cache): Likewise, also store const target_desc.
9601 (STATIC_IN_GDB): Define.
9602 (riscv_create_target_description): Update declaration with
9603 STATIC_IN_GDB.
9604 (riscv_lookup_target_description): New function, only define if
9605 GDBSERVER is not defined.
9606 * arch/riscv.h (riscv_create_target_description): Declare only
9607 when GDBSERVER is defined.
9608 (riscv_lookup_target_description): New declaration when GDBSERVER
9609 is not defined.
9610 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9611 (riscv_linux_read_features): ...this, and return
9612 riscv_gdbarch_features instead of target_desc.
9613 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9614 (riscv_linux_read_description): Rename to...
9615 (riscv_linux_read_features): ...this.
9616 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9617 Update to use riscv_gdbarch_features and
9618 riscv_lookup_target_description.
9619 * riscv-tdep.c (riscv_find_default_target_description): Use
9620 riscv_lookup_target_description instead of
9621 riscv_create_target_description.
9622
373d7ac0
SM
96232020-02-18 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * valprint.c (generic_val_print_enum_1): When printing a flag
9626 enum with value 0 and there is no enumerator with value 0, print
9627 just "0" instead of "(unknown: 0x0)".
9628
b29a2df0
SM
96292020-02-18 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * valprint.c (generic_val_print_enum_1): Print unknown part of
9632 flag enum in hex.
9633
6740f0cc
SM
96342020-02-18 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9637 flag enums to contain duplicate enumerators.
9638 * valprint.c (generic_val_print_enum_1): Update comment.
9639
edd45eb0
SM
96402020-02-18 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * dwarf2/read.c: Include "count-one-bits.h".
9643 (update_enumeration_type_from_children): If an enumerator has
9644 multiple bits set, don't treat the enumeration as a "flag enum".
9645 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9646 of flag enums have 0 or 1 bit set.
9647
6d0cf446
BE
96482020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9649
9650 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9651 conversion.
9652 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9653 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9654 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9655 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9656 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9657
7001c1b7
SM
96582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9659
9660 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9661
fdb61c6c
SM
96622020-02-14 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9665 displaced_step_closure_up.
9666 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9667 (struct displaced_step_closure_up):
9668 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9669 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9670 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9671 Likewise.
9672 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9673 * gdbarch.c, gdbarch.h: Re-generate.
9674 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9675 displaced_step_closure_up.
9676 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9677 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9678 * infrun.h (displaced_step_closure_up): New type alias.
9679 (struct displaced_step_inferior_state) <step_closure>: Change
9680 type to displaced_step_closure_up.
9681 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9682 displaced_step_closure_up.
9683 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9684
a4a38eb4
TT
96852020-02-14 Tom Tromey <tom@tromey.com>
9686
9687 * minidebug.c (gnu_debug_key): New global.
9688 (find_separate_debug_file_in_section): Use it.
9689
e8217e61
SM
96902020-02-14 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9693 std::unique_ptr.
9694 * gdbarch.c: Re-generate.
9695 * gdbarch.h: Re-generate.
9696 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9697 change.
9698 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9699 type to std::unique_ptr.
9700 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9701 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9702 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9704 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9705 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9706 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9707 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9708 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9709
d8d83535
SM
97102020-02-14 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9713 std::unique_ptr.
9714 (displaced_step_clear): Rename to...
9715 (displaced_step_reset): ... this. Just call displaced->reset ().
9716 (displaced_step_clear_cleanup): Rename to...
9717 (displaced_step_reset_cleanup): ... this.
9718 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9719 (displaced_step_fixup): Likewise.
9720 (resume_1): Likewise.
9721 (handle_inferior_event): Restore child's memory before calling
9722 displaced_step_fixup on the parent.
9723 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9724 to std::unique_ptr.
9725 <step_closure>: Change type to std::unique_ptr.
9726
5f661e03
SM
97272020-02-14 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * arm-tdep.c: Include count-one-bits.h.
9730 (cleanup_block_store_pc): Use count_one_bits.
9731 (cleanup_block_load_pc): Use count_one_bits.
9732 (arm_copy_block_xfer): Use count_one_bits.
9733 (thumb2_copy_block_xfer): Use count_one_bits.
9734 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9735 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9736 (thumb_get_next_pcs_raw): Use count_one_bits.
9737 (arm_get_next_pcs_raw): Use count_one_bits_l.
9738 * arch/arm.c (bitcount): Remove.
9739 * arch/arm.h (bitcount): Remove.
9740
8084e579
TT
97412020-02-14 Tom Tromey <tromey@adacore.com>
9742
9743 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9744 Update.
9745 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9746 * dwarf2/loc.c (call_site_find_chain_1): Return
9747 unique_xmalloc_ptr.
9748 (call_site_find_chain): Likewise.
9749
258bf0ee
RB
97502020-02-14 Richard Biener <rguenther@suse.de>
9751
9752 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9753 on expression with division operators.
9754
f98a8458
AKS
97552020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9756
9757 * MAINTAINERS (Write After Approval): Adding myself.
9758
d1437c0e
TT
97592020-02-12 Tom Tromey <tom@tromey.com>
9760
9761 * event-loop.c (event_data, gdb_event, event_handler_func):
9762 Remove.
9763
3d4560f7
TT
97642020-02-12 Tom Tromey <tom@tromey.com>
9765
9766 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9767 (dwarf2_frame_objfile_data): Add comment.
9768 (find_comp_unit, set_comp_unit): New functions.
9769 (dwarf2_frame_find_fde): Use find_comp_unit.
9770 (dwarf2_build_frame_info): Use set_comp_unit.
9771
21982304
TT
97722020-02-12 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9775 (comp_unit): Don't initialize objfile.
9776 (execute_cfa_program): Add text_offset parameter.
9777 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9778 (dwarf2_frame_cache): Update.
9779 (dwarf2_build_frame_info): Don't set "objfile" member.
9780
4debb237
TT
97812020-02-12 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9784 (decode_frame_entry): Likewise.
9785 (dwarf2_build_frame_info): Update.
9786
0d404d44
TT
97872020-02-12 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9790 (decode_frame_entry_1): Use the comp_unit obstack.
9791
a7a3ae5c
TT
97922020-02-12 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/frame.c (struct comp_unit): Add initializers and
9795 constructor.
9796 (dwarf2_frame_objfile_data): Store a comp_unit.
9797 (dwarf2_frame_find_fde): Update.
9798 (dwarf2_build_frame_info): Use "new".
9799
a9d65418
TT
98002020-02-12 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9803 (dwarf2_fde_table): Typedef for std::vector.
9804 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9805 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9806 (decode_frame_entry): Update.
9807 (dwarf2_build_frame_info): Use "new".
9808
7559c217
CB
98092020-02-12 Christian Biesinger <cbiesinger@google.com>
9810
9811 * arm-tdep.c (arm_gdbarch_init): Update.
9812 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9813 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9814 have_neon, is_m>: Change to bool.
9815
aeefc73c
CB
98162020-02-12 Christian Biesinger <cbiesinger@google.com>
9817
9818 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9819
d27b8e5f
TT
98202020-02-12 Tom Tromey <tom@tromey.com>
9821
9822 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9823
cd5900f3
HD
98242020-02-12 Hannes Domani <ssbssa@yahoo.de>
9825
9826 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9827 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9828
f056b22b
TT
98292020-02-11 Tom Tromey <tom@tromey.com>
9830
9831 * psymtab.h: Update comment.
9832
f92ff6b5
TT
98332020-02-11 Tom Tromey <tom@tromey.com>
9834
9835 * gdb_obstack.h (struct auto_obstack): Use
9836 DISABLE_COPY_AND_ASSIGN.
9837
3fd6912b
TT
98382020-02-11 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/frame.h (struct objfile): Don't forward declare.
9841
69ed9b74
CB
98422020-02-11 Christian Biesinger <cbiesinger@google.com>
9843
9844 * cris-tdep.c (cris_supply_gregset): Change signature to match
9845 what struct regset expects.
9846 (cris_regset): New struct.
9847 (fetch_core_registers): Remove.
9848 (cris_iterate_over_regset_sections): New function.
9849 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9850 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9851
bda874f6
CB
98522020-02-11 Christian Biesinger <cbiesinger@google.com>
9853
9854 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9855 registers.
9856
754e1564
CB
98572020-02-11 Christian Biesinger <cbiesinger@google.com>
9858
9859 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9860
8ddd8e0e
SM
98612020-02-11 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * configure: Re-generate.
9864
898e7f60
SM
98652020-02-11 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * configure: Re-generate.
9868
58df732b
SM
98692020-02-11 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * acinclude: Update warning.m4 path.
9872 * warning.m4: Move to gdbsupport.
9873
da5bd37e
TT
98742020-02-11 Tom Tromey <tromey@adacore.com>
9875
9876 * remote.c (remote_console_output): Update.
9877 * printcmd.c (printf_command): Update.
9878 * event-loop.c (gdb_wait_for_event): Update.
9879 * linux-nat.c (sigchld_handler): Update.
9880 * remote-sim.c (gdb_os_write_stdout): Update.
9881 (gdb_os_flush_stdout): Update.
9882 (gdb_os_flush_stderr): Update.
9883 (gdb_os_write_stderr): Update.
9884 * exceptions.c (print_exception): Update.
9885 * remote-fileio.c (remote_fileio_func_read): Update.
9886 (remote_fileio_func_write): Update.
9887 * tui/tui.c (tui_enable): Update.
9888 * tui/tui-interp.c (tui_interp::init): Update.
9889 * utils.c (init_page_info): Update.
9890 (putchar_unfiltered, fputc_unfiltered): Update.
9891 (gdb_flush): Update.
9892 (emit_style_escape): Update.
9893 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9894 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9895 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9896 (stderr_file::write): Update.
9897 (stderr_file::puts): Update.
9898 * ui-file.h (ui_file_isatty, ui_file_write)
9899 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9900 (ui_file_puts): Don't declare.
9901
85f0dd3c
TV
99022020-02-10 Tom de Vries <tdevries@suse.de>
9903
9904 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9905 sentinel to char *.
9906
2e927613
TV
99072020-02-09 Tom de Vries <tdevries@suse.de>
9908
9909 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9910 filename if it matches "<artificial>".
9911
6bafc845
HD
99122020-02-09 Hannes Domani <ssbssa@yahoo.de>
9913
9914 * windows-tdep.c (struct enum_value_name): New struct.
9915 (create_enum): New function.
9916 (windows_get_siginfo_type): Create and use enum types.
9917
7928d571
HD
99182020-02-09 Hannes Domani <ssbssa@yahoo.de>
9919
9920 * NEWS: Mention $_siginfo support for Windows.
9921 * windows-nat.c (handle_exception): Set siginfo_er.
9922 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9923 (windows_xfer_siginfo): New function.
9924 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9925 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9926 (init_windows_gdbarch_data): New function.
9927 (get_windows_gdbarch_data): New function.
9928 (windows_get_siginfo_type): New function.
9929 (windows_init_abi): Register windows_get_siginfo_type.
9930 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9931
6751ebae
TT
99322020-02-08 Tom Tromey <tom@tromey.com>
9933
9934 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9935 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9936 <keep>: Declare method.
9937 <m_keep>: Remove member.
9938 <~cutu_reader>: Remove.
9939 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9940 (cutu_reader::cutu_reader): Update.
9941 (cutu_reader::keep): Rename from ~cutu_reader.
9942 (process_psymtab_comp_unit, build_type_psymtabs_1)
9943 (process_skeletonless_type_unit, load_partial_comp_unit)
9944 (load_full_comp_unit, dwarf2_read_addr_index)
9945 (read_signatured_type): Update.
9946
135f5437
TT
99472020-02-08 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9950 "want_partial_unit" parameter.
9951 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9952 Inline check for DW_TAG_partial_unit.
9953 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9954
9f66ff1c
TT
99552020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9958 read.c.
9959 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9960 read.c.
9961
c8a7a66f
TT
99622020-02-08 Tom Tromey <tom@tromey.com>
9963
9964 * dwarf2/read.c (read_address): Move to comp-unit.c.
9965 (dwarf2_rnglists_process, dwarf2_ranges_process)
9966 (read_attribute_value, dwarf_decode_lines_1)
9967 (var_decode_location, decode_locdesc): Update.
9968 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9969 read.c. Remove "cu" parameter.
9970 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9971 method.
9972
8266302d
TT
99732020-02-08 Tom Tromey <tom@tromey.com>
9974
9975 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9976 (read_indirect_line_string): Update.
9977 * dwarf2/comp-unit.c (read_offset): Remove.
9978 (read_comp_unit_head): Update.
9979 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9980 method.
9981 (read_offset): Don't declare.
9982
4057dfde
TT
99832020-02-08 Tom Tromey <tom@tromey.com>
9984
9985 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9986 * dwarf2/read.c (struct comp_unit_head): Move to
9987 dwarf2/comp-unit.h.
9988 (enum class rcuh_kind): Move to comp-unit.h.
9989 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9990 (read_comp_unit_head, error_check_comp_unit_head)
9991 (read_and_check_comp_unit_head): Move to comp-unit.c.
9992 (read_offset, dwarf_unit_type_name): Likewise.
9993 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9994 (cutu_reader::cutu_reader, read_call_site_scope)
9995 (find_partial_die, follow_die_offset): Update.
9996 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9997
24aa364d
TT
99982020-02-08 Tom Tromey <tom@tromey.com>
9999
10000 * dwarf2/read.c (read_offset_1): Move to leb.c.
10001 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10002 (dwarf_decode_macro_bytes): Update.
10003 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10004 * dwarf2/leb.h (read_offset): Declare.
10005
2c7d5afc
TT
100062020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.c (dwarf2_section_size): Remove.
10009 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10010 Update.
10011 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10012
4075cb26
TT
100132020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2/read.c (read_initial_length): Move to leb.c.
10016 * dwarf2/leb.h (read_initial_length): Declare.
10017 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10018 handle_nonstd parameter.
10019 * dwarf2/frame.c (read_initial_length): Remove.
10020 (decode_frame_entry_1): Update.
10021
09ba997f
TT
100222020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2/loc.c (dwarf2_find_location_expression)
10025 (dwarf_evaluate_loc_desc::get_tls_address)
10026 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10027 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10028 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10029 (dwarf2_compile_property_to_c)
10030 (dwarf2_loc_desc_get_symbol_read_needs)
10031 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10032 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10033 (loclist_describe_location, loclist_tracepoint_var_ref)
10034 (loclist_generate_c_location): Update.
10035 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10036 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10037 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10038 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10039 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10040 (dwarf2_per_cu_data::addr_size)
10041 (dwarf2_per_cu_data::ref_addr_size)
10042 (dwarf2_per_cu_data::text_offset)
10043 (dwarf2_per_cu_data::addr_type): Now methods.
10044 (per_cu_header_read_in): Make per_cu "const".
10045 (dwarf2_version): Remove.
10046 (dwarf2_per_cu_data::int_type): Now a method.
10047 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10048 (set_die_type, read_array_type, read_subrange_index_type)
10049 (read_tag_string_type, read_subrange_type): Update.
10050 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10051 offset_size, ref_addr_size, text_offset, addr_type, version,
10052 objfile, int_type, addr_sized_int_type>: Declare methods.
10053
96c738c0
TT
100542020-02-08 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10057 Move earlier.
10058
8fdd972c
TT
100592020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.h (dwarf_line_debug): Declare.
10062 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10063 * dwarf2/read.c: Move line_header code to new files.
10064 (dwarf_line_debug): No longer static.
10065 * dwarf2/line-header.c: New file.
10066 * dwarf2/line-header.h: New file.
10067
03075812
TT
100682020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (struct line_header) <file_full_name,
10071 file_file_name>: Return unique_xmalloc_ptr.
10072 (line_header::file_file_name): Update.
10073 (line_header::file_full_name): Update.
10074 (dw2_get_file_names_reader): Update.
10075 (macro_start_file): Update.
10076
bb822404
TT
100772020-02-08 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2/read.c (struct line_header) <file_full_name,
10080 file_file_name>: Declare methods.
10081 (dw2_get_file_names_reader): Update.
10082 (file_file_name): Now a method.
10083 (file_full_name): Likewise.
10084 (macro_start_file): Update.
10085
009b64fc
TT
100862020-02-08 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2/read.c (dwarf_always_disassemble)
10089 (show_dwarf_always_disassemble): Move to loc.c.
10090 (_initialize_dwarf2_read): Move "always-disassemble" registration
10091 to loc.c.
10092 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10093 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10094 static.
10095 (show_dwarf_always_disassemble): Move from read.c.
10096 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10097
5895093f
TT
100982020-02-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10101 (create_quick_file_names_table): Return htab_up.
10102 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10103 Update.
10104 * dwarf2/read.h (struct dwarf2_per_objfile)
10105 <quick_file_names_table>: Now htab_up.
10106
b3b32279
TT
101072020-02-08 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10110
1d33d811
TT
101112020-02-08 Tom Tromey <tom@tromey.com>
10112
10113 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10114 Rewrite.
10115 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10116 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10117 (abbrev_table::abbrev_table): No longer inline.
10118 (ABBREV_HASH_SIZE): Remove.
10119 (abbrev_table::m_abbrevs): Now an htab_up.
10120
86de1d91
TT
101212020-02-08 Tom Tromey <tom@tromey.com>
10122
10123 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10124 (cutu_reader): Update.
10125 (build_type_psymtabs_1): Update.
10126 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10127 (abbrev_table::alloc_abbrev): Update.
10128 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10129 (abbrev_table::read): New static method, renamed from
10130 abbrev_table_read_table.
10131 (abbrev_table::alloc_abbrev)
10132 (abbrev_table::add_abbrev): Now private.
10133 (abbrev_table::abbrev_table): Now private.
10134 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10135
0335378b
TT
101362020-02-08 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10139 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10140 htab_up.
10141
48b490f2
TT
101422020-02-08 Tom Tromey <tom@tromey.com>
10143
10144 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10145 htab_up.
10146 (lookup_dwo_unit_in_dwp): Update.
10147 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10148 on obstack.
10149
bc68fb19
TT
101502020-02-08 Tom Tromey <tom@tromey.com>
10151
10152 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10153 obstack.
10154
d15acc42
TT
101552020-02-08 Tom Tromey <tom@tromey.com>
10156
10157 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10158 line_header_hash.
10159 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10160 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10161 Change type to htab_up.
10162
eaa5fa8b
TT
101632020-02-08 Tom Tromey <tom@tromey.com>
10164
10165 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10166 htab_up. Don't allocate on obstack.
10167 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10168 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10169 Change type to htab_up.
10170
b0b6a987
TT
101712020-02-08 Tom Tromey <tom@tromey.com>
10172
10173 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10174 Change type to htab_up.
10175 * dwarf2/read.c (create_signatured_type_table_from_index)
10176 (create_signatured_type_table_from_debug_names)
10177 (create_all_type_units, add_type_unit)
10178 (lookup_dwo_signatured_type, lookup_signatured_type)
10179 (process_skeletonless_type_unit): Update.
10180 (create_debug_type_hash_table, create_debug_types_hash_table):
10181 Change type of types_htab.
10182 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10183 htab_up. Don't allocate on obstack.
10184 (create_cus_hash_table): Change type of cus_htab parameter.
10185 (struct dwo_file) <cus, tus>: Now htab_up.
10186 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10187 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10188 (queue_and_load_all_dwo_tus): Update.
10189 * dwarf2/index-write.c (write_gdbindex): Update.
10190 (write_debug_names): Update.
10191
39856def
TT
101922020-02-08 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10195 dwarf2/read.c. Remove "next" member. Add constructor ntad
10196 destructor.
10197 (struct dwarf2_per_objfile) <queue>: New member.
10198 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10199 dwarf2/read.h.
10200 (dwarf2_queue, dwarf2_queue_tail): Remove.
10201 (class dwarf2_queue_guard): Add parameter to constructor. Use
10202 DISABLE_COPY_AND_ASSIGN.
10203 <m_per_objfile>: New member.
10204 <~dwarf2_queue_guard>: Rewrite.
10205 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10206 Update.
10207 (~dwarf2_queue_item): New.
10208
3e225074
TT
102092020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.c (struct die_info) <has_children>: New member.
10212 (dw2_get_file_names_reader): Remove has_children.
10213 (dw2_get_file_names): Update.
10214 (read_cutu_die_from_dwo): Remove has_children.
10215 (cutu_reader::init_tu_and_read_dwo_dies)
10216 (cutu_reader::cutu_reader): Update.
10217 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10218 Remove has_children.
10219 (build_type_psymtabs_1, process_skeletonless_type_unit)
10220 (load_partial_comp_unit, load_full_comp_unit): Update.
10221 (create_dwo_cu_reader): Remove has_children.
10222 (create_cus_hash_table, read_die_and_children): Update.
10223 (read_full_die_1,read_full_die): Remove has_children.
10224 (read_signatured_type): Update.
10225 (class cutu_reader) <has_children>: Remove.
10226
82ca8957
TT
102272020-02-08 Tom Tromey <tom@tromey.com>
10228
10229 * dwarf2/expr.c: Rename from dwarf2expr.c.
10230 * dwarf2/expr.h: Rename from dwarf2expr.h.
10231 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10232 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10233 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10234 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10235 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10236 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10237 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10238 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10239 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10240 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10241 * dwarf2/loc.c: Rename from dwarf2loc.c.
10242 * dwarf2/loc.h: Rename from dwarf2loc.h.
10243 * dwarf2/read.c: Rename from dwarf2read.c.
10244 * dwarf2/read.h: Rename from dwarf2read.h.
10245 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10246 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10247 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10248 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10249 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10250 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10251 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10252 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10253 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10254 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10255 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10256 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10257 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10258 Update.
10259 * Makefile.in (COMMON_SFILES): Update.
10260 (HFILES_NO_SRCDIR): Update.
10261
9e35d499
TT
102622020-02-08 Tom Tromey <tom@tromey.com>
10263
10264 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10265 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10266
1eba2311
TT
102672020-02-08 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2read.h (struct die_info): Don't declare.
10270
e41c2da2
TT
102712020-02-08 Tom Tromey <tom@tromey.com>
10272
10273 * dwarf2read.h (die_info_ptr): Remove typedef.
10274
4fc6c0d5
TT
102752020-02-08 Tom Tromey <tom@tromey.com>
10276
10277 * dwarf2read.c (read_call_site_scope)
10278 (handle_data_member_location, dwarf2_add_member_fn)
10279 (mark_common_block_symbol_computed, read_common_block)
10280 (attr_to_dynamic_prop, partial_die_info::read)
10281 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10282 (dwarf2_symbol_mark_computed, set_die_type): Update.
10283 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10284 method.
10285 (attr_form_is_block): Don't declare.
10286 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10287
cd6c91b4
TT
102882020-02-08 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2read.c (dwarf2_find_base_address, )
10291 (read_call_site_scope, rust_containing_type)
10292 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10293 (handle_data_member_location, dwarf2_add_member_fn)
10294 (get_alignment, read_structure_type, process_structure_scope)
10295 (mark_common_block_symbol_computed, read_common_block)
10296 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10297 (partial_die_info::read, read_attribute_value, new_symbol)
10298 (lookup_die_type, dwarf2_get_ref_die_offset)
10299 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10300 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10301 (dwarf2_symbol_mark_computed): Update.
10302 * dwarf2/attribute.h (struct attribute) <value_as_address,
10303 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10304 methods.
10305 (value_as_address, attr_form_is_section_offset)
10306 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10307 * dwarf2/attribute.c (attribute::value_as_address)
10308 (attribute::form_is_section_offset, attribute::form_is_constant)
10309 (attribute::form_is_ref): Now methods.
10310
162dce55
TT
103112020-02-08 Tom Tromey <tom@tromey.com>
10312
10313 * dwarf2read.c (struct attribute, DW_STRING)
10314 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10315 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10316 (attr_form_is_block, attr_form_is_section_offset)
10317 (attr_form_is_constant, attr_form_is_ref): Move.
10318 * dwarf2/attribute.h: New file.
10319 * dwarf2/attribute.c: New file, from dwarf2read.c.
10320 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10321
3054dd54
TT
103222020-02-08 Tom Tromey <tom@tromey.com>
10323
10324 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10325 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10326 Move.
10327 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10328 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10329 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10330 abbrev.c.
10331 * dwarf2/abbrev.h: New file.
10332 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10333 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10334
96b79293
TT
103352020-02-08 Tom Tromey <tom@tromey.com>
10336
10337 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10338 (dwarf2_section_size, dwarf2_get_section_info)
10339 (create_signatured_type_table_from_debug_names)
10340 (create_addrmap_from_aranges, read_debug_names_from_section)
10341 (get_gdb_index_contents_from_section, read_comp_unit_head)
10342 (error_check_comp_unit_head, read_abbrev_offset)
10343 (create_debug_type_hash_table, init_cu_die_reader)
10344 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10345 (read_comp_units_from_section, create_cus_hash_table)
10346 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10347 (create_dwp_v2_section, dwarf2_rnglists_process)
10348 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10349 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10350 (read_indirect_string_from_dwz, read_addr_index_1)
10351 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10352 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10353 (fill_in_loclist_baton): Update.
10354 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10355 get_containing_section, get_bfd_owner, get_bfd_section,
10356 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10357 (dwarf2_read_section, get_section_name, get_section_file_name)
10358 (get_containing_section, get_section_bfd_owner)
10359 (get_section_bfd_section, get_section_name, get_section_file_name)
10360 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10361 declare.
10362 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10363 (dwarf2_section_info::get_bfd_owner)
10364 (dwarf2_section_info::get_bfd_section)
10365 (dwarf2_section_info::get_name)
10366 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10367 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10368 (dwarf2_section_info::read): Now methods.
10369 * dwarf-index-write.c (class debug_names): Update.
10370
2c86cff9
TT
103712020-02-08 Tom Tromey <tom@tromey.com>
10372
10373 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10374 Move to dwarf2/section.h.
10375 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10376 (get_section_bfd_section, get_section_name)
10377 (get_section_file_name, get_section_id, get_section_flags)
10378 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10379 dwarf2/section.c.
10380 * dwarf2/section.h: New file.
10381 * dwarf2/section.c: New file, from dwarf2read.c.
10382 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10383
f4382c45
TT
103842020-02-08 Tom Tromey <tom@tromey.com>
10385
10386 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10387 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10388 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10389 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10390 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10391 * dwarf2/leb.h: New file, from dwarf2read.c.
10392 * dwarf2/leb.c: New file, from dwarf2read.c.
10393 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10394 Remove.
10395 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10396 (COMMON_SFILES): Add dwarf2/leb.c.
10397
01840b7a
JB
103982020-02-08 Joel Brobecker <brobecker@adacore.com>
10399
10400 GDB 9.1 released.
10401
dfcb27e4
IB
104022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10403
10404 PR gdb/25190:
aac66a4c
SM
10405 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10406 * gdb/remote.c (remote_console_output): Update.
10407 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10408 (ui_file_puts): ...this.
10409 * gdb/ui-file.h (ui_file_puts): Add declaration.
10410 * gdb/utils.c (emit_style_escape): Update.
10411 (flush_wrap_buffer): Update.
10412 (fputs_maybe_filtered): Update.
10413 (fputs_unfiltered): Add function.
dfcb27e4 10414
faa17681
IB
104152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10416
aac66a4c
SM
10417 * gdb/event-loop.c (gdb_wait_for_event): Update.
10418 * gdb/printcmd.c (printf_command): Update.
10419 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10420 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10421 (gdb_os_flush_stderr): Update.
10422 * gdb/remote.c (remote_console_output): Update.
10423 * gdb/ui-file.c (gdb_flush): Rename to...
10424 (ui_file_flush): ...this.
10425 (stderr_file::write): Update.
10426 (stderr_file::puts): Update.
10427 * gdb/ui-file.h (gdb_flush): Rename to...
10428 (ui_file_flush): ...this.
10429 * gdb/utils.c (gdb_flush): Add function.
10430 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10431
5abbbe1d
TT
104322020-02-07 Tom Tromey <tromey@adacore.com>
10433
10434 PR breakpoints/24915:
10435 * source.c (find_and_open_source): Do not check basenames_may_differ.
10436
919adfe8
TT
104372020-02-07 Tom Tromey <tom@tromey.com>
10438
10439 * README: Update gdbserver documentation.
10440 * gdbserver: Move to top level.
10441 * configure.tgt (build_gdbserver): Remove.
10442 * configure.ac: Remove --enable-gdbserver.
10443 * configure: Rebuild.
10444 * Makefile.in (distclean): Don't mention gdbserver.
10445
1d5d29e7
SV
104462020-02-06 Shahab Vahedi <shahab@synopsys.com>
10447
10448 * source-cache.c (source_cache::ensure): Surround
10449 get_plain_source_lines with a try/catch.
10450 (source_cache::get_line_charpos): Get rid of try/catch
10451 and only check for the return value of "ensure".
10452 * tui/tui-source.c (tui_source_window::set_contents):
10453 Simplify "nlines" calculation.
10454
6eb1129c
SV
104552020-02-06 Shahab Vahedi <shahab@synopsys.com>
10456
10457 * MAINTAINERS (Write After Approval): Add myself.
10458
c6a42d11
CB
104592020-02-05 Christian Biesinger <cbiesinger@google.com>
10460
10461 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10462 function call.
10463
c8ecdda6
CB
104642020-02-05 Christian Biesinger <cbiesinger@google.com>
10465
10466 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10467
f6480e70
MR
104682020-02-05 Maciej W. Rozycki <macro@wdc.com>
10469
10470 * nat/riscv-linux-tdesc.h: New file.
10471 * nat/riscv-linux-tdesc.c: New file, taking code from...
10472 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10473 ... here.
10474 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10475 NATDEPFILES.
10476
dcc9fbc6
AB
104772020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10478
10479 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10480 we don't set the fake simulator ptid to the null_ptid.
10481
719546c4
SM
104822020-02-03 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10485 * gdbthread.h (class thread_info) <resumed>: Likewise.
10486 * infrun.c (resume_1): Likewise.
10487 (proceed): Likewise.
10488 (infrun_thread_stop_requested): Likewise.
10489 (stop_all_threads): Likewise.
10490 (handle_inferior_event): Likewise.
10491 (restart_threads): Likewise.
10492 (finish_step_over): Likewise.
10493 (keep_going_stepped_thread): Likewise.
10494 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10495 (linux_handle_extended_wait): Likewise.
10496 * record-btrace.c (get_thread_current_frame_id): Likewise.
10497 * record-full.c (record_full_wait_1): Likewise.
10498 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10499 * target.c (target_resume): Likewise.
10500 * thread.c (set_running_thread): Likewise.
10501
e409c542
AKS
105022020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10503
10504 * f-valprint.c (f77_print_array_1): Changed datatype of index
10505 variable to LONGEST from int to enable it to contain bound
10506 values correctly.
10507
ee98c0da
MR
105082020-02-03 Maciej W. Rozycki <macro@wdc.com>
10509
10510 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10511 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10512 offsets according to FLEN determined.
10513 (riscv_linux_nat_target::read_description): Determine FLEN
10514 dynamically.
10515 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10516 according to FLEN determined.
10517 (riscv_linux_nat_target::store_registers): Likewise.
10518
aa66aac4
SV
105192020-02-01 Shahab Vahedi <shahab@synopsys.com>
10520
10521 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10522 when reg->group is empty and reggroup is not.
10523
fd9faca8
TT
105242020-01-31 Tom Tromey <tromey@adacore.com>
10525
10526 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10527 Call beneath target's mourn_inferior after unpushing.
10528
42330a68
AB
105292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 PR tui/9765
10532 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10533 have enough lines to fill the screen, still return the lowest
10534 address we found.
10535
7a27a45b
AB
105362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10537
10538 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10539 '-', '<', and '>' commands.
10540
c47f70e2
PA
105412020-01-29 Pedro Alves <palves@redhat.com>
10542 Sergio Durigan Junior <sergiodj@redhat.com>
10543
10544 * infcmd.c (construct_inferior_arguments): Assert that
10545 'argc' is greater than 0.
10546
5133a315
LM
105472020-01-29 Luis Machado <luis.machado@linaro.org>
10548
10549 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10550 (BRK_INSN_MASK): Define to 0xd4200000.
10551 (aarch64_program_breakpoint_here_p): New function.
10552 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10553 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10554 breakpoint.c.
10555 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10556 breakpoint.h
10557 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10558 call gdbarch_program_breakpoint_here_p.
10559 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10560 default_program_breakpoint_here_p, changed return type to bool and
10561 simplified.
10562 * breakpoint.h (program_breakpoint_here): Moved prototype to
10563 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10564 return type to bool.
10565 * gdbarch.c: Regenerate.
10566 * gdbarch.h: Regenerate.
10567 * gdbarch.sh (program_breakpoint_here_p): New method.
10568 * infrun.c (handle_signal_stop): Call
10569 gdbarch_program_breakpoint_here_p.
10570
168f8c6b
TT
105712020-01-26 Tom Tromey <tom@tromey.com>
10572
10573 * ctfread.c (struct ctf_fp_info): Reindent.
10574 (_initialize_ctfread): Remove.
10575
128a391f
TT
105762020-01-26 Tom Tromey <tom@tromey.com>
10577
10578 * psymtab.c (partial_map_expand_apply)
10579 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10580 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10581 (psym_print_stats, psym_expand_symtabs_for_function)
10582 (psym_map_symbol_filenames, psym_map_matching_symbols)
10583 (psym_expand_symtabs_matching)
10584 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10585 (maintenance_check_psymtabs): Use new methods.
10586 * psympriv.h (struct partial_symtab) <readin_p,
10587 get_compunit_symtab>: New methods.
10588 <readin, compunit_symtab>: Remove members.
10589 (struct standard_psymtab): New.
10590 (struct legacy_psymtab): Derive from standard_psymtab.
10591 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10592 standard_psymtab.
10593 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10594
0494dbec
TT
105952020-01-26 Tom Tromey <tom@tromey.com>
10596
10597 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10598 read_dependencies. Add assert.
10599 * psymtab.c (partial_symtab::read_dependencies): New method.
10600 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10601 method.
10602 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10603 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10604 read_dependencies.
10605 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10606 Add assert.
10607
8566b89b
TT
106082020-01-26 Tom Tromey <tom@tromey.com>
10609
10610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10611 Call expand_psymtab.
10612 (xcoff_read_symtab): Call expand_psymtab.
10613 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10614 legacy_expand_psymtab.
10615 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10616 method.
10617 (struct legacy_psymtab) <expand_psymtab>: Implement.
10618 <legacy_expand_psymtab>: New member.
10619 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10620 (parse_partial_symbols): Set legacy_expand_psymtab.
10621 (psymtab_to_symtab_1): Change argument order. Call
10622 expand_psymtab.
10623 (new_psymtab): Set legacy_expand_psymtab.
10624 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10625 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10626 expand_psymtab.
10627 (dwarf2_psymtab::expand_psymtab): Rename from
10628 psymtab_to_symtab_1. Call expand_psymtab.
10629 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10630 (dbx_end_psymtab): Likewise.
10631 (dbx_psymtab_to_symtab_1): Change argument order. Call
10632 expand_psymtab.
10633 (dbx_read_symtab): Call expand_psymtab.
10634 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10635 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10636 (ctf_psymtab::read_symtab): Call expand_psymtab.
10637
077cbab2
TT
106382020-01-26 Tom Tromey <tom@tromey.com>
10639
10640 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10641 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10642 messages.
10643 * mdebugread.c (mdebug_read_symtab): Remove prints.
10644 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10645 assert.
10646 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10647
891813be
TT
106482020-01-26 Tom Tromey <tom@tromey.com>
10649
10650 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10651 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10652 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10653 legacy_symtab.
10654 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10655 * psymtab.c (psymtab_to_symtab): Call method.
10656 (dump_psymtab): Update.
10657 * psympriv.h (struct partial_symtab): Add virtual destructor.
10658 <read_symtab>: New method.
10659 (struct legacy_symtab): New.
10660 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10661 (struct pst_map) <pst>: Now a legacy_psymtab.
10662 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10663 (new_psymtab): Use legacy_psymtab.
10664 * dwarf2read.h (struct dwarf2_psymtab): New.
10665 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10666 * dwarf2read.c (dwarf2_create_include_psymtab)
10667 (dwarf2_build_include_psymtabs, create_type_unit_group)
10668 (create_partial_symtab, process_psymtab_comp_unit_reader)
10669 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10670 (set_partial_user): Use dwarf2_psymtab.
10671 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10672 (psymtab_to_symtab_1, process_full_comp_unit)
10673 (process_full_type_unit, dwarf2_ranges_read)
10674 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10675 (dwarf_decode_lines): Use dwarf2_psymtab.
10676 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10677 (add_address_entry_worker, write_one_signatured_type)
10678 (recursively_count_psymbols, recursively_write_psymbols)
10679 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10680 (write_debug_names): Likewise.
10681 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10682 <pst>: Now a legacy_psymtab.
10683 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10684 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10685 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10686 * ctfread.c (struct ctf_psymtab): New.
10687 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10688 ctf_psymtab.
10689 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10690 (create_partial_symtab): Return a ctf_psymtab.
10691 (scan_partial_symbols): Update.
10692
c3693a1d
TT
106932020-01-26 Tom Tromey <tom@tromey.com>
10694
10695 * xcoffread.c (xcoff_start_psymtab): Use new.
10696 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10697 renamed from start_psymtab_common.
10698 * psympriv.h (struct partial_symtab): Add new constructor.
10699 (start_psymtab_common): Don't declare.
10700 * mdebugread.c (parse_partial_symbols): Use new.
10701 * dwarf2read.c (create_partial_symtab): Use new.
10702 * dbxread.c (start_psymtab): Use new.
10703 * ctfread.c (create_partial_symtab): Use new.
10704
32caafd0
TT
107052020-01-26 Tom Tromey <tom@tromey.com>
10706
10707 * xcoffread.c (xcoff_end_psymtab): Use new.
10708 * psymtab.c (start_psymtab_common): Use new.
10709 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10710 Update.
10711 * psympriv.h (struct partial_symtab): Add parameters to
10712 constructor. Don't inline.
10713 (allocate_psymtab): Don't declare.
10714 * mdebugread.c (new_psymtab): Use new.
10715 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10716 * dbxread.c (dbx_end_psymtab): Use new.
10717
abaa2f23
TT
107182020-01-26 Tom Tromey <tom@tromey.com>
10719
10720 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10721 allocate_psymtab. Update documentation.
10722 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10723 allocate_psymtab. Do not use new.
10724 (allocate_psymtab): Use new. Update.
10725
6d94535f
TT
107262020-01-26 Tom Tromey <tom@tromey.com>
10727
10728 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10729 * psymtab.c (psym_print_stats): Update.
10730 * psympriv.h (struct partial_symtab) <readin,
10731 psymtabs_addrmap_supported, anonymous>: Now bool.
10732 * mdebugread.c (psymtab_to_symtab_1): Update.
10733 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10734 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10735 (process_full_comp_unit, process_full_type_unit): Update.
10736 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10737 * ctfread.c (psymtab_to_symtab): Update.
10738
6f17252b
TT
107392020-01-26 Tom Tromey <tom@tromey.com>
10740
10741 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10742 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10743 * psymtab.c (psymtab_storage): Delete psymtabs.
10744 (psymtab_storage::allocate_psymtab): Use new.
10745 (psymtab_storage::discard_psymtab): Use delete.
10746 * psympriv.h (struct partial_symtab): Add constructor and
10747 initializers.
10748
f6f1cebc
TT
107492020-01-26 Tom Tromey <tom@tromey.com>
10750
10751 * machoread.c: Do not include psympriv.h.
10752
e47e48f6
PW
107532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10754
10755 * NEWS: Mention the new option and the set/show commands.
10756
a2fedca9
PW
107572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10758
10759 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10760 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10761 (validate_exec_file): New variables, enums, functions.
10762 (exec_file_locate_attach, print_section_info): Style the filenames.
10763 (_initialize_exec): Install show_exec_file_mismatch_command and
10764 set_exec_file_mismatch_command.
10765 * gdbcore.h (validate_exec_file): Declare.
10766 * infcmd.c (attach_command): Call validate_exec_file.
10767 * remote.c ( remote_target::remote_add_inferior): Likewise.
10768
7ffa82e1
AB
107692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * frame.c (find_frame_sal): Move call to get_next_frame into more
10772 inner scope.
10773 * inline-frame.c (inilne_state) <inline_state>: Update argument
10774 types.
10775 (inilne_state) <skipped_symbol>: Rename to...
10776 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10777 (skip_inline_frames): Build vector of skipped symbols and use this
10778 to reate the inline_state.
10779 (inline_skipped_symbol): Add a comment and some assertions, fetch
10780 skipped symbol from the list.
10781
3d92a3e3
AB
107822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10783
10784 * buildsym.c (lte_is_less_than): Delete.
10785 (buildsym_compunit::end_symtab_with_blockvector): Create local
10786 lambda function to sort line table entries, and use
10787 std::stable_sort instead of std::sort.
10788 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10789 markers when looking for a previous line.
10790
94a72be7
AB
107912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * dwarf2read.c (lnp_state_machine::record_line): Include
10794 end_sequence parameter in debug print out. Record the line if we
10795 are at an end_sequence marker even if it's not the start of a
10796 statement.
10797 * symmisc.c (maintenance_print_one_line_table): Print end of
10798 sequence markers with 'END' not '0'.
10799
53af73bf
PA
108002020-01-24 Pedro Alves <palves@redhat.com>
10801
10802 PR gdb/25410
10803 * thread.c (scoped_restore_current_thread::restore): Use
10804 switch_to_inferior_no_thread.
10805 * exec.c: Include "progspace-and-thread.h".
10806 (add_target_sections, remove_target_sections):
10807 scoped_restore_current_pspace_and_thread instead of
10808 scoped_restore_current_thread.
10809 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10810 and aspace to the inferior before calling clone_program_space.
10811 Remove stale comment.
10812
3050c6f4
CB
108132020-01-24 Christian Biesinger <cbiesinger@google.com>
10814
10815 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10816 (arm_netbsd_nat_target::fetch_registers): ...this.
10817 (arm_nbsd_nat_target::store_registers): Rename to...
10818 (arm_netbsd_nat_target::store_registers): ...this.
10819
73685c7e
CB
108202020-01-24 Christian Biesinger <cbiesinger@google.com>
10821
10822 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10823 register_t.
10824
89203d40
CB
108252020-01-24 Christian Biesinger <cbiesinger@google.com>
10826
10827 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10828 Update comment.
10829 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10830 Likewise.
10831 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10832 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10833 the correct replacement (iterate_over_regset_sections).
10834 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10835 Update comment.
10836
1ba1ac88
AB
108372020-01-24 Graham Markall <graham.markall@embecosm.com>
10838
10839 PR gdb/23718
10840 * gdb/python/python.c (execute_gdb_command): Call
10841 async_enable_stdin in catch block.
10842
f3364a6d
AB
108432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10844
10845 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10846 SWITCH_THRU_ALL_UIS.
10847
733d0a67
AB
108482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10849
10850 PR tui/9765
10851 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10852 comment, add extra parameter, and update to store previous symbol
10853 when appropriate.
10854 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10855 add extra parameter.
10856 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10857 remove unneeded parameter, add try/catch around gdb_print_insn,
10858 rewrite to add items to asm_lines vector.
10859 (tui_find_backward_disassembly_start_address): New function.
10860 (tui_find_disassembly_address): Updated throughout.
10861 (tui_disasm_window::set_contents): Update for changes to
10862 tui_disassemble.
10863 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10864 number of lines to scroll.
10865
b3b3bada
SM
108662020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10867
10868 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10869 (SECT_OFF_DATA): Likewise.
10870 (SECT_OFF_RODATA): Likewise.
10871 (SECT_OFF_TEXT): Likewise.
10872 (SECT_OFF_BSS): Likewise.
10873 (struct objfile) <text_section_offset, data_section_offset>: New
10874 methods.
10875 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10876 objfile::text_section_offset.
10877 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10878 * coffread.c (coff_symtab_read): Likewise.
10879 (enter_linenos): Likewise.
10880 (process_coff_symbol): Likewise.
10881 * ctfread.c (get_objfile_text_range): Likewise.
10882 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10883 Use objfile::data_section_offset.
10884 * dwarf2-frame.c (execute_cfa_program): Use
10885 objfile::text_section_offset.
10886 (dwarf2_frame_find_fde): Likewise.
10887 * dwarf2read.c (create_addrmap_from_index): Likewise.
10888 (create_addrmap_from_aranges): Likewise.
10889 (dw2_find_pc_sect_compunit_symtab): Likewise.
10890 (process_psymtab_comp_unit_reader): Likewise.
10891 (add_partial_symbol): Likewise.
10892 (add_partial_subprogram): Likewise.
10893 (process_full_comp_unit): Likewise.
10894 (read_file_scope): Likewise.
10895 (read_func_scope): Likewise.
10896 (read_lexical_block_scope): Likewise.
10897 (read_call_site_scope): Likewise.
10898 (dwarf2_rnglists_process): Likewise.
10899 (dwarf2_ranges_process): Likewise.
10900 (dwarf2_ranges_read): Likewise.
10901 (dwarf_decode_lines_1): Likewise.
10902 (new_symbol): Likewise.
10903 (dwarf2_fetch_die_loc_sect_off): Likewise.
10904 (dwarf2_per_cu_text_offset): Likewise.
10905 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10906 * hppa-tdep.c (read_unwind_info): Likewise.
10907 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10908 * psympriv.h (struct partial_symtab): Likewise.
10909 * psymtab.c (find_pc_sect_psymtab): Likewise.
10910 * solib-svr4.c (enable_break): Likewise.
10911 * stap-probe.c (relocate_address): Use
10912 objfile::data_section_offset.
10913 * xcoffread.c (enter_line_range): Use
10914 objfile::text_section_offset.
10915 (read_xcoff_symtab): Likewise.
10916
ab53f382
SM
109172020-01-23 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10920 declaration to narrower scopes.
10921
e7eee665
SM
109222020-01-23 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * darwin-nat.h (struct darwin_exception_msg, enum
10925 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10926 Move up.
10927 (class darwin_nat_target) <wait_1, check_new_threads,
10928 decode_exception_message, decode_message, stop_inferior,
10929 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10930 * darwin-nat.c (darwin_check_new_threads): Rename to...
10931 (darwin_nat_target::check_new_threads): ... this.
10932 (darwin_suspend_inferior_it): Remove.
10933 (darwin_decode_exception_message): Rename to...
10934 (darwin_nat_target::decode_exception_message): ... this.
10935 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10936 (darwin_decode_message): Rename to...
10937 (darwin_nat_target::decode_message): ... this.
10938 (cancel_breakpoint): Rename to...
10939 (darwin_nat_target::cancel_breakpoint): ... this.
10940 (darwin_wait): Rename to...
10941 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10942 instead of iterate_over_inferiors.
10943 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10944 (darwin_stop_inferior): Rename to...
10945 (darwin_nat_target::stop_inferior): ... this.
10946 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10947 (darwin_init_thread_list): Rename to...
10948 (darwin_nat_target::init_thread_list): ... this.
10949 (darwin_ptrace_him): Rename to...
10950 (darwin_nat_target::ptrace_him): ... this.
10951 (darwin_nat_target::create_inferior): Pass lambda function to
10952 fork_inferior.
10953 (darwin_nat_target::detach): Call stop_inferior instead of
10954 darwin_stop_inferior.
10955 * fork-inferior.h (fork_inferior): Change init_trace_fun
10956 parameter to gdb::function_view.
10957 * fork-inferior.c (fork_inferior): Likewise.
10958
c162ed3e
HD
109592020-01-23 Hannes Domani <ssbssa@yahoo.de>
10960
10961 * i386-cygwin-tdep.c (core_process_module_section): Update.
10962 * windows-nat.c (struct lm_info_windows): Add text_offset.
10963 (windows_xfer_shared_libraries): Update.
10964 * windows-tdep.c (windows_xfer_shared_library):
10965 Add text_offset_cached argument.
10966 * windows-tdep.h (windows_xfer_shared_library): Update.
10967
a1237872
SM
109682020-01-21 Simon Marchi <simon.marchi@efficios.com>
10969
10970 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10971
b3ee6dd9
SM
109722020-01-21 Simon Marchi <simon.marchi@efficios.com>
10973
10974 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10975 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10976 replace with range-based for.
10977 (gdbsim_interrupt_inferior): Remove.
10978 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10979 with a range-based for. Inline code from
10980 gdbsim_interrupt_inferior.
10981
f9fac3c8
SM
109822020-01-21 Simon Marchi <simon.marchi@efficios.com>
10983
10984 * infrun.c (proceed): Fix indentation.
10985
f6474de9
TT
109862020-01-21 Tom Tromey <tromey@adacore.com>
10987
10988 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10989 * python/python.c (python_extension_ops): Update.
10990 (gdbpy_colorize): New function.
10991 * python/lib/gdb/__init__.py (colorize): New function.
10992 * extension.h (ext_lang_colorize): Declare.
10993 * extension.c (ext_lang_colorize): New function.
10994 * extension-priv.h (struct extension_language_ops) <colorize>: New
10995 member.
10996 * cli/cli-style.c (_initialize_cli_style): Update help text.
10997
f0c702d4
LM
109982020-01-21 Luis Machado <luis.machado@linaro.org>
10999
11000 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11001 <cond>: Change type to bool.
11002 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11003 (aarch64_displaced_step_cb): Likewise.
11004 (aarch64_displaced_step_tb): Likewise.
11005
1ab139e5
LM
110062020-01-21 Luis Machado <luis.machado@linaro.org>
11007
11008 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11009 output.
11010
0c271889
LM
110112020-01-21 Luis Machado <luis.machado@linaro.org>
11012
11013 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11014 <pc_adjust>: Adjust the documentation.
11015 (aarch64_displaced_step_fixup): Check if PC really moved before
11016 adjusting it.
11017
4d89c1c7
TT
110182020-01-19 Tom Tromey <tom@tromey.com>
11019
11020 * disasm.c (~gdb_disassembler): New destructor.
11021 (gdb_buffered_insn_length): Call disassemble_free_target.
11022 * disasm.h (class gdb_disassembler): Declare destructor. Use
11023 DISABLE_COPY_AND_ASSIGN.
11024
c0ab21c2
TT
110252020-01-19 Tom Tromey <tom@tromey.com>
11026
11027 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11028 (die_reader_func_ftype): Remove.
11029 (cutu_reader): New class.
11030 (dw2_get_file_names_reader): Remove "data" parameter.
11031 (dw2_get_file_names): Use cutu_reader.
11032 (create_debug_type_hash_table): Update.
11033 (read_cutu_die_from_dwo): Update comment.
11034 (lookup_dwo_unit): Add dwo_name parameter.
11035 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11036 die_reader_func_ftype and data parameters.
11037 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11038 Remove die_reader_func_ftype and data parameters.
11039 (~cutu_reader): New; from init_cutu_and_read_dies.
11040 (cutu_reader::cutu_reader): Rename from
11041 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11042 and data parameters.
11043 (init_cutu_and_read_dies_simple): Remove.
11044 (struct process_psymtab_comp_unit_data): Remove.
11045 (process_psymtab_comp_unit_reader): Remove data parameter; add
11046 want_partial_unit and pretend_language parameters.
11047 (process_psymtab_comp_unit): Use cutu_reader.
11048 (build_type_psymtabs_reader): Remove data parameter.
11049 (build_type_psymtabs_1): Use cutu_reader.
11050 (process_skeletonless_type_unit): Likewise.
11051 (load_partial_comp_unit_reader): Remove.
11052 (load_partial_comp_unit): Use cutu_reader.
11053 (load_full_comp_unit_reader): Remove.
11054 (load_full_comp_unit): Use cutu_reader.
11055 (struct create_dwo_cu_data): Remove.
11056 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11057 dwo_unit parameters.
11058 (create_cus_hash_table): Use cutu_reader.
11059 (struct dwarf2_read_addr_index_data): Remove.
11060 (dwarf2_read_addr_index_reader): Remove.
11061 (dwarf2_read_addr_index): Use cutu_reader.
11062 (read_signatured_type_reader): Remove.
11063 (read_signatured_type): Use cutu_reader.
11064
45bbae5c
TT
110652020-01-19 Tom Tromey <tom@tromey.com>
11066
11067 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11068 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11069 (tui_wrefresh): Declare.
11070 * tui/tui-wingeneral.c (suppress_output): New global.
11071 (tui_suppress_output, ~tui_suppress_output): New constructor and
11072 destructor.
11073 (tui_wrefresh): New function.
11074 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11075 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11076 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11077 method.
11078 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11079 tui_wrefresh.
11080 (tui_data_window::no_refresh): New method.
11081 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11082 (tui_reg_command): Use tui_suppress_output
11083 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11084 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11085 method.
11086 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11087
4f13c1c0
TT
110882020-01-19 Tom Tromey <tom@tromey.com>
11089
11090 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11091 Handle case where symtab is null.
11092
fa47e446
SM
110932020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11094
11095 * linux-fork.c (one_fork_p): Simplify.
11096
26f42329
SM
110972020-01-17 Simon Marchi <simon.marchi@efficios.com>
11098
11099 * top.c (struct qt_args): Remove.
11100 (kill_or_detach): Change return type to void, replace `void *`
11101 parameter with a proper one.
11102 (print_inferior_quit_action): Likewise.
11103 (quit_confirm): Use range-based for loop to iterate over inferiors.
11104 (quit_force): Likewise.
11105
a9ac81b1
SM
111062020-01-17 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11109 `void *` parameter with proper parameters.
11110 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11111 (print_one_inferior): Change return type to void, replace `void *`
11112 parameter with proper parameters.
11113 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11114 inferiors.
11115 (get_other_inferior): Remove.
11116 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11117 inferiors.
11118
788eca49
SM
111192020-01-17 Simon Marchi <simon.marchi@efficios.com>
11120
11121 * mi/mi-interp.c (report_initial_inferior): Remove.
11122 (mi_interp::init): Use range-based for to iterate over inferiors.
11123
d9bc85b6
SM
111242020-01-17 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * python/py-inferior.c (build_inferior_list): Remove.
11127 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11128
40c94099
CB
111292020-01-16 Christian Biesinger <cbiesinger@google.com>
11130
11131 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11132 (btrace_stitch_trace): Likewise.
11133 * charset.c (intermediate_encoding): Likewise (vaild).
11134 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11135 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11136 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11137
e0cdfe3c
HD
111382020-01-16 Hannes Domani <ssbssa@yahoo.de>
11139
11140 * windows-tdep.c (windows_get_tlb_type):
11141 Add rtl_user_process_parameters type.
11142
790f1718 111432020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11144 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11145
11146 PR build/24805
11147 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11148 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11149 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11150 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11151 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11152 (ps_plog): Redeclare exported functions with default visibility.
11153
3112ed97
NA
111542020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11155
11156 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11157 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11158
8dc3273e
SM
111592020-01-15 Simon Marchi <simon.marchi@efficios.com>
11160
11161 * infcmd.c (post_create_inferior): Use get_thread_regcache
11162 instead of get_current_regcache.
11163
ff47f4f0
TT
111642020-01-14 Tom Tromey <tom@tromey.com>
11165
11166 PR symtab/12535:
11167 * python/python.c (gdbpy_decode_line): Treat empty string the same
11168 as no argument.
11169
975f45b7
TT
111702020-01-14 Tom Tromey <tom@tromey.com>
11171
11172 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11173
25e57356
TT
111742020-01-14 Tom Tromey <tom@tromey.com>
11175
11176 * nat/linux-btrace.c: Don't include <config.h>.
11177 * nat/linux-ptrace.c: Don't include <config.h>.
11178 * nat/x86-linux-dregs.c: Don't include <config.h>.
11179
05ea2a05
TT
111802020-01-14 Tom Tromey <tom@tromey.com>
11181
11182 * configure: Rebuild.
11183 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11184
01027315
TT
111852020-01-14 Tom Tromey <tom@tromey.com>
11186
11187 * nat/x86-linux-dregs.c: Include configh.h.
11188 * nat/linux-ptrace.c: Include configh.h.
11189 * nat/linux-btrace.c: Include configh.h.
11190 * defs.h: Include config.h, bfd.h.
11191 * configure.ac: Don't source common.host.
11192 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11193 * configure: Rebuild.
11194 * acinclude.m4: Update path.
11195 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11196 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11197 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11198 (CLIBS): Add LIBSUPPORT.
11199 (CDEPS): Likewise.
11200 (COMMON_SFILES): Remove gdbsupport files.
11201 (HFILES_NO_SRCDIR): Likewise.
11202 (stamp-version): Update path to create-version.sh.
11203 (ALLDEPFILES): Remove gdbsupport files.
11204
b2ceabe8
TT
112052020-01-14 Tom Tromey <tom@tromey.com>
11206
11207 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11208 USE_WIN32API when needed.
11209 * configure.ac (USE_WIN32API): Don't define.
11210 (WIN32LIBS): Use WIN32APILIBS.
11211 * configure: Rebuild.
11212
25c51f71
TT
112132020-01-14 Tom Tromey <tom@tromey.com>
11214
11215 * configure: Rebuild.
11216 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11217
717c684d
BE
112182020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11219
11220 * skip.c (skip_function_command): Make skip w/o arguments use the
11221 name of the inlined function if pc is inside any inlined function.
11222
7da6a5b9
LM
112232020-01-14 Luis Machado <luis.machado@linaro.org>
11224
11225 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11226 * infrun.c (resume_1): Likewise.
11227 (handle_inferior_event): Remove stale comment.
11228 * linux-nat.c (linux_nat_target::resume): Update comments.
11229 (save_stop_reason): Likewise.
11230 (linux_nat_filter_event): Likewise.
11231 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11232
44e4c775
AB
112332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 * elfread.c (record_minimal_symbol): Set section index to 0 for
11236 non-allocatable sections.
11237
18a8505e
AT
11238
112392020-01-13 Ali Tamur <tamur@google.com>
11240
11241 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11242 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11243 to gdb::optional. Update comments.
11244 (dwo_file): Update comments.
11245 (read_attribute): Update API to take an additional out parameter,
11246 need_reprocess. This is used to mark attributes that need other
11247 attributes (e.g. str_offsets_base) for correct computation which may not
11248 have been read yet.
11249 (read_attribute_reprocess): New function declaration.
11250 (read_addr_index): Likewise.
11251 (read_dwo_str_index): Likewise.
11252 (read_stub_str_index): Likewise.
11253 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11254 (lookup_addr_base): New function definition.
11255 (lookup_ranges_base): Likewise.
11256 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11257 lookup_ranges_base.
11258 (init_cutu_and_read_dies): Update comments.
11259 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11260 unit. This is used to inherit parent's str_offsets_base and addr_base.
11261 Update comments.
11262 (init_cutu_and_read_dies_simple): Reflect API changes.
11263 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11264 (create_cus_hash_table): Change API to take parent compile unit.
11265 Reflect API changes.
11266 (open_and_init_dwo_file): Reflect API changes.
11267 (dwarf2_get_pc_bounds): Update comments.
11268 (dwarf2_record_block_ranges): Likewise.
11269 (read_full_die_1): Change implementation to reprocess attributes that
11270 need str_offsets_base and addr_base.
11271 (partial_die_info::read): Likewise.
11272 (read_attribute_reprocess): New function definition.
11273 (read_attribute_value): Change API to take an additional out parameter,
11274 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11275 when a non-dwo compile unit has index based attributes.
11276 (read_attribute): Reflect API changes.
11277 (read_addr_index_1): Reflect API changes. Update comments.
11278 (dwarf2_read_addr_index_data): Reflect API changes.
11279 (dwarf2_read_addr_index): Likewise.
11280 (read_str_index): Change API and implementation. This becomes a helper
11281 to be used by the new string index related methods. Update error
11282 message and comments.
11283 (read_dwo_str_index): New function definition.
11284 (read_stub_str_index): Likewise.
11285 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11286 * symfile.h (dwarf2_debug_sections): Likewise.
11287 * xcoffread.c (dwarf2_debug_sections): Likewise.
11288
0cac9354
SM
112892020-01-13 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11292 core_reg_sect type to gdb_byte *.
11293 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11294 * cris-tdep.c (fetch_core_registers): Likewise.
11295 * corelow.c (core_target::get_core_register_section): Change
11296 type of `contents` to gdb::byte_vector.
11297
9a6d629c
AB
112982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11299
11300 * tui/tui-wingeneral.c (box_win): Position the title in the center
11301 of the border.
11302
d8b2f9e3
SM
113032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11304
11305 * corelow.c (core_target::get_core_register_section): Use
11306 std::vector instead of alloca.
11307
bb564c58
SM
113082020-01-13 Simon Marchi <simon.marchi@efficios.com>
11309
11310 * warning.m4: Add -Wmissing-declarations to build_warnings.
11311 * configure: Re-generate.
11312
6b366111
SM
113132020-01-13 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * python/python.c (init__gdb_module): Add declaration.
11316
6c265988
SM
113172020-01-13 Simon Marchi <simon.marchi@efficios.com>
11318
11319 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11320 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11321 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11322 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11323 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11324 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11325 * ada-exp.y (_initialize_ada_exp): Add declaration.
11326 * ada-lang.c (_initialize_ada_language): Add declaration.
11327 * ada-tasks.c (_initialize_tasks): Add declaration.
11328 * agent.c (_initialize_agent): Add declaration.
11329 * aix-thread.c (_initialize_aix_thread): Add declaration.
11330 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11331 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11332 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11333 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11334 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11335 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11336 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11337 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11338 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11339 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11340 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11341 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11342 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11343 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11344 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11345 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11346 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11347 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11348 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11349 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11350 * annotate.c (_initialize_annotate): Add declaration.
11351 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11352 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11353 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11354 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11355 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11356 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11357 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11358 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11359 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11360 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11361 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11362 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11363 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11364 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11365 * auto-load.c (_initialize_auto_load): Add declaration.
11366 * auxv.c (_initialize_auxv): Add declaration.
11367 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11368 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11369 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11370 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11371 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11372 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11373 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11374 * breakpoint.c (_initialize_breakpoint): Add declaration.
11375 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11376 * btrace.c (_initialize_btrace): Add declaration.
11377 * charset.c (_initialize_charset): Add declaration.
11378 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11379 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11380 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11381 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11382 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11383 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11384 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11385 * coffread.c (_initialize_coffread): Add declaration.
11386 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11387 * compile/compile.c (_initialize_compile): Add declaration.
11388 * complaints.c (_initialize_complaints): Add declaration.
11389 * completer.c (_initialize_completer): Add declaration.
11390 * copying.c (_initialize_copying): Add declaration.
11391 * corefile.c (_initialize_core): Add declaration.
11392 * corelow.c (_initialize_corelow): Add declaration.
11393 * cp-abi.c (_initialize_cp_abi): Add declaration.
11394 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11395 * cp-support.c (_initialize_cp_support): Add declaration.
11396 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11397 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11398 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11399 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11400 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11401 * ctfread.c (_initialize_ctfread): Add declaration.
11402 * d-lang.c (_initialize_d_language): Add declaration.
11403 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11404 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11405 * dbxread.c (_initialize_dbxread): Add declaration.
11406 * dcache.c (_initialize_dcache): Add declaration.
11407 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11408 * disasm.c (_initialize_disasm): Add declaration.
11409 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11410 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11411 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11412 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11413 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11414 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11415 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11416 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11417 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11418 * elfread.c (_initialize_elfread): Add declaration.
11419 * exec.c (_initialize_exec): Add declaration.
11420 * extension.c (_initialize_extension): Add declaration.
11421 * f-lang.c (_initialize_f_language): Add declaration.
11422 * f-valprint.c (_initialize_f_valprint): Add declaration.
11423 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11424 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11425 * filesystem.c (_initialize_filesystem): Add declaration.
11426 * findcmd.c (_initialize_mem_search): Add declaration.
11427 * findvar.c (_initialize_findvar): Add declaration.
11428 * fork-child.c (_initialize_fork_child): Add declaration.
11429 * frame-base.c (_initialize_frame_base): Add declaration.
11430 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11431 * frame.c (_initialize_frame): Add declaration.
11432 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11433 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11434 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11435 * gcore.c (_initialize_gcore): Add declaration.
11436 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11437 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11438 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11439 * gdbarch.c (_initialize_gdbarch): Add declaration.
11440 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11441 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11442 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11443 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11444 * go-lang.c (_initialize_go_language): Add declaration.
11445 * go32-nat.c (_initialize_go32_nat): Add declaration.
11446 * guile/guile.c (_initialize_guile): Add declaration.
11447 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11448 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11449 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11450 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11451 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11452 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11453 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11454 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11455 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11456 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11457 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11458 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11459 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11460 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11461 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11462 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11463 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11464 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11465 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11466 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11467 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11468 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11469 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11470 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11471 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11472 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11473 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11474 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11475 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11476 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11477 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11478 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11479 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11480 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11481 * infcall.c (_initialize_infcall): Add declaration.
11482 * infcmd.c (_initialize_infcmd): Add declaration.
11483 * inflow.c (_initialize_inflow): Add declaration.
11484 * infrun.c (_initialize_infrun): Add declaration.
11485 * interps.c (_initialize_interpreter): Add declaration.
11486 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11487 * jit.c (_initialize_jit): Add declaration.
11488 * language.c (_initialize_language): Add declaration.
11489 * linux-fork.c (_initialize_linux_fork): Add declaration.
11490 * linux-nat.c (_initialize_linux_nat): Add declaration.
11491 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11492 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11493 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11494 * m2-lang.c (_initialize_m2_language): Add declaration.
11495 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11496 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11497 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11498 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11499 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11500 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11501 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11502 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11503 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11504 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11505 * machoread.c (_initialize_machoread): Add declaration.
11506 * macrocmd.c (_initialize_macrocmd): Add declaration.
11507 * macroscope.c (_initialize_macroscope): Add declaration.
11508 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11509 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11510 * maint.c (_initialize_maint_cmds): Add declaration.
11511 * mdebugread.c (_initialize_mdebugread): Add declaration.
11512 * memattr.c (_initialize_mem): Add declaration.
11513 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11514 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11515 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11516 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11517 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11518 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11519 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11520 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11521 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11522 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11523 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11524 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11525 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11526 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11527 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11528 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11529 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11530 * mipsread.c (_initialize_mipsread): Add declaration.
11531 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11532 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11533 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11534 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11535 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11536 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11537 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11538 * nto-procfs.c (_initialize_procfs): Add declaration.
11539 * objc-lang.c (_initialize_objc_language): Add declaration.
11540 * observable.c (_initialize_observer): Add declaration.
11541 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11542 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11543 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11544 * osabi.c (_initialize_gdb_osabi): Add declaration.
11545 * osdata.c (_initialize_osdata): Add declaration.
11546 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11547 * parse.c (_initialize_parse): Add declaration.
11548 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11549 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11550 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11551 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11552 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11553 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11554 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11555 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11556 * printcmd.c (_initialize_printcmd): Add declaration.
11557 * probe.c (_initialize_probe): Add declaration.
11558 * proc-api.c (_initialize_proc_api): Add declaration.
11559 * proc-events.c (_initialize_proc_events): Add declaration.
11560 * proc-service.c (_initialize_proc_service): Add declaration.
11561 * procfs.c (_initialize_procfs): Add declaration.
11562 * producer.c (_initialize_producer): Add declaration.
11563 * psymtab.c (_initialize_psymtab): Add declaration.
11564 * python/python.c (_initialize_python): Add declaration.
11565 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11566 * record-btrace.c (_initialize_record_btrace): Add declaration.
11567 * record-full.c (_initialize_record_full): Add declaration.
11568 * record.c (_initialize_record): Add declaration.
11569 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11570 * regcache.c (_initialize_regcache): Add declaration.
11571 * reggroups.c (_initialize_reggroup): Add declaration.
11572 * remote-notif.c (_initialize_notif): Add declaration.
11573 * remote-sim.c (_initialize_remote_sim): Add declaration.
11574 * remote.c (_initialize_remote): Add declaration.
11575 * reverse.c (_initialize_reverse): Add declaration.
11576 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11577 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11578 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11579 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11580 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11581 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11582 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11583 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11584 Add declaration.
11585 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11586 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11587 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11588 * rust-exp.y (_initialize_rust_exp): Add declaration.
11589 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11590 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11591 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11592 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11593 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11594 * score-tdep.c (_initialize_score_tdep): Add declaration.
11595 * ser-go32.c (_initialize_ser_dos): Add declaration.
11596 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11597 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11598 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11599 * ser-uds.c (_initialize_ser_socket): Add declaration.
11600 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11601 * serial.c (_initialize_serial): Add declaration.
11602 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11603 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11604 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11605 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11606 * skip.c (_initialize_step_skip): Add declaration.
11607 * sol-thread.c (_initialize_sol_thread): Add declaration.
11608 * solib-aix.c (_initialize_solib_aix): Add declaration.
11609 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11610 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11611 * solib-frv.c (_initialize_frv_solib): Add declaration.
11612 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11613 * solib-target.c (_initialize_solib_target): Add declaration.
11614 * solib.c (_initialize_solib): Add declaration.
11615 * source-cache.c (_initialize_source_cache): Add declaration.
11616 * source.c (_initialize_source): Add declaration.
11617 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11618 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11619 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11620 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11621 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11622 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11623 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11624 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11625 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11626 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11627 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11628 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11629 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11630 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11631 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11632 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11633 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11634 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11635 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11636 * stabsread.c (_initialize_stabsread): Add declaration.
11637 * stack.c (_initialize_stack): Add declaration.
11638 * stap-probe.c (_initialize_stap_probe): Add declaration.
11639 * std-regs.c (_initialize_frame_reg): Add declaration.
11640 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11641 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11642 * symfile.c (_initialize_symfile): Add declaration.
11643 * symmisc.c (_initialize_symmisc): Add declaration.
11644 * symtab.c (_initialize_symtab): Add declaration.
11645 * target.c (_initialize_target): Add declaration.
11646 * target-connection.c (_initialize_target_connection): Add
11647 declaration.
11648 * target-dcache.c (_initialize_target_dcache): Add declaration.
11649 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11650 * thread.c (_initialize_thread): Add declaration.
11651 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11652 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11653 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11654 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11655 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11656 * tracectf.c (_initialize_ctf): Add declaration.
11657 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11658 * tracefile.c (_initialize_tracefile): Add declaration.
11659 * tracepoint.c (_initialize_tracepoint): Add declaration.
11660 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11661 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11662 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11663 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11664 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11665 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11666 * tui/tui.c (_initialize_tui): Add declaration.
11667 * typeprint.c (_initialize_typeprint): Add declaration.
11668 * ui-style.c (_initialize_ui_style): Add declaration.
11669 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11670 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11671 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11672 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11673 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11674 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11675 * unittests/filtered_iterator-selftests.c
11676 (_initialize_filtered_iterator_selftests): Add declaration.
11677 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11678 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11679 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11680 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11681 * unittests/main-thread-selftests.c
11682 (_initialize_main_thread_selftests): Add declaration.
11683 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11684 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11685 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11686 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11687 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11688 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11689 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11690 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11691 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11692 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11693 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11694 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11695 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11696 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11697 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11698 declaration.
11699 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11700 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11701 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11702 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11703 * user-regs.c (_initialize_user_regs): Add declaration.
11704 * utils.c (_initialize_utils): Add declaration.
11705 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11706 * valops.c (_initialize_valops): Add declaration.
11707 * valprint.c (_initialize_valprint): Add declaration.
11708 * value.c (_initialize_values): Add declaration.
11709 * varobj.c (_initialize_varobj): Add declaration.
11710 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11711 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11712 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11713 * windows-nat.c (_initialize_windows_nat): Add declaration.
11714 (_initialize_check_for_gdb_ini): Add declaration.
11715 (_initialize_loadable): Add declaration.
11716 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11717 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11718 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11719 * xcoffread.c (_initialize_xcoffread): Add declaration.
11720 * xml-support.c (_initialize_xml_support): Add declaration.
11721 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11722 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11723 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11724 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11725
e2de1eec
SM
117262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11727
11728 * regformats/regdat.sh: Generate declaration for init function.
11729
e0037b4c
SM
117302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11731
11732 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11733 up.
11734 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11735 close_one_inferior>: New methods.
11736 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11737 pass down target to find_inferior_pid.
11738 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11739 Pass down target to find_inferior_ptid.
11740 (gdbsim_target::create_inferior): Pass down target to
11741 add_thread_silent.
11742 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11743 target down to find_inferior_ptid and switch_to_thread.
11744 (gdbsim_target::close): Update to call close_one_inferior.
11745 (struct resume_data): Remove.
11746 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11747 directly, rather than through a void pointer.
11748 (gdbsim_target::resume): Update to call resume_one_inferior.
11749
58920b5b
SM
117502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11751
11752 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11753
4ec89149
PA
117542020-01-12 Pedro Alves <palves@redhat.com>
11755
11756 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11757 directly for the current inferior instead of
11758 discard_all_inferiors.
11759 (discard_all_inferiors): Delete.
11760
7c392d1d
TT
117612020-01-11 Tom Tromey <tom@tromey.com>
11762
11763 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11764 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11765 deprecated_safe_get_selected_frame.
11766
d9ebdab7
TBA
117672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11768
11769 * inferior.c (print_inferior): Switch inferior before printing it.
11770
f3c469b9
PA
117712020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11772 Pedro Alves <palves@redhat.com>
11773
11774 * progspace-and-thread.c (switch_to_program_space_and_thread):
11775 Assert there's an inferior for PSPACE. Use
11776 switch_to_inferior_no_thread to switch the inferior too.
11777 * progspace.c (program_space::~program_space): Call
11778 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11779 (program_space::free_all_objfiles): Don't call clear_symtab_users
11780 here.
11781 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11782
65c574f6
PA
117832020-01-10 Pedro Alves <palves@redhat.com>
11784
11785 * NEWS: Mention multi-target debugging, "info connections", and
11786 "add-inferior -no-connection".
11787
2f4fcf00
PA
117882020-01-10 Pedro Alves <palves@redhat.com>
11789
11790 * infrun.c: Include "target-connection.h".
11791 (check_multi_target_resumption): New.
11792 (proceed): Call it.
11793 * target-connection.c (make_target_connection_string): Make
11794 extern.
11795 * target-connection.h (make_target_connection_string): Declare.
11796
121b3efd
PA
117972020-01-10 Pedro Alves <palves@redhat.com>
11798
11799 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11800 * inferior.c (uiout_field_connection): New function.
11801 (print_inferior): Add new "connection-id" column.
11802 (add_inferior_command): Show connection number/string of added
11803 inferior.
11804 * process-stratum-target.h
11805 (process_stratum_target::connection_string): New virtual method.
11806 (process_stratum_target::connection_number): New field.
11807 * remote.c (remote_target::connection_string): New override.
11808 * target-connection.c: New file.
11809 * target-connection.h: New file.
11810 * target.c (decref_target): Remove process_stratum targets from
11811 the connection list.
11812 (target_stack::push): Add process_stratum targets to the
11813 connection list.
11814
4f837581
PA
118152020-01-10 Pedro Alves <palves@redhat.com>
11816
11817 Revert:
11818 2016-04-12 Pedro Alves <palves@redhat.com>
11819 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11820 Remove references to name.
11821 * serial.h (struct serial) <name>: Delete.
11822
f4ec508e
PA
118232020-01-10 Pedro Alves <palves@redhat.com>
11824
11825 * gdbarch-selftests.c (register_to_value_test): Remove "target
11826 already pushed" check.
11827
5b6d1e4f
PA
118282020-01-10 Pedro Alves <palves@redhat.com>
11829 John Baldwin <jhb@FreeBSD.org>
11830
11831 * aarch64-linux-nat.c
11832 (aarch64_linux_nat_target::thread_architecture): Adjust.
11833 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11834 (task_command_1): Likewise.
11835 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11836 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11837 (aix_thread_target::store_registers)
11838 (aix_thread_target::thread_alive): Adjust.
11839 * amd64-fbsd-tdep.c: Include "inferior.h".
11840 (amd64fbsd_get_thread_local_address): Pass down target.
11841 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11842 thread's gdbarch instead of target_gdbarch.
11843 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11844 get_last_target_status.
11845 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11846 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11847 inferiors.
11848 (update_inserted_breakpoint_locations): Skip if inferiors with no
11849 execution.
11850 (update_global_location_list): When handling moribund locations,
11851 find representative inferior for location's pspace, and use thread
11852 count of its process_stratum target.
11853 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11854 * bsd-uthread.c (bsd_uthread_target::wait): Use
11855 as_process_stratum_target and adjust thread_change_ptid and
11856 add_thread calls.
11857 (bsd_uthread_target::update_thread_list): Use
11858 as_process_stratum_target and adjust find_thread_ptid,
11859 thread_change_ptid and add_thread calls.
11860 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11861 find_thread_ptid call.
11862 * corelow.c (add_to_thread_list): Adjust add_thread call.
11863 (core_target_open): Adjust add_thread_silent and thread_count
11864 calls.
11865 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11866 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11867 * event-top.c (async_disconnect): Pop targets from all inferiors.
11868 * exec.c (add_target_sections): Push exec target on all inferiors
11869 sharing the program space.
11870 (remove_target_sections): Remove the exec target from all
11871 inferiors sharing the program space.
11872 (exec_on_vfork): New.
11873 * exec.h (exec_on_vfork): Declare.
11874 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11875 Pass it down.
11876 (fbsd_nat_target::update_thread_list): Adjust.
11877 (fbsd_nat_target::resume): Adjust.
11878 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11879 down.
11880 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11881 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11882 get_thread_arch_regcache call.
11883 * fork-child.c (gdb_startup_inferior): Pass target down to
11884 startup_inferior and set_executing.
11885 * gdbthread.h (struct process_stratum_target): Forward declare.
11886 (add_thread, add_thread_silent, add_thread_with_info)
11887 (in_thread_list): Add process_stratum_target parameter.
11888 (find_thread_ptid(inferior*, ptid_t)): New overload.
11889 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11890 parameter.
11891 (all_threads()): Delete overload.
11892 (all_threads, all_non_exited_threads): Add process_stratum_target
11893 parameter.
11894 (all_threads_safe): Use brace initialization.
11895 (thread_count): Add process_stratum_target parameter.
11896 (set_resumed, set_running, set_stop_requested, set_executing)
11897 (threads_are_executing, finish_thread_state): Add
11898 process_stratum_target parameter.
11899 (switch_to_thread): Use is_current_thread.
11900 * i386-fbsd-tdep.c: Include "inferior.h".
11901 (i386fbsd_get_thread_local_address): Pass down target.
11902 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11903 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11904 have_inferiors check.
11905 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11906 (inf_ptrace_target::attach): Adjust.
11907 * infcall.c (run_inferior_call): Adjust.
11908 * infcmd.c (run_command_1): Pass target to
11909 scoped_finish_thread_state.
11910 (proceed_thread_callback): Skip inferiors with no execution.
11911 (continue_command): Rename 'all_threads' local to avoid hiding
11912 'all_threads' function. Adjust get_last_target_status call.
11913 (prepare_one_step): Adjust set_running call.
11914 (signal_command): Use user_visible_resume_target. Compare thread
11915 pointers instead of inferior_ptid.
11916 (info_program_command): Adjust to pass down target.
11917 (attach_command): Mark target's 'thread_executing' flag.
11918 (stop_current_target_threads_ns): New, factored out from ...
11919 (interrupt_target_1): ... this. Switch inferior before making
11920 target calls.
11921 * inferior-iter.h
11922 (struct all_inferiors_iterator, struct all_inferiors_range)
11923 (struct all_inferiors_safe_range)
11924 (struct all_non_exited_inferiors_range): Filter on
11925 process_stratum_target too. Remove explicit.
11926 * inferior.c (inferior::inferior): Push dummy target on target
11927 stack.
11928 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11929 Add process_stratum_target parameter, and pass it down.
11930 (have_live_inferiors): Adjust.
11931 (switch_to_inferior_and_push_target): New.
11932 (add_inferior_command, clone_inferior_command): Handle
11933 "-no-connection" parameter. Use
11934 switch_to_inferior_and_push_target.
11935 (_initialize_inferior): Mention "-no-connection" option in
11936 the help of "add-inferior" and "clone-inferior" commands.
11937 * inferior.h: Include "process-stratum-target.h".
11938 (interrupt_target_1): Use bool.
11939 (struct inferior) <push_target, unpush_target, target_is_pushed,
11940 find_target_beneath, top_target, process_target, target_at,
11941 m_stack>: New.
11942 (discard_all_inferiors): Delete.
11943 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11944 (all_inferiors, all_non_exited_inferiors): Add
11945 process_stratum_target parameter.
11946 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11947 (target_last_proc_target): New global.
11948 (follow_fork_inferior): Push target on new inferior. Pass target
11949 to add_thread_silent. Call exec_on_vfork. Handle target's
11950 reference count.
11951 (follow_fork): Adjust get_last_target_status call. Also consider
11952 target.
11953 (follow_exec): Push target on new inferior.
11954 (struct execution_control_state) <target>: New field.
11955 (user_visible_resume_target): New.
11956 (do_target_resume): Call target_async.
11957 (resume_1): Set target's threads_executing flag. Consider resume
11958 target.
11959 (commit_resume_all_targets): New.
11960 (proceed): Also consider resume target. Skip threads of inferiors
11961 with no execution. Commit resumtion in all targets.
11962 (start_remote): Pass current inferior to wait_for_inferior.
11963 (infrun_thread_stop_requested): Consider target as well. Pass
11964 thread_info pointer to clear_inline_frame_state instead of ptid.
11965 (infrun_thread_thread_exit): Consider target as well.
11966 (random_pending_event_thread): New inferior parameter. Use it.
11967 (do_target_wait): Rename to ...
11968 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11969 down.
11970 (threads_are_resumed_pending_p, do_target_wait): New.
11971 (prepare_for_detach): Adjust calls.
11972 (wait_for_inferior): New inferior parameter. Handle it. Use
11973 do_target_wait_1 instead of do_target_wait.
11974 (fetch_inferior_event): Adjust. Switch to representative
11975 inferior. Pass target down.
11976 (set_last_target_status): Add process_stratum_target parameter.
11977 Save target in global.
11978 (get_last_target_status): Add process_stratum_target parameter and
11979 handle it.
11980 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11981 (context_switch): Check inferior_ptid == null_ptid before calling
11982 inferior_thread().
11983 (get_inferior_stop_soon): Pass down target.
11984 (wait_one): Rename to ...
11985 (poll_one_curr_target): ... this.
11986 (struct wait_one_event): New.
11987 (wait_one): New.
11988 (stop_all_threads): Adjust.
11989 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11990 event's target.
11991 (switch_back_to_stepped_thread): Also consider target.
11992 (print_stop_event): Update.
11993 (normal_stop): Update. Also consider the resume target.
11994 * infrun.h (wait_for_inferior): Remove declaration.
11995 (user_visible_resume_target): New declaration.
11996 (get_last_target_status, set_last_target_status): New
11997 process_stratum_target parameter.
11998 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11999 process_stratum_target parameter, and use it.
12000 (clear_inline_frame_state (thread_info*)): New.
12001 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12002 process_stratum_target parameter.
12003 (clear_inline_frame_state (thread_info*)): Declare.
12004 * linux-fork.c (delete_checkpoint_command): Pass target down to
12005 find_thread_ptid.
12006 (checkpoint_command): Adjust.
12007 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12008 instead of just tweaking inferior_ptid.
12009 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12010 (exit_lwp): Pass target down to find_thread_ptid.
12011 (attach_proc_task_lwp_callback): Pass target down to
12012 add_thread/set_running/set_executing.
12013 (linux_nat_target::attach): Pass target down to
12014 thread_change_ptid.
12015 (get_detach_signal): Pass target down to find_thread_ptid.
12016 Consider last target status's target.
12017 (linux_resume_one_lwp_throw, resume_lwp)
12018 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12019 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12020 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12021 (linux_nat_target::async_wait_fd): New.
12022 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12023 target down.
12024 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12025 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12026 * linux-thread-db.c (struct thread_db_info::process_target): New
12027 field.
12028 (add_thread_db_info): Save target.
12029 (get_thread_db_info): New process_stratum_target parameter. Also
12030 match target.
12031 (delete_thread_db_info): New process_stratum_target parameter.
12032 Also match target.
12033 (thread_from_lwp): Adjust to pass down target.
12034 (thread_db_notice_clone): Pass down target.
12035 (check_thread_db_callback): Pass down target.
12036 (try_thread_db_load_1): Always push the thread_db target.
12037 (try_thread_db_load, record_thread): Pass target down.
12038 (thread_db_target::detach): Pass target down. Always unpush the
12039 thread_db target.
12040 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12041 target down. Always unpush the thread_db target.
12042 (find_new_threads_callback, thread_db_find_new_threads_2)
12043 (thread_db_target::update_thread_list): Pass target down.
12044 (thread_db_target::pid_to_str): Pass current inferior down.
12045 (thread_db_target::get_thread_local_address): Pass target down.
12046 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12047 target down.
12048 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12049 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12050 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12051 (procfs_init_inferior): Rename to ...
12052 (procfs_target::procfs_init_inferior): ... this and adjust.
12053 (procfs_target::create_inferior, procfs_notice_thread)
12054 (procfs_do_thread_registers): Adjust.
12055 * ppc-fbsd-tdep.c: Include "inferior.h".
12056 (ppcfbsd_get_thread_local_address): Pass down target.
12057 * proc-service.c (ps_xfer_memory): Switch current inferior and
12058 program space as well.
12059 (get_ps_regcache): Pass target down.
12060 * process-stratum-target.c
12061 (process_stratum_target::thread_address_space)
12062 (process_stratum_target::thread_architecture): Pass target down.
12063 * process-stratum-target.h
12064 (process_stratum_target::threads_executing): New field.
12065 (as_process_stratum_target): New.
12066 * ravenscar-thread.c
12067 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12068 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12069 down.
12070 * record-btrace.c (record_btrace_target::info_record): Adjust.
12071 (record_btrace_target::record_method)
12072 (record_btrace_target::record_is_replaying)
12073 (record_btrace_target::fetch_registers)
12074 (get_thread_current_frame_id, record_btrace_target::resume)
12075 (record_btrace_target::wait, record_btrace_target::stop): Pass
12076 target down.
12077 * record-full.c (record_full_wait_1): Switch to event thread.
12078 Pass target down.
12079 * regcache.c (regcache::regcache)
12080 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12081 process_stratum_target parameter and handle it.
12082 (current_thread_target): New global.
12083 (get_thread_regcache): Add process_stratum_target parameter and
12084 handle it. Switch inferior before calling target method.
12085 (get_thread_regcache): Pass target down.
12086 (get_thread_regcache_for_ptid): Pass target down.
12087 (registers_changed_ptid): Add process_stratum_target parameter and
12088 handle it.
12089 (registers_changed_thread, registers_changed): Pass target down.
12090 (test_get_thread_arch_aspace_regcache): New.
12091 (current_regcache_test): Define a couple local test_target_ops
12092 instances and use them for testing.
12093 (readwrite_regcache): Pass process_stratum_target parameter.
12094 (cooked_read_test, cooked_write_test): Pass mock_target down.
12095 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12096 (get_thread_arch_aspace_regcache): Add process_stratum_target
12097 parameter.
12098 (regcache::target): New method.
12099 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12100 (regcache::registers_changed_ptid): Add process_stratum_target
12101 parameter.
12102 (regcache::m_target): New field.
12103 (registers_changed_ptid): Add process_stratum_target parameter.
12104 * remote.c (remote_state::supports_vCont_probed): New field.
12105 (remote_target::async_wait_fd): New method.
12106 (remote_unpush_and_throw): Add remote_target parameter.
12107 (get_current_remote_target): Adjust.
12108 (remote_target::remote_add_inferior): Push target.
12109 (remote_target::remote_add_thread)
12110 (remote_target::remote_notice_new_inferior)
12111 (get_remote_thread_info): Pass target down.
12112 (remote_target::update_thread_list): Skip threads of inferiors
12113 bound to other targets. (remote_target::close): Don't discard
12114 inferiors. (remote_target::add_current_inferior_and_thread)
12115 (remote_target::process_initial_stop_replies)
12116 (remote_target::start_remote)
12117 (remote_target::remote_serial_quit_handler): Pass down target.
12118 (remote_target::remote_unpush_target): New remote_target
12119 parameter. Unpush the target from all inferiors.
12120 (remote_target::remote_unpush_and_throw): New remote_target
12121 parameter. Pass it down.
12122 (remote_target::open_1): Check whether the current inferior has
12123 execution instead of checking whether any inferior is live. Pass
12124 target down.
12125 (remote_target::remote_detach_1): Pass down target. Use
12126 remote_unpush_target.
12127 (extended_remote_target::attach): Pass down target.
12128 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12129 (remote_target::append_resumption): Pass down target.
12130 (remote_target::append_pending_thread_resumptions)
12131 (remote_target::remote_resume_with_hc, remote_target::resume)
12132 (remote_target::commit_resume): Pass down target.
12133 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12134 (remote_target::interrupt_query)
12135 (remote_target::remove_new_fork_children)
12136 (remote_target::check_pending_events_prevent_wildcard_vcont)
12137 (remote_target::remote_parse_stop_reply)
12138 (remote_target::process_stop_reply): Pass down target.
12139 (first_remote_resumed_thread): New remote_target parameter. Pass
12140 it down.
12141 (remote_target::wait_as): Pass down target.
12142 (unpush_and_perror): New remote_target parameter. Pass it down.
12143 (remote_target::readchar, remote_target::remote_serial_write)
12144 (remote_target::getpkt_or_notif_sane_1)
12145 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12146 down target.
12147 (remote_target::mourn_inferior): Pass down target. Use
12148 remote_unpush_target.
12149 (remote_target::core_of_thread)
12150 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12151 (remote_target::pid_to_exec_file)
12152 (remote_target::thread_handle_to_thread_info): Pass down target.
12153 (remote_target::async_wait_fd): New.
12154 * riscv-fbsd-tdep.c: Include "inferior.h".
12155 (riscv_fbsd_get_thread_local_address): Pass down target.
12156 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12157 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12158 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12159 Adjust.
12160 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12161 * solib-svr4.c (enable_break): Pass down target.
12162 * spu-multiarch.c (parse_spufs_run): Pass down target.
12163 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12164 * target-delegates.c: Regenerate.
12165 * target.c (g_target_stack): Delete.
12166 (current_top_target): Return the current inferior's top target.
12167 (target_has_execution_1): Refer to the passed-in inferior's top
12168 target.
12169 (target_supports_terminal_ours): Check whether the initial
12170 inferior was already created.
12171 (decref_target): New.
12172 (target_stack::push): Incref/decref the target.
12173 (push_target, push_target, unpush_target): Adjust.
12174 (target_stack::unpush): Defref target.
12175 (target_is_pushed): Return bool. Adjust to refer to the current
12176 inferior's target stack.
12177 (dispose_inferior): Delete, and inline parts ...
12178 (target_preopen): ... here. Only dispose of the current inferior.
12179 (target_detach): Hold strong target reference while detaching.
12180 Pass target down.
12181 (target_thread_name): Add assertion.
12182 (target_resume): Pass down target.
12183 (target_ops::beneath, find_target_at): Adjust to refer to the
12184 current inferior's target stack.
12185 (get_dummy_target): New.
12186 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12187 has a thread running.
12188 (initialize_targets): Rename to ...
12189 (_initialize_target): ... this.
12190 * target.h: Include "gdbsupport/refcounted-object.h".
12191 (struct target_ops): Inherit refcounted_object.
12192 (target_ops::shortname, target_ops::longname): Make const.
12193 (target_ops::async_wait_fd): New method.
12194 (decref_target): Declare.
12195 (struct target_ops_ref_policy): New.
12196 (target_ops_ref): New typedef.
12197 (get_dummy_target): Declare function.
12198 (target_is_pushed): Return bool.
12199 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12200 (all_matching_threads_iterator::all_matching_threads_iterator):
12201 Handle filter target.
12202 * thread-iter.h (struct all_matching_threads_iterator, struct
12203 all_matching_threads_range, class all_non_exited_threads_range):
12204 Filter by target too. Remove explicit.
12205 * thread.c (threads_executing): Delete.
12206 (inferior_thread): Pass down current inferior.
12207 (clear_thread_inferior_resources): Pass down thread pointer
12208 instead of ptid_t.
12209 (add_thread_silent, add_thread_with_info, add_thread): Add
12210 process_stratum_target parameter. Use it for thread and inferior
12211 searches.
12212 (is_current_thread): New.
12213 (thread_info::deletable): Use it.
12214 (find_thread_ptid, thread_count, in_thread_list)
12215 (thread_change_ptid, set_resumed, set_running): New
12216 process_stratum_target parameter. Pass it down.
12217 (set_executing): New process_stratum_target parameter. Pass it
12218 down. Adjust reference to 'threads_executing'.
12219 (threads_are_executing): New process_stratum_target parameter.
12220 Adjust reference to 'threads_executing'.
12221 (set_stop_requested, finish_thread_state): New
12222 process_stratum_target parameter. Pass it down.
12223 (switch_to_thread): Also match inferior.
12224 (switch_to_thread): New process_stratum_target parameter. Pass it
12225 down.
12226 (update_threads_executing): Reimplement.
12227 * top.c (quit_force): Pop targets from all inferior.
12228 (gdb_init): Don't call initialize_targets.
12229 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12230 Declare.
12231 (windows_add_thread, windows_delete_thread): Adjust.
12232 (get_windows_debug_event): Rename to ...
12233 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12234 * tracefile-tfile.c (tfile_target_open): Pass down target.
12235 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12236 Forward declare.
12237 (switch_to_thread): Add process_stratum_target parameter.
12238 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12239 parameter. Use it.
12240 (mi_on_resume): Pass target down.
12241 * nat/fork-inferior.c (startup_inferior): Add
12242 process_stratum_target parameter. Pass it down.
12243 * nat/fork-inferior.h (startup_inferior): Add
12244 process_stratum_target parameter.
12245 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12246
75c6c844
PA
122472020-01-10 Pedro Alves <palves@redhat.com>
12248
12249 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12250 directly. Instead find the first thread in the thread list and
12251 use switch_to_thread.
12252
78f2c40a
PA
122532020-01-10 Pedro Alves <palves@redhat.com>
12254
12255 * remote.c (remote_target::remote_add_inferior): Don't bind a
12256 process to the current inferior if the current inferior is already
12257 bound to a process.
12258
e7af6c70
TBA
122592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12260 Pedro Alves <palves@redhat.com>
12261
12262 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12263 If no process is specified, return null_ptid instead of
12264 inferior_ptid.
12265 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12266 TARGET_WAITKIND_SIGNALLED with no pid.
12267
31ba933e
PA
122682020-01-10 Pedro Alves <palves@redhat.com>
12269
12270 * remote.c (first_remote_resumed_thread): New.
12271 (remote_target::wait_as): Use it as default event_ptid instead of
12272 inferior_ptid.
12273
735fc2ca
PA
122742020-01-10 Pedro Alves <palves@redhat.com>
12275
12276 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12277
c17e02e1
PA
122782020-01-10 Pedro Alves <palves@redhat.com>
12279
12280 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12281 not -1.
12282
ab1ddbcf
PA
122832020-01-10 Pedro Alves <palves@redhat.com>
12284
12285 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12286 ptid to get_last_target_status.
12287 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12288 ptid to get_last_target_status.
12289 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12290 get_last_target_status.
12291 (info_program_command): Don't pass a target_waitstatus to
12292 get_last_target_status.
12293 * infrun.c (init_wait_for_inferior): Use
12294 nullify_last_target_wait_ptid.
12295 (get_last_target_status): Handle nullptr arguments.
12296 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12297 (print_stop_event): Don't pass a ptid to get_last_target_status.
12298 (normal_stop): Don't pass a ptid to get_last_target_status.
12299 * infrun.h (get_last_target_status, set_last_target_status): Move
12300 comments here and update.
12301 (nullify_last_target_wait_ptid): Declare.
12302 * linux-fork.c (fork_load_infrun_state): Remove local extern
12303 declaration of nullify_last_target_wait_ptid.
12304 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12305 to get_last_target_status.
12306
f3f8ece4
PA
123072020-01-10 Pedro Alves <palves@redhat.com>
12308
12309 * gdbthread.h (scoped_restore_current_thread)
12310 <dont_restore, restore, m_dont_restore>: Declare.
12311 * thread.c (thread_alive): Add assertion. Return bool.
12312 (switch_to_thread_if_alive): New.
12313 (prune_threads): Switch inferior/thread.
12314 (print_thread_info_1): Switch thread before calling target methods.
12315 (scoped_restore_current_thread::restore): New, factored out from
12316 ...
12317 (scoped_restore_current_thread::~scoped_restore_current_thread):
12318 ... this.
12319 (scoped_restore_current_thread::scoped_restore_current_thread):
12320 Add assertion.
12321 (thread_apply_all_command, thread_select): Use
12322 switch_to_thread_if_alive.
12323 * infrun.c (proceed, restart_threads, handle_signal_stop)
12324 (switch_back_to_stepped_thread): Switch current thread before
12325 calling target methods.
12326
db2d40f7
PA
123272020-01-10 Pedro Alves <palves@redhat.com>
12328
12329 * inferior.c (switch_to_inferior_no_thread): New function,
12330 factored out from ...
12331 (inferior_command): ... here.
12332 * inferior.h (switch_to_inferior_no_thread): Declare.
12333 * mi/mi-main.c (run_one_inferior): Use
12334 switch_to_inferior_no_thread.
12335
bd420a2d
PA
123362020-01-10 Pedro Alves <palves@redhat.com>
12337
12338 * infcmd.c (kill_command): Remove dead code.
12339
ddf5db90
PA
123402020-01-10 Pedro Alves <palves@redhat.com>
12341
12342 * remote.c (remote_target::mourn_inferior): No longer check
12343 whether the target is running.
12344
5018ce90
PA
123452020-01-10 Pedro Alves <palves@redhat.com>
12346
12347 * corelow.c (core_target::has_execution): Change parameter type to
12348 inferior pointer.
12349 * inferior.c (number_of_live_inferiors): Use
12350 inferior::has_execution instead of target_has_execution_1.
12351 * inferior.h (inferior::has_execution): New.
12352 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12353 inferior::has_execution instead of target_has_execution_1.
12354 * process-stratum-target.c
12355 (process_stratum_target::has_execution): Change parameter type to
12356 inferior pointer. Check the inferior's PID instead of
12357 inferior_ptid.
12358 * process-stratum-target.h
12359 (process_stratum_target::has_execution): Change parameter type to
12360 inferior pointer.
12361 * record-full.c (record_full_core_target::has_execution): Change
12362 parameter type to inferior pointer.
12363 * target.c (target_has_execution_1): Change parameter type to
12364 inferior pointer.
12365 (target_has_execution_current): Adjust.
12366 * target.h (target_ops::has_execution): Change parameter type to
12367 inferior pointer.
12368 (target_has_execution_1): Change parameter type to inferior
12369 pointer. Change return type to bool.
12370 * tracefile.h (tracefile_target::has_execution): Change parameter
12371 type to inferior pointer.
12372
74375d18
PA
123732020-01-10 Pedro Alves <palves@redhat.com>
12374
12375 * exceptions.c (print_flush): Remove current_top_target() check.
12376
acdf84a6
PA
123772020-01-10 Pedro Alves <palves@redhat.com>
12378
12379 * remote.c (show_remote_exec_file): Show the current inferior's
12380 exec-file instead of the command variable's value.
12381
ec506636
PA
123822020-01-10 Pedro Alves <palves@redhat.com>
12383
12384 * record-full.c (record_full_resume_ptid): New global.
12385 (record_full_target::resume): Set it.
12386 (record_full_wait_1): Use record_full_resume_ptid instead of
12387 inferior_ptid.
12388
873657b9
PA
123892020-01-10 Pedro Alves <palves@redhat.com>
12390
12391 * gdbthread.h (scoped_restore_current_thread)
12392 <dont_restore, restore, m_dont_restore>: Declare.
12393 * thread.c (thread_alive): Add assertion. Return bool.
12394 (switch_to_thread_if_alive): New.
12395 (prune_threads): Switch inferior/thread.
12396 (print_thread_info_1): Switch thread before calling target methods.
12397 (scoped_restore_current_thread::restore): New, factored out from
12398 ...
12399 (scoped_restore_current_thread::~scoped_restore_current_thread):
12400 ... this.
12401 (scoped_restore_current_thread::scoped_restore_current_thread):
12402 Add assertion.
12403 (thread_apply_all_command, thread_select): Use
12404 switch_to_thread_if_alive.
12405
7f0ae84c
GB
124062020-01-10 George Barrett <bob@bob131.so>
12407
12408 * stap-probe.c (stap_modify_semaphore): Don't check for null
12409 semaphores.
12410 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12411 for null semaphores.
12412
f5a7c406
AB
124132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12414
12415 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12416 all source windows, and maintain horizontal scroll status while
12417 doing so.
12418
9ae6bf64
TT
124192020-01-09 Tom Tromey <tom@tromey.com>
12420
12421 PR tui/18932:
12422 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12423 update_source_window, not print_source_lines.
12424
b2efe70c
AB
124252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12426
12427 * tui/tui.c (tui_enable): Register tui hooks after calling
12428 tui_display_main.
12429
5f23a082
CB
124302020-01-09 Christian Biesinger <cbiesinger@google.com>
12431
12432 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12433
3061113b
SM
124342020-01-08 Simon Marchi <simon.marchi@efficios.com>
12435
12436 * thread.c (print_thread_info_1): Fix indentation.
12437
57d75002
CB
124382020-01-09 Christian Biesinger <cbiesinger@google.com>
12439
12440 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12441 unique_xmalloc_ptr outside the if to always free the demangled name.
12442
6a053cb1
TT
124432020-01-08 Tom Tromey <tromey@adacore.com>
12444
12445 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12446 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12447 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12448 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12449 Remove.
12450 (section_offsets): New typedef.
12451 * symtab.c (fixup_section, get_msymbol_address): Update.
12452 * symmisc.c (dump_msymbols): Update.
12453 * symfile.h (relative_addr_info_to_section_offsets)
12454 (symfile_map_offsets_to_segments): Update.
12455 * symfile.c (build_section_addr_info_from_objfile)
12456 (init_objfile_sect_indices): Update.
12457 (struct place_section_arg): Change type of "offsets".
12458 (place_section): Update.
12459 (relative_addr_info_to_section_offsets): Change type of
12460 "section_offsets". Remove "num_sections" parameter.
12461 (default_symfile_offsets, syms_from_objfile_1)
12462 (set_objfile_default_section_offset): Update.
12463 (reread_symbols): No need to preserve section offsets by hand.
12464 (symfile_map_offsets_to_segments): Change type of "offsets".
12465 * stap-probe.c (relocate_address): Update.
12466 * stabsread.h (process_one_symbol): Update.
12467 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12468 (solib_target_relocate_section_addresses): Update.
12469 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12470 Update.
12471 * solib-frv.c (frv_relocate_main_executable): Update.
12472 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12473 * solib-aix.c (solib_aix_get_section_offsets): Change return
12474 type.
12475 (solib_aix_solib_create_inferior_hook): Update.
12476 * remote.c (remote_target::get_offsets): Update.
12477 * psymtab.c (find_pc_sect_psymtab): Update.
12478 * psympriv.h (struct partial_symbol) <address, text_low,
12479 text_high>: Update.
12480 * objfiles.h (obj_section_offset): Update.
12481 (struct objfile) <section_offsets>: Change type.
12482 <num_sections>: Remove.
12483 (objfile_relocate): Update.
12484 * objfiles.c (entry_point_address_query): Update
12485 (relocate_one_symbol): Change type of "section_offsets".
12486 (objfile_relocate1, objfile_relocate1): Change type of
12487 "new_offsets".
12488 (objfile_rebase1): Update.
12489 * mipsread.c (mipscoff_symfile_read): Update.
12490 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12491 parameter.
12492 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12493 (parse_external, psymtab_to_symtab_1): Update.
12494 * machoread.c (macho_symfile_offsets): Update.
12495 * ia64-tdep.c (ia64_find_unwind_table): Update.
12496 * hppa-tdep.c (read_unwind_info): Update.
12497 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12498 * dwarf2read.c (create_addrmap_from_index)
12499 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12500 (process_psymtab_comp_unit_reader, add_partial_symbol)
12501 (add_partial_subprogram, process_full_comp_unit)
12502 (read_file_scope, read_func_scope, read_lexical_block_scope)
12503 (read_call_site_scope, dwarf2_rnglists_process)
12504 (dwarf2_ranges_process, dwarf2_ranges_read)
12505 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12506 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12507 Update.
12508 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12509 Update.
12510 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12511 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12512 (process_one_symbol): Change type of "section_offsets".
12513 * ctfread.c (get_objfile_text_range): Update.
12514 * coffread.c (coff_symtab_read, enter_linenos)
12515 (process_coff_symbol): Update.
12516 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12517 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12518
456e800a
TT
125192020-01-08 Tom Tromey <tromey@adacore.com>
12520
12521 * dwarf2read.c (parse_macro_definition): Use std::string.
12522 (parse_macro_definition): Likewise.
12523
6dfa2fc2
TT
125242020-01-08 Tom Tromey <tromey@adacore.com>
12525
12526 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12527 (ATTR_ALLOC_CHUNK): Remove.
12528
421d1616
TT
125292020-01-08 Tom Tromey <tromey@adacore.com>
12530
12531 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12532
43816ebc
TT
125332020-01-08 Tom Tromey <tromey@adacore.com>
12534
12535 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12536 (dwarf2_compute_name, open_dwo_file): Likewise.
12537 (process_enumeration_scope): Use std::vector.
12538 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12539 (partial_die_info::fixup, dwarf2_start_subfile)
12540 (guess_full_die_structure_name, dwarf2_name): Likewise.
12541 (determine_prefix): Update.
12542 (guess_full_die_structure_name): Make return type const.
12543 (partial_die_full_name): Return unique_xmalloc_ptr.
12544 (DW_FIELD_ALLOC_CHUNK): Remove.
12545
4212d509
TT
125462020-01-07 Tom Tromey <tromey@adacore.com>
12547
12548 PR build/24937:
12549 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12550
06a6207a
JT
125512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12552
12553 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12554
153d79c4
AB
125552020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12556
12557 * stack.c (print_frame_info): Move disassemble_next_line code
12558 inside source_print block.
12559
66182876
EZ
125602020-01-06 Eli Zaretskii <eliz@gnu.org>
12561
12562 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12563 gdb/signals.h, as we are now using native signal symbols.
12564
cbfa8581
SV
125652020-01-06 Shahab Vahedi <shahab@synopsys.com>
12566
12567 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12568 overflow by an early check of content vs threshold.
aac66a4c 12569 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12570 Likewise.
12571
3f602821
EZ
125722020-01-06 Eli Zaretskii <eliz@gnu.org>
12573
12574 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12575
a08c904d
JT
125762020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12577
12578 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12579 export table if no section contains it's RVA.
12580
89a65580
EZ
125812020-01-06 Eli Zaretskii <eliz@gnu.org>
12582
12583 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12584
8b7fcda2
HD
125852020-01-06 Hannes Domani <ssbssa@yahoo.de>
12586
12587 * source.c (print_source_lines_base): Set last_line_listed.
12588
a61b4f69
SV
125892020-01-06 Shahab Vahedi <shahab@synopsys.com>
12590
12591 * tui/tui-disasm.c: Remove trailing spaces.
12592
559e7e50
EZ
125932020-01-06 Eli Zaretskii <eliz@gnu.org>
12594 Pedro Alves <palves@redhat.com>
12595
12596 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12597 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12598 (windows_gdb_signal_to_target): New function, uses the above
12599 enumeration to convert GDB internal signal codes to equivalent
12600 Windows codes.
12601 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12602 * windows-nat.c: Include "gdb_wait.h".
12603 (get_windows_debug_event): Extract the fatal exception from the
12604 exit status and convert to the equivalent Posix signal number.
12605 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12606 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12607 * gdbsupport/gdb_wait.c: New file, implements
12608 windows_status_to_termsig.
12609 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12610 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12611
f2302a34
AB
126122020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12613
12614 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12615 show_layout.
12616
6a5206eb
LM
126172020-01-05 Luis Machado <luis.machado@linaro.org>
12618
12619 * aarch64-linux-nat.c
12620 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12621 and bfd_mach_aarch64.
12622
6ec1d75e
PW
126232020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12624
12625 * ui-file.c (stdio_file::can_emit_style_escape)
12626 (tee_file::can_emit_style_escape): Ensure style is used also on
12627 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12628 to gdb_stdout.
12629 * main.c (set_gdb_data_directory): Use file style to output the
12630 warning that the given pathname is not a directory.
12631 * top.c (show_history_filename, gdb_safe_append_history)
12632 (show_gdb_datadir): Use file style.
12633
44f81a76
HD
126342020-01-03 Hannes Domani <ssbssa@yahoo.de>
12635
12636 * solib-target.c (struct lm_info_target):
12637 Change offsets to be a unique_xmalloc_ptr.
12638 (solib_target_relocate_section_addresses): Update.
12639
25057eb0
HD
126402020-01-03 Hannes Domani <ssbssa@yahoo.de>
12641
12642 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12643
6e2118f5
BE
126442020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12645
12646 * MAINTAINERS (Write After Approval): Add myself.
12647
8133c7dc
LM
126482020-01-02 Luis Machado <luis.machado@linaro.org>
12649
12650 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12651 Cell BE architecture.
12652 * target.h (struct target_ops) <thread_architecture>: Likewise.
12653
48189bec
HD
126542020-01-01 Hannes Domani <ssbssa@yahoo.de>
12655
12656 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12657
ead1063b
HD
126582020-01-01 Hannes Domani <ssbssa@yahoo.de>
12659
12660 * MAINTAINERS (Write After Approval): Add myself.
12661
e5d78223
JB
126622020-01-01 Joel Brobecker <brobecker@adacore.com>
12663
12664 * gdbarch.sh: Update copyright year range of generated files.
12665
b811d2c2
JB
126662020-01-01 Joel Brobecker <brobecker@adacore.com>
12667
12668 Update copyright year range in all GDB files.
12669
5f4def5c
JB
126702020-01-01 Joel Brobecker <brobecker@adacore.com>
12671
12672 * copyright.py: Convert to Python 3.
12673
51fd4002
JB
126742020-01-01 Joel Brobecker <brobecker@adacore.com>
12675
12676 * copyright.py: Adapt after move of gnulib directory from gdb
12677 directory to toplevel directory.
12678
5fb651f2
JB
126792020-01-01 Joel Brobecker <brobecker@adacore.com>
12680
12681 * copyright.py (main): Exit if run from the wrong directory.
12682
5dd8bf88
JB
126832020-01-01 Joel Brobecker <brobecker@adacore.com>
12684
12685 * top.c (print_gdb_version): Change copyright year to 2020.
12686
9f71dacb 126872020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12688
9f71dacb 12689 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12690
9f71dacb 12691For older changes see ChangeLog-2019.
c906108c
SS
12692\f
12693Local Variables:
12694mode: change-log
12695left-margin: 8
12696fill-column: 74
12697version-control: never
57da7796 12698coding: utf-8
c906108c 12699End: