]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_GNU_IFUNC
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0becda7a
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4 uses with type::is_gnu_ifunc.
5
03cc7249
SM
62020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
9 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
10 use type::set_is_gnu_ifunc.
11
3f46044c
SM
122020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
15 uses with type::stub_is_supported.
16
9baccff6
SM
172020-09-14 Simon Marchi <simon.marchi@efficios.com>
18
19 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
20 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
21 use type::set_stub_is_supported.
22
bd63c870
SM
232020-09-14 Simon Marchi <simon.marchi@efficios.com>
24
25 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
26 uses with type::is_vector.
27
2062087b
SM
282020-09-14 Simon Marchi <simon.marchi@efficios.com>
29
30 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
31 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
32 use type::set_is_vector.
33
a409645d
SM
342020-09-14 Simon Marchi <simon.marchi@efficios.com>
35
36 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
37 uses with type::has_varargs.
38
1d6286ed
SM
392020-09-14 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
42 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
43 use type::set_has_varargs.
44
7f9f399b
SM
452020-09-14 Simon Marchi <simon.marchi@efficios.com>
46
47 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
48 uses with type::is_prototyped.
49
27e69b7a
SM
502020-09-14 Simon Marchi <simon.marchi@efficios.com>
51
52 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
53 New methods.
54 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
55 call sites to use type::set_is_prototyped.
56
d2183968
SM
572020-09-14 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
60 uses with type::target_is_stub.
61
8f53807e
SM
622020-09-14 Simon Marchi <simon.marchi@efficios.com>
63
64 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
65 New methods.
66 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
67 sites to use type::set_target_is_stub.
68
e46d3488
SM
692020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (TYPE_STUB): Remove, replace all
72 uses with type::is_stub.
73
b4b73759
SM
742020-09-14 Simon Marchi <simon.marchi@efficios.com>
75
76 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
77 (TYPE_STUB): Use type::is_stub, change all write call sites to
78 use type::set_is_stub.
79
20ce4123
SM
802020-09-14 Simon Marchi <simon.marchi@efficios.com>
81
82 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
83 type::has_no_signedness.
84
15152a54
SM
852020-09-14 Simon Marchi <simon.marchi@efficios.com>
86
87 * gdbtypes.h (struct type) <has_no_signedness,
88 set_has_no_signedness>: New methods.
89 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
90 call sites to use type::set_has_no_signedness.
91
c6d940a9
SM
922020-09-14 Simon Marchi <simon.marchi@efficios.com>
93
94 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
95 type::is_unsigned.
96
653223d3
SM
972020-09-14 Simon Marchi <simon.marchi@efficios.com>
98
99 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
100 methods.
101 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
102 sites to use type::set_is_unsigned.
103
55ea94da
FH
1042020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
105 Adam Renquinha <arenquinha@cimeq.qc.ca>
106
107 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
108 pointer and stack frame offset when unwinding.
109
6791b117
PA
1102020-09-13 Pedro Alves <pedro@palves.net>
111
112 * NEWS: Document "-break-insert --qualified".
113 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
114
77f2120b
PA
1152020-09-13 Pedro Alves <pedro@palves.net>
116
117 * linespec.c (classify_mtype, compare_msyms): Delete.
118 (search_minsyms_for_name): Remove classification logic. Instead
119 filter out trampoline symbols if we also found an external
120 function of the same name.
121
ed6a896c
JB
1222020-09-13 Joel Brobecker <brobecker@adacore.com>
123
124 * NEWS: Create a new section for the next release branch.
125 Rename the section of the current branch, now that it has
126 been cut.
127
32aea73e
JB
1282020-09-13 Joel Brobecker <brobecker@adacore.com>
129
130 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
131 * version.in: Bump version to 11.0.50.DATE-git.
132
8087c3fa
JB
1332020-09-12 Joel Brobecker <brobecker@adacore.com>
134
135 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
136
2a67f09d
FW
1372020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
138 Felix Willgerodt <Felix.Willgerodt@intel.com>
139
140 * gdbarch.sh: Added bfloat16 type.
141 * gdbarch.c: Regenerated.
142 * gdbarch.h: Regenerated.
143 * gdbtypes.c (floatformats_bfloat16): New struct.
144 (gdbtypes_post_init): Add builtin_bfloat16.
145 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
146 (floatformats_bfloat16): New struct.
147 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
148 (i386_ymm_type): Add field "v16_bfloat16"
149 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
150 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
151 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
152 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
153 * features/i386/64bit-avx512.xml: Add bfloat16 type.
154 * features/i386/64bit-avx512.c: Regenerated.
155 * features/i386/64bit-sse.xml: Add bfloat16 type.
156 * features/i386/64bit-sse.c: Regenerated.
157
1347d111
FW
1582020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
159
160 * i386-tdep.c (i386_zmm_type): Fix field names.
161 (i386_ymm_type): Fix field names.
162
7a4e8e7d
TBA
1632020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
164
165 * breakpoint.c: Fix typo in the help message of the
166 "set breakpoint condition-evaluation" command.
167
cf4ac4be
KR
1682020-09-10 Kamil Rytarowski <n54@gmx.com>
169
170 * nbsd-nat.c: Include "nat/netbsd-nat.h".
171 * (nbsd_nat_target::pid_to_exec_file)
172 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
173 (nbsd_nat_target::post_startup_inferior)
174 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
175 (nbsd_add_threads): Switch local code to common gdb/nat functions.
176 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
177 * (nbsd_thread_lister): Remove.
178
f404573e
KR
1792020-09-10 Kamil Rytarowski <n54@gmx.com>
180
181 * fork-inferior.c (startup_inferior): Avoid double free.
182
1ccb2c17
KR
1832020-09-10 Kamil Rytarowski <n54@gmx.com>
184
185 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
186 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
187
feedfcc7
KR
1882020-09-10 Kamil Rytarowski <n54@gmx.com>
189
190 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
191 * netbsd-nat.c: Include <sys/ptrace.h>.
192 * (netbsd_nat::enable_proc_events): Add.
193
c489f8c6
KR
1942020-09-10 Kamil Rytarowski <n54@gmx.com>
195
196 * netbsd-nat.h: Include "gdbsupport/function-view.h".
197 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
198 (netbsd_nat::for_each_thread): Add.
199 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
200 "gdbsupport/common-debug.h".
201 * (netbsd_nat::netbsd_thread_lister)
202 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
203 (netbsd_nat::for_each_thread): Add.
204
330662f6
KR
2052020-09-10 Kamil Rytarowski <n54@gmx.com>
206
207 * netbsd-nat.h: Include <unistd.h>.
208 * (netbsd_nat::pid_to_exec_file): Add.
209 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
210 * (netbsd_nat::pid_to_exec_file) Add.
211
70b67307
KR
2122020-09-10 Kamil Rytarowski <n54@gmx.com>
213
214 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
215
99cf6da6
KR
2162020-09-10 Kamil Rytarowski <n54@gmx.com>
217
218 * netbsd-nat.h: New file.
219 * netbsd-nat.c: Likewise.
220
1b788fb6
TT
2212020-09-09 Tom Tromey <tromey@adacore.com>
222
223 * ada-lang.c (remove_extra_symbols): Do not increment when
224 removing an element
225
03b0a45f
TT
2262020-09-08 Tom Tromey <tromey@adacore.com>
227
228 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
229
3cae4447
TT
2302020-09-08 Tom Tromey <tromey@adacore.com>
231
232 PR win32/25302:
233 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
234 (gdb_bfd_init_data): New function.
235 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
236
7f08fd51
TBA
2372020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
238
239 * infrun.c (fetch_inferior_event): Use
240 `switch_to_target_no_thread` to switch the target.
241
3e6ff933
TT
2422020-09-06 Tom Tromey <tom@tromey.com>
243
244 * symfile.h (dwarf2_free_objfile): Don't declare.
245
e56798df
AKS
2462020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
247
248 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
249 to match 16 byte real/complex type generated by Flang compiler.
250
8f5c6526
TV
2512020-09-03 Tom de Vries <tdevries@suse.de>
252
253 PR breakpoint/26546
254 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
255 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
256
c5065df0
SM
2572020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * maint.c (index_digits): New function.
260 (struct maint_print_section_data): Remove.
261 (print_bfd_section_info): Remove print_data parameter, add arg
262 and index_digits.
263 (print_objfile_section_info): Likewise.
264 (print_bfd_section_info_maybe_relocated): Likewise (plus
265 objfile).
266 (maintenance_info_sections): Adjust calls.
267
02c6f3f1
TT
2682020-09-02 Tom Tromey <tromey@adacore.com>
269
270 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
271 for null pointers.
272 (ada_varobj_adjust_for_child_access): Special-case null pointers.
273
ef5e5b0b
SM
2742020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * bcache.h (struct bcache) <insert>: Change type of `added` to
277 pointer to bool.
278 * bcache.c (bcache::insert): Likewise.
279 * gdbtypes.c (check_types_worklist): Adjust.
280 * psymtab.c (add_psymbol_to_bcache): Adjust.
281
973695d6
KB
2822020-08-31 Kevin Buettner <kevinb@redhat.com>
283
284 * corelow.c (unordered_set): Include.
285 (class core_target): Add field 'm_core_unavailable_mappings'.
286 (core_target::build_file_mappings): Print only one warning
287 per inaccessible file. Add unavailable/broken mappings
288 to m_core_unavailable_mappings.
289 (core_target::xfer_partial): Call...
290 (core_target::xfer_memory_via_mappings): New method.
291
264fc0e2
SM
2922020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
295 type to bool.
296
2de01bdb
SM
2972020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * dwarf2/read.c (struct field_info): Fix indentation.
300
f3bd50f1
SM
3012020-08-31 Simon Marchi <simon.marchi@efficios.com>
302
303 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
304 ordering in comment.
305 * frame.c (frame_id_eq): Fix indentation.
306
22b9b4b0
SL
3072020-08-31 Scott Linder <scott@scottlinder.com>
308 Simon Marchi <simon.marchi@efficios.com>
309
310 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
311 inline frame ids in outer frame.
312
84154d16
SM
3132020-08-31 Simon Marchi <simon.marchi@efficios.com>
314
315 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
316 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
317 (outer_frame_id): Use FID_STACK_OUTER instead of
318 FID_STACK_INVALID.
319 (frame_id_p): Don't check for outer_frame_id.
320
8efaf6b3
SM
3212020-08-31 Simon Marchi <simon.marchi@efficios.com>
322
323 * frame-unwind.c (frame_unwind_got_optimized): Don't set
324 regnum/frame in value. Call allocate_value_lazy.
325 * frame.c (frame_unwind_register_value): Use
326 val_print_not_saved.
327
fe1fe7ea
SM
3282020-08-31 Simon Marchi <simon.marchi@efficios.com>
329
330 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
331
f7c7700d
PA
3322020-08-29 Pedro Alves <pedro@palves.net>
333
334 * progspace.c (print_program_space): Use all_inferiors. Switch to
335 the inferior before calling target_pid_to_str.
336
e0814aae
TT
3372020-08-28 Tom Tromey <tom@tromey.com>
338
339 * xcoffread.c (xcoff_end_psymtab): Update comment.
340 * dbxread.c (dbx_end_psymtab): Update comment.
341
626d2320
TV
3422020-08-28 Tom de Vries <tdevries@suse.de>
343
344 PR breakpoint/26544
345 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
346 event_location.
347 (create_breakpoint): Same.
348 (base_breakpoint_decode_location): Same.
349 (bkpt_create_sals_from_location): Same.
350 (bkpt_decode_location): Same.
351 (bkpt_probe_create_sals_from_location): Same.
352 (bkpt_probe_decode_location): Same.
353 (tracepoint_create_sals_from_location): Same.
354 (tracepoint_decode_location): Same.
355 (tracepoint_probe_decode_location): Same.
356 (strace_marker_create_sals_from_location): Same.
357 (strace_marker_decode_location): Same.
358 (create_sals_from_location_default): Same.
359 (decode_location_default): Same.
360 * breakpoint.h (struct breakpoint_ops): Same.
361 (create_breakpoint): Same.
362 * linespec.h (decode_line_full): Same.
363 * linespec.c (decode_line_full): Same. Throw error if
364 result.size () == 0.
365
df631783
PA
3662020-08-27 Pedro Alves <pedro@palves.net>
367
368 PR gdb/26524
369 * breakpoint.c (until_break_fsm) <location_breakpoint,
370 caller_breakpoint>: Delete fields.
371 <breakpoints>: New field.
372 <until_break_fsm>: Adjust to save a breakpoint vector instead of
373 two individual breakpoints.
374 (until_break_fsm::should_stop): Loop over breakpoints in the
375 breakpoint vector.
376 (until_break_fsm::clean_up): Adjust to clear the breakpoints
377 vector.
378 (until_break_command): Handle location expanding into multiple
379 sals.
380
b2b38aa4
PA
3812020-08-27 Pedro Alves <pedro@palves.net>
382
383 PR gdb/26523
384 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
385 bp_until breakpoints user-specified locations. Update intro
386 comment.
387
b886559f
SM
3882020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
391 gdb_bfd_sections): New.
392 * maint.c (print_bfd_section_info): Change param type to
393 maint_print_section_data.
394 (print_objfile_section_info): Likewise.
395 (print_bfd_section_info_maybe_relocated): Likewise.
396 (maintenance_info_sections): Use gdb_bfd_sections.
397
4c6e63bf
SV
3982020-08-25 Shahab Vahedi <shahab@synopsys.com>
399
400 * MAINTAINERS: Add ARC target and maintainer.
401
8d7f0635
AK
4022020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
403
404 * configure.tgt: ARC support for GNU/Linux.
405 * Makefile.in (ALL_TARGET_OBJS): Likewise.
406 * arc-linux-tdep.c: New file.
407 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
408 * arc-tdep.c (arc_write_pc): Use it.
409
fdd8731b
SV
4102020-08-25 Shahab Vahedi <shahab@synopsys.com>
411
412 * arc-tdep.c (arc_check_for_hardware_loop): New.
413 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
414
22459524
SV
4152020-08-25 Shahab Vahedi <shahab@synopsys.com>
416
417 * arc-tdep.h: Include "gdbarch.h".
418
995d3a19
SV
4192020-08-25 Shahab Vahedi <shahab@synopsys.com>
420
421 * arch/arc.h
422 (arc_gdbarch_features): New class to stir the selection of target XML.
423 (arc_create_target_description): Use FEATURES to choose XML target.
424 (arc_lookup_target_description): Use arc_create_target_description
425 to create _new_ target descriptions or return the already created
426 ones if the FEATURES is the same.
427 * arch/arc.c: Implementation of prototypes described above.
428 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
429 (arc_gdbarch_features_init): Initialize the FEATURES struct.
430 * arc-tdep.c (*_feature_name): Make feature names consistent.
431 (arc_register_feature): A new struct to hold information about
432 registers of a particular target/feature.
433 (arc_check_tdesc_feature): Check if XML provides registers in
434 compliance with ARC_REGISTER_FEATURE structs.
435 (arc_update_acc_reg_names): Add aliases for r58 and r59.
436 (determine_*_reg_feature_set): Which feature name to look for.
437 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
438 (mach_type_to_arc_isa): Convert from a set of binutils machine types
439 to expected ISA enums to be used in arc_gdbarch_features structs.
440 * features/Makefile (FEATURE_XMLFILES): Add new files.
441 * gdb/features/arc/v1-aux.c: New file.
442 * gdb/features/arc/v1-aux.xml: Likewise.
443 * gdb/features/arc/v1-core.c: Likewise.
444 * gdb/features/arc/v1-core.xml: Likewise.
445 * gdb/features/arc/v2-aux.c: Likewise.
446 * gdb/features/arc/v2-aux.xml: Likewise.
447 * gdb/features/arc/v2-core.c: Likewise.
448 * gdb/features/arc/v2-core.xml: Likewise.
449 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
450
3945d2d7
GM
4512020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
452 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 PR m2/26372
fc5d6901 455 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
456 an assert. Remove single element array indexing pattern as the
457 MULTI_SUBSCRIPT support will handle this case too.
458
2677f2d3
SM
4592020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * value.h (valprint_check_validity): Move declaration from
462 here...
463 * valprint.h (valprint_check_validity): ... to here.
464
c426fddb
SM
4652020-08-24 Simon Marchi <simon.marchi@efficios.com>
466
467 * debug.h: New file.
468 * debug.c (debug_prefixed_vprintf): New function.
469 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
470 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
471
1eb8556f
SM
4722020-08-24 Simon Marchi <simon.marchi@efficios.com>
473
474 * infrun.h (infrun_debug_printf_1): New function declaration.
475 (infrun_debug_printf): New macro.
476 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
477 throughout.
478 (infrun_debug_printf): New function.
479 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
480 (handle_jit_event): Likewise.
481
b8fff44e
MW
4822020-08-21 Mark Wielaard <mark@klomp.org>
483
484 * ada-lex.l: Extend register warnings diagnostics comment for g++.
485
d19c3068
SM
4862020-08-22 Simon Marchi <simon.marchi@efficios.com>
487
488 * frame.c (enum class frame_id_status): New.
489 (struct frame_info) <this_id::p>: Change type to frame_id_status.
490 (fprintf_frame): Update.
491 (compute_frame_id): Set frame id status to "computing" on entry.
492 Set it back to "not_computed" on failure and to "computed" on
493 success.
494 (get_frame_id): Assert the frame id is not being computed.
495 (create_sentinel_frame): Use frame_id_status::COMPUTED.
496 (create_new_frame): Likewise.
497 (frame_cleanup_after_sniffer): Update assert.
498
b70e516e
SM
4992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * regcache.c (pid_ptid_regcache_map): New type.
502 (target_ptid_regcache_map): Remove.
503 (target_pid_ptid_regcache_map): New type.
504 (regcaches): Change type to target_pid_ptid_regcache_map.
505 (get_thread_arch_aspace_regcache): Update.
506 (regcache_thread_ptid_changed): Update, handle pid-like ptid
507 case.
508 (regcaches_size): Update.
509 (regcache_count): Update.
510 (registers_changed_ptid_target_pid_test): New.
511 (_initialize_regcache): Register new test.
512
cdd9148a
SM
5132020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * regcache.c (regcache_count): New.
516 (struct regcache_test_data): New.
517 (regcache_test_data_up): New.
518 (populate_regcaches_for_test): New.
519 (regcaches_test): Remove.
520 (get_thread_arch_aspace_regcache_test): New.
521 (registers_changed_ptid_all_test): New.
522 (registers_changed_ptid_target_test): New.
523 (registers_changed_ptid_target_ptid_test): New.
524 (regcache_thread_ptid_changed): Remove regcache_count lambda.
525 (_initialize_regcache): Register new tests.
526
dd125343
SM
5272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
530 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
531 gdbarch and aspace parameter. Use current inferior's aspace.
532 Validate regcache's arch value.
533 (regcaches_test): Update.
534
3ee93972
SM
5352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * regcache.c (regcaches_test): Call registers_changed.
538
33bf4c5c
TBA
5392020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540
541 * infrun.c (process_event_stop_test): Fix typo "breapoint".
542
c2fd7fae
AKS
5432020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
544
545 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
546 to find the end of prologue for flang compiled binaries.
547 * arm-tdep.c (arm_skip_prologue): Likewise.
548 * i386-tdep.c (i386_skip_prologue): Likewise.
549 * producer.c (producer_is_llvm): New function.
550 (producer_parsing_tests): Added new tests for clang/flang.
551 * producer.h (producer_is_llvm): New declaration.
552
9327494e
SM
5532020-08-18 Simon Marchi <simon.marchi@efficios.com>
554
555 * linux-nat.c (linux_nat_debug_printf): New function.
556 (linux_nat_debug_printf_1): New macro. Use throughout the file.
557
d138725a
AM
5582020-08-18 Aaron Merey <amerey@redhat.com>
559
560 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
561 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
562 (CLIBS): Add DEBUGINFOD_LIBS.
563
f9b11e6b
ST
5642020-08-17 Sergei Trofimovich <siarheit@google.com>
565
566 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
567 'gdbarch_num_regs'.
568
3ae7ab99
TT
5692020-08-17 Tom Tromey <tromey@adacore.com>
570
571 * ada-varobj.c (ada_varobj_decode_var): Handle case where
572 ada_get_decoded_value returns NULL.
573
b017825f
TT
5742020-08-17 Tom Tromey <tromey@adacore.com>
575
576 * python/py-inferior.c (infpy_search_memory): Use
577 gdb_py_object_from_ulongest.
578 * python/py-infevents.c (create_inferior_call_event_object)
579 (create_memory_changed_event_object): Use
580 gdb_py_object_from_ulongest.
581 * python/py-linetable.c (ltpy_entry_get_pc): Use
582 gdb_py_object_from_ulongest.
583
7635cf79
SM
5842020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * loc.c (class symbol_needs_eval_context): Fix indentation.
587
f54be24b
SM
5882020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
591 bool.
592
53d5a2a5
TV
5932020-08-17 Tom de Vries <tdevries@suse.de>
594
595 PR gdb/26393
596 * gdbtypes.c (dump_dynamic_prop): New function.
597 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
598
547ce8f0
TV
5992020-08-15 Tom de Vries <tdevries@suse.de>
600
601 PR backtrace/26390
602 * stack.c (print_frame_args): Temporarily set the selected
603 frame to FRAME while printing the frame's arguments.
604
6ea815e7
PFC
6052020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
606
607 PR breakpoints/26385
608 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
609 Always clear watchpoint with PTRACE_SET_DEBUGREG.
610
6e562fa3
PFC
6112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
612
613 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
614 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
615 and >= to check return value instead of == -1 and != -1.
616
d369b608
SM
6172020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * utils.h (class gdb_argv) <as_array_view>: New method.
620 * utils.c (gdb_argv_as_array_view_test): New.
621 (_initialize_utils): Register selftest.
622 * maint.c (maintenance_selftest): Use the new method.
623
b31488a3
KR
6242020-08-13 Kamil Rytarowski <n54@gmx.com>
625
626 * target.h (supports_dumpcore, dumpcore): New
627 function declarations.
628 * target.c (supports_dumpcore, dumpcore): New
629 functions.
630 * target-delegates.c: Rebuild.
631 * gcore.c (gcore_command): Use target_supports_dumpcore ()
632 and target_dumpcore ().
633
002a3166
AM
6342020-08-13 Aaron Merey <amerey@redhat.com>
635
636 * debuginfod-support.c: Replace global variables with user_data.
637
ece5bc8a
SM
6382020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * maint.c (maintenance_selftest): Split args and pass array_view
641 to run_tests.
642
6d8a0a5e
LM
6432020-08-12 Luis Machado <luis.machado@linaro.org>
644
645 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
646 type's length.
647 Use %s and pulongest to print the length.
648
7cf663a9
PA
6492020-08-12 Pedro Alves <palves@redhat.com>
650
651 * NEWS: Move "Multi-target debugging support" item to the
652 "Changes since GDB 9" section.
653
27c7b875
PA
6542020-08-12 Pedro Alves <palves@redhat.com>
655
656 PR gdb/26336
657 * progspace.c (program_space::remove_objfile): Invalidate the
658 frame cache.
659
1796a2a1
TV
6602020-08-11 Tom de Vries <tdevries@suse.de>
661
662 * MAINTAINERS: Mark ms1 as deleted.
663
f8e3fe0d
LM
6642020-08-10 Luis Machado <luis.machado@linaro.org>
665
666 PR gdb/26310
667
668 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
669 act accordingly.
670 (aarch64_analyze_prologue_test): Add more unit tests to exercise
671 movz/str/stur/stp skipping behavior.
672
cc308722
LM
6732020-08-10 Luis Machado <luis.machado@linaro.org>
674
675 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
676 struct user_sve_header instead of struct sve_context.
677
041d9819
SM
6782020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * read.h (dwarf2_fetch_die_loc_sect_off,
681 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
682 `void *` parameter with function_view.
683 * read.c (dwarf2_fetch_die_loc_sect_off,
684 dwarf2_fetch_die_loc_cu_off): Likewise.
685 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
686 (per_cu_dwarf_call): Adjust.
687 (get_frame_address_in_block_wrapper): Remove.
688 (indirect_synthetic_pointer): Adjust.
689 (get_ax_pc): Remove.
690 (dwarf2_compile_expr_to_ax): Adjust.
691
38f8aa06
TV
6922020-08-08 Tom de Vries <tdevries@suse.de>
693
694 PR build/26344
695 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
696 constructor.
697 * regcache.c (get_thread_arch_aspace_regcache): Same.
698
a52b3ae2
TT
6992020-08-07 Tom Tromey <tromey@adacore.com>
700
701 * ravenscar-thread.c
702 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
703 New method.
704 (ravenscar_thread_target::wait): Check
705 runtime_initialized.
706 (ravenscar_thread_target::prepare_to_store)
707 (ravenscar_thread_target::stopped_by_sw_breakpoint)
708 (ravenscar_thread_target::stopped_by_hw_breakpoint)
709 (ravenscar_thread_target::stopped_by_watchpoint)
710 (ravenscar_thread_target::stopped_data_address)
711 (ravenscar_thread_target::core_of_thread): Use
712 scoped_restore_current_thread and
713 set_base_thread_from_ravenscar_task.
714
0e29517d
TT
7152020-08-07 Tom Tromey <tromey@adacore.com>
716
717 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
718
592f9bd7
TT
7192020-08-07 Tom Tromey <tromey@adacore.com>
720
721 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
722 update_inferior_ptid before update_thread_list.
723 (temporarily_change_regcache_ptid): New class.
724 (ravenscar_thread_target::fetch_registers)
725 (ravenscar_thread_target::store_registers)
726 (ravenscar_thread_target::prepare_to_store): Use base thread when
727 forwarding operation.
728
39e2018a
TT
7292020-08-07 Tom Tromey <tromey@adacore.com>
730
731 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
732 "is_pid" case.
733
2080266b
TT
7342020-08-07 Tom Tromey <tromey@adacore.com>
735
736 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
737 New methods.
738 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
739 first.
740 (ravenscar_thread_target::add_thread): Rename from
741 ravenscar_add_thread.
742 (ravenscar_thread_target::update_thread_list): Use a lambda.
743 (ravenscar_thread_target::xfer_partial): New method.
744
78c02f21
TT
7452020-08-07 Tom Tromey <tromey@adacore.com>
746
747 * ada-lang.h (ada_task_list_iterator_ftype): Now a
748 gdb::function_view.
749 (iterate_over_live_ada_tasks): Change type of argument.
750 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
751 of argument.
752
d5d833af
TT
7532020-08-07 Tom Tromey <tromey@adacore.com>
754
755 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
756 Remove.
757 (ravenscar_thread_target::extra_thread_info): Remove.
758 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
759 defer to target beneath for non-Ravenscar threads.
760
a8ac85bb
TT
7612020-08-07 Tom Tromey <tromey@adacore.com>
762
763 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
764 get_base_thread_from_ravenscar_task>: Now methods.
765 <m_cpu_map>: New member.
766 (ravenscar_thread_target::get_thread_base_cpu): Rename from
767 ravenscar_get_thread_base_cpu. Check m_cpu_map.
768 (ravenscar_thread_target::task_is_currently_active): Update.
769 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
770 Now a method.
771 (ravenscar_thread_target::add_active_thread): Put initial thread
772 into the m_cpu_map.
773
550ab58d
TT
7742020-08-07 Tom Tromey <tromey@adacore.com>
775
776 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
777 event_ptid.
778
e9546579
TT
7792020-08-07 Tom Tromey <tromey@adacore.com>
780
781 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
782 runtime_initialized.
783
3d4470e5
TT
7842020-08-07 Tom Tromey <tromey@adacore.com>
785
786 * ravenscar-thread.c (ravenscar_thread_target): Don't call
787 add_active_thread.
788 (ravenscar_thread_target::add_active_thread): Now public.
789 (ravenscar_inferior_created): Call add_active_thread after pushing
790 the target.
791
888bdb2b
SM
7922020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * regcache.c (ptid_regcache_map): New type.
795 (target_ptid_regcache_map): New type.
796 (regcaches): Change type to target_ptid_regcache_map.
797 (get_thread_arch_aspace_regcache): Update to regcaches' new
798 type.
799 (regcache_thread_ptid_changed): Likewise.
800 (registers_changed_ptid): Likewise.
801 (regcaches_size): Likewise.
802 (regcaches_test): Update.
803 (regcache_thread_ptid_changed): Update.
804 * regcache.h (regcache_up): New type.
805 * gdbsupport/ptid.h (hash_ptid): New struct.
806
b161a60d
SM
8072020-08-07 Simon Marchi <simon.marchi@efficios.com>
808
809 * observable.h (thread_ptid_changed): Add parameter
810 `process_stratum_target *`.
811 * infrun.c (infrun_thread_ptid_changed): Add parameter
812 `process_stratum_target *` and use it.
813 (selftests): New namespace.
814 (infrun_thread_ptid_changed): New function.
815 (_initialize_infrun): Register selftest.
816 * regcache.c (regcache_thread_ptid_changed): Add parameter
817 `process_stratum_target *` and use it.
818 (regcache_thread_ptid_changed): New function.
819 (_initialize_regcache): Register selftest.
820 * thread.c (thread_change_ptid): Pass target to
821 thread_ptid_changed observable.
822
d2854d8d
CT
8232020-08-06 Caroline Tice <cmtice@google.com>
824
fe4c3d43
SM
825 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
826 (struct dwp_sections): Update field comments. Add loclists and
827 rnglists fields.
828 (struct virtual_v2_dwo_sections): Rename struct to
829 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
830 size & offset fields for loclists and rnglists.
831 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
832 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
833 skipping dummy type units.
834 (create_dwp_hash_table): Update the large comment above the function to
835 discuss Version 5 DWP files as well, with references. Update all the
836 version checks in the function to check for version 5 as well. Add new
837 section at the end to create dwp hash table for version 5.
838 (create_dwp_v2_section): Rename function to
839 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
840 Add V5 to error message text.
841 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
842 into calls to create_dwp_v2_or_v5_section.
843 (create_dwo_unit_in_dwp_v5): New function.
844 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
845 check for version2; add else clause to handle version 5.
846 (open_and_init_dwo_file): Add code to check dwarf version & only call
847 create_debug_types_hash_table (with sections.types) if version is not 5;
848 else call create_debug_type_hash_table, with sections.info.
849 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
850 version 5.
851 (dwarf2_locate_v5_dwp_sections): New function.
852 (open_and_init_dwp_file): Add else-if clause for version 5 to call
853 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 854
159ed7d9
SM
8552020-08-06 Simon Marchi <simon.marchi@efficios.com>
856
857 * regcache.h (class regcache): Remove friend
858 registers_changed_ptid.
859 <regcache_thread_ptid_changed>: Remove.
860 <regcaches>: Remove.
861 * regcache.c (regcache::regcaches): Rename to...
862 (regcaches): ... this. Make static.
863 (get_thread_arch_aspace_regcache): Update.
864 (regcache::regcache_thread_ptid_changed): Rename to...
865 (regcache_thread_ptid_changed): ... this. Update.
866 (class regcache_access): Remove.
867 (regcaches_test): Update.
868 (_initialize_regcache): Update.
869 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
870 <forward_list>.
871
174981ae
SM
8722020-08-06 Simon Marchi <simon.marchi@efficios.com>
873
874 * regcache.h (class regcache) <current_regcache>: Rename to...
875 <regcaches>: ... this. Move doc here.
876 * regcache.c (regcache::current_regcache) Rename to...
877 (regcache::regcaches): ... this. Move doc to header.
878 (get_thread_arch_aspace_regcache): Update.
879 (regcache::regcache_thread_ptid_changed): Update.
880 (registers_changed_ptid): Update.
881 (class regcache_access) <current_regcache_size>: Rename to...
882 <regcaches_size>: ... this.
883 (current_regcache_test): Rename to...
884 (regcaches_test): ... this.
885 (_initialize_regcache): Update.
886
ed908db6
VC
8872020-08-06 Victor Collod <vcollod@nvidia.com>
888
889 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
890
b5582ab7
KB
8912020-08-05 Kevin Buettner <kevinb@redhat.com>
892
893 * corelow.c (core_target::build_file_mappings): Don't output
894 null pathname in warning.
895
ea946b86
SM
8962020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
899 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
900 gdb.dwarf2/dw2-single-line-discriminators.exp,
901 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
902
57d02173
TT
9032020-08-05 Tom Tromey <tromey@adacore.com>
904
905 PR rust/26197:
906 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
907 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
908 Fix off-by-one and type size errors in ordinary case.
909
5555c86d
TV
9102020-08-05 Tom de Vries <tdevries@suse.de>
911
912 * gdbtypes.c (type_not_allocated, type_not_associated): Use
913 "prop->const_val () == 0" instead of "prop->const_val () != 0".
914
97916bfe
SM
9152020-08-04 Simon Marchi <simon.marchi@efficios.com>
916
917 * frame.h (frame_id_p): Return bool.
918 (frame_id_artificial_p): Return bool.
919 (frame_id_eq): Return bool.
920 (has_stack_frames): Return bool.
921 (get_selected_frame): Fix typo in comment.
922 (get_frame_pc_if_available): Return bool.
923 (get_frame_address_in_block_if_available): Return bool.
924 (get_frame_func_if_available): Return bool.
925 (read_frame_register_unsigned): Return bool.
926 (get_frame_register_bytes): Return bool.
927 (safe_frame_unwind_memory): Return bool.
928 (deprecated_frame_register_read): Return bool.
929 (frame_unwinder_is): Return bool.
930 * frame.c (struct frame_info) <prev_arch::p>: Change type to
931 bool.
932 <this_id::p>: Likewise.
933 <prev_p>: Likewise.
934 (frame_stash_add): Return bool.
935 (get_frame_id): Use bool.
936 (frame_id_build_special) Use bool.
937 (frame_id_build_unavailable_stack): Use bool.
938 (frame_id_build): Use bool.
939 (frame_id_p): Return bool, use true/false instead of 1/0.
940 (frame_id_artificial_p): Likewise.
941 (frame_id_eq): Likewise.
942 (frame_id_inner): Likewise.
943 (get_frame_func_if_available): Likewise.
944 (read_frame_register_unsigned): Likewise.
945 (deprecated_frame_register_read): Likewise.
946 (get_frame_register_bytes): Likewise.
947 (has_stack_frames): Likewise.
948 (inside_main_func): Likewise.
949 (inside_entry_func): Likewise.
950 (get_frame_pc_if_available): Likewise.
951 (get_frame_address_in_block_if_available): Likewise.
952 (frame_unwinder_is): Likewise.
953 (safe_frame_unwind_memory): Likewise.
954 (frame_unwind_arch): Likewise.
955
fedfee88
SM
9562020-08-04 Simon Marchi <simon.marchi@efficios.com>
957
958 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
959 type to cached_copy_status.
960 (fprintf_frame): Adjust.
961 (get_frame_func_if_available): Adjust.
962 (frame_cleanup_after_sniffer): Adjust.
963
6cfa9b59
MW
9642020-08-04 Mark Wielaard <mark@klomp.org>
965
966 * MAINTAINERS (Write After Approval): Update email address.
967
66d6346b
SM
9682020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
971 dynamic_prop::const_val.
972
8a6d5e35
SM
9732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
976 dynamic_prop::kind.
977
51d6067d
SM
9782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
981
b26e2ae7
JM
9822020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
983
984 * configure.tgt: Set gdb_sim for bpf-*-* targets.
985
39791af2
JM
9862020-08-04 Weimin Pan <weimin.pan@oracle.com>
987 Jose E. Marchesi <jose.marchesi@oracle.com>
988
989 * configure.tgt: Add entry for bpf-*-*.
990 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
991 (ALLDEPFILES): Add bpf-tdep.c.
992 * bpf-tdep.c: New file.
993 * MAINTAINERS: Add bpf target and maintainer.
994 * NEWS: Mention the support for the new target.
995
521894aa
TV
9962020-08-04 Tom de Vries <tdevries@suse.de>
997
998 PR symtab/23270
999 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1000 Error.
1001
5d6356e9
JB
10022020-08-03 John Baldwin <jhb@FreeBSD.org>
1003
1004 * syscalls/freebsd.xml: Regenerate.
1005
0cf82b81
JB
10062020-08-03 John Baldwin <jhb@FreeBSD.org>
1007
1008 * syscalls/update-freebsd.sh: Fix usage and year range.
1009
8f34b746
TV
10102020-08-03 Tom de Vries <tdevries@suse.de>
1011
1012 PR symtab/26333
1013 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1014 DW_LNE_lo_user/DW_LNE_hi_user range.
1015
5e500d33
SM
10162020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 PR ada/26318
1019 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1020 kind.
1021
78319c15
TBA
10222020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1023
1024 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1025
4c55e970
TBA
10262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1027
1028 * breakpoint.c (set_breakpoint_condition): Update the condition
1029 expressions after checking that the input condition string parses
1030 successfully and does not contain junk at the end.
1031
1e620590
TBA
10322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 * breakpoint.c (set_breakpoint_condition): Update the
1035 condition string after parsing the new condition successfully.
1036
c8693053
RO
10372020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1038
1039 * proc-api.c (_STRUCTURED_PROC): Don't define.
1040 * proc-events.c: Likewise.
1041 * proc-flags.c: Likewise.
1042 * proc-why.c: Likewise.
1043 * procfs.c: Likewise.
1044
1045 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1046 * configure, config.in: Regenerate.
1047
5a99adb8
TV
10482020-07-30 Tom de Vries <tdevries@suse.de>
1049
1050 PR build/26320
1051 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1052 m_red/m_green/m_blue in a union.
1053
8ba83e91
TV
10542020-07-29 Tom de Vries <tdevries@suse.de>
1055
1056 PR tdep/26280
1057 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1058
f75a0693
AB
10592020-07-28 Tom Tromey <tromey@adacore.com>
1060
1061 PR symtab/26270:
1062 * symtab.h (find_pc_partial_function_sym): Declare.
1063 * cli/cli-cmds.c (disassemble_command): Use
1064 find_pc_partial_function_sym. Check asm_demangle.
1065 * blockframe.c (cache_pc_function_sym): New global.
1066 (cache_pc_function_name): Remove.
1067 (clear_pc_function_cache): Update.
1068 (find_pc_partial_function_sym): New function, from
1069 find_pc_partial_function.
1070 (find_pc_partial_function): Rewrite using
1071 find_pc_partial_function_sym.
1072
16f3242c
TT
10732020-07-28 Tom Tromey <tromey@adacore.com>
1074
1075 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1076 help. Add usage.
1077
4888741a
TT
10782020-07-28 Tom Tromey <tromey@adacore.com>
1079
1080 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1081 <DW_OP_GNU_variable_value>: Cast to address type.
1082
4d46f402
KR
10832020-07-28 Kamil Rytarowski <n54@gmx.com>
1084
1085 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1086 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1087 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1088 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1089 (nbsd_get_siginfo_type): New.
1090 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1091 (_initialize_nbsd_tdep): New.
1092
d70f978b
L
10932020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 PR binutils/26301
1096 * configure: Regenerated.
1097
377170fa
L
10982020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1099
1100 PR binutils/26301
1101 * configure: Regenerated.
1102
43d5901d
AB
11032020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * python/py-frame.c: Remove 'user-regs.h' include.
1106 (frapy_read_register): Rewrite to make use of
1107 gdbpy_parse_register_id.
1108 * python/py-registers.c (gdbpy_parse_register_id): New function,
1109 moved here from python/py-unwind.c. Updated the return type, and
1110 also accepts register descriptor objects.
1111 * python/py-unwind.c: Remove 'user-regs.h' include.
1112 (pyuw_parse_register_id): Moved to python/py-registers.c.
1113 (unwind_infopy_add_saved_register): Update to use
1114 gdbpy_parse_register_id.
1115 (pending_framepy_read_register): Likewise.
1116 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1117
14fa8fb3
AB
11182020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1119
1120 * python/py-registers.c: Add 'user-regs.h' include.
1121 (register_descriptor_iter_find): New function.
1122 (register_descriptor_iterator_object_methods): New static global
1123 methods array.
1124 (register_descriptor_iterator_object_type): Add pointer to methods
1125 array.
1126
ddce1758
JB
11272020-07-27 John Baldwin <jhb@FreeBSD.org>
1128
1129 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1130 for all architectures on FreeBSD 11.3 and later.
1131
a4089f52
TT
11322020-07-27 Tom Tromey <tromey@adacore.com>
1133
1134 * gcore.h (load_corefile): Don't declare.
1135
95420d30
TV
11362020-07-27 Tom de Vries <tdevries@suse.de>
1137
1138 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1139 * config.in: Regenerate.
1140 * configure: Regenerate.
1141
05a6b8c2
EZ
11422020-07-26 Eli Zaretskii <eliz@gnu.org>
1143
1144 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1145 ws2tcpip.h. When checking whether socklen_t type is defined, use
1146 ws2tcpip.h if it is available and sys/socket.h isn't.
1147 * configure: Regenerate.
1148 * config.in: Regenerate.
1149
e79eb02f
AB
11502020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 PR fortran/23051
1153 PR fortran/26139
1154 * valops.c (value_ind): Pass address to
1155 readjust_indirect_value_type.
1156 * value.c (readjust_indirect_value_type): Make parameter
1157 non-const, and add extra address parameter. Resolve original type
1158 before using it.
1159 * value.h (readjust_indirect_value_type): Update function
1160 signature and comment.
1161
876518dd
TV
11622020-07-25 Tom de Vries <tdevries@suse.de>
1163
1164 PR symtab/26243
1165 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1166 entries.
1167
f6720b1c
AM
11682020-07-24 Aaron Merey <amerey@redhat.com>
1169
1170 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1171 * configure: Rebuild.
1172
513487e1
KB
11732020-07-23 Kevin Buettner <kevinb@redhat.com>
1174
1175 PR corefiles/26294
1176 * corelow.c (_initialize_corelow): Add period to help text
1177 for "maintenance print core-file-backed-mappings".
1178
e7bc9db8
PA
11792020-07-23 Pedro Alves <pedro@palves.net>
1180
1181 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1182 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1183 meanwhile.
1184 * frame.c (frame_cache_generation, get_frame_cache_generation):
1185 New.
1186 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1187 (get_prev_frame_if_no_cycle): On exception, don't touch
1188 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1189 * frame.h (get_frame_cache_generation): Declare.
1190
90fcc466
TV
11912020-07-23 Tom de Vries <tdevries@suse.de>
1192
1193 PR tui/26282
1194 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1195 New default constructor.
1196
78344df7
AB
11972020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1200 exclude non-statement entries.
1201
b089853a
KB
12022020-07-22 Kevin Buettner <kevinb@redhat.com>
1203
1204 * NEWS (New commands): Mention new command
1205 "maintenance print core-file-backed-mappings".
1206
09c2f5d4
KB
12072020-07-22 Kevin Buettner <kevinb@redhat.com>
1208
1209 * corelow.c (gdbcmd.h): Include.
1210 (core_target::info_proc_mappings): New method.
1211 (get_current_core_target): New function.
1212 (maintenance_print_core_file_backed_mappings): New function.
1213 (_initialize_corelow): Add core-file-backed-mappings to
1214 "maint print" commands.
1215
9c5ec5c2 12162020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1217
9c5ec5c2
KB
1218 * linux-tdep.c (dump_note_entry_p): New function.
1219 (linux_dump_mapping_p_ftype): New typedef.
1220 (linux_find_memory_regions_full): Add new parameter,
1221 should_dump_mapping_p.
1222 (linux_find_memory_regions): Adjust call to
1223 linux_find_memory_regions_full.
1224 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1225 call to linux_find_memory_regions_full.
1226
db082f59
KB
12272020-07-22 Kevin Buettner <kevinb@redhat.com>
1228
1229 * corelow.c (solist.h, unordered_map): Include.
1230 (class core_target): Add field m_core_file_mappings and
1231 method build_file_mappings.
1232 (core_target::core_target): Call build_file_mappings.
1233 (core_target::~core_target): Free memory associated with
1234 m_core_file_mappings.
1235 (core_target::build_file_mappings): New method.
1236 (core_target::xfer_partial): Use m_core_file_mappings
1237 for memory transfers.
1238 * linux-tdep.c (linux_read_core_file_mappings): New
1239 function.
1240 (linux_core_info_proc_mappings): Rewrite to use
1241 linux_read_core_file_mappings.
1242 (linux_init_abi): Register linux_read_core_file_mappings.
1243
7e183d27
KB
12442020-07-22 Kevin Buettner <kevinb@redhat.com>
1245
1246 * arch-utils.c (default_read_core_file_mappings): New function.
1247 * arch-utils.c (default_read_core_file_mappings): Declare.
1248 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1249 * gdbarch.h, gdbarch.c: Regenerate.
1250
2735d421
KB
12512020-07-22 Kevin Buettner <kevinb@redhat.com>
1252
1253 PR corefiles/25631
1254 * corelow.c (core_target:xfer_partial): Revise
1255 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1256 case after first checking the stratum beneath the core
1257 target.
1258 (has_all_memory): Return true.
1259 * target.c (raw_memory_xfer_partial): Revise comment
1260 regarding use of has_all_memory.
1261
e56cb451
KB
12622020-07-22 Kevin Buettner <kevinb@redhat.com>
1263
1264 * exec.h (section_table_xfer_memory): Revise declaration,
1265 replacing section name parameter with an optional callback
1266 predicate.
1267 * exec.c (section_table_xfer_memory): Likewise.
1268 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1269 of section_table_xfer_memory.
1270
32fa152e
TT
12712020-07-22 Tom Tromey <tromey@adacore.com>
1272
1273 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1274 lookup_symbol_search_name.
1275
a67a1c41
AB
12762020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1279 redundant local variable.
1280 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1281 reference, not pointer, update code accordingly.
1282
a7b4ff4f
SM
12832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1284 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285
1286 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1287 * jit.c (jit_breakpoint_re_set_internal): Use the
1288 `skip_jit_symbol_lookup` field.
1289
2340e834
SM
12902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1291 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292
1293 * jit.c (jit_read_descriptor): Define the descriptor address once,
1294 use twice.
1295 (jit_breakpoint_deleted): Move the declaration of the loop variable
1296 `iter` into the loop header.
1297 (jit_breakpoint_re_set_internal): Move the declaration of the local
1298 variable `objf_data` to the first point of definition.
1299 (jit_event_handler): Move the declaration of local variables
1300 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1301 Rename `objf` to `jited`.
1302
c1072906
SM
13032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1306 Remove.
1307 * jit.c (get_jiter_objfile_data): Update.
1308
c8474dc3
TBA
13092020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * jit.c (struct jit_program_space_data): Remove.
1313 (jit_program_space_key): Remove.
1314 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1315 stuff.
1316 (get_jit_program_space_data): Remove.
1317 (jit_breakpoint_deleted): Iterate on all of the program space's
1318 objfiles.
1319 (jit_inferior_init): Likewise.
1320 (jit_breakpoint_re_set_internal): Likewise. Also change return
1321 type to void.
1322 (jit_breakpoint_re_set): Pass current_program_space to
1323 jit_breakpoint_re_set_internal.
1324
77208eb7
SM
13252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * jit.h (struct jiter_objfile_data) <cached_code_address,
1328 jit_breakpoint>: Move to here from ...
1329 * jit.c (jit_program_space_data): ... here.
1330 (jiter_objfile_data::~jiter_objfile_data): Update.
1331 (jit_breakpoint_deleted): Update.
1332 (jit_breakpoint_re_set_internal): Update.
1333
8c1c720f
SM
13342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1337 checks.
1338 (jit_read_descriptor): Remove NULL check.
1339 (jit_event_handler): Add an assertion.
1340
0e74a041
SM
13412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * jit.h (struct jit_objfile_data): Split into...
1344 (struct jiter_objfile_data): ... this ...
1345 (struct jited_objfile_data): ... and this.
1346 * objfiles.h (struct objfile) <jit_data>: Remove.
1347 <jiter_data, jited_data>: New fields.
1348 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1349 (jiter_objfile_data::~jiter_objfile_data): ... this.
1350 (get_jit_objfile_data): Rename to ...
1351 (get_jiter_objfile_data): ... this.
1352 (add_objfile_entry): Update.
1353 (jit_read_descriptor): Use get_jiter_objfile_data.
1354 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1355 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1356 (jit_inferior_exit_hook): Use objfile's jited_data field.
1357
238b5c9f
SM
13582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * jit.h: Forward-declare `struct minimal_symbol`.
1361 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1362 constructor, destructor, and an objfile* field.
1363 * jit.c (jit_objfile_data): Remove.
1364 (struct jit_objfile_data): Migrate from here to jit.h.
1365 (jit_objfile_data::~jit_objfile_data): New destructor
1366 implementation with code moved from free_objfile_data.
1367 (free_objfile_data): Delete.
1368 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1369 (jit_find_objf_with_entry_addr): Ditto.
1370 (jit_inferior_exit_hook): Ditto.
1371 (_initialize_jit): Remove the call to
1372 register_objfile_data_with_cleanup.
1373 * objfiles.h (struct objfile) <jit_data>: New field.
1374
fe053b9e
TBA
13752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1376
1377 * jit.h: Forward-declare `struct objfile`.
1378 (jit_event_handler): Add a second parameter, the JITer objfile.
1379 * jit.c (jit_read_descriptor): Change the signature to take the
1380 JITer objfile as an argument instead of the jit_program_space_data.
1381 (jit_inferior_init): Update the call to jit_read_descriptor.
1382 (jit_event_handler): Use the new JITer objfile argument when calling
1383 jit_read_descriptor.
1384 * breakpoint.c (handle_jit_event): Update the call to
1385 jit_event_handler to pass the JITer objfile.
1386
4cec0c66
JB
13872020-07-21 John Baldwin <jhb@FreeBSD.org>
1388
1389 * gdbarch.c: Regenerate.
1390 * gdbarch.h: Regenerate.
1391 * gdbarch.sh (handle_segmentation_fault): Remove method.
1392 * infrun.c (handle_segmentation_fault): Remove.
1393 (print_signal_received_reason): Remove call to
1394 handle_segmentation_fault.
1395
0e42f66a
JB
13962020-07-21 John Baldwin <jhb@FreeBSD.org>
1397
1398 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1399 Rename to sparc64_linux_report_signal_info and add siggnal
1400 argument.
1401 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1402 instead of sparc64_linux_handle_segmentation_fault.
1403
77bdfeb2
JB
14042020-07-21 John Baldwin <jhb@FreeBSD.org>
1405
1406 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1407 i386_linux_report_signal_info instead of
1408 i386_linux_handle_segmentation_fault.
1409 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1410 to i386_linux_report_signal_info and add siggnal argument.
1411 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1412 of i386_linux_handle_segmentation_fault.
1413 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1414 to i386_linux_report_signal_info and add siggnal argument.
1415
ad97bfc5
JB
14162020-07-21 John Baldwin <jhb@FreeBSD.org>
1417
1418 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1419 hook if present.
1420
272bb05c
JB
14212020-07-21 John Baldwin <jhb@FreeBSD.org>
1422
1423 * gdbarch.c: Regenerate.
1424 * gdbarch.h: Regenerate.
1425 * gdbarch.sh (report_signal_info): New method.
1426 * infrun.c (print_signal_received_reason): Invoke gdbarch
1427 report_signal_info hook if present.
1428
baf8791e
AB
14292020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * python/py-registers.c : Add 'unordered_map' include.
1432 (gdbpy_new_reggroup): Renamed to...
1433 (gdbpy_get_reggroup): ...this. Update to only create register
1434 group descriptors when needed.
1435 (gdbpy_reggroup_iter_next): Update.
1436
f7306dac
AB
14372020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * python/py-registers.c (gdbpy_register_object_data): New static
1440 global.
1441 (gdbpy_register_object_data_init): New function.
1442 (gdbpy_new_register_descriptor): Renamed to...
1443 (gdbpy_get_register_descriptor): ...this, and update to reuse
1444 existing register descriptors where possible.
1445 (gdbpy_register_descriptor_iter_next): Update.
1446 (gdbpy_initialize_registers): Register new gdbarch data.
1447
05c309a8
SM
14482020-07-21 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * linux-nat.c (stopped_pids): Make static.
1451
d1fd641e
SM
14522020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 PR ada/26235
1455 * gdbtypes.c (ada_discrete_type_low_bound,
1456 ada_discrete_type_high_bound): Handle undefined bounds.
1457
1de14d77
KR
14582020-07-21 Kamil Rytarowski <n54@gmx.com>
1459
1460 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1461 declaration.
1462 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1463 function.
1464
ed810cc7
JB
14652020-07-20 John Baldwin <jhb@FreeBSD.org>
1466
1467 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1468 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1469 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1470 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1471 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1472 method.
1473
ae5369e7
LC
14742020-07-20 Ludovic Courtès <ludo@gnu.org>
1475
1476 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1477 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1478 which are deprecated in Guile 3.0.
1479 * configure.ac (try_guile_versions): Add "guile-3.0".
1480 * configure (try_guile_versions): Regenerate.
1481 * NEWS: Update entry.
1482
68cf161c
LC
14832020-07-20 Ludovic Courtès <ludo@gnu.org>
1484 Doug Evans <dje@google.com>
1485
1486 PR gdb/21104
1487 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1488 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1489 USING_GUILE_BEFORE_2_2.
1490 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1491 Change type to 'scm_t_port_type *'.
1492 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1493 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1494 parameter and honor it. Update callers.
1495 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1496 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1497 functions.
1498 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1499 USING_GUILE_BEFORE_2_2.
1500 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1501 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1502 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1503 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1504 and 'SCM_PORT_TYPE'.
1505 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1506 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1507 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1508 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1509 [!USING_GUILE_BEFORE_2_2]: New functions.
1510 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1511 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1512 'gdbscm_memory_port_read'.
1513 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1514 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1515 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1516 function.
1517 (ioscm_init_memory_port): Remove.
1518 (ioscm_init_memory_port_stream): New function
1519 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1520 function.
1521 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1522 Return scm_from_uint (0).
1523 (gdbscm_set_memory_port_read_buffer_size_x)
1524 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1525 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1526 Return scm_from_uint (0).
1527 (gdbscm_set_memory_port_write_buffer_size_x)
1528 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1529 * configure.ac (try_guile_versions): Add "guile-2.2".
1530 * configure: Regenerate.
1531 * NEWS: Add entry.
1532
aee91db3
TT
15332020-07-18 Tom Tromey <tom@tromey.com>
1534
1535 * linux-nat.c (linux_multi_process): Remove.
1536 (linux_nat_target::supports_multi_process): Return true.
1537
0e267416
AB
15382020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1541 (riscv_lookup_target_description): Return pointer out of
1542 unique_ptr.
1543 * target-descriptions.c (allocate_target_description): Add
1544 comment.
1545 (target_desc_deleter::operator()): Likewise.
1546 * target-descriptions.h (struct target_desc_deleter): Moved to
1547 gdbsupport/tdesc.h.
1548 (target_desc_up): Likewise.
1549
f80c8ec4
TT
15502020-07-17 Tom Tromey <tromey@adacore.com>
1551
1552 * linux-nat.c (linux_nat_target::supports_non_stop)
1553 (linux_nat_target::always_non_stop_p): Use "true".
1554 (linux_nat_target::supports_disable_randomization): Use "true" and
1555 "false".
1556
d0ce17d8
CT
15572020-07-16 Caroline Tice <cmtice@google.com>
1558
1559 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1560 (RNGLIST_HEADER_SIZE64): New constant definition.
1561 (struct dwop_section_names): Add rnglists_dwo.
1562 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1563 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1564 (struct dwo_sections): Add rnglists field.
1565 (read_attribut_reprocess): Add tag parameter.
1566 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1567 (cu_debug_rnglists_section): New function (decl & definition).
1568 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1569 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1570 die whose range is being checked; get rnglist section from
1571 cu_debug_rnglists_section, to get from either objfile or dwo file as
1572 appropriate. Add cases for DW_RLE_base_addressx,
1573 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1574 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1575 test inside if-condition and updating complaint message.
1576 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1577 dwarf2_rnglists_process.
1578 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1579 dwarf2_ranges_process.
1580 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1581 need_ranges_base and update comment appropriately. Also pass die tag
1582 to dwarf2_ranges_read.
1583 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1584 need_ranges_base and update comment appropriately. Also pass die tag
1585 to dwarf2_ranges_process.
1586 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1587 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1588 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1589 need_ranges_base and update comment appropriately. Also pass die tag
1590 to read_attribute_reprocess and dwarf2_ranges_read.
1591 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1592 and update function comment appropriately.
1593 (read_loclist_index): Call read_loclists_rnglists_header instead of
1594 read_loclist_header.
1595 (read_rnglist_index): New function.
1596 (read_attribute_reprocess): Add tag parameter. Add code for
1597 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1598 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1599
3dcc261c
AB
16002020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1603 being resolved.
1604
ccb9eba6
AB
16052020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * arch-utils.c (show_architecture): Update formatting of messages.
1608
cf88be68
SM
16092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * gdbtypes.h (struct type) <bounds>: Handle array and string
1612 types.
1613 * ada-lang.c (assign_aggregate): Use type::bounds on
1614 array/string type.
1615 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1616 * c-varobj.c (c_number_of_children): Likewise.
1617 (c_describe_child): Likewise.
1618 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1619 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1620 (f_type_print_base): Likewise.
1621 * f-valprint.c (f77_array_offset_tbl): Likewise.
1622 (f77_get_upperbound): Likewise.
1623 (f77_print_array_1): Likewise.
1624 * guile/scm-type.c (gdbscm_type_range): Likewise.
1625 * m2-typeprint.c (m2_array): Likewise.
1626 (m2_is_long_set_of_type): Likewise.
1627 * m2-valprint.c (get_long_set_bounds): Likewise.
1628 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1629 * python/py-type.c (typy_range): Likewise.
1630 * rust-lang.c (rust_internal_print_type): Likewise.
1631 * type-stack.c (type_stack::follow_types): Likewise.
1632 * valarith.c (value_subscripted_rvalue): Likewise.
1633 * valops.c (value_cast): Likewise.
1634
509971ae
SM
16352020-07-12 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1638 callers to use the equivalent accessor methods.
1639
107406b7
SM
16402020-07-12 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1643 (struct type) <bit_stride>: New method.
1644 (TYPE_BIT_STRIDE): Remove.
1645 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1646
bb789949
SM
16472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1650 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1651 callers to use the equivalent accessor methods instead.
1652
39498edb
SM
16532020-07-12 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1656 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1657 callers to use the equivalent accessor methods instead.
1658
3b606f38
SM
16592020-07-12 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1662 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1663 to use dynamic_prop::kind.
1664
064d9cb9
SM
16652020-07-12 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1668 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1669 to get the bound property's kind and check against
1670 PROP_UNDEFINED.
1671
5537ddd0
SM
16722020-07-12 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1675 all callers to use type::range_bounds followed by
1676 dynamic_prop::{low,high}.
1677
8c2e4e06
SM
16782020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1681 const_val, set_const_val, baton, set_locexpr, set_loclist,
1682 set_addr_offset, variant_parts, set_variant_parts,
1683 original_type, set_original_type>: New methods.
1684 <kind>: Rename to...
1685 <m_kind>: ... this. Update all users to use the new methods
1686 instead.
1687 <data>: Rename to...
1688 <m_data>: ... this. Update all users to use the new methods
1689 instead.
1690
7c6f2712
SM
16912020-07-12 Simon Marchi <simon.marchi@efficios.com>
1692
1693 * gdbtypes.c (get_discrete_bounds): Return failure if
1694 the range type's bounds are not both defined and constant
1695 values.
1696 (get_array_bounds): Update comment. Remove undefined bound check.
1697
599088e3
SM
16982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1701 the type::bounds method directly.
1702
c4dfcb36
SM
17032020-07-12 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1706 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1707 are used to set the range type's bounds to use set_bounds.
1708
0a278aa7
PW
17092020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1710
1711 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1712
cce20f10
PA
17132020-07-10 Pedro Alves <pedro@palves.net>
1714
1715 * gdbthread.h (inferior_ref): Define.
1716 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1717 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1718 * thread.c
1719 (scoped_restore_current_thread::restore):
1720 Adjust to gdb::ref_ptr.
1721 (scoped_restore_current_thread::~scoped_restore_current_thread):
1722 Remove manual decref handling.
1723 (scoped_restore_current_thread::scoped_restore_current_thread):
1724 Adjust to use
1725 inferior_ref::new_reference/thread_info_ref::new_reference.
1726 Incref the thread before calling get_frame_id instead of after.
1727 Let TARGET_CLOSE_ERROR propagate.
1728
6d7aa592
PA
17292020-07-10 Pedro Alves <pedro@palves.net>
1730
1731 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1732 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1733 NOT_AVAILABLE_ERROR.
1734 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1735 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1736
b3e3a4c1
SM
17372020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1738 Pedro Alves <pedro@palves.net>
1739
1740 PR gdb/26199
1741 * infrun.c (threads_are_resumed_pending_p): Delete.
1742 (do_target_wait): Remove threads_are_executing and
1743 threads_are_resumed_pending_p checks from the inferior_matches
1744 lambda. Update comments.
1745
d6cc5d98
PA
17462020-07-10 Pedro Alves <pedro@palves.net>
1747
1748 PR gdb/26199
1749 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1750 executing threads.
1751
7d3badc6
PA
17522020-07-10 Pedro Alves <pedro@palves.net>
1753
1754 PR gdb/26199
1755 * infrun.c (handle_no_resumed): Handle multiple targets.
1756
42bd97a6
PA
17572020-07-10 Pedro Alves <pedro@palves.net>
1758
1759 PR gdb/26199
1760 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1761 target_is_async_p.
1762
43667cc6
PA
17632020-07-10 Pedro Alves <pedro@palves.net>
1764
1765 PR gdb/26199
1766 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1767 threads, not all threads.
1768
96118d11
PA
17692020-07-10 Pedro Alves <pedro@palves.net>
1770
1771 PR gdb/26199
1772 * remote.c (remote_target::open_1): Pass remote target pointer as
1773 data to create_async_event_handler.
1774 (remote_async_inferior_event_handler): Mark async event handler
1775 before returning if the remote target still has either pending
1776 events or unacknowledged notifications.
1777
54904d81
JB
17782020-07-10 John Baldwin <jhb@FreeBSD.org>
1779
1780 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1781 declaration.
1782 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1783 function.
1784
f37e5866
JB
17852020-07-09 John Baldwin <jhb@FreeBSD.org>
1786
1787 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1788 inferior_ptid.
1789
fc238d4a
JB
17902020-07-09 John Baldwin <jhb@FreeBSD.org>
1791
1792 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1793 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1794 AT_FREEBSD_PS_STRINGS.
1795
6e2469ff
HD
17962020-07-08 Hannes Domani <ssbssa@yahoo.de>
1797
1798 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1799 of debugfile path on Windows.
1800
d1076c41
JB
18012020-07-08 John Baldwin <jhb@FreeBSD.org>
1802
1803 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1804 argument to 'data'.
1805
15f3b077
TT
18062020-07-08 Tom Tromey <tromey@adacore.com>
1807
1808 * ada-lang.c (ada_exception_message_1): Use read_memory.
1809
9fc501fd
AB
18102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 PR python/22748
1813 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1814 special handling for inline frames.
1815 * findvar.c (value_of_register_lazy): Skip inline frames when
1816 creating lazy register values.
1817 * frame.c (frame_id_computed_p): Delete definition.
1818 * frame.h (frame_id_computed_p): Delete declaration.
1819
64cb3757
AB
18202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * NEWS: Mention additions to Python API.
1823 * python/py-arch.c (archpy_register_groups): New function.
1824 (arch_object_methods): Add 'register_groups' method.
1825 * python/py-registers.c (reggroup_iterator_object): New struct.
1826 (reggroup_object): New struct.
1827 (gdbpy_new_reggroup): New function.
1828 (gdbpy_reggroup_to_string): New function.
1829 (gdbpy_reggroup_name): New function.
1830 (gdbpy_reggroup_iter): New function.
1831 (gdbpy_reggroup_iter_next): New function.
1832 (gdbpy_new_reggroup_iterator): New function
1833 (gdbpy_initialize_registers): Register new types.
1834 (reggroup_iterator_object_type): Define new Python type.
1835 (gdbpy_reggroup_getset): New static global.
1836 (reggroup_object_type): Define new Python type.
1837 * python/python-internal.h
1838
0f767f94
AB
18392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1842 * python/py-arch.c (archpy_registers): New function.
1843 (arch_object_methods): Add 'registers' method.
1844 * python/py-registers.c: New file.
1845 * python/python-internal.h
1846 (gdbpy_new_register_descriptor_iterator): Declare.
1847 (gdbpy_initialize_registers): Declare.
1848 * python/python.c (do_start_initialization): Call
1849 gdbpy_initialize_registers.
1850 * NEWS: Mention additions to the Python API.
1851
87dbc774
AB
18522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * NEWS: Mention new Python API method.
1855 * python/py-unwind.c (pending_framepy_architecture): New function.
1856 (pending_frame_object_methods): Add architecture method.
1857
3bc98c0c
AB
18582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * gdbarch.c: Regenerate.
1861 * gdbarch.h: Regenerate.
1862 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1863 (gdbarch_data): Use internal_error for the case where
1864 deprecated_set_gdbarch_data was originally needed.
1865 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1866 and use passed in obstack.
1867 (libunwind_frame_set_descr): Should no longer get back NULL from
1868 gdbarch_data.
1869 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1870 type.
1871 * user-regs.c (user_regs_init): Update parameters, and use passed
1872 in obstack.
1873 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1874 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1875
d8cc8af6
TV
18762020-07-06 Tom de Vries <tdevries@suse.de>
1877
1878 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1879 End-Of-Sequence in lte_is_less_than.
1880 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1881 "gdb: Don't reorder line table entries too much when sorting".
1882
947f7597
TV
18832020-07-06 Tom de Vries <tdevries@suse.de>
1884
1885 PR tui/26205
1886 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1887
1e7c1b22
TV
18882020-07-05 Tom de Vries <tdevries@suse.de>
1889
1890 PR build/26187
1891 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1892 std::uncaught_exceptions instead of deprecated
1893 std::uncaught_exception.
1894
a36158ec
SM
18952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1896
1897 * macroexp.h (macro_stringify): Return
1898 gdb::unique_xmalloc_ptr<char>.
1899 * macroexp.c (macro_stringify): Likewise.
1900 * macrotab.c (fixup_definition): Update.
1901
14d960c8
SM
19022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1905 (lex_one_token): Update.
1906 * macroexp.c (struct macro_buffer) <release>: Return
1907 gdb::unique_xmalloc_ptr<char>.
1908 (macro_stringify): Update.
1909 (macro_expand): Update.
1910 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1911 * macroexp.h (macro_expand_next): Likewise.
1912
211d5b1c
SM
19132020-07-02 Simon Marchi <simon.marchi@efficios.com>
1914
1915 * macroexp.h (macro_lookup_ftype): Remove.
1916 (macro_expand, macro_expand_once, macro_expand_next): Remove
1917 lookup function parameters, add scope parameter.
1918 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1919 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1920 * macroscope.h (standard_macro_lookup): Change parameter type
1921 to macro_scope.
1922 * macroscope.c (standard_macro_lookup): Likewise.
1923 * c-exp.y (lex_one_token): Update.
1924 * macrocmd.c (macro_expand_command): Likewise.
1925 (macro_expand_once_command): Likewise.
1926
b1a35af2
SM
19272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * inf-loop.c (inferior_event_handler): Remove client_data param.
1930 * inf-loop.h (inferior_event_handler): Likewise.
1931 * infcmd.c (step_1): Adjust.
1932 * infrun.c (proceed): Adjust.
1933 (fetch_inferior_event): Remove client_data param.
1934 (infrun_async_inferior_event_handler): Adjust.
1935 * infrun.h (fetch_inferior_event): Remove `void *` param.
1936 * linux-nat.c (handle_target_event): Adjust.
1937 * record-btrace.c (record_btrace_handle_async_inferior_event):
1938 Adjust.
1939 * record-full.c (record_full_async_inferior_event_handler):
1940 Adjust.
1941 * remote.c (remote_async_inferior_event_handler): Adjust.
1942
1cdf9e33
TT
19432020-07-01 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1946 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1947
32c1e210
TT
19482020-07-01 Tom Tromey <tom@tromey.com>
1949
1950 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1951 tui_gen_win_info.
1952 (tui_win_info::make_window): Merge with
1953 tui_gen_win_info::make_window.
1954 (tui_win_info::make_visible): Move from tui_gen_win_info.
1955 * tui/tui-win.c (tui_win_info::max_width): Move from
1956 tui_gen_win_info.
1957 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1958 type.
1959 <window_factory>: Likewise.
1960 * tui/tui-layout.c (tui_win_info::resize): Move from
1961 tui_gen_win_info.
1962 (make_standard_window): Change return type.
1963 (get_locator_window, tui_get_window_by_name): Likewise.
1964 (tui_layout_window::apply): Remove a cast.
1965 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1966 (struct tui_win_info): Merge with tui_gen_win_info.
1967 (struct tui_gen_win_info): Remove.
1968
a30cb6da
TT
19692020-07-01 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-stack.h (struct tui_locator_window): Derive from
1972 tui_win_info.
1973 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1974 <can_box>: New method.
1975
1eb2161f
TT
19762020-07-01 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1979
7134f2eb
TT
19802020-07-01 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-regs.c (tui_data_window::display_registers_from)
1983 (tui_data_window::display_registers_from)
1984 (tui_data_window::first_data_item_displayed)
1985 (tui_data_window::delete_data_content_windows): Update.
1986 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1987 Remove.
1988 (tui_data_window::check_register_values): Update.
1989 (tui_data_item_window::rerender): Add parameters. Update.
1990 (tui_data_item_window::refresh_window): Remove.
1991 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1992 virtual.
1993 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1994 tui_gen_win_info.
1995 <refresh_window, max_height, min_height>: Remove.
1996 <rerender>: Add parameters.
1997 <x, y, visible>: New members.
1998 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1999 <m_item_width>: New member.
2000
22b7b041
TT
20012020-07-01 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-regs.c (tui_data_window::show_register_group)
2004 (tui_data_window::check_register_values): Update.
2005 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2006 from item_no.
2007
c9753adb
TT
20082020-07-01 Tom Tromey <tom@tromey.com>
2009
2010 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2011 useless "if".
2012
9ab26b4a
TT
20132020-07-01 Tom Tromey <tom@tromey.com>
2014
2015 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2016 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2017
e555083f
TT
20182020-07-01 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2021 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2022 (struct tui_line_or_address): Move from tui-data.h.
2023 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2024 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2025 (tui_cmd_window, tui_source_window_base, tui_source_window)
2026 (tui_disasm_window): Don't declare.
2027 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2028 to tui-winsource.h.
2029 (SINGLE_KEY): Move to tui-stack.c.
2030
7a02bab7
TT
20312020-07-01 Tom Tromey <tom@tromey.com>
2032
2033 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2034 std::string.
2035 * tui/tui-regs.c (class tab_expansion_file): New.
2036 (tab_expansion_file::write): New method.
2037 (tui_register_format): Change return type. Use
2038 tab_expansion_file.
2039 (tui_get_register, tui_data_window::display_registers_from)
2040 (tui_data_item_window::rerender): Update.
2041 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2042 * tui/tui-io.c (tui_expand_tabs): Remove.
2043
ea68593b
TT
20442020-07-01 Tom Tromey <tom@tromey.com>
2045
2046 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2047
a8caed5d
FS
20482020-07-01 Fangrui Song <maskray@google.com>
2049
2050 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2051
9cdf9820
AKS
20522020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2053
2054 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2055 forms for DW_AT_associated and DW_AT_allocated attributes,
2056 which is already checked in function attr_to_dynamic_prop.
2057
a1520ad8
TT
20582020-06-30 Tom Tromey <tromey@adacore.com>
2059
2060 * dwarf2/read.c (quirk_rust_enum): Correctly call
2061 alloc_rust_variant for default-less enum.
2062
5ac58899
TT
20632020-06-30 Tom Tromey <tromey@adacore.com>
2064
2065 PR build/26183:
2066 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2067 gdb::to_string.
2068
19b187a9
SM
20692020-06-29 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2072 * gdbarch.h: Re-generate.
2073
cd4c4c07
TT
20742020-06-28 Tom Tromey <tom@tromey.com>
2075
2076 * command.h (cmd_types): Remove.
2077 (cmd_type): Don't declare.
2078 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2079 typedef.
2080 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2081 * cli/cli-decode.c (cmd_type): Remove.
2082
05779d57
PA
20832020-06-27 Pedro Alves <palves@redhat.com>
2084
2085 * fork-child.c (prefork_hook): Adjust.
2086 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2087 Delete.
2088 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2089 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2090 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2091 Remove declarations.
2092 (struct inferior) <set_tty, tty>: New methods.
2093 (struct inferior) <terminal>: Rename to ...
2094 (struct inferior) <m_terminal>: ... this and make private.
2095 * main.c (captured_main_1): Adjust.
2096 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2097 (mi_cmd_inferior_tty_show): Adjust.
2098 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2099 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2100
1776e3e5
NA
21012020-06-26 Nick Alcock <nick.alcock@oracle.com>
2102
2103 * configure.ac: Add --enable-libctf: handle --disable-static
2104 properly.
2105 * acinclude.m4: sinclude ../config/enable.m4.
2106 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2107 (LIBCTF): Substitute in.
2108 (CTF_DEPS): New, likewise.
2109 (CLIBS): libctf needs symbols from libbfd: move earlier.
2110 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2111 flags.
2112 * ctfread.c: Surround in ENABLE_LIBCTF.
2113 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2114 * configure: Regenerate.
2115 * config.in: Likewise.
2116
58373b80
SM
21172020-06-25 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2120
277474ee
SM
21212020-06-25 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * inferior.h (struct inferior) <terminal>: Change type to
2124 gdb::unique_xmalloc_ptr<char>.
2125 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2126 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2127 field, adjust to unique pointer.
2128 (get_inferior_io_terminal): Adjust to unique pointer.
2129
6d74da72
AB
21302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2133 registers, not just the known core set of registers.
2134
2e52d038
AB
21352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2138 fflags, frm, and fcsr registers.
2139 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2140 restore groups.
2141 (riscv_tdesc_unknown_reg): New function.
2142 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2143 tdesc_use_registers.
2144 * riscv-tdep.h (struct gdbarch_tdep): Add
2145 unknown_csrs_first_regnum, unknown_csrs_count,
2146 duplicate_fflags_regnum, duplicate_frm_regnum, and
2147 duplicate_fcsr_regnum fields.
2148
be64fd07
AB
21492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2152 callback, use the callback (when not null) to help number unknown
2153 registers.
2154 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2155 (tdesc_use_registers): Add extra parameter to declaration.
2156
3b9fce96
AB
21572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2160 in the file.
2161 (class riscv_pending_register_alias): Likewise.
2162 (riscv_register_feature::register_info): Change 'required_p' field
2163 to 'required', and change its type. Add 'check' member function.
2164 (riscv_register_feature::register_info::check): Define new member
2165 function.
2166 (riscv_xreg_feature): Change initialisation of 'required' field.
2167 (riscv_freg_feature): Likewise.
2168 (riscv_virtual_feature): Likewise.
2169 (riscv_csr_feature): Likewise.
2170 (riscv_check_tdesc_feature): Take extra parameter, the csr
2171 tdesc_feature, rewrite the function to use the new
2172 riscv_register_feature::register_info::check function.
2173 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2174
865bad26
AB
21752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * features/Makefile: Remove all references to the deleted files
2178 below.
2179 * features/riscv/32bit-csr.c: Deleted.
2180 * features/riscv/32bit-csr.xml: Deleted.
2181 * features/riscv/64bit-csr.c: Deleted.
2182 * features/riscv/64bit-csr.xml: Deleted.
2183 * features/riscv/rebuild-csr-xml.sh: Deleted.
2184
ed69cbc8
AB
21852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2188 whitespace error for declaration of names member variable.
2189 (struct riscv_register_feature): Add new prefer_first_name member
2190 variable, and fix whitespace error in declaration of registers.
2191 (riscv_xreg_feature): Initialize prefer_first_name field.
2192 (riscv_freg_feature): Likewise.
2193 (riscv_virtual_feature): Likewise.
2194 (riscv_csr_feature): Likewise.
2195 (riscv_register_name): Expand on comments. Remove register name
2196 modifications for CSR and virtual registers.
2197
4445e8f5
AB
21982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2201 errors.
2202
767a879e
AB
22032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2206 riscv-opc.h.
2207 (class riscv_pending_register_alias): New class.
2208 (riscv_check_tdesc_feature): Take vector of pending aliases and
2209 populate it as appropriate.
2210 (riscv_setup_register_aliases): Delete.
2211 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2212 to riscv_check_tdesc_feature in all cases. Use the vector to
2213 create the register aliases.
2214
bb6e55f3
RO
22152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2216
2217 * sol2-tdep.c (sol2_static_transform_name): Remove.
2218 (sol2_init_abi): Don't register it.
2219 * gdbarch.sh (static_transform_name): Remove.
2220 * gdbarch.c, gdbarch.h: Regenerate.
2221
2222 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2223 gdbarch_static_transform_name.
2224 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2225 * stabsread.c (define_symbol) <'X'>: Remove.
2226 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2227 handling.
2228 <'V'>: Likewise.
2229 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2230 <'S'>: Remove call to gdbarch_static_transform_name.
2231
c6d36836
RO
22322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2233
2234 * procfs.c (procfs_pre_trace): New function.
2235 (procfs_target::create_inferior): Pass it to fork_inferior.
2236
a7e6196b
RO
22372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2238
2239 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2240 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2241 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2242 sol2-tdep.o, sparc-sol2-tdep.o.
2243 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2244 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2245 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2246 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2247
d412e696
RO
22482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2249
2250 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2251 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2252 Call sol2_init_abi.
2253 Remove calls to set_gdbarch_skip_solib_resolver,
2254 set_gdbarch_core_pid_to_str.
2255 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2256 (i386_sol2_static_transform_name): Remove.
2257 (i386_sol2_init_abi): Call sol2_init_abi.
2258 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2259 set_gdbarch_static_transform_name,
2260 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2261 Use sol2_sigtramp_p.
2262 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2263 (sol2_sigtramp_p): New function.
2264 (sol2_static_transform_name): New function.
2265 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2266 (sol2_init_abi): New function.
2267 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2268 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2269 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2270 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2271 (sparc_sol2_static_transform_name): Remove.
2272 (sparc32_sol2_init_abi): Call sol2_init_abi.
2273 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2274 set_gdbarch_static_transform_name,
2275 set_gdbarch_skip_solib_resolver,
2276 set_gdbarch_core_pid_to_str.
2277 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2278 (sparc_sol2_static_transform_name): Remove
2279 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2280 call sol2_sigtramp_p.
2281 (sparc64_sol2_init_abi): Call sol2_init_abi.
2282 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2283 set_gdbarch_static_transform_name,
2284 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2285
a8654e7d
PW
22862020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2287
2288 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2289 * exec.c (validate_exec_file): If from_tty, set both
2290 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2291 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2292 and from_tty, unconditionally ask a confirmation.
2293
caa7fd04
AB
22942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * target-descriptions.c (tdesc_architecture_name): Protect against
2297 NULL pointer dereference.
2298 (maint_print_xml_tdesc_cmd): New function.
2299 (_initialize_target_descriptions): Register new 'maint print
2300 xml-tdesc' command and give it the filename completer.
2301 * NEWS: Mention new 'maint print xml-tdesc' command.
2302
fbf42f4e
AB
23032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * target-descriptions.c (class tdesc_compatible_info): New class.
2306 (struct target_desc): Change type of compatible vector.
2307 (tdesc_compatible_p): Update for change in type of
2308 target_desc::compatible.
2309 (tdesc_compatible_info_list): New function.
2310 (tdesc_compatible_info_arch_name): New function.
2311 (tdesc_add_compatible): Update for change in type of
2312 target_desc::compatible.
2313 (print_c_tdesc::visit_pre): Likewise.
2314
20821f4e
AB
23152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2318 whitespace to underscore.
2319 (maint_print_c_tdesc_cmd): Use fake filename for target
2320 descriptions that came from the target.
2321 (_initialize_target_descriptions): Add filename command completion
2322 for 'maint print c-tdesc'.
2323
1fb5ee62
SM
23242020-06-23 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2327 lines.
2328
fc3ecb3e
SM
23292020-06-23 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2332 lines.
2333 (dwarf2_find_location_expression): Likewise.
2334 (call_site_parameter_matches): Likewise.
2335 (dwarf2_compile_expr_to_ax): Likewise.
2336 (disassemble_dwarf_expression): Likewise.
2337 (loclist_describe_location): Likewise.
2338
236ef034
PA
23392020-06-23 Pedro Alves <palves@redhat.com>
2340
2341 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2342 progspace-and-thread.h. Include scoped-mock-context.h instead.
2343 (register_to_value_test): Use scoped_mock_context.
2344 * regcache.c: Include "scoped-mock-context.h".
2345 (cooked_read_test): Don't error out if a target is already pushed.
2346 Use scoped_mock_context. Adjust.
2347 * scoped-mock-context.h: New file.
2348
39e7ecca
AB
23492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2352 initializer.
2353 (ada_language::is_string_type_p): New member function.
2354 * c-lang.c (c_language_data): Delete la_is_string_type_p
2355 initializer.
2356 (cplus_language_data): Likewise.
2357 (asm_language_data): Likewise.
2358 (minimal_language_data): Likewise.
2359 * d-lang.c (d_language_data): Likewise.
2360 * f-lang.c (f_is_string_type_p): Delete function, implementation
2361 moved to f_language::is_string_type_p.
2362 (f_language_data): Delete la_is_string_type_p initializer.
2363 (f_language::is_string_type_p): New member function,
2364 implementation from f_is_string_type_p.
2365 * go-lang.c (go_is_string_type_p): Delete function, implementation
2366 moved to go_language::is_string_type_p.
2367 (go_language_data): Delete la_is_string_type_p initializer.
2368 (go_language::is_string_type_p): New member function,
2369 implementation from go_is_string_type_p.
2370 * language.c (language_defn::is_string_type_p): Define new member
2371 function.
2372 (default_is_string_type_p): Make static, add comment copied from
2373 header file.
2374 (unknown_language_data): Delete la_is_string_type_p initializer.
2375 (unknown_language::is_string_type_p): New member function.
2376 (auto_language_data): Delete la_is_string_type_p initializer.
2377 (auto_language::is_string_type_p): New member function.
2378 * language.h (language_data): Delete la_is_string_type_p field.
2379 (language_defn::is_string_type_p): Declare new function.
2380 (default_is_string_type_p): Delete desclaration, move comment to
2381 definition.
2382 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2383 moved to m2_language::is_string_type_p.
2384 (m2_language_data): Delete la_is_string_type_p initializer.
2385 (m2_language::is_string_type_p): New member function,
2386 implementation from m2_is_string_type_p.
2387 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2388 initializer.
2389 * opencl-lang.c (opencl_language_data): Likewise.
2390 * p-lang.c (pascal_is_string_type_p): Delete function,
2391 implementation moved to pascal_language::is_string_type_p.
2392 (pascal_language_data): Delete la_is_string_type_p initializer.
2393 (pascal_language::is_string_type_p): New member function,
2394 implementation from pascal_is_string_type_p.
2395 * rust-lang.c (rust_is_string_type_p): Delete function,
2396 implementation moved to rust_language::is_string_type_p.
2397 (rust_language_data): Delete la_is_string_type_p initializer.
2398 (rust_language::is_string_type_p): New member function,
2399 implementation from rust_is_string_type_p.
2400 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2401 is_string_type_p.
2402
4ffc13fb
AB
24032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_language_data): Delete la_print_typedef
2406 initializer.
2407 (ada_language::print_typedef): New member function.
2408 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
2414 (f_language::print_typedef): New member function.
2415 * go-lang.c (go_language_data): Delete la_print_typedef
2416 initializer.
2417 * language.c (language_defn::print_typedef): Define member
2418 function.
2419 (unknown_language_data): Delete la_print_typedef initializer.
2420 (unknown_language::print_typedef): New member function.
2421 (auto_language_data): Delete la_print_typedef initializer.
2422 (auto_language::print_typedef): New member function.
2423 * language.h (language_data): Delete la_print_typedef field.
2424 (language_defn::print_typedef): Declare new member function.
2425 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2426 (default_print_typedef): Delete declaration.
2427 * m2-lang.c (m2_language_data): Delete la_print_typedef
2428 initializer.
2429 (m2_language::print_typedef): New member function.
2430 * objc-lang.c (objc_language_data): Delete la_print_typedef
2431 initializer.
2432 * opencl-lang.c (opencl_language_data): Likewise.
2433 * p-lang.c (pascal_language_data): Likewise.
2434 (pascal_language::print_typedef): New member function.
2435 * rust-lang.c (rust_print_typedef): Delete function,
2436 implementation moved to rust_language::print_typedef.
2437 (rust_language): Delete la_print_typedef initializer.
2438 (rust_language::print_typedef): New member function,
2439 implementation from rust_print_typedef.
2440 * typeprint.c (default_print_typedef): Delete.
2441
d711ee67
AB
24422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2445 (ada_language::printstr): New member function.
2446 * c-lang.c (c_language_data): Delete la_printstr initializer.
2447 (cplus_language_data): Likewise.
2448 (asm_language_data): Likewise.
2449 (minimal_language_data): Likewise.
2450 * d-lang.c (d_language_data): Likewise.
2451 * f-lang.c (f_printstr): Rename to f_language::printstr.
2452 (f_language_data): Delete la_printstr initializer.
2453 (f_language::printstr): New member function, implementation from
2454 f_printstr.
2455 * go-lang.c (go_language_data): Delete la_printstr initializer.
2456 * language.c (language_defn::printstr): Define new member
2457 function.
2458 (unk_lang_printstr): Delete.
2459 (unknown_language_data): Delete la_printstr initializer.
2460 (unknown_language::printstr): New member function.
2461 (auto_language_data): Delete la_printstr initializer.
2462 (auto_language::printstr): New member function.
2463 * language.h (language_data): Delete la_printstr field.
2464 (language_defn::printstr): Declare new member function.
2465 (LA_PRINT_STRING): Update call to printstr.
2466 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2467 (m2_language_data): Delete la_printstr initializer.
2468 (m2_language::printstr): New member function, implementation from
2469 m2_printstr.
2470 * objc-lang.c (objc_language_data): Delete la_printstr
2471 initializer.
2472 * opencl-lang.c (opencl_language_data): Likewise.
2473 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2474 (pascal_language_data): Delete la_printstr initializer.
2475 (pascal_language::printstr): New member function, implementation
2476 from pascal_printstr.
2477 * p-lang.h (pascal_printstr): Delete declaration.
2478 * rust-lang.c (rust_printstr): Update header comment.
2479 (rust_language_data): Delete la_printstr initializer.
2480 (rust_language::printstr): New member function.
2481
52b50f2c
AB
24822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2485 (ada_language::printchar): New member function.
2486 * c-lang.c (c_language_data): Delete la_printchar initializer.
2487 (cplus_language_data): Likewise.
2488 (asm_language_data): Likewise.
2489 (minimal_language_data): Likewise.
2490 * d-lang.c (d_language_data): Likewise.
2491 * f-lang.c (f_printchar): Rename to f_language::printchar.
2492 (f_language_data): Delete la_printchar initializer.
2493 (f_language::printchar): New member function, implementation from
2494 f_printchar.
2495 * go-lang.c (go_language_data): Delete la_printchar initializer.
2496 * language.c (unk_lang_printchar): Delete.
2497 (language_defn::printchar): Define new member function.
2498 (unknown_language_data): Delete la_printchar initializer.
2499 (unknown_language::printchar): New member function.
2500 (auto_language_data): Delete la_printchar initializer.
2501 (auto_language::printchar): New member function.
2502 * language.h (language_data): Delete la_printchar field.
2503 (language_defn::printchar): Declare new member function.
2504 (LA_PRINT_CHAR): Update call to printchar.
2505 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2506 (m2_language::printchar): New member function.
2507 * objc-lang.c (objc_language_data): Delete la_printchar
2508 initializer.
2509 * opencl-lang.c (opencl_language_data): Likewise.
2510 * p-lang.c (pascal_language_data): Delete la_printchar
2511 initializer.
2512 (pascal_language::printchar): New member function.
2513 * rust-lang.c (rust_printchar): Rename to
2514 rust_language::printchar.
2515 (rust_language_data): Delete la_printchar initializer.
2516 (rust_language::printchar): New member function, implementation
2517 from rust_printchar.
2518
ec8cec5b
AB
25192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2522 (ada_language_data): Delete la_emitchar initializer.
2523 (ada_language::emitchar): New member function, implementation from
2524 emit_char.
2525 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2526 (cplus_language_data): Likewise.
2527 (asm_language_data): Likewise.
2528 (minimal_language_data): Likewise.
2529 * d-lang.c (d_language_data): Likewise.
2530 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2531 (f_language_data): Delete la_emitchar initializer.
2532 (f_language::emitchar): New member function, implementation from
2533 f_emit_char.
2534 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2535 * language.c (unk_lang_emit_char): Delete.
2536 (language_defn::emitchar): New member function definition.
2537 (unknown_language_data): Delete la_emitchar initializer.
2538 (unknown_language::emitchar): New member function.
2539 (auto_language_data): Delete la_emitchar initializer.
2540 (auto_language::emitchar): New member function.
2541 * language.h (language_data): Delete la_emitchar field.
2542 (language_defn::emitchar): New member field declaration.
2543 (LA_EMIT_CHAR): Update call to emitchar.
2544 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2545 (m2_language_data): Delete la_emitchar initializer.
2546 (m2_language::emitchar): New member function, implementation from
2547 m2_emit_char.
2548 * objc-lang.c (objc_language_data): Delete la_emitchar
2549 initializer.
2550 * opencl-lang.c (opencl_language_data): Likewise.
2551 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2552 (pascal_language_data): Delete la_emitchar initializer.
2553 (pascal_language::emitchar): New member function, implementation
2554 from pascal_emit_char.
2555 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2556 (rust_language_data): Delete la_emitchar initializer.
2557 (rust_language::emitchar): New member function, implementation
2558 from rust_emitchar.
2559
1bf9c363
AB
25602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2563 (ada_language_data): Delete la_post_parser initializer.
2564 (ada_language::post_parser): New member function.
2565 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2566 (cplus_language_data): Likewise.
2567 (asm_language_data): Likewise.
2568 (minimal_language_data): Likewise.
2569 * d-lang.c (d_language_data): Likewise.
2570 * f-lang.c (f_language_data): Likewise.
2571 * go-lang.c (go_language_data): Likewise.
2572 * language.c (unknown_language_data): Likewise.
2573 (auto_language_data): Likewise.
2574 * language.h (language_data): Delete la_post_parser field.
2575 (language_defn::post_parser): New member function.
2576 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2577 * objc-lang.c (objc_language_data): Likewise.
2578 * opencl-lang.c (opencl_language_data): Likewise.
2579 * p-lang.c (pascal_language_data): Likewise.
2580 * parse.c (parse_exp_in_context): Update call to post_parser.
2581 (null_post_parser): Delete definition.
2582 * parser-defs.h (null_post_parser): Delete declaration.
2583 * rust-lang.c (rust_language_data): Delete la_post_parser
2584 initializer.
2585
87afa652
AB
25862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * ada-lang.c (parse): Rename to ada_language::parser.
2589 (ada_language_data): Delete la_parser initializer.
2590 (ada_language::parser): New member function, implementation from
2591 parse.
2592 * c-lang.c (c_language_data): Delete la_parser initializer.
2593 (cplus_language_data): Likewise.
2594 (asm_language_data): Likewise.
2595 (minimal_language_data): Likewise.
2596 * d-lang.c (d_language_data): Likewise.
2597 (d_language::parser): New member function.
2598 * f-lang.c (f_language_data): Delete la_parser initializer.
2599 (f_language::parser): New member function.
2600 * go-lang.c (go_language_data): Delete la_parser initializer.
2601 (go_language::parser): New member function.
2602 * language.c (unk_lang_parser): Delete.
2603 (language_defn::parser): Define new member function.
2604 (unknown_language_data): Delete la_parser initializer.
2605 (unknown_language::parser): New member function.
2606 (auto_language_data): Delete la_parser initializer.
2607 (auto_language::parser): New member function.
2608 * language.h (language_data): Delete la_parser field.
2609 (language_defn::parser): Declare new member function.
2610 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2611 (m2_language::parser): New member function.
2612 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2613 * opencl-lang.c (opencl_language_data): Likewise.
2614 * p-lang.c (pascal_language_data): Likewise.
2615 (pascal_language::parser): New member function.
2616 * parse.c (parse_exp_in_context): Update call to parser.
2617 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2618 (rust_language::parser): New member function.
2619
37825800
AB
26202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * top.c (print_gdb_configuration): Print --with-python-libdir
2623 configuration value.
2624
5b860c93
PW
26252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2626
2627 * NEWS: Mention change to the alias command.
2628
cf00cd6f
PW
26292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2630
2631 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2632 (alias_command_completer)
2633 (make_alias_options_def_group): New functions.
2634 (alias_opts, alias_option_defs): New struct and array.
2635 (alias_usage_error): Update usage.
2636 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2637 Use option framework.
2638 (_initialize_cli_cmds): Update alias command help.
2639 Update aliases command help.
2640 (show_user):
2641 Add NULL for new default_args lookup_cmd argument.
2642 (valid_command_p): Rename to validate_aliased_command.
2643 Add NULL for new default_args lookup_cmd argument. Verify that the
2644 aliased_command has no default args.
2645 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2646 (lookup_cmd_1, lookup_cmd): New argument default_args.
2647 (add_alias_cmd):
2648 Add NULL for new default_args lookup_cmd argument.
2649 (print_help_for_command): Show default args under the layout
2650 alias some_alias = some_aliased_cmd some_alias_default_arg.
2651 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2652 xfree default_args in destructor.
2653 * cli/cli-script.c (process_next_line, do_define_command):
2654 Add NULL for new default_args lookup_cmd argument.
2655 * command.h: Declare new default_args argument in lookup_cmd
2656 and lookup_cmd_1.
2657 * completer.c (complete_line_internal_1):
2658 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2659 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2660 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2661 Likewise.
2662 * infcmd.c (_initialize_infcmd): Likewise.
2663 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2664 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2665 * python/py-param.c (add_setshow_generic): Likewise.
2666 * remote.c (_initialize_remote): Likewise.
2667 * top.c (execute_command): Prepend default_args if command has some.
2668 (set_verbose):
2669 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2670 * tracepoint.c (validate_actionline, encode_actions_1):
2671 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2672
bd920864
TBA
26732020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2674
2675 * jit.c (jit_read_descriptor): Use bool as the return type.
2676 (jit_breakpoint_re_set_internal): Use bool as the return type.
2677 Invert the return value logic; return true if the jit breakpoint
2678 has been successfully initialized.
2679 (jit_inferior_init): Update the call to
2680 jit_breakpoint_re_set_internal.
2681
f8098322
PA
26822020-06-22 Pedro Alves <palves@redhat.com>
2683
2684 PR gdb/25939
2685 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2686 Use the current inferior instead. Don't return
2687 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2688 wait again.
2689 * sol-thread.c (sol_thread_target::wait): Don't reference
2690 inferior_ptid.
2691 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2692 (sol_update_thread_list_callback): Use the current inferior's pid
2693 instead of inferior_ptid.
2694
196535a6
RO
26952020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2696
2697 * procfs.c: Cleanup many comments.
2698
2699 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2700 (AFTER_WATCHFLAG): Replace by value.
2701
2702 (MAIN_PROC_NAME_FORMAT): Inline ...
2703 (create_procinfo): ... here.
2704
2705 (procfs_debug_inferior): Remove SYS_exec handling.
2706 (syscall_is_exec): Likewise.
2707 (procfs_set_exec_trap): Likewise.
2708
2709 (syscall_is_lwp_exit): Inline in callers.
2710 (syscall_is_exit): Likewise.
2711 (syscall_is_exec): Likewise.
2712 (syscall_is_lwp_create): Likewise.
2713
2714 (invalidate_cache): Remove #if 0 code.
2715
2716 (make_signal_thread_runnable): Remove.
2717 (procfs_target::resume): Remove #if 0 code.
2718
cf6f3e86
RO
27192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2720
2721 PR gdb/25939
2722 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2723 call ...
2724 (procfs_target::create_inferior): ... here.
2725
48e9cc84
PW
27262020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2727
2728 * exec.c (validate_exec_file): Ensure the build-id is up to
2729 date by calling reopen_exec_file (that checks file timestamp
2730 to decide to re-read the file).
2731
3922b302
PA
27322020-06-18 Pedro Alves <palves@redhat.com>
2733
2734 PR gdb/25412
2735 * gdbthread.h (delete_thread, delete_thread_silent)
2736 (find_thread_ptid): Update comments.
2737 * thread.c (current_thread_): New global.
2738 (is_current_thread): Move higher, and reimplement.
2739 (inferior_thread): Reimplement.
2740 (set_thread_exited): Use bool. Add assertions.
2741 (add_thread_silent): Simplify thread-reuse handling by always
2742 calling delete_thread.
2743 (delete_thread): Remove intro comment.
2744 (find_thread_ptid): Skip exited threads.
2745 (switch_to_thread_no_regs): Write to current_thread_.
2746 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2747 INFERIOR_PTID. Clear current_thread_.
2748
6dbdab44
PA
27492020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * aix-thread.c (pd_update): Use switch_to_thread.
2752
2da4b788
PA
27532020-06-18 Pedro Alves <palves@redhat.com>
2754
2755 * ravenscar-thread.c (ravenscar_thread_target): Update.
2756 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2757 (ravenscar_thread_target::add_active_thread): ... this. Don't
2758 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2759 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2760
50838d1b
PA
27612020-06-18 Pedro Alves <palves@redhat.com>
2762
2763 * nat/windows-nat.c (current_windows_thread): Remove.
2764 * nat/windows-nat.h (current_windows_thread): Remove.
2765 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2766 Adjust.
2767 (display_selectors): Adjust to fetch the current
2768 windows_thread_info based on inferior_ptid.
2769 (fake_create_process): No longer write to current_windows_thread.
2770 (windows_nat_target::get_windows_debug_event):
2771 Don't set inferior_ptid or current_windows_thread.
2772 (windows_nat_target::wait): Adjust to not rely on
2773 current_windows_thread.
2774 (do_initial_windows_stuff): Now a method of windows_nat_target.
2775 Switch to the last_ptid thread.
2776 (windows_nat_target::attach): Adjust.
2777 (windows_nat_target::detach): Use switch_to_no_thread instead of
2778 writing to inferior_ptid directly.
2779 (windows_nat_target::create_inferior): Adjust.
2780
31ce04e9
PA
27812020-06-18 Pedro Alves <palves@redhat.com>
2782
2783 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2784
1ee1a363
PA
27852020-06-18 Pedro Alves <palves@redhat.com>
2786
2787 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2788 after creating it, instead of writing to inferior_ptid. Don't
2789 write to inferior_ptid.
2790
6d350754
PA
27912020-06-18 Pedro Alves <palves@redhat.com>
2792
2793 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2794
5d971d48
PA
27952020-06-18 Pedro Alves <palves@redhat.com>
2796
2797 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2798 it, instead of writing to inferior_ptid.
2799
86e57d1b
PA
28002020-06-18 Pedro Alves <palves@redhat.com>
2801
2802 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2803 to inferior_ptid.
2804
f2e1c129
PA
28052020-06-18 Pedro Alves <palves@redhat.com>
2806
2807 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2808 instead of writing to inferior_ptid directly.
2809
60db1b85
PA
28102020-06-18 Pedro Alves <palves@redhat.com>
2811
2812 * corelow.c (core_target::close): Use switch_to_no_thread instead
2813 of writing to inferior_ptid directly.
2814 (add_to_thread_list, core_target_open): Use switch_to_thread
2815 instead of writing to inferior_ptid directly.
2816
fe7d6a8d
PA
28172020-06-18 Pedro Alves <palves@redhat.com>
2818
2819 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2820 inferior_ptid.
2821 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2822 inferior_ptid.
2823 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2824 inferior_ptid directly.
2825 (darwin_nat_target::init_thread_list): Switch to thread, instead
2826 of writing to inferior_ptid.
2827 (darwin_nat_target::attach): Don't write to inferior_ptid.
2828 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2829
975f8708
PA
28302020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2833 thread.
2834 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2835 Instead use switch_to_thread.
2836 (gnu_nat_target::detach): Use switch_to_no_thread
2837 instead of writing to inferior_ptid directly. Used passed-in
2838 inferior instead of looking up the inferior by pid.
2839
1a204730
PA
28402020-06-18 Pedro Alves <palves@redhat.com>
2841
2842 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2843 inferior_ptid.
2844
ebe84f23
PA
28452020-06-18 Pedro Alves <palves@redhat.com>
2846
2847 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2848 inferior_ptid.
2849 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2850 thread.
2851 (nto_procfs_target::detach): Avoid referencing
2852 inferior_ptid. Use switch_to_no_thread instead of writing to
2853 inferior_ptid directly.
2854 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2855 instead of writing to inferior_ptid directly.
2856 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2857 to thread.
2858
191f02e5
PA
28592020-06-18 Pedro Alves <palves@redhat.com>
2860
2861 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2862 after creating it, instead of writing to inferior_ptid.
2863 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2864 to inferior_ptid directly.
2865 (gdbsim_target::wait): Don't write to inferior_ptid.
2866
0ac55310
PA
28672020-06-18 Pedro Alves <palves@redhat.com>
2868
2869 * remote.c (remote_target::remote_notice_new_inferior): Use
2870 switch_to_thread instead of writing to inferior_ptid directly.
2871 (remote_target::add_current_inferior_and_thread): Use
2872 switch_to_no_thread instead of writing to inferior_ptid directly.
2873 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2874 and switch_to_thread instead of using set_current_inferior or
2875 writing to inferior_ptid directly.
2876
5233f39b
PA
28772020-06-18 Pedro Alves <palves@redhat.com>
2878
2879 * tracectf.c (ctf_target_open): Switch to added thread instead of
2880 writing to inferior_ptid directly.
2881 (ctf_target::close): Use switch_to_no_thread instead of writing to
2882 inferior_ptid directly.
2883
087e161b
PA
28842020-06-18 Pedro Alves <palves@redhat.com>
2885
2886 * tracefile-tfile.c (tfile_target_open): Don't write to
2887 inferior_ptid directly, instead switch to added thread.
2888 (tfile_target::close): Use switch_to_no_thread instead of writing
2889 to inferior_ptid directly.
2890
7fb43e53
PA
28912020-06-18 Pedro Alves <palves@redhat.com>
2892
2893 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2894 (procfs_target::detach): Use switch_to_no_thread
2895 instead of writing to inferior_ptid directly.
2896 (do_attach): Change return type to void. Switch to the added
2897 thread.
2898 (procfs_target::create_inferior): Switch to the added thread.
2899 (procfs_do_thread_registers): Don't write to inferior_ptid.
2900
18493a00
PA
29012020-06-18 Pedro Alves <palves@redhat.com>
2902
2903 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2904 of writing to inferior_ptid.
2905 (scoped_restore_exited_inferior): Delete.
2906 (handle_vfork_child_exec_or_exit): Simplify using
2907 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2908 instead of writing to inferior_ptid.
2909 (THREAD_STOPPED_BY): Delete.
2910 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2911 (thread_stopped_by_hw_breakpoint): Delete.
2912 (save_waitstatus): Use
2913 scoped_restore_current_thread+switch_to_thread, and call
2914 target_stopped_by_watchpoint instead of
2915 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2916 instead of thread_stopped_by_sw_breakpoint, and
2917 target_stopped_by_hw_breakpoint instead of
2918 thread_stopped_by_hw_breakpoint.
2919 (handle_inferior_event)
2920 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2921 inferior_ptid directly, nor
2922 set_current_inferior/set_current_program_space. Use
2923 switch_to_thread / switch_to_inferior_no_thread instead.
2924
a0776b13
PA
29252020-06-18 Pedro Alves <palves@redhat.com>
2926
2927 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2928 instead of writing to inferior_ptid.
2929
6155c136
PA
29302020-06-18 Pedro Alves <palves@redhat.com>
2931
2932 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2933 added thread.
2934 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2935 to the added thread.
2936 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2937 instead of writing to inferior_ptid.
2938
c5316fc6
PA
29392020-06-18 Pedro Alves <palves@redhat.com>
2940
2941 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2942 (register_to_value_test): Mock a program_space too. Heap-allocate
2943 the address space. Don't write to inferior_ptid. Use
2944 switch_to_thread instead.
2945
8df01799
PA
29462020-06-18 Pedro Alves <palves@redhat.com>
2947
2948 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2949 Delete.
2950 (find_signalled_thread()): New, factored out from
2951 linux_make_corefile_notes and adjusted to handle exited threads.
2952 (linux_make_corefile_notes): Adjust to use the new
2953 find_signalled_thread.
2954
41792d68
PA
29552020-06-18 Pedro Alves <palves@redhat.com>
2956
2957 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2958 of saving/restoring inferior_ptid.
2959
612f258a
TT
29602020-06-17 Tom Tromey <tom@tromey.com>
2961
2962 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2963 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2964 declare.
2965 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2966
efb763a5
SM
29672020-06-15 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2970 of partial symtabs.
2971
2951f6c0
SM
29722020-06-17 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * regformats/reg-arm.dat: Remove.
2975 * regformats/reg-bfin.dat: Remove.
2976 * regformats/reg-cris.dat: Remove.
2977 * regformats/reg-crisv32.dat: Remove.
2978 * regformats/reg-m32r.dat: Remove.
2979 * regformats/reg-tilegx.dat: Remove.
2980 * regformats/reg-tilegx32.dat: Remove.
2981
7d458ea5
SM
29822020-06-17 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * features/Makefile (WHICH): Remove arm files.
2985 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2986 * regformats/arm/arm-with-neon.dat: Remove.
2987 * regformats/arm/arm-with-vfpv2.dat: Remove.
2988 * regformats/arm/arm-with-vfpv3.dat: Remove.
2989
3af96c0d
SM
29902020-06-17 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * features/Makefile (XMLTOC): Remove rx.xml.
2993
b25e22fd
PA
29942020-06-17 Pedro Alves <palves@redhat.com>
2995
2996 * gdbthread.h (thread_control_state) <trap_expected> Update
2997 comments.
2998
a78a19b1
AB
29992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3002 ada_language::lookup_symbol_nonlocal.
3003 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3004 (ada_language::lookup_symbol_nonlocal): New member function,
3005 implementation from ada_lookup_symbol_nonlocal.
3006 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3007 initializer.
3008 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3009 initializer.
3010 (cplus_language::lookup_symbol_nonlocal): New member function.
3011 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3012 (minimal_language_data) Likewise.
3013 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3014 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3015 initializer.
3016 (d_language::lookup_symbol_nonlocal): New member function.
3017 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3018 initializer.
3019 (f_language::lookup_symbol_nonlocal): New member function.
3020 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3021 initializer.
3022 * language.c (unknown_language_data): Likewise.
3023 (auto_language_data): Likewise.
3024 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3025 field.
3026 (language_defn::lookup_symbol_nonlocal): New member function.
3027 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3028 initializer.
3029 * objc-lang.c (objc_language_data): Likewise.
3030 * opencl-lang.c (opencl_language_data): Likewise.
3031 * p-lang.c (pascal_language_data): Likewise.
3032 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3033 rust_language::lookup_symbol_nonlocal.
3034 (rust_language_data): Delete la_lookup_symbol_nonlocal
3035 initializer.
3036 (rust_language::lookup_symbol_nonlocal): New member function,
3037 implementation from rust_lookup_symbol_nonlocal.
3038 * symtab.c (lookup_symbol_aux): Update call to
3039 lookup_symbol_nonlocal.
3040 (basic_lookup_symbol_nonlocal): Rename to...
3041 (language_defn::lookup_symbol_nonlocal): ...this, and update
3042 header comment. Remove language_defn parameter, and replace with
3043 uses of `this'.
3044 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3045
ebe2334e
AB
30462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3047
3048 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3049 initializer.
3050 (ada_language::value_print_inner): New member function.
3051 * c-lang.c (c_language_data): Delete la_value_print_inner
3052 initializer.
3053 (cplus_language_data): Likewise.
3054 (asm_language_data): Likewise.
3055 (minimal_language_data): Likewise.
3056 * d-lang.c (d_language_data): Likewise.
3057 (d_language::value_print_inner): New member function.
3058 * f-lang.c (f_language_data): Delete la_value_print_inner
3059 initializer.
3060 (f_language::value_print_inner): New member function.
3061 * f-lang.h (f_value_print_innner): Rename to...
3062 (f_value_print_inner): ...this (note spelling of 'inner').
3063 * f-valprint.c (f_value_print_innner): Rename to...
3064 (f_value_print_inner): ...this (note spelling of 'inner').
3065 * go-lang.c (go_language_data): Delete la_value_print_inner
3066 initializer.
3067 (go_language::value_print_inner): New member function.
3068 * language.c (language_defn::value_print_inner): Define new member
3069 function.
3070 (unk_lang_value_print_inner): Delete.
3071 (unknown_language_data): Delete la_value_print_inner initializer.
3072 (unknown_language::value_print_inner): New member function.
3073 (auto_language_data): Delete la_value_print_inner initializer.
3074 (auto_language::value_print_inner): New member function.
3075 * language.h (language_data): Delete la_value_print_inner field.
3076 (language_defn::value_print_inner): Delcare new member function.
3077 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3078 initializer.
3079 (m2_language::value_print_inner): New member function.
3080 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3081 initializer.
3082 * opencl-lang.c (opencl_language_data): Likewise.
3083 * p-lang.c (pascal_language_data): Likewise.
3084 (pascal_language::value_print_inner): New member function.
3085 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3086 initializer.
3087 (rust_language::value_print_inner): New member function.
3088 * valprint.c (do_val_print): Update call to value_print_inner.
3089
a1d1fa3e
AB
30902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * ada-lang.c (ada_language_data): Delete la_value_print
3093 initializer.
3094 (ada_language::value_print): New member function.
3095 * c-lang.c (c_language_data): Delete la_value_print initializer.
3096 (cplus_language_data): Likewise.
3097 (asm_language_data): Likewise.
3098 (minimal_language_data): Likewise.
3099 * d-lang.c (d_language_data): Likewise.
3100 * f-lang.c (f_language_data): Likewise.
3101 * go-lang.c (go_language_data): Likewise.
3102 * language.c (unk_lang_value_print): Delete.
3103 (language_defn::value_print): Define new member function.
3104 (unknown_language_data): Delete la_value_print initializer.
3105 (unknown_language::value_print): New member function.
3106 (auto_language_data): Delete la_value_print initializer.
3107 (auto_language::value_print): New member function.
3108 * language.h (language_data): Delete la_value_print field.
3109 (language_defn::value_print): Declare new member function.
3110 (LA_VALUE_PRINT): Update call to value_print.
3111 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3112 * objc-lang.c (objc_language_data): Likewise.
3113 * opencl-lang.c (opencl_language_data): Likewise.
3114 * p-lang.c (pascal_language_data): Likewise.
3115 (pascal_language::value_print): New member function.
3116 * rust-lang.c (rust_language_data): Delete la_value_print
3117 initializer.
3118
f16a9f57
AB
31192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * ada-lang.c (ada_watch_location_expression): Rename to
3122 ada_language::watch_location_expression.
3123 (ada_language_data): Delete la_watch_location_expression
3124 initializer.
3125 (ada_language::watch_location_expression): New member function,
3126 implementation from ada_watch_location_expression.
3127 * breakpoint.c (watch_command_1): Update call to
3128 watch_location_expression.
3129 * c-lang.c (c_watch_location_expression): Rename to
3130 language_defn::watch_location_expression.
3131 (c_language_data): Delete la_watch_location_expression
3132 initializer.
3133 (cplus_language_data): Likewise.
3134 (asm_language_data): Likewise.
3135 (minimal_language_data): Likewise.
3136 * c-lang.h (c_watch_location_expression): Delete declaration.
3137 * d-lang.c (d_language_data): Delete la_watch_location_expression
3138 initializer.
3139 * f-lang.c (f_language_data): Likewise.
3140 * go-lang.c (go_language_data): Likewise.
3141 * language.c (language_defn::watch_location_expression): Member
3142 function implementation from c_watch_location_expression.
3143 (unknown_language_data): Delete la_watch_location_expression
3144 initializer.
3145 (auto_language_data): Likewise.
3146 * language.h (language_data): Delete la_watch_location_expression
3147 field.
3148 (language_defn::watch_location_expression): Declare new member
3149 function.
3150 * m2-lang.c (m2_language_data): Delete
3151 la_watch_location_expression initializer.
3152 * objc-lang.c (objc_language_data): Likewise.
3153 * opencl-lang.c (opencl_language_data): Likewise.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 * rust-lang.c (rust_watch_location_expression): Rename to
3156 rust_language::watch_location_expression.
3157 (rust_language_data): Delete la_watch_location_expression
3158 initializer.
3159 (rust_language::watch_location_expression): New member function,
3160 implementation from rust_watch_location_expression.
3161
7e56227d
AB
31622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3165 ada_language::collect_symbol_completion_matches.
3166 (ada_language_data): Delete la_collect_symbol_completion_matches
3167 initializer.
3168 (ada_language::collect_symbol_completion_matches): New member
3169 function, implementation from
3170 ada_collect_symbol_completion_matches.
3171 * c-lang.c (c_language_data): Delete
3172 la_collect_symbol_completion_matches initializer.
3173 (cplus_language_data): Likewise.
3174 (asm_language_data): Likewise.
3175 (minimal_language_data): Likewise.
3176 * d-lang.c (d_language_data): Likewise.
3177 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3178 f_language::collect_symbol_completion_matches.
3179 (f_language_data): Delete la_collect_symbol_completion_matches
3180 initializer.
3181 (f_language::collect_symbol_completion_matches) New member
3182 function, implementation from f_collect_symbol_completion_matches.
3183 * go-lang.c (go_language_data): Delete
3184 la_collect_symbol_completion_matches initializer.
3185 * language.c (unknown_language_data): Likewise.
3186 (auto_language_data): Likewise.
3187 * language.h (language_data): Delete
3188 la_collect_symbol_completion_matches field.
3189 (language_defn::collect_symbol_completion_matches): New member
3190 function.
3191 * m2-lang.c (m2_language_data): Delete
3192 la_collect_symbol_completion_matches initializer.
3193 * objc-lang.c (objc_language_data): Likewise.
3194 * opencl-lang.c (opencl_language_data): Likewise.
3195 * p-lang.c (pascal_language_data): Likewise.
3196 * rust-lang.c (rust_language_data): Likewise.
3197 * symtab.c (default_collect_symbol_completion_matches): Delete.
3198 (collect_symbol_completion_matches): Update call to
3199 collect_symbol_completion_matches.
3200 (collect_symbol_completion_matches_type): Likewise.
3201 * symtab.h (default_collect_symbol_completion_matches): Delete
3202 declaration.
3203
53fc67f8
AB
32042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3207 (ada_language_data): Delete la_word_break_characters initializer.
3208 (ada_language::word_break_characters): New member function.
3209 * c-lang.c (c_language_data): Delete la_word_break_characters
3210 initializer.
3211 (cplus_language_data): Likewise.
3212 (asm_language_data): Likewise.
3213 (minimal_language_data): Likewise.
3214 * completer.c: Update global comment.
3215 (advance_to_expression_complete_word_point): Update call to
3216 word_break_characters.
3217 (complete_files_symbols): Likewise.
3218 (complete_line_internal_1): Likewise.
3219 (default_completer_handle_brkchars): Likewise.
3220 (skip_quoted_chars): Likewise.
3221 * d-lang.c (d_language_data): Delete la_word_break_characters
3222 initializer.
3223 * f-lang.c (f_word_break_characters): Delete.
3224 (f_language_data): Delete la_word_break_characters initializer.
3225 (f_language::word_break_characters): New member function.
3226 * go-lang.c (go_language_data): Delete la_word_break_characters
3227 initializer.
3228 * language.c (unknown_language_data): Likewise.
3229 (auto_language_data): Likewise.
3230 * language.h (default_word_break_characters): Move declaration to
3231 earlier in the file.
3232 (language_data): Delete la_word_break_characters field.
3233 (language_defn::word_break_characters): New member function.
3234 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3235 initializer.
3236 * objc-lang.c (objc_language_data): Likewise.
3237 * opencl-lang.c (opencl_language_data): Likewise.
3238 * p-lang.c (pascal_language_data): Likewise.
3239 * rust-lang.c (rust_language_data): Likewise.
3240
c9debfb9
AB
32412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3244 (ada_language_data): Delete la_get_symbol_name_matcher
3245 initializer.
3246 (language_defn::get_symbol_name_matcher_inner): New member
3247 function.
3248 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3249 initializer.
3250 (cplus_language_data): Likewise.
3251 (cplus_language::get_symbol_name_matcher_inner): New member
3252 function.
3253 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3254 (minimal_language_data): Likewise.
3255 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3256 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3257 initializer.
3258 * dictionary.c (iter_match_first_hashed): Update call to
3259 get_symbol_name_matcher.
3260 (iter_match_next_hashed): Likewise.
3261 (iter_match_next_linear): Likewise.
3262 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3263 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3264 initializer.
3265 (f_language::get_symbol_name_matcher_inner): New member function.
3266 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3267 initializer.
3268 * language.c (default_symbol_name_matcher): Update header comment,
3269 make static.
3270 (language_defn::get_symbol_name_matcher): New definition.
3271 (language_defn::get_symbol_name_matcher_inner): Likewise.
3272 (get_symbol_name_matcher): Delete.
3273 (unknown_language_data): Delete la_get_symbol_name_matcher
3274 initializer.
3275 (auto_language_data): Likewise.
3276 * language.h (language_data): Delete la_get_symbol_name_matcher
3277 field.
3278 (language_defn::get_symbol_name_matcher): New member function.
3279 (language_defn::get_symbol_name_matcher_inner): Likewise.
3280 (default_symbol_name_matcher): Delete declaration.
3281 * linespec.c (find_methods): Update call to
3282 get_symbol_name_matcher.
3283 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3284 initializer.
3285 * minsyms.c (lookup_minimal_symbol): Update call to
3286 get_symbol_name_matcher.
3287 (iterate_over_minimal_symbols): Likewise.
3288 * objc-lang.c (objc_language_data): Delete
3289 la_get_symbol_name_matcher initializer.
3290 * opencl-lang.c (opencl_language_data): Likewise.
3291 * p-lang.c (pascal_language_data): Likewise.
3292 * psymtab.c (psymbol_name_matches): Update call to
3293 get_symbol_name_matcher.
3294 * rust-lang.c (rust_language_data): Delete
3295 la_get_symbol_name_matcher initializer.
3296 * symtab.c (symbol_matches_search_name): Update call to
3297 get_symbol_name_matcher.
3298 (compare_symbol_name): Likewise.
3299
9a49ad8c
AB
33002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * ada-lang.c (ada_language_data): Delete la_compute_program
3303 initializer.
3304 * c-lang.c (c_language_data): Likewise.
3305 (c_language::compute_program): New member function.
3306 (cplus_language_data): Delete la_compute_program initializer.
3307 (cplus_language::compute_program): New member function.
3308 (asm_language_data): Delete la_compute_program initializer.
3309 (minimal_language_data): Likewise.
3310 * c-lang.h (c_compute_program): Update comment.
3311 (cplus_compute_program): Likewise.
3312 * compile/compile-c-support.c (c_compute_program): Likewise.
3313 (cplus_compute_program): Likewise.
3314 * compile/compile.c (compile_to_object): Update call to
3315 la_compute_program.
3316 * d-lang.c (d_language_data): Delete la_compute_program
3317 initializer.
3318 * f-lang.c (f_language_data): Likewise.
3319 * go-lang.c (go_language_data): Likewise.
3320 * language.c (unknown_language_data): Likewise.
3321 (auto_language_data): Likewise.
3322 * language.h (language_data): Delete la_compute_program field.
3323 (language_defn::compute_program): New member function.
3324 * m2-lang.c (m2_language_data): Delete la_compute_program
3325 initializer.
3326 * objc-lang.c (objc_language_data): Likewise.
3327 * opencl-lang.c (opencl_language_data): Likewise.
3328 * p-lang.c (pascal_language_data): Likewise.
3329 * rust-lang.c (rust_language_data): Likewise.
3330
eff93b4d
AB
33312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3332
3333 * ada-lang.c (ada_language_data) Delete
3334 la_class_name_from_physname initializer.
3335 * c-lang.c (c_language_data): Likewise.
3336 (cplus_language_data): Likewise.
3337 (cplus_language::class_name_from_physname): New member function.
3338 (asm_language_data): Delete la_class_name_from_physname
3339 initializer.
3340 (minimal_language_data): Likewise.
3341 * d-lang.c (d_language_data): Likewise.
3342 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3343 method on language_defn class.
3344 (guess_full_die_structure_name): Likewise.
3345 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3346 initializer.
3347 * go-lang.c (go_language_data): Likewise.
3348 * language.c (language_class_name_from_physname): Delete.
3349 (unk_lang_class_name): Delete.
3350 (unknown_language_data): Delete la_class_name_from_physname
3351 initializer.
3352 (auto_language_data): Likewise.
3353 * language.h (language_data): Delete la_class_name_from_physname
3354 field.
3355 (language_defn::class_name_from_physname): New function.
3356 (language_class_name_from_physname): Delete declaration.
3357 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3358 initializer.
3359 * objc-lang.c (objc_language_data): Likewise.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_language_data): Likewise.
3362 * rust-lang.c (rust_language_data): Likewise.
3363
de543742
TT
33642020-06-16 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-data.h (STATUS_NAME): New macro.
3367 * tui/tui-layout.c (tui_remove_some_windows)
3368 (initialize_known_windows, tui_register_window)
3369 (tui_layout_split::remove_windows, initialize_layouts)
3370 (tui_new_layout_command): Don't use hard-coded window names.
3371
a350efd4
TT
33722020-06-16 Tom Tromey <tom@tromey.com>
3373
3374 PR tui/25348:
3375 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3376 tui_initialize_readline. Only run once. Call rl_initialize.
3377 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3378 tui_initialize_readline.
3379 * tui/tui-io.c (tui_setup_io): Call
3380 tui_ensure_readline_initialized.
3381 * tui/tui-interp.c (tui_interp::init): Update.
3382
39ec0490
TT
33832020-06-16 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3386 Also preserve the status window.
3387
d2d1ea20
TT
33882020-06-16 Tom Tromey <tom@tromey.com>
3389
3390 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3391 where m_window==nullptr.
3392
66920317
TT
33932020-06-15 Tom Tromey <tromey@adacore.com>
3394
3395 * windows-nat.c (windows_nat::handle_output_debug_string):
3396 Update.
3397 (windows_nat::handle_ms_vc_exception): Update.
3398 * target.h (target_read_string): Change API.
3399 * target.c (target_read_string): Change API.
3400 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3401 Update.
3402 * solib-frv.c (frv_current_sos): Update.
3403 * solib-dsbt.c (dsbt_current_sos): Update.
3404 * solib-darwin.c (darwin_current_sos): Update.
3405 * linux-thread-db.c (inferior_has_bug): Update.
3406 * expprint.c (print_subexp_standard): Update.
3407 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3408 (ada_exception_message_1): Update.
3409
a5d871dd
TT
34102020-06-15 Tom Tromey <tromey@adacore.com>
3411
3412 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3413
670e35fa
TT
34142020-06-15 Tom Tromey <tromey@adacore.com>
3415
3416 * valprint.c (read_string): Update comment.
3417 * target.c (MIN): Remove.
3418 (target_read_string): Rewrite.
3419
f5272a3b
TT
34202020-06-15 Tom Tromey <tromey@adacore.com>
3421
3422 * corefile.c (read_memory_string): Remove.
3423 * ada-valprint.c (ada_value_print_ptr): Update.
3424 * ada-lang.h (ada_tag_name): Change return type.
3425 * ada-lang.c (type_from_tag): Update.
3426 (ada_tag_name_from_tsd): Change return type. Use
3427 target_read_string.
3428 (ada_tag_name): Likewise.
3429 * gdbcore.h (read_memory_string): Don't declare.
3430
2c074f49
HD
34312020-06-14 Hannes Domani <ssbssa@yahoo.de>
3432
3433 * symtab.c (rbreak_command): Ignore Windows drive colon.
3434
6a17d503
SM
34352020-06-12 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * NEWS: Mention removed GDBserver host support.
3438
453c733f
NC
34392020-06-12 Nelson Chu <nelson.chu@sifive.com>
3440
3441 * features/riscv/rebuild-csr-xml.sh: Updated.
3442
2b4e6a3f
TT
34432020-06-11 Tom Tromey <tom@tromey.com>
3444
3445 PR gdb/18318:
3446 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3447
4412332f
JG
34482020-06-09 Jonny Grant <jg@jguk.org>
34492020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3450
3451 * main.c (captured_main_1): Don't print new line after help.
3452 (print_gdb_help): add mailing list and IRC channel information
3453 to --help. Add new lines between items in the footer. Remove
3454 quotes around bug url.
3455
2f33032a
KS
34562020-06-11 Keith Seitz <keiths@redhat.com>
3457
3458 PR gdb/21356
3459 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3460 Resolve typedefs for type length calculations.
3461
7ab96794
TV
34622020-06-10 Tom de Vries <tdevries@suse.de>
3463
3464 PR ada/24713
3465 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3466 (write_psymbols): Enable .gdb_index for ada.
3467 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3468 ada.
3469
e5f3ece2
TV
34702020-06-10 Tom de Vries <tdevries@suse.de>
3471
3472 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3473 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3474 namei" instead of "const char *name" argument.
3475 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3476 dw2_symtab_iter_init.
3477
940da03e
SM
34782020-06-08 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3481 to use type::field and field::type instead.
3482
b6cdac4b
SM
34832020-06-08 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3486 to use field::type instead.
3487
5d14b6e5
SM
34882020-06-08 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * gdbtypes.h (struct field) <type, set_type>: New methods.
3491 Rename `type` field to...
3492 <m_type>: ... this. Change references throughout to use type or
3493 set_type methods.
3494 (FIELD_TYPE): Use field::type. Change call sites that modify
3495 the field's type to use field::set_type instead.
3496
3d967001
SM
34972020-06-08 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3500 to use type::index_type instead.
3501
262abc0d
SM
35022020-06-08 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3505 methods.
3506 (TYPE_INDEX_TYPE): Use type::index_type.
3507 * gdbtypes.c (create_array_type_with_stride): Likewise.
3508
82836c92
TT
35092020-06-07 Tom Tromey <tom@tromey.com>
3510
3511 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3512 parameter.
3513 (generic_value_print): Update.
3514
940dace9
AB
35152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 Revert commit 982a38f60b0.
3518 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3519
982a38f6
AB
35202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3521
3522 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3523 avoid use after free.
3524
82f06518
TV
35252020-06-05 Tom de Vries <tdevries@suse.de>
3526
3527 * NEWS: Fix typos.
3528
f8c41851
SM
35292020-06-04 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3532 the per_bfd object.
3533 (dwarf2_read_debug_names): Likewise.
3534 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3535 object when re-using a per_bfd object with an index.
3536
f9b5d5ea
TV
35372020-06-03 Tom de Vries <tdevries@suse.de>
3538
3539 PR symtab/26046
3540 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3541 children for C++.
3542 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3543 DW_TAG_subprogram.
3544
f6eee2d0
AB
35452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_language_data): Delete skip_trampoline
3548 initializer.
3549 * c-lang.c (c_language_data): Likewise.
3550 (cplus_language_data): Likewise.
3551 (cplus_language::skip_trampoline): New member function.
3552 (asm_language_data): Delete skip_trampoline initializer.
3553 (minimal_language_data): Likewise.
3554 * d-lang.c (d_language_data): Likewise.
3555 * f-lang.c (f_language_data): Likewise.
3556 * go-lang.c (go_language_data): Likewise.
3557 * language.c (unk_lang_trampoline): Delete function.
3558 (skip_language_trampoline): Update.
3559 (unknown_language_data): Delete skip_trampoline initializer.
3560 (auto_language_data): Likewise.
3561 * language.h (language_data): Delete skip_trampoline field.
3562 (language_defn::skip_trampoline): New function.
3563 * m2-lang.c (m2_language_data): Delete skip_trampoline
3564 initializer.
3565 * objc-lang.c (objc_skip_trampoline): Delete function, move
3566 implementation to objc_language::skip_trampoline.
3567 (objc_language_data): Delete skip_trampoline initializer.
3568 (objc_language::skip_trampoline): New member function with
3569 implementation from objc_skip_trampoline.
3570 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3571 initializer.
3572 * p-lang.c (pascal_language_data): Likewise.
3573 * rust-lang.c (rust_language_data): Likewise.
3574
0a50df5d
AB
35752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3576
3577 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3578 (ada_language::demangle): New member function.
3579 * c-lang.c (c_language_data): Delete la_demangle initializer.
3580 (cplus_language_data): Delete la_demangle initializer.
3581 (cplus_language::demangle): New member function.
3582 (asm_language_data): Delete la_demangle initializer.
3583 (minimal_language_data): Delete la_demangle initializer.
3584 * d-lang.c (d_language_data): Delete la_demangle initializer.
3585 (d_language::demangle): New member function.
3586 * f-lang.c (f_language_data): Delete la_demangle initializer.
3587 (f_language::demangle): New member function.
3588 * go-lang.c (go_language_data): Delete la_demangle initializer.
3589 (go_language::demangle): New member function.
3590 * language.c (language_demangle): Update.
3591 (unk_lang_demangle): Delete.
3592 (unknown_language_data): Delete la_demangle initializer.
3593 (unknown_language::demangle): New member function.
3594 (auto_language_data): Delete la_demangle initializer.
3595 (auto_language::demangle): New member function.
3596 * language.h (language_data): Delete la_demangle field.
3597 (language_defn::demangle): New function.
3598 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3599 * objc-lang.c (objc_language_data): Delete la_demangle
3600 initializer.
3601 (objc_language::demangle): New member function.
3602 * opencl-lang.c (opencl_language_data): Delete la_demangle
3603 initializer.
3604 * p-lang.c (pascal_language_data): Likewise.
3605 * rust-lang.c (rust_language_data): Likewise.
3606 (rust_language::demangle): New member function.
3607
fbfb0a46
AB
36082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * ada-lang.c (ada_language_data): Delete la_print_type
3611 initializer.
3612 (ada_language::print_type): New member function.
3613 * c-lang.c (c_language_data): Delete la_print_type initializer.
3614 (c_language::print_type): New member function.
3615 (cplus_language_data): Delete la_print_type initializer.
3616 (cplus_language::print_type): New member function.
3617 (asm_language_data): Delete la_print_type initializer.
3618 (asm_language::print_type): New member function.
3619 (minimal_language_data): Delete la_print_type initializer.
3620 (minimal_language::print_type): New member function.
3621 * d-lang.c (d_language_data): Delete la_print_type initializer.
3622 (d_language::print_type): New member function.
3623 * f-lang.c (f_language_data): Delete la_print_type initializer.
3624 (f_language::print_type): New member function.
3625 * go-lang.c (go_language_data): Delete la_print_type initializer.
3626 (go_language::print_type): New member function.
3627 * language.c (unk_lang_print_type): Delete.
3628 (unknown_language_data): Delete la_print_type initializer.
3629 (unknown_language::print_type): New member function.
3630 (auto_language_data): Delete la_print_type initializer.
3631 (auto_language::print_type): New member function.
3632 * language.h (language_data): Delete la_print_type field.
3633 (language_defn::print_type): New function.
3634 (LA_PRINT_TYPE): Update.
3635 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3636 (m2_language::print_type): New member function.
3637 * objc-lang.c (objc_language_data): Delete la_print_type
3638 initializer.
3639 (objc_language::print_type): New member function.
3640 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3641 to opencl_language::print_type.
3642 (opencl_language_data): Delete la_print_type initializer.
3643 (opencl_language::print_type): New member function, implementation
3644 from opencl_print_type.
3645 * p-lang.c (pascal_language_data): Delete la_print_type
3646 initializer.
3647 (pascal_language::print_type): New member function.
3648 * rust-lang.c (rust_print_type): Delete, implementation moved to
3649 rust_language::print_type.
3650 (rust_language_data): Delete la_print_type initializer.
3651 (rust_language::print_type): New member function, implementation
3652 from rust_print_type.
3653
6f827019
AB
36542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3657 implementation moves to...
3658 (ada_language::sniff_from_mangled_name): ...here. Update return
3659 type.
3660 (ada_language_data): Delete la_sniff_from_mangled_name
3661 initializer.
3662 * c-lang.c (c_language_data): Likewise.
3663 (cplus_language_data): Likewise.
3664 (cplus_language::sniff_from_mangled_name): New member function,
3665 implementation taken from gdb_sniff_from_mangled_name.
3666 (asm_language_data): Delete la_sniff_from_mangled_name
3667 initializer.
3668 (minimal_language_data): Likewise.
3669 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3670 implementation moves to cplus_language::sniff_from_mangled_name.
3671 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3672 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3673 moves to...
3674 (d_language::sniff_from_mangled_name): ...here.
3675 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3676 * f-lang.c (f_language_data): Likewise.
3677 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3678 moves to...
3679 (go_language::sniff_from_mangled_name): ...here.
3680 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3681 * language.c (language_sniff_from_mangled_name): Delete.
3682 (unknown_language_data): Delete la_sniff_from_mangled_name
3683 initializer.
3684 (auto_language_data): Likewise.
3685 * language.h (language_data): Delete la_sniff_from_mangled_name
3686 field.
3687 (language_defn::sniff_from_mangled_name): New function.
3688 (language_sniff_from_mangled_name): Delete declaration.
3689 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3690 field.
3691 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3692 implementation moves to...
3693 (objc_language::sniff_from_mangled_name): ...here.
3694 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3695 * opencl-lang.c (opencl_language_data): Likewise.
3696 * p-lang.c (pascal_language_data): Likewise.
3697 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3698 implementation moves to...
3699 (rust_language::sniff_from_mangled_name): ...here.
3700 (rust_language_data): Delete la_sniff_from_mangled_name
3701 initializer.
3702 * symtab.c (symbol_find_demangled_name): Call
3703 sniff_from_mangled_name member function.
3704
fb8006fd
AB
37052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3708 initializer.
3709 * c-lang.c (c_language_data): Likewise.
3710 (cplus_language_data): Likewise.
3711 (cplus_language::search_name_hash): New member function.
3712 (asm_language_data): Delete la_search_name_hash initializer.
3713 (minimal_language_data): Likewise.
3714 * d-lang.c (d_language_data): Likewise.
3715 * dictionary.c (default_search_name_hash): Rename to...
3716 (language_defn::search_name_hash): ...this.
3717 * f-lang.c (f_language_data): Likewise.
3718 (f_language::search_name_hash): New member function.
3719 * go-lang.c (go_language_data): Delete la_search_name_hash
3720 initializer.
3721 * language.c (unknown_language_data): Likewise.
3722 (auto_language_data): Likewise.
3723 * language.h (struct language_data): Delete la_search_name_hash
3724 field.
3725 (language_defn::search_name_hash): Declare new member function.
3726 (default_search_name_hash): Delete declaration.
3727 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3728 initializer.
3729 * objc-lang.c (objc_language_data): Likewise.
3730 * opencl-lang.c (opencl_language_data): Likewise.
3731 * p-lang.c (pascal_language_data): Likewise.
3732 * rust-lang.c (rust_language_data): Likewise.
3733 * symtab.c (search_name_hash): Update call.
3734
8e25bafe
AB
37352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3738 initializer.
3739 * c-lang.c (class compile_instance): Declare.
3740 (c_language_data): Delete la_get_compile_instance initializer.
3741 (c_language::get_compile_instance): New member function.
3742 (cplus_language_data): Delete la_get_compile_instance initializer.
3743 (cplus_language::get_compile_instance): New member function.
3744 (asm_language_data): Delete la_get_compile_instance initializer.
3745 (minimal_language_data): Likewise.
3746 * c-lang.h (c_get_compile_context): Update comment.
3747 (cplus_get_compile_context): Update comment.
3748 * compile/compile.c (compile_to_object): Update calls, don't rely
3749 on function pointer being NULL.
3750 * d-lang.c (d_language_data): Delete la_get_compile_instance
3751 initializer.
3752 * f-lang.c (f_language_data): Likewise.
3753 * go-lang.c (go_language_data): Likewise.
3754 * language.c (unknown_language_data): Likewise.
3755 (auto_language_data): Likewise.
3756 * language.h (language_data): Delete la_get_compile_instance field.
3757 (language_defn::get_compile_instance): New member function.
3758 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3759 initializer.
3760 * objc-lang.c (objc_language_data): Likewise.
3761 * opencl-lang.c (opencl_language_data): Likewise.
3762 * p-lang.c (pascal_language_data): Likewise.
3763 * rust-lang.c (rust_language_data): Likewise.
3764
4009ee92
AB
37652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * ada-lang.c (ada_add_all_symbols): Update comment.
3768 (ada_iterate_over_symbols): Delete, move implementation to...
3769 (ada_language::iterate_over_symbols): ...here, a new member
3770 function, rewrite to use range based for loop.
3771 (ada_language_data): Delete la_iterate_over_symbols initializer.
3772 * c-lang.c (c_language_data): Likewise.
3773 (cplus_language_data): Likewise.
3774 (asm_language_data): Likewise.
3775 (minimal_language_data): Likewise.
3776 * d-lang.c (d_language_data): Likewise.
3777 * f-lang.c (f_language_data): Likewise.
3778 * go-lang.c (go_language_data): Likewise.
3779 * language.c (unknown_language_data): Likewise.
3780 (auto_language_data): Likewise.
3781 * language.h (language_data): Delete la_iterate_over_symbols field.
3782 (language_defn::iterate_over_symbols): New member function.
3783 (LA_ITERATE_OVER_SYMBOLS): Update.
3784 * linespec.c (iterate_over_all_matching_symtabs): Update.
3785 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3786 initializer.
3787 * objc-lang.c (objc_language_data): Likewise.
3788 * opencl-lang.c (opencl_language_data): Likewise.
3789 * p-lang.c (pascal_language_data): Likewise.
3790 * rust-lang.c (rust_language_data): Likewise.
3791
54f4ca46
AB
37922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * ada-lang.c (ada_language_data): Delete
3795 la_lookup_transparent_type initializer.
3796 * c-lang.c (c_language_data): Likewise.
3797 (cplus_language_data): Likewise.
3798 (cplus_language::lookup_transparent_type): New member function.
3799 (asm_language_data): Delete la_lookup_transparent_type
3800 initializer.
3801 (minimal_language_data): Likewise.
3802 * d-lang.c (d_language_data): Likewise.
3803 * f-lang.c (f_language_data): Likewise.
3804 * go-lang.c (go_language_data): Likewise.
3805 * language.c (unknown_language_data): Likewise.
3806 (auto_language_data): Likewise.
3807 * language.h (struct language_data): Delete
3808 la_lookup_transparent_type field.
3809 (language_defn::lookup_transparent_type): New member function.
3810 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3811 initializer.
3812 * objc-lang.c (objc_language_data): Likewise.
3813 * opencl-lang.c (opencl_language_data): Likewise.
3814 * p-lang.c (pascal_language_data): Likewise.
3815 * rust-lang.c (rust_language_data): Likewise.
3816 * symtab.c (symbol_matches_domain): Update call.
3817
1fb314aa
AB
38182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * ada-lang.c (ada_language_arch_info): Delete function, move
3821 implementation to...
3822 (ada_language::language_arch_info): ...here, a new member
3823 function.
3824 (ada_language_data): Delete la_language_arch_info.
3825 * c-lang.c (c_language_data): Likewise.
3826 (c_language::language_arch_info): New member function.
3827 (cplus_language_arch_info): Delete function, move
3828 implementation to...
3829 (cplus_language::language_arch_info): ...here, a new member
3830 function.
3831 (cplus_language_data): Delete la_language_arch_info.
3832 (asm_language_data): Likewise.
3833 (asm_language::language_arch_info): New member function.
3834 (minimal_language_data): Delete la_language_arch_info.
3835 (minimal_language::language_arch_info): New member function.
3836 * d-lang.c (d_language_arch_info): Delete function, move
3837 implementation to...
3838 (d_language::language_arch_info): ...here, a new member
3839 function.
3840 (d_language_data): Delete la_language_arch_info.
3841 * f-lang.c (f_language_arch_info): Delete function, move
3842 implementation to...
3843 (f_language::language_arch_info): ...here, a new member
3844 function.
3845 (f_language_data): Delete la_language_arch_info.
3846 * go-lang.c (go_language_arch_info): Delete function, move
3847 implementation to...
3848 (go_language::language_arch_info): ...here, a new member
3849 function.
3850 (go_language_data): Delete la_language_arch_info.
3851 * language.c (unknown_language_data): Likewise.
3852 (unknown_language::language_arch_info): New member function.
3853 (auto_language_data): Delete la_language_arch_info.
3854 (auto_language::language_arch_info): New member function.
3855 (language_gdbarch_post_init): Update call to
3856 la_language_arch_info.
3857 * language.h (language_data): Delete la_language_arch_info
3858 function pointer.
3859 (language_defn::language_arch_info): New function.
3860 * m2-lang.c (m2_language_arch_info): Delete function, move
3861 implementation to...
3862 (m2_language::language_arch_info): ...here, a new member
3863 function.
3864 (m2_language_data): Delete la_language_arch_info.
3865 * objc-lang.c (objc_language_arch_info): Delete function, move
3866 implementation to...
3867 (objc_language::language_arch_info): ...here, a new member
3868 function.
3869 (objc_language_data): Delete la_language_arch_info.
3870 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3871 implementation to...
3872 (opencl_language::language_arch_info): ...here, a new member
3873 function.
3874 (opencl_language_data): Delete la_language_arch_info.
3875 * p-lang.c (pascal_language_arch_info): Delete function, move
3876 implementation to...
3877 (pascal_language::language_arch_info): ...here, a new member
3878 function.
3879 (pascal_language_data): Delete la_language_arch_info.
3880 * rust-lang.c (rust_language_arch_info): Delete function, move
3881 implementation to...
3882 (rust_language::language_arch_info): ...here, a new member
3883 function.
3884 (rust_language_data): Delete la_language_arch_info.
3885
48448202
AB
38862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3887
3888 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3889 initializer.
3890 * c-lang.c (c_language_data): Likewise.
3891 (cplus_language_data): Likewise.
3892 (cplus_language::pass_by_reference_info): New method.
3893 (asm_language_data): Delete la_pass_by_reference initializer.
3894 (minimal_language_data): Likewise.
3895 * cp-abi.c (cp_pass_by_reference): Remove use of
3896 default_pass_by_reference.
3897 * d-lang.c (d_language_data): Likewise.
3898 * f-lang.c (f_language_data): Likewise.
3899 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3900 default_pass_by_reference.
3901 * go-lang.c (go_language_data): Likewise.
3902 * language.c (language_pass_by_reference): Update.
3903 (default_pass_by_reference): Delete.
3904 (unknown_language_data): Delete la_pass_by_reference
3905 initializer.
3906 (auto_language_data): Likewise.
3907 * language.h (struct language_data): Delete la_pass_by_reference
3908 field.
3909 (language_defn::pass_by_reference_info): New member function.
3910 (default_pass_by_reference): Delete declaration.
3911 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3912 initializer.
3913 * objc-lang.c (objc_language_data): Likewise.
3914 * opencl-lang.c (opencl_language_data): Likewise.
3915 * p-lang.c (pascal_language_data): Likewise.
3916 * rust-lang.c (rust_language_data): Likewise.
3917
15e5fd35
AB
39182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * ada-lang.c (ada_read_var_value): Delete function, move
3921 implementation to...
3922 (ada_language::read_var_value): ...here.
3923 (ada_language_data): Delete la_read_var_value initializer.
3924 * c-lang.c (c_language_data): Likewise.
3925 (cplus_language_data): Likewise.
3926 (minimal_language_data): Likewise.
3927 * d-lang.c (d_language_data): Likewise.
3928 * f-lang.c (f_language_data): Likewise.
3929 * findvar.c (default_read_var_value): Rename to...
3930 (language_defn::read_var_value): ...this.
3931 * findvar.c (read_var_value): Update header comment, and change to
3932 call member function instead of function pointer.
3933 * go-lang.c (go_language_data): Likewise.
3934 * language.c (unknown_language_data): Delete la_read_var_value
3935 initializer.
3936 (auto_language_data): Likewise.
3937 * language.h (struct language_data): Delete la_read_var_value
3938 field.
3939 (language_defn::read_var_value): New member function.
3940 (default_read_var_value): Delete declaration.
3941 * m2-lang.c (m2_language_data): Delete la_read_var_value
3942 initializer.
3943 * objc-lang.c (objc_language_data): Likewise.
3944 * opencl-lang.c (opencl_language_data): Likewise.
3945 * p-lang.c (pascal_language_data): Likewise.
3946 * rust-lang.c (rust_language_data): Likewise.
3947 * value.h (default_read_var_value): Delete declaration.
3948
5bd40f2a
AB
39492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * ada-lang.c (ada_print_array_index): Delete function, move
3952 implementation to...
3953 (ada_language::print_array_index): ...here.
3954 (ada_language_data): Delete la_print_array_index initializer.
3955 * c-lang.c (c_language_data): Likewise.
3956 (cplus_language_data): Likewise.
3957 (minimal_language_data): Likewise.
3958 * d-lang.c (d_language_data): Likewise.
3959 * f-lang.c (f_language_data): Likewise.
3960 * go-lang.c (go_language_data): Likewise.
3961 * language.c (default_print_array_index): Delete function, move
3962 implementation to...
3963 (language_defn::print_array_index): ...here.
3964 (unknown_language_data): Delete la_print_array_index initializer.
3965 (auto_language_data): Likewise.
3966 * language.h (struct language_data): Delete la_print_array_index
3967 field.
3968 (language_defn::print_array_index): New member function.
3969 (LA_PRINT_ARRAY_INDEX): Update.
3970 (default_print_array_index): Delete declaration.
3971 * m2-lang.c (m2_language_data): Delete la_print_array_index
3972 initializer.
3973 * objc-lang.c (objc_language_data): Likewise.
3974 * opencl-lang.c (opencl_language_data): Likewise.
3975 * p-lang.c (pascal_language_data): Likewise.
3976 * rust-lang.c (rust_language_data): Likewise.
3977
0874fd07
AB
39782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 * gdb/ada-lang.c (ada_language_defn): Convert to...
3981 (ada_language_data): ...this.
3982 (class ada_language): New class.
3983 (ada_language_defn): New static global.
3984 * gdb/c-lang.c (c_language_defn): Convert to...
3985 (c_language_data): ...this.
3986 (class c_language): New class.
3987 (c_language_defn): New static global.
3988 (cplus_language_defn): Convert to...
3989 (cplus_language_data): ...this.
3990 (class cplus_language): New class.
3991 (cplus_language_defn): New static global.
3992 (asm_language_defn): Convert to...
3993 (asm_language_data): ...this.
3994 (class asm_language): New class.
3995 (asm_language_defn): New static global.
3996 (minimal_language_defn): Convert to...
3997 (minimal_language_data): ...this.
3998 (class minimal_language): New class.
3999 (minimal_language_defn): New static global.
4000 * gdb/d-lang.c (d_language_defn): Convert to...
4001 (d_language_data): ...this.
4002 (class d_language): New class.
4003 (d_language_defn): New static global.
4004 * gdb/f-lang.c (f_language_defn): Convert to...
4005 (f_language_data): ...this.
4006 (class f_language): New class.
4007 (f_language_defn): New static global.
4008 * gdb/go-lang.c (go_language_defn): Convert to...
4009 (go_language_data): ...this.
4010 (class go_language): New class.
4011 (go_language_defn): New static global.
4012 * gdb/language.c (unknown_language_defn): Remove declaration.
4013 (current_language): Initialize to nullptr, real initialization is
4014 moved to _initialize_language.
4015 (languages): Delete global.
4016 (language_defn::languages): Define.
4017 (set_language_command): Use language_defn::languages.
4018 (set_language): Likewise.
4019 (range_error): Likewise.
4020 (language_enum): Likewise.
4021 (language_def): Likewise.
4022 (add_set_language_command): Use language_def::languages for the
4023 language list, and language_def to lookup language pointers.
4024 (skip_language_trampoline): Use language_defn::languages.
4025 (unknown_language_defn): Convert to...
4026 (unknown_language_data): ...this.
4027 (class unknown_language): New class.
4028 (unknown_language_defn): New static global.
4029 (auto_language_defn): Convert to...
4030 (auto_language_data): ...this.
4031 (class auto_language): New class.
4032 (auto_language_defn): New static global.
4033 (language_gdbarch_post_init): Use language_defn::languages.
4034 (_initialize_language): Initialize current_language.
4035 * gdb/language.h (struct language_defn): Rename to...
4036 (struct language_data): ...this.
4037 (struct language_defn): New.
4038 (auto_language_defn): Delete.
4039 (unknown_language_defn): Delete.
4040 (minimal_language_defn): Delete.
4041 (ada_language_defn): Delete.
4042 (asm_language_defn): Delete.
4043 (c_language_defn): Delete.
4044 (cplus_language_defn): Delete.
4045 (d_language_defn): Delete.
4046 (f_language_defn): Delete.
4047 (go_language_defn): Delete.
4048 (m2_language_defn): Delete.
4049 (objc_language_defn): Delete.
4050 (opencl_language_defn): Delete.
4051 (pascal_language_defn): Delete.
4052 (rust_language_defn): Delete.
4053 * gdb/m2-lang.c (m2_language_defn): Convert to...
4054 (m2_language_data): ...this.
4055 (class m2_language): New class.
4056 (m2_language_defn): New static global.
4057 * gdb/objc-lang.c (objc_language_defn): Convert to...
4058 (objc_language_data): ...this.
4059 (class objc_language): New class.
4060 (objc_language_defn): New static global.
4061 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4062 (opencl_language_data): ...this.
4063 (class opencl_language): New class.
4064 (opencl_language_defn): New static global.
4065 * gdb/p-lang.c (pascal_language_defn): Convert to...
4066 (pascal_language_data): ...this.
4067 (class pascal_language): New class.
4068 (pascal_language_defn): New static global.
4069 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4070 language pointer, update comment format.
4071 * gdb/rust-lang.c (rust_language_defn): Convert to...
4072 (rust_language_data): ...this.
4073 (class rust_language): New class.
4074 (rust_language_defn): New static global.
4075
1313c56e
AB
40762020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4079 member variable.
4080 <m_stmt_at_address>: New member variable.
4081 (lnp_state_machine::record_line): Don't record some lines, update
4082 tracking of is_stmt at the same address.
4083 (lnp_state_machine::lnp_state_machine): Initialise new member
4084 variables.
4085
b7ed9f3d
ST
40862020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4087
4088 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4089 "-include gnu-nat-mig.h".
4090 * gnu-nat-mig.h: New file.
4091 * gnu-nat.c: Include "gnu-nat-mig.h".
4092 (exc_server, msg_reply_server, notify_server,
4093 process_reply_server): Remove declarations.
4094
14a8ad62
ST
40952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4096
4097 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4098 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4099 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4100 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4101 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4102 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4103 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4104 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4105 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4106 to gnu_nat_target class.
4107 * gnu-nat.c: Likewise.
4108 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4109 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4110 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4111 object.
4112 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4113 instead of `gnu_target'.
4114
0af5e106
ST
41152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4116
4117 * i386-gnu-tdep.c: Include "gdbcore.h"
4118 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4119 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4120 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4121 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4122 i386_gnu_sigcontext_addr): New functions
4123 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4124 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4125 tdep.
4126
078f2fc9
ST
41272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4128
4129 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4130 before fork_inferior call. Avoid calling it if target_is_pushed returns
4131 true.
4132
53dff92c
ST
41332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4134
4135 * gnu-nat.h (gnu_target): New variable declaration.
4136 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4137 gnu_target.
4138 * gnu-nat.c (gnu_target): New variable.
4139 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4140 add_thread_silent, and add_thread calls.
4141 (gnu_nat_target::create_inferior): Pass gnu_target to
4142 add_thread_silent, thread_change_ptid call.
4143 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4144 call.
4145
5a8b8627
ST
41462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4147
4148 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4149 (gnu_nat_target::find_memory_regions): Remove unused
4150 `old_address' variable.
4151
366f550a
ST
41522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4153
4154 * gnu-nat.c: Include "gdbarch.h".
4155
f14871bf
ST
41562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4157
4158 * reply_mig_hack.awk (Error return): Cast function through
4159 void *, to bypass compiler function call check.
4160
c6887cfb
ST
41612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4162
4163 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4164 $(srcdir)/reply_mig_hack.awk.
4165
6930bffe
ST
41662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4167
4168 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4169
112c22ed
JG
41702020-05-30 Jonny Grant <jg@jguk.org>
4171
4172 * configure.ac (ACX_BUGURL): change bug URL to https.
4173
f68f85b5
PA
41742020-05-30 Pedro Alves <palves@redhat.com>
4175
4176 * cp-support.c (replace_typedefs_template): New.
4177 (replace_typedefs_qualified_name): Handle
4178 DEMANGLE_COMPONENT_TEMPLATE.
4179
976ca316
SM
41802020-05-29 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4183 dwarf2/index-cache.h, dwarf2/index-write.c,
4184 dwarf2/index-write.h, dwarf2/line-header.c,
4185 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4186 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4187 variables and fields from `dwarf2_per_objfile` to just
4188 `per_objfile` throughout.
4189
989ade05
SM
41902020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4191
4192 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4193 <push_dwarf_reg_entry_value>: Add comment.
4194
c47bae85
KB
41952020-05-28 Kevin Buettner <kevinb@redhat.com>
4196 Keith Seitz <keiths@redhat.com>
4197
4198 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4199 instead of PyEval_ReleaseLock.
4200 (class gdbpy_gil): Move to earlier in file.
4201 (finalize_python): Set gdb_python_initialized.
4202 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4203 when not initialized.
4204
44486dcf
SM
42052020-05-28 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4208 <push_dwarf_reg_entry_value>: Remove assert. Override
4209 per_objfile with caller_per_objfile.
4210
f030440d
TV
42112020-05-28 Tom de Vries <tdevries@suse.de>
4212
4213 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4214 PR gold/15646 workaround to symbol kind "type".
4215
f0fbb768
TT
42162020-05-27 Tom Tromey <tromey@adacore.com>
4217
4218 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4219
af0b2a3e
TT
42202020-05-27 Tom Tromey <tromey@adacore.com>
4221
4222 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4223 Use htab_find_with_hash.
4224 <add_abbrev>: Remove "abbrev_number" parameter.
4225 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4226 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4227 (hash_abbrev): Add comment.
4228 (abbrev_table::lookup_abbrev): Move to header file.
4229 (abbrev_table::read): Update.
4230
7d00ffec
TT
42312020-05-27 Tom Tromey <tromey@adacore.com>
4232
4233 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4234 method.
4235 <canonical_name>: New member.
4236 <raw_name>: Rename from "name".
4237 (partial_die_info): Initialize canonical_name.
4238 (scan_partial_symbols): Check raw_name.
4239 (partial_die_parent_scope, partial_die_full_name)
4240 (add_partial_symbol, add_partial_subprogram)
4241 (add_partial_enumeration, load_partial_dies): Use "name" method.
4242 (partial_die_info::name): New method.
4243 (partial_die_info::read, guess_partial_die_structure_name)
4244 (partial_die_info::fixup): Update.
4245
697bba18
TT
42462020-05-27 Tom Tromey <tromey@adacore.com>
4247
4248 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4249 <get_ref_die_offset>: Inline.
4250 <get_ref_die_offset_complaint>: New method.
4251 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4252 (attribute::get_ref_die_offset_complaint): Rename from
4253 get_ref_die_offset. Just issue complaint.
4254
c17ace43
HD
42552020-05-27 Hannes Domani <ssbssa@yahoo.de>
4256
4257 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4258
96445f0b
HD
42592020-05-27 Hannes Domani <ssbssa@yahoo.de>
4260
4261 * exec.c (exec_file_attach): Use errno value of first openp failure.
4262
ac637ec3
HD
42632020-05-27 Hannes Domani <ssbssa@yahoo.de>
4264
4265 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4266 Don't close thread handle.
4267
17ee85fc
TT
42682020-05-27 Tom Tromey <tom@tromey.com>
4269 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4272 shared_ptr.
4273 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4274 member.
4275 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4276 dwarf2_per_bfd_objfile_data_key>: New globals.
4277 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4278 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4279 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4280 shared.
4281 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4282 short-circuit when sharing.
4283 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4284 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4285
39b16f87
SM
42862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4289 to...
4290 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4291 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4292
fcf23d5b
SM
42932020-05-27 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4296 build_name_components, find_name_components_bounds>:
4297 Add per_objfile parameter.
4298 (struct mapped_index) <symbol_name_at>: Likewise.
4299 (struct mapped_debug_names): Remove constructor.
4300 <dwarf2_per_objfile>: Remove field.
4301 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4302 (mapped_index_base::find_name_components_bounds,
4303 mapped_index_base::build_name_components,
4304 dw2_expand_symtabs_matching_symbol): Likewise.
4305 (class mock_mapped_index) <symbol_name_at>: Likewise.
4306 (check_match): Likewise.
4307 (check_find_bounds_finds): Likewise.
4308 (test_mapped_index_find_name_component_bounds): Update.
4309 (CHECK_MATCH): Update.
4310 (dw2_expand_symtabs_matching): Update.
4311 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4312 per_objfile parameter.
4313 <find_vec_in_debug_names>: Likewise.
4314 <m_per_objfile>: New field.
4315 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4316 parameter.
4317 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4318 (dw2_debug_names_iterator::next): Update.
4319 (dw2_debug_names_lookup_symbol): Update.
4320 (dw2_debug_names_expand_symtabs_for_function): Update.
4321 (dw2_debug_names_map_matching_symbols): Update.
4322 (dw2_debug_names_expand_symtabs_matching): Update.
4323 (dwarf2_read_debug_names): Update.
4324
7188ed02
SM
43252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4326
4327 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4328 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4329 move to dwarf2_per_objfile.
4330 <read_in_chain>: Remove.
4331 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4332 remove_all_cus, age_comp_units>: New methods.
4333 <m_dwarf2_cus>: New member.
4334 (struct dwarf2_per_cu_data) <cu>: Remove.
4335 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4336 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4337 moved to methods of dwarf2_per_objfile.
4338 (dwarf2_clear_marks): Remove.
4339 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4340 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4341 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4342 (dwarf2_per_objfile::remove_all_cus): New.
4343 (class free_cached_comp_units) <~free_cached_comp_units>:
4344 Update.
4345 (load_cu): Update.
4346 (dw2_do_instantiate_symtab): Adjust.
4347 (fill_in_sig_entry_from_dwo_entry): Adjust.
4348 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4349 (cutu_reader::cutu_reader): Likewise.
4350 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4351 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4352 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4353 and dwarf2_per_objfile::age_comp_units.
4354 (load_partial_comp_unit): Update.
4355 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4356 (process_queue): Likewise.
4357 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4358 backlink.
4359 (dwarf2_read_addr_index): Likewise.
4360 (follow_die_offset): Likewise.
4361 (dwarf2_fetch_die_loc_sect_off): Likewise.
4362 (dwarf2_fetch_constant_bytes): Likewise.
4363 (dwarf2_fetch_die_type_sect_off): Likewise.
4364 (follow_die_sig_1): Likewise.
4365 (load_full_type_unit): Likewise.
4366 (read_signatured_type): Likewise.
4367 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4368 (dwarf2_cu::~dwarf2_cu): Remove.
4369 (dwarf2_per_objfile::get_cu): New.
4370 (dwarf2_per_objfile::set_cu): New.
4371 (age_cached_comp_units): Rename to...
4372 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4373 to std::unordered_map.
4374 (free_one_cached_comp_unit): Rename to...
4375 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4376 to std::unordered_map.
4377 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4378 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4379 a dwarf2_per_objfile in data.
4380 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4381 (dwarf2_clear_marks): Remove.
4382
2e671100
SM
43832020-05-27 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4386 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4387 (init_tu_and_read_dwo_dies): Likewise.
4388 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4389 (cutu_reader::cutu_reader): Likewise.
4390 (load_partial_comp_unit): Likewise.
4391 (process_psymtab_comp_unit): Update.
4392 (build_type_psymtabs_1): Update.
4393 (process_skeletonless_type_unit): Update.
4394 (load_full_comp_unit): Update.
4395 (find_partial_die): Update.
4396 (dwarf2_read_addr_index): Update.
4397 (read_signatured_type): Update.
4398
2e6a9f79
SM
43992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4402 m_header_read_in>: New fields.
4403 <get_header>: New method.
4404 * dwarf2/read.c (per_cu_header_read_in): Remove.
4405 (dwarf2_per_cu_data::get_header): New.
4406 (dwarf2_per_cu_data::addr_size): Update.
4407 (dwarf2_per_cu_data::offset_size): Update.
4408 (dwarf2_per_cu_data::ref_addr_size): Update.
4409
1b555f17
SM
44102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4411
4412 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4413 (dw2_do_instantiate_symtab): Update.
4414 (queue_and_load_all_dwo_tus): Change parameter from
4415 dwarf2_per_cu_data to dwarf2_cu.
4416 (dwarf2_fetch_die_loc_sect_off): Update.
4417 (dwarf2_fetch_constant_bytes): Update.
4418 (dwarf2_fetch_die_type_sect_off): Update.
4419
8fc0b21d
SM
44202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4421
4422 * dwarf2/read.c (process_full_comp_unit,
4423 process_full_type_unit): Remove per_cu, per_objfile paramters.
4424 Add dwarf2_cu parameter.
4425 (process_queue): Update.
4426
168c9250
SM
44272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4428
4429 * dwarf2/read.c (create_cu_from_index_list): Replace
4430 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4431 (create_cus_from_index_list): Likewise.
4432 (create_cus_from_index): Likewise.
4433 (create_signatured_type_table_from_index): Likewise.
4434 (create_cus_from_debug_names_list): Likewise.
4435 (create_cus_from_debug_names): Likewise.
4436 (dwarf2_read_gdb_index): Update.
4437 (dwarf2_read_debug_names): Update.
4438
e286671b
TT
44392020-05-27 Tom Tromey <tom@tromey.com>
4440 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * dwarf2/read.h (struct dwarf2_per_objfile)
4443 <get_type_for_signatured_type, set_type_for_signatured_type>:
4444 New methods.
4445 <m_type_map>: New member.
4446 (struct signatured_type) <type>: Remove.
4447 * dwarf2/read.c
4448 (dwarf2_per_objfile::get_type_for_signatured_type,
4449 dwarf2_per_objfile::set_type_for_signatured_type): New.
4450 (get_signatured_type): Use new methods.
4451
8adb8487
TT
44522020-05-27 Tom Tromey <tom@tromey.com>
4453 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4456 (struct dwarf2_per_objfile) <type_units>: New member.
4457 <get_type_unit_group_unshareable>: New method.
4458 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4459 num_symtabs, symtabs>: Remove; move to
4460 type_unit_group_unshareable.
4461 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4462 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4463 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4464
127bbf4b
SM
44652020-05-27 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * dwarf2/read.h (struct dwarf2_per_cu_data):
4468 <dwarf2_per_objfile>: Remove.
4469 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4470 dwarf2_per_objfile.
4471 (create_signatured_type_table_from_index): Likewise.
4472 (create_signatured_type_table_from_debug_names): Likewise.
4473 (create_debug_type_hash_table): Likewise.
4474 (fill_in_sig_entry_from_dwo_entry): Likewise.
4475 (create_type_unit_group): Likewise.
4476 (read_comp_units_from_section): Likewise.
4477 (create_cus_hash_table): Likewise.
4478
f6e649dd
SM
44792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4482 dwarf2_per_cu_data::dwarf2_per_objfile.
4483 (compute_compunit_symtab_includes): Likewise.
4484 (dwarf2_cu::start_symtab): Likewise.
4485
aa66c379
SM
44862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4489 parameter.
4490 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4491 (read_namespace_alias): Update.
4492 (lookup_die_type): Update.
4493 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4494 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4495 Update.
4496 (disassemble_dwarf_expression): Update.
4497
120ce1b5
SM
44982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * dwarf2/read.h (struct dwarf2_queue_item): Add
4501 dwarf2_per_objfile parameter, assign new parameter.
4502 <per_objfile>: New field.
4503 * dwarf2/read.c (free_one_cached_comp_unit): Add
4504 dwarf2_per_objfile parameter.
4505 (queue_comp_unit): Likewise.
4506 (dw2_do_instantiate_symtab): Update.
4507 (process_psymtab_comp_unit): Update.
4508 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4509 (process_imported_unit_die): Update.
4510 (queue_and_load_dwo_tu): Update.
4511 (follow_die_offset): Update.
4512 (follow_die_sig_1): Update.
4513
9f47c707
SM
45142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4517 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4518 (read_call_site_scope): Assign per_objfile.
4519 (dwarf2_per_cu_data::objfile): Remove.
4520 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4521 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4522 dwarf2_per_objfile parameter.
4523 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4524 dwarf2_per_objfile parameter.
4525 (dwarf_expr_reg_to_entry_parameter): Add output
4526 dwarf2_per_objfile parameter.
4527 (locexpr_get_frame_base): Update.
4528 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4529 <push_dwarf_reg_entry_value>: Update.
4530 <call_site_to_target_addr>: Update.
4531 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4532 parameter.
4533 (value_of_dwarf_reg_entry): Update.
4534 (rw_pieced_value): Update.
4535 (indirect_synthetic_pointer): Update.
4536 (dwarf2_evaluate_property): Update.
4537 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4538 parameter.
4539 (locexpr_read_variable): Update.
4540 (locexpr_get_symbol_read_needs): Update.
4541 (loclist_read_variable): Update.
4542
14095eb3
SM
45432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4546 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4547 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4548 parameter.
4549 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4550 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4551 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4552 parameter.
4553 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4554 sect_variable_value): Add dwarf2_per_objfile parameter.
4555 (class dwarf_evaluate_loc_desc) <dwarf_call,
4556 dwarf_variable_value>: Update.
4557 (fetch_const_value_from_synthetic_pointer): Add
4558 dwarf2_per_objfile parameter.
4559 (fetch_const_value_from_synthetic_pointer): Update.
4560 (coerced_pieced_ref): Update.
4561 (class symbol_needs_eval_context) <dwarf_call,
4562 dwarf_variable_value>: Update.
4563 (dwarf2_compile_expr_to_ax): Update.
4564
3c3cd3d4
SM
45652020-05-27 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4568 parameter.
4569 (dwarf2_evaluate_loc_desc_full): Update.
4570
82ca3f51
SM
45712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4574 parameter.
4575 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4576 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4577 dwarf2_per_objfile parameter.
4578 (decode_debug_loc_dwo_addresses): Likewise.
4579 (dwarf2_find_location_expression): Update.
4580 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4581 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4582 parameter.
4583 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4584 parameter.
4585 (locexpr_describe_location_1): Likewise.
4586 (locexpr_describe_location): Update.
4587
4b167ea1
SM
45882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4591 Remove.
4592 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4593 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4594 (dwarf2_compile_property_to_c): Update.
4595 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4596 use text offset from objfile.
4597 (locexpr_tracepoint_var_ref): Update.
4598 (locexpr_generate_c_location): Update.
4599 (loclist_describe_location): Update.
4600 (loclist_tracepoint_var_ref): Update.
4601 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4602 dwarf2_per_objfile parameter.
4603 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4604 use text offset from objfile.
4605 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4606
89b07335
SM
46072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * dwarf2/expr.h (struct dwarf_expr_context)
4610 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4611 <offset>: Remove.
4612 <per_objfile>: New member.
4613 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4614 dwarf2_per_objfile parameter. Don't set offset, set
4615 per_objfile.
4616 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4617 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4618 a dwarf2_per_objfile object instead of an offset.
4619 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4620 constructor.
4621 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4622 to dwarf2_expr_executor constructor. Don't set offset.
4623 (dwarf2_fetch_cfa_info): Update.
4624 (struct dwarf2_frame_cache) <text_offset>: Remove.
4625 <per_objfile>: New field.
4626 (dwarf2_frame_cache): Update.
4627 (dwarf2_frame_prev_register): Update.
4628 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4629 <dwarf_evaluate_loc_desc>: Add constructor.
4630 (dwarf2_evaluate_loc_desc_full): Update.
4631 (dwarf2_locexpr_baton_eval): Update.
4632 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4633 Add constructor.
4634 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4635
293e7e51
SM
46362020-05-27 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4639 addr_sized_int_type>: Move to dwarf2_cu.
4640 <int_type>: Move to dwarf2_per_objfile.
4641 (struct dwarf2_per_objfile) <int_type>: Move here.
4642 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4643 addr_sized_int_type>: Move here.
4644 (read_func_scope): Update.
4645 (read_array_type): Update.
4646 (read_tag_string_type): Update.
4647 (attr_to_dynamic_prop): Update.
4648 (dwarf2_per_cu_data::int_type): Rename to...
4649 (dwarf2_per_objfile::int_type): ... this.
4650 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4651 (dwarf2_cu::addr_sized_int_type): ... this.
4652 (read_subrange_type): Update.
4653 (dwarf2_per_cu_data::addr_type): Rename to...
4654 (dwarf2_cu::addr_type): ... this.
4655 (set_die_type): Update.
4656
64874a40
SM
46572020-05-27 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4660 data through per_cu->cu.
4661
4ab09049
SM
46622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4665 dwarf2_per_cu_data parameter fo dwarf2_cu.
4666 (lookup_dwo_type_unit): Likewise.
4667 (read_cutu_die_from_dwo): Likewise.
4668 (lookup_dwo_unit): Likewise.
4669 (open_and_init_dwo_file): Likewise.
4670 (lookup_dwo_cutu): Likewise.
4671 (lookup_dwo_comp_unit): Likewise.
4672 (lookup_dwo_type_unit): Likewise.
4673 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4674 (cutu_reader::cutu_reader): Update.
4675
47b14e86
SM
46762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4679 parameter.
4680 (process_full_type_unit): Likewise.
4681 (process_queue): Update.
4682
43182c09
SM
46832020-05-27 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * dwarf2/read.c (recursively_compute_inclusions): Add
4686 dwarf2_per_objfile parameter.
4687 (compute_compunit_symtab_includes): Likewise.
4688 (process_cu_includes): Update.
4689
7aa104c4
SM
46902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4693 parameter.
4694 (create_type_unit_group): Update.
4695 (process_psymtab_comp_unit_reader): Update.
4696 (build_type_psymtabs_reader): Update.
4697
e3beb21d
SM
46982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4701 object through m_this_cu->cu.
4702
d460f660
SM
47032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4704
4705 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4706 the info parameter.
4707 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4708
ab432490
SM
47092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4712 per_objfile parameter.
4713 (load_full_type_unit): Add per_objfile parameter.
4714 (read_signatured_type): Likewise.
4715 (load_full_comp_unit): Likewise.
4716 (load_cu): Likewise.
4717 (dw2_do_instantiate_symtab): Likewise.
4718 (dw2_get_file_names): Likewise.
4719 (dw2_map_symtabs_matching_filename): Update.
4720 (dw_expand_symtabs_matching_file_matcher): Update.
4721 (dw2_map_symbol_filenames): Update.
4722 (process_psymtab_comp_unit): Add per_objfile parameter.
4723 (build_type_psymtabs_1): Update.
4724 (process_skeletonless_type_unit): Update.
4725 (dwarf2_build_psymtabs_hard): Update.
4726 (load_partial_comp_unit): Add per_objfile parameter.
4727 (scan_partial_symbols): Update.
4728 (load_full_comp_unit): Add per_objfile parameter.
4729 (process_imported_unit_die): Update.
4730 (create_cus_hash_table): Update.
4731 (find_partial_die): Update.
4732 (dwarf2_read_addr_index): Update.
4733 (follow_die_offset): Update.
4734 (dwarf2_fetch_die_loc_sect_off): Update.
4735 (dwarf2_fetch_constant_bytes): Update.
4736 (dwarf2_fetch_die_type_sect_off): Update.
4737 (follow_die_sig_1): Update.
4738 (load_full_type_unit): Add per_objfile parameter.
4739 (read_signatured_type): Likewise.
4740
313bad1b
SM
47412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4744 of objfile_name.
4745
c3699833
SM
47462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4747
4748 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4749 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4750 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4751 field.
4752 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4753 (create_cus_from_index): Update.
4754 (dwarf2_read_gdb_index): Update.
4755 (create_cus_from_debug_names): Update.
4756 (dwarf2_read_debug_names): Update.
4757 (get_abbrev_section_for_cu): Update.
4758 (create_all_comp_units): Update.
4759 (read_attribute_value): Update.
4760 (get_debug_line_section): Update.
4761 * dwarf2/index-cache.c (index_cache::store): Update.
4762 * dwarf2/index-write.c (save_gdb_index_command): Update.
4763 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4764
1859c670
SM
47652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4768 member.
4769 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4770 dwarf2_per_cu_data::per_bfd.
4771 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4772 (create_type_unit_group): Likewise.
4773 (queue_comp_unit): Remove reference to
4774 per_cu->dwarf2_per_objfile.
4775 (maybe_queue_comp_unit): Likewise.
4776 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4777 (create_cus_hash_table): Assign new field.
4778
5e22e966
SM
47792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4780
4781 * dwarf2/read.c: Replace
4782 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4783 dwarf2_cu->per_objfile throughout.
4784
97a1449a
SM
47852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4788 parameter, don't use per_cu->dwarf2_per_objfile.
4789 (dw2_instantiate_symtab): Likewise.
4790 (dw2_find_last_source_symtab): Update.
4791 (dw2_map_expand_apply): Update.
4792 (dw2_lookup_symbol): Update.
4793 (dw2_expand_symtabs_for_function): Update.
4794 (dw2_expand_all_symtabs): Update.
4795 (dw2_expand_symtabs_with_fullname): Update.
4796 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4797 don't use per_cu->dwarf2_per_objfile.
4798 (dw2_expand_marked_cus): Update.
4799 (dw2_find_pc_sect_compunit_symtab): Update.
4800 (dw2_debug_names_lookup_symbol): Update.
4801 (dw2_debug_names_expand_symtabs_for_function): Update.
4802 (dw2_debug_names_map_matching_symbols): Update.
4803 (dwarf2_psymtab::expand_psymtab): Update.
4804
9e021579
SM
48052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4808 <per_objfile>: New member.
4809 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4810 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4811 call to dwarf2_cu.
4812 (cutu_reader::cutu_reader): Update.
4813 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4814
ae090bdb
SM
48152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4816
4817 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4818 struct dwarf2_per_objfile.
4819 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4820 dwarf2_per_bfd.
4821 * dwarf2/read.c (set_die_type): Update.
4822 (get_die_type_at_offset): Update.
4823
af758d11
SM
48242020-05-27 Tom Tromey <tom@tromey.com>
4825 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4828 method.
4829 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4830 get_symtab, set_symtab>: New methods.
4831 <m_symtabs>: New field.
4832 (struct dwarf2_psymtab): Derive from partial_symtab.
4833 <readin_p, get_compunit_symtab>: Declare methods.
4834 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4835 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4836 New methods.
4837 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4838 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4839 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4840 (dw2_symtab_iter_next, dw2_print_stats)
4841 (dw2_expand_symtabs_with_fullname)
4842 (dw2_expand_symtabs_matching_one)
4843 (dw_expand_symtabs_matching_file_matcher)
4844 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4845 (dw2_debug_names_iterator::next)
4846 (dw2_debug_names_map_matching_symbols)
4847 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4848 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4849 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4850 New methods.
4851 (get_compunit_symtab, process_full_comp_unit)
4852 (process_full_type_unit): Update.
4853 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4854
5989a64e
SM
48552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4858 then introduce a new dwarf2_per_objfile type.
4859 <read_line_string>: Move to the new dwarf2_per_objfile type.
4860 <objfile>: Likewise.
4861 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4862 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4863 dwarf2_per_objfile->per_bfd.
4864 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4865 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4866 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4867 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4868 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4869 (dwarf2_per_objfile::locate_sections): Rename to...
4870 (dwarf2_per_bfd::locate_sections): ... this.
4871 (dwarf2_per_objfile::get_cutu): Rename to...
4872 (dwarf2_per_bfd::get_cutu): ... this.
4873 (dwarf2_per_objfile::get_cu): Rename to...
4874 (dwarf2_per_bfd::get_cu): ... this.
4875 (dwarf2_per_objfile::get_tu): Rename to...
4876 (dwarf2_per_bfd::get_tu): ... this.
4877 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4878 (dwarf2_per_bfd::allocate_per_cu): ... this.
4879 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4880 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4881 (get_gdb_index_contents_ftype): Change parameter from
4882 dwarf2_per_objfile to dwarf2_per_bfd.
4883 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4884 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4885
a50264ba
TT
48862020-05-27 Tom Tromey <tom@tromey.com>
4887 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4890 (allocate_piece_closure): Set "per_objfile" member.
4891 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4892 (locexpr_describe_location, loclist_describe_location): Use new
4893 member.
4894 * dwarf2/read.c (read_call_site_scope)
4895 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4896 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4897 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4898 handle_data_member_location): Set per_objfile member.
4899 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4900 member.
4901 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4902
d3473f0c
TT
49032020-05-27 Tom Tromey <tom@tromey.com>
4904
4905 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4906 allocate_signatured_type>: Declare new methods.
4907 <m_num_psymtabs>: New member.
4908 (struct dwarf2_per_cu_data) <index>: New member.
4909 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4910 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4911 (create_cu_from_index_list): Use allocate_per_cu.
4912 (create_signatured_type_table_from_index)
4913 (create_signatured_type_table_from_debug_names)
4914 (create_debug_type_hash_table, add_type_unit)
4915 (read_comp_units_from_section): Use allocate_signatured_type.
4916
5717c425
TT
49172020-05-27 Tom Tromey <tom@tromey.com>
4918
4919 * psymtab.c (partial_map_expand_apply)
4920 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4921 (psym_lookup_global_symbol_language)
4922 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4923 (psym_print_stats, psym_expand_symtabs_for_function)
4924 (psym_map_symbol_filenames, psym_map_matching_symbols)
4925 (psym_expand_symtabs_matching)
4926 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4927 (maintenance_check_psymtabs): Update.
4928 * psympriv.h (struct partial_symtab) <readin_p,
4929 get_compunit_symtab>: Add objfile parameter.
4930 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4931 Likewise.
4932 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4933 get_compunit_symtab>: Likewise.
4934 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4935
45940949
TT
49362020-05-27 Tom Tromey <tom@tromey.com>
4937
4938 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4939 member.
4940 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4941 (create_cu_from_index_list)
4942 (create_signatured_type_table_from_index)
4943 (create_signatured_type_table_from_debug_names)
4944 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4945 (dwarf2_create_include_psymtab)
4946 (create_debug_type_hash_table, add_type_unit)
4947 (create_type_unit_group, read_comp_units_from_section)
4948 (dwarf2_compute_name, create_cus_hash_table)
4949 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4950 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4951 obstack.
4952 (dw2_get_real_path): Likewise. Change argument to
4953 dwarf2_per_objfile.
4954
f8c6d152
LM
49552020-05-27 Luis Machado <luis.machado@linaro.org>
4956
4957 PR tdep/26000
4958 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4959 for ldrd (immediate).
4960
e98d2e6d
PW
49612020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4962
4963 * command.h: Add comment giving the name of class_tui.
4964 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4965 create the fake command for the help for class_tui.
4966
53a47a3e
TT
49672020-05-26 Tom Tromey <tromey@adacore.com>
4968
4969 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4970 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4971 (val_atr): New function.
4972 (value_val_atr): Use it.
4973 * ada-valprint.c (print_optional_low_bound): Change low bound
4974 handling for enums.
4975 (val_print_packed_array_elements): Don't call discrete_position.
4976 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4977 discrete_position for enum types.
4978 * language.c (default_print_array_index): Change type.
4979 * language.h (struct language_defn) <la_print_array_index>: Add
4980 index_type parameter, change type of index_value.
4981 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4982 (default_print_array_index): Update.
4983 * valprint.c (maybe_print_array_index): Don't call
4984 value_from_longest. Update.
4985 (value_print_array_elements): Don't call discrete_position.
4986
0bc2354b
TT
49872020-05-26 Tom Tromey <tromey@adacore.com>
4988
4989 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4990 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4991
1218a4bf
CDA
49922020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4993
4994 PR gdb/13519
4995 * avr-tdep.c (avr_integer_to_address): Return data or code
4996 address accordingly to the second 'type' argument of the
4997 function.
4998
92651b1d
MW
49992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5000
5001 * infcmd.c, inferior.h: (construct_inferior_arguments):
5002 Moved function from here to gdbsupport/common-inferior.{h,cc}
5003
0a4f5f8c
TT
50042020-05-23 Tom Tromey <tom@tromey.com>
5005
5006 Revert commit eca1f90c:
5007 * NEWS: Remove entry for completion styling.
5008 * completer.c (_rl_completion_prefix_display_length): Move
5009 declaration later.
5010 (gdb_fnprint): Revert.
5011 (gdb_display_match_list_1): Likewise.
5012 * cli/cli-style.c (completion_prefix_style)
5013 (completion_difference_style, completion_suffix_style): Remove.
5014 (_initialize_cli_style): Revert.
5015 * cli/cli-style.h (completion_prefix_style)
5016 (completion_difference_style, completion_suffix_style): Don't
5017 declare.
5018
e08bd6c5
PA
50192020-05-24 Pedro Alves <palves@redhat.com>
5020
5021 * symtab.c (completion_list_add_name): Return boolean indication
5022 of whether the symbol matched.
5023 (completion_list_add_symbol): Don't try to remove C++ aliases if
5024 the symbol didn't match in the first place.
5025 * symtab.h (completion_list_add_name): Return bool.
5026
ceacbf6e
SM
50272020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5030 type::field.
5031
26f16254
JB
50322020-05-23 Joel Brobecker <brobecker@adacore.com>
5033
5034 GDB 9.2 released.
5035
eca1f90c
TT
50362020-05-23 Tom Tromey <tom@tromey.com>
5037
5038 * NEWS: Add entry for completion styling.
5039 * completer.c (_rl_completion_prefix_display_length): Move
5040 declaration earlier.
5041 (gdb_fnprint): Use completion_style.
5042 (gdb_display_match_list_1): Likewise.
5043 * cli/cli-style.c (completion_prefix_style)
5044 (completion_difference_style, completion_suffix_style): New
5045 globals.
5046 (_initialize_cli_style): Register new globals.
5047 * cli/cli-style.h (completion_prefix_style)
5048 (completion_difference_style, completion_suffix_style): Declare.
5049
51e2cfa2
PA
50502020-05-23 Pedro Alves <palves@redhat.com>
5051
5052 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5053 (parse_escape): Use ISDIGIT instead of isdigit.
5054 (puts_debug): Use gdb_isprint instead of isprint.
5055 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5056 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5057 ISSPACE instead of isspace.
5058 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5059 instead of isspace.
5060 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5061 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5062 instead of isxdigit and ISDIGIT instead of isdigit.
5063
80fc5e77
SM
50642020-05-22 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (struct type) <field>: New method.
5067 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5068 or type::field.
5069
3cabb6b0
SM
50702020-05-22 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5073 (TYPE_FIELDS): Use type::fields. Change all call sites that
5074 modify the propery to use type::set_fields instead.
5075
1f704f76
SM
50762020-05-22 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5079 type::num_fields instead.
5080
5e33d5f4
SM
50812020-05-22 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5084 methods.
5085 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5086 that modify the number of fields to use type::set_num_fields
5087 instead.
5088
9392ebb3
TT
50892020-05-22 Tom Tromey <tromey@adacore.com>
5090
5091 * compile/compile-object-load.h (munmap_list_free): Don't
5092 declare.
5093
7c13f4e8
AB
50942020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5095
5096 * annotate.c (annotate_source_line): Update return type, add call
5097 to update current symtab and line.
5098 * annotate.h (annotate_source_line): Update return type, and
5099 extend header comment.
5100 * source.c (info_line_command): Check annotation_level before
5101 calling annotate_source_line.
5102 * stack.c (print_frame_info): If calling annotate_source_line
5103 returns true, then don't print any other source line information.
5104
aa370940
SM
51052020-05-21 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5108
84d53fa9
SM
51092020-05-21 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * coffread.c (patch_type): Remove NULL check before xfree.
5112 * corefile.c (set_gnutarget): Likewise.
5113 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5114 * exec.c (build_section_table): Likewise.
5115 * remote.c (remote_target::pass_signals): Likewise.
5116 * utils.c (n_spaces): Likewise.
5117 * cli/cli-script.c (document_command): Likewise.
5118 * i386-windows-tdep.c (core_process_module_section): Likewise.
5119 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5120
9d428aae
SM
51212020-05-20 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * symfile.c (reread_symbols): Clear objfile's section_offsets
5124 vector and section indices, re-compute them by calling
5125 sym_offsets.
5126
250106a7
TT
51272020-05-20 Tom Tromey <tromey@adacore.com>
5128
5129 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5130 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5131
9a0bacfb
TV
51322020-05-20 Tom de Vries <tdevries@suse.de>
5133
5134 PR symtab/25833
5135 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5136
7b958a48
AM
51372020-05-20 Alan Modra <amodra@gmail.com>
5138
5139 PR 25993
5140 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5141 bfd_set_filename.
5142 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5143 passed to bfd_set_filename.
5144 * symfile-mem.c (add_vsyscall_page): Likewise for string
5145 passed to symbol_file_add_from_memory.
5146 (symbol_file_add_from_memory): Make name param a const char* and
5147 don't strdup.
5148
c7e97679
AM
51492020-05-20 Alan Modra <amodra@gmail.com>
5150
5151 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5152 rather than accessing bfd->filename directly.
5153 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5154 and use bfd_section_name.
5155 * dwarf2/frame.c (decode_frame_entry): Likewise.
5156 * exec.c (exec_set_section_address): Likewise.
5157 * solib-aix.c (solib_aix_bfd_open): Likewise.
5158 * stap-probe.c (get_stap_base_address): Likewise.
5159 * symfile.c (reread_symbols): Likewise.
5160
563c591b
TT
51612020-05-19 Tom Tromey <tromey@adacore.com>
5162
5163 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5164
f408d82c
SM
51652020-05-19 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5168
98c59b52
PA
51692020-05-19 Pedro Alves <palves@redhat.com>
5170
5171 * NEWS (set exec-file-mismatch): Adjust entry.
5172 * exec.c: Include "build-id.h".
5173 (validate_exec_file): Try to match build IDs instead of filenames.
5174 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5175 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5176 and pass down 'warn_if_slow'.
5177 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5178 gdb_bfd_open_closure to pass it down.
5179 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5180
4111f652
PA
51812020-05-19 Pedro Alves <palves@redhat.com>
5182
5183 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5184 * target.c (target_fileio_open_1): Rename to target_fileio_open
5185 and make extern. Use bool.
5186 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5187 (target_fileio_read_alloc_1): Adjust.
5188 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5189 (target_fileio_open_warn_if_slow): Delete declaration.
5190
ad80db5b
PA
51912020-05-19 Pedro Alves <palves@redhat.com>
5192
5193 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5194 Adjust all callers.
5195
1d6ce4d3
YS
51962020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5197
5198 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5199 whether disp is negative.
5200
9005fbbb
SM
52012020-05-19 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * symfile.h (struct symfile_segment_data)
5204 <~symfile_segment_data>: Remove.
5205 <segment_info>: Change to std::vector.
5206 * symfile.c (default_symfile_segments): Update.
5207 * elfread.c (elf_symfile_segments): Update.
5208
68b888ff
SM
52092020-05-19 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5212 <segments>: New.
5213 <segment_bases, segment_sizes>: Remove.
5214 * symfile.c (default_symfile_segments): Update.
5215 * elfread.c (elf_symfile_segments): Update.
5216 * remote.c (remote_target::get_offsets): Update.
5217 * solib-target.c (solib_target_relocate_section_addresses):
5218 Update.
5219
62982abd
SM
52202020-05-19 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * symfile.h (struct symfile_segment_data): Initialize fields.
5223 <~symfile_segment_data>: Add.
5224 (symfile_segment_data_up): New.
5225 (struct sym_fns) <sym_segments>: Return a
5226 symfile_segment_data_up.
5227 (default_symfile_segments): Return a symfile_segment_data_up.
5228 (free_symfile_segment_data): Remove.
5229 (get_symfile_segment_data): Return a symfile_segment_data_up.
5230 * symfile.c (default_symfile_segments): Likewise.
5231 (get_symfile_segment_data): Likewise.
5232 (free_symfile_segment_data): Remove.
5233 (symfile_find_segment_sections): Update.
5234 * elfread.c (elf_symfile_segments): Return a
5235 symfile_segment_data_up.
5236 * remote.c (remote_target::get_offsets): Update.
5237 * solib-target.c (solib_target_relocate_section_addresses):
5238 Update.
5239 * symfile-debug.c (debug_sym_segments): Return a
5240 symfile_segment_data_up.
5241
7f204339
RO
52422020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5243
e52a0f1b
RO
5244 PR build/25981
5245 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5246 Hardcode register numbers.
5247
7f204339
RO
5248 PR build/25981
5249 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5250 procfs_find_LDT_entry): Remove.
5251 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5252 procfs_find_LDT_entry): Remove.
5253 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5254 Remove.
5255
7f32a4d5
PA
52562020-05-17 Pedro Alves <palves@redhat.com>
5257 Andrew Burgess <andrew.burgess@embecosm.com>
5258 Keno Fischer <keno@juliacomputing.com>
5259
5260 PR gdb/25741
5261 * breakpoint.c (build_target_condition_list): Update comments.
5262 (build_target_command_list): Update comments and skip matching
5263 locations.
5264 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5265 a separate function. Simplify "set breakpoint auto-hw off"
5266 handling.
5267 (insert_breakpoints): Update comment.
5268 (tracepoint_locations_match): New parameter. For breakpoints,
5269 compare location types too, if the caller wants to.
5270 (handle_automatic_hardware_breakpoints): New functions.
5271 (bp_location_is_less_than): Also sort by location type and
5272 hardware breakpoint length.
5273 (update_global_location_list): Handle "set breakpoint auto-hw on"
5274 here.
5275 (update_breakpoint_locations): Ask breakpoint_locations_match to
5276 ignore location types.
5277
7d93a1e0
SM
52782020-05-16 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5281 type::name instead.
5282
d0e39ea2
SM
52832020-05-16 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * gdbtypes.h (struct type) <name, set_name>: New methods.
5286 (TYPE_CODE): Use type::name. Change all call sites used to set
5287 the name to use type::set_name instead.
5288
2dab0c7b
TT
52892020-05-16 Tom Tromey <tom@tromey.com>
5290
5291 * top.c (quit_force): Update.
5292 * infrun.c (handle_no_resumed): Update.
5293 * top.h (all_uis): New function.
5294 (ALL_UIS): Remove.
5295
59f7bd8d
SM
52962020-05-16 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5299
9bf058f0
PA
53002020-05-16 Pedro Alves <palves@redhat.com>
5301
5302 * ia64-linux-nat.c
5303 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5304 Declare method.
5305 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5306
8f86ae1a
SM
53072020-05-15 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5310 (sparc64_adi_info): Likewise.
5311
d6bc0792
TT
53122020-05-15 Tom Tromey <tom@tromey.com>
5313
5314 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5315 block_objfile.
5316 (lookup_objfile_from_block): Remove.
5317 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5318 (lookup_global_symbol): Use block_objfile.
5319 * symtab.h (lookup_objfile_from_block): Don't declare.
5320 * printcmd.c (clear_dangling_display_expressions): Use
5321 block_objfile.
5322 * parse.c (operator_check_standard): Use block_objfile.
5323
8c14c3a3
TT
53242020-05-15 Tom Tromey <tom@tromey.com>
5325
5326 * language.c (language_alloc_type_symbol): Set
5327 SYMBOL_SECTION.
5328 * symtab.c (initialize_objfile_symbol): Remove.
5329 (allocate_symbol): Remove.
5330 (allocate_template_symbol): Remove.
5331 * dwarf2/read.c (fixup_go_packaging): Use "new".
5332 (new_symbol): Use "new".
5333 (read_variable): Don't call initialize_objfile_symbol. Use
5334 "new".
5335 (read_func_scope): Use "new".
5336 * xcoffread.c (process_xcoff_symbol): Don't call
5337 initialize_objfile_symbol.
5338 (SYMBOL_DUP): Remove.
5339 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5340 "new".
5341 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5342 (allocate_template_symbol): Don't declare.
5343 (struct symbol): Add copy constructor. Change defaults.
5344 * jit.c (finalize_symtab): Use "new".
5345 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5346 Use "new".
5347 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5348 (common_block_end): Use "new".
5349 * mdebugread.c (parse_symbol): Use "new".
5350 (new_symbol): Likewise.
5351
5b4a1a8d
PW
53522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5353
5354 * NEWS: Mention changes to help and apropos.
5355
57b4f16e
PW
53562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357
5358 * command.h (enum command_class): Improve comments, document
5359 that class_alias is for user-defined aliases, give the class
5360 name for each class, remove unused class_xdb.
5361 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5362 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5363 by a precise class.
5364 * infcmd.c (_initialize_infcmd): Likewise.
5365 * reverse.c (_initialize_reverse): Likewise.
5366 * stack.c (_initialize_stack): Likewise.
5367 * symfile.c (_initialize_symfile): Likewise.
5368 * tracepoint.c (_initialize_tracepoint): Likewise.
5369
7c05caf7
PW
53702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5371
5372 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5373 when their aliased command is traversed.
5374 (help_cmd): Add fput_command_names_styled call to
5375 output command name and aliases when command has an alias.
5376
3b3aaacb
PW
53772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5378
5379 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5380 * cli/cli-decode.c (help_cmd_list): Declare as static,
5381 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5382 a command together with the command.
5383 (fput_command_name_styled, fput_command_names_styled): New functions.
5384 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5385 fput_command_name_styled.
5386 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5387 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5388
7aa1b46f
PW
53892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5390
5391 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5392 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5393 * command.h (cmd_show_list): Likewise.
5394 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5395 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5396
89bcba74
PW
53972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5398
5399 * unittests/command-def-selftests.c (traverse_command_structure):
5400 Verify all commands of a list have the same prefix command and
5401 that only the top cmdlist commands have a null prefix.
5402
3f4d92eb
PW
54032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5404
5405 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5406 as prefix, not one of its aliases.
5407 (set_cmd_prefix): Remove.
5408 (do_add_cmd): Centralize the setting of the prefix of a command, when
5409 command is defined after its full chain of prefix commands.
5410 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5411 (add_setshow_cmd_full): Likewise.
5412 (update_prefix_field_of_prefixed_commands): New function.
5413 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5414 update_prefix_field_of_prefixed_commands.
5415 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5416 addresses of remote_set_cmdlist and remote_show_cmdlist given
5417 as argument, not the address of an argument.
5418 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5419 * gdb/remote.c (_initialize_remote): Likewise.
5420
0605465f
PW
54212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5422
5423 * cli/cli-cmds.c (alias_command): Check for an existing alias
5424 using lookup_cmd_composition, as valid_command_p is too strict
5425 and forbids aliases that are the prefix of an existing alias
5426 or command.
5427 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5428 command is properly recognised as a valid command.
5429
58e6ac70
PW
54302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5431
5432 * unittests/help-doc-selftests.c: Rename to
5433 unittests/command-def-selftests.c
5434 * unittests/command-def-selftests.c (help_doc_tests): Update some
5435 comments.
5436 (command_structure_tests, traverse_command_structure): New namespace
5437 and function.
5438 (command_structure_invariants_tests): New function.
5439 (_initialize_command_def_selftests) Renamed from
5440 _initialize_help_doc_selftests, register command_structure_invariants
5441 selftest.
5442
a7b9ceb8
PW
54432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5444
5445 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5446 an alias of 'show'.
5447
b2188a06
JB
54482020-05-15 Joel Brobecker <brobecker@adacore.com>
5449
5450 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5451 ada_is_fixed_point_type. Update all callers.
5452 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5453 all callers.
5454 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5455 Update all callers.
5456 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5457 print_fixed_point_type. Update all callers.
5458 * ada-valprint.c (ada_value_print_num): Replace call to
5459 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5460
a51951c2
KB
54612020-05-14 Kevin Buettner <kevinb@redhat.com>
5462
5463 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5464 processors.
5465 (cpu_supports_bts): Add CV_AMD case.
5466
29d6859f
LM
54672020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5468 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * infrun.c (stop_all_threads): Collect multiple wait events at
5471 each pass.
5472
78134374
SM
54732020-05-14 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5476 type::code instead.
5477
67607e24
SM
54782020-05-14 Simon Marchi <simon.marchi@efficios.com>
5479
5480 * gdbtypes.h (struct type) <code, set_code>: New methods.
5481 (TYPE_CODE): Use type::code. Change all call sites used to set
5482 the code to use type::set_code instead.
5483
a05575d3
TBA
54842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5485 Tom de Vries <tdevries@suse.de>
5486 Pedro Alves <palves@redhat.com>
5487
5488 PR threads/25478
5489 * infrun.c (stop_all_threads): Do NOT ignore
5490 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5491 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5492 received.
5493 (handle_no_resumed): Remove code handling a live inferior with no
5494 threads.
5495 * remote.c (has_single_non_exited_thread): New.
5496 (remote_target::update_thread_list): Do not delete a thread if is
5497 the last thread of the process.
5498 * thread.c (thread_select): Call delete_exited_threads instead of
5499 prune_threads.
5500
6ad82919
TBA
55012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5502
5503 * infrun.c (stop_all_threads): Enable/disable thread events of all
5504 targets. Move a debug message denoting the end of the function
5505 into the SCOPED_EXIT block.
5506
d890404b
TBA
55072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5508
5509 * process-stratum-target.h: Include <set>.
5510 (all_non_exited_process_targets, switch_to_target_no_thread): New
5511 function declarations.
5512 * process-stratum-target.c (all_non_exited_process_targets)
5513 (switch_to_target_no_thread): New function implementations.
5514
293b3ebc
TBA
55152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5516
5517 * infrun.c (handle_inferior_event): Extract out a piece of code
5518 into...
5519 (mark_non_executing_threads): ...this new function.
5520
7ca9b62a
TBA
55212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5522
5523 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5524 use.
5525
fc75c28b
TBA
55262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5527
5528 * regcache.c (regcache_read_pc_protected): New function
5529 implementation that returns 0 if the PC cannot read via
5530 'regcache_read_pc'.
5531 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5532 instead of 'regcache_read_pc'.
5533 (keep_going_pass_signal): Ditto.
5534
a89febbd
TT
55352020-05-13 Tom Tromey <tromey@adacore.com>
5536
5537 * ada-lang.c (align_value): Remove.
5538 (ada_template_to_fixed_record_type_1): Use align_up.
5539
f7e23710
TBA
55402020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5541
5542 * async-event.c: Update the copyright year.
5543 * async-event.h: Update the copyright year.
5544
02ff80c2
SM
55452020-05-12 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * objfiles.h (is_addr_in_objfile,
5548 shared_objfile_contains_address_p): Return bool.
5549 * objfile.c (is_addr_in_objfile,
5550 shared_objfile_contains_address_p): Return bool.
5551
4fd6c7e8
TT
55522020-05-11 Tom Tromey <tromey@adacore.com>
5553
5554 * cli/cli-cmds.c (info_command): Restore.
5555 (_initialize_cli_cmds): Use add_prefix_command for "info".
5556 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5557
5eb68a39
TT
55582020-05-11 Tom Tromey <tromey@adacore.com>
5559
5560 * ada-lang.c (ada_value_primitive_field): Now public.
5561 * ada-lang.h (ada_value_primitive_field): Declare.
5562 * ada-valprint.c (print_field_values): Use
5563 ada_value_primitive_field for wrapper fields.
5564
7666722f
TV
55652020-05-11 Tom de Vries <tdevries@suse.de>
5566
5567 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5568 MODULE_DOMAIN.
5569
3ee6bb11
TV
55702020-05-11 Tom de Vries <tdevries@suse.de>
5571
5572 PR symtab/25941
5573 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5574 with length 0, if not gdb-produced.
5575 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5576
43434996
TV
55772020-05-09 Tom de Vries <tdevries@suse.de>
5578
5579 PR gdb/25955
5580 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5581 calculation.
5582
2f78cffc
TT
55832020-05-09 Tom Tromey <tom@tromey.com>
5584
5585 * top.c (server_command): Now bool.
5586 * top.h (server_command): Now bool.
5587
4f7bc5ed
TT
55882020-05-08 Tom Tromey <tromey@adacore.com>
5589
5590 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5591 already being processed.
5592
8be4b118
TT
55932020-05-08 Tom Tromey <tom@tromey.com>
5594
5595 * printcmd.c (struct display) <next>: Remove.
5596 <display>: New constructor.
5597 <exp_string>: Now a std::string.
5598 <enabled_p>: Now a bool.
5599 (display_number): Move definition earlier.
5600 (displays): Rename from display_chain. Now a std::vector.
5601 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5602 (display_command): Update.
5603 (do_one_display, disable_display)
5604 (enable_disable_display_command, do_enable_disable_display):
5605 Update.
5606 (free_display): Remove.
5607 (clear_displays): Rewrite.
5608 (delete_display): Update.
5609 (map_display_numbers): Use function_view. Remove "data"
5610 parameter. Update.
5611 (do_delete_display): Remove.
5612 (undisplay_command): Update.
5613 (do_one_display, do_displays, disable_display)
5614 (info_display_command): Update.
5615 (do_enable_disable_display): Remove.
5616 (enable_disable_display_command)
5617 (clear_dangling_display_expressions): Update.
5618
94c93c35
TT
56192020-05-08 Tom Tromey <tom@tromey.com>
5620
5621 * symtab.c (set_symbol_cache_size)
5622 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5623 (maintenance_print_symbol_cache_statistics): Update.
5624 * symmisc.c (print_symbol_bcache_statistics)
5625 (print_objfile_statistics, maintenance_print_objfiles)
5626 (maintenance_info_symtabs, maintenance_check_symtabs)
5627 (maintenance_expand_symtabs, maintenance_info_line_tables):
5628 Update.
5629 * symfile-debug.c (set_debug_symfile): Update.
5630 * source.c (forget_cached_source_info): Update.
5631 * python/python.c (gdbpy_progspaces): Update.
5632 * psymtab.c (maintenance_info_psymtabs): Update.
5633 * probe.c (parse_probes): Update.
5634 * linespec.c (iterate_over_all_matching_symtabs)
5635 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5636 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5637 * exec.c (exec_target::close): Update.
5638 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5639 * breakpoint.c (print_one_breakpoint_location)
5640 (create_longjmp_master_breakpoint)
5641 (create_std_terminate_master_breakpoint): Update.
5642 * progspace.c (program_spaces): Now a std::vector.
5643 (maybe_new_address_space): Update.
5644 (add_program_space): Remove.
5645 (program_space::program_space): Update.
5646 (remove_program_space): Update.
5647 (number_of_program_spaces): Remove.
5648 (print_program_space, update_address_spaces): Update.
5649 * progspace.h (program_spaces): Change type.
5650 (ALL_PSPACES): Remove.
5651 (number_of_program_spaces): Don't declare.
5652 (struct program_space) <next>: Remove.
5653
a1fd1ac9
TT
56542020-05-08 Tom Tromey <tom@tromey.com>
5655
5656 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5657 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5658 (enable_break): Update.
5659 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5660 (frv_fdpic_find_canonical_descriptor): Update.
5661 (frv_fetch_objfile_link_map): Update.
5662 * progspace.c (program_space::free_all_objfiles): Update.
5663 (program_space::solibs): New method.
5664 * progspace.h (struct program_space) <solibs>: New method.
5665 * solist.h (master_so_list): Don't declare.
5666 (ALL_SO_LIBS): Remove.
5667 * solib.h (so_list_head): Remove.
5668 (update_solib_list): Update comment.
5669 * solib.c (master_so_list): Remove.
5670 (solib_used, update_solib_list, solib_add)
5671 (info_sharedlibrary_command, clear_solib)
5672 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5673
38eae084
TT
56742020-05-08 Tom Tromey <tom@tromey.com>
5675
5676 * extension.c (extension_languages): Now a std::array.
5677 (ALL_EXTENSION_LANGUAGES): Remove.
5678 (get_ext_lang_defn, get_ext_lang_of_file)
5679 (eval_ext_lang_from_control_command): Update.
5680 (finish_ext_lang_initialization)
5681 (auto_load_ext_lang_scripts_for_objfile)
5682 (ext_lang_type_printers::ext_lang_type_printers)
5683 (apply_ext_lang_type_printers)
5684 (ext_lang_type_printers::~ext_lang_type_printers)
5685 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5686 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5687 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5688 (get_matching_xmethod_workers, ext_lang_colorize)
5689 (ext_lang_before_prompt): Update.
5690 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5691
596dc4ad
TT
56922020-05-08 Tom Tromey <tom@tromey.com>
5693
5694 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5695 overload.
5696 <swap_string, m_string>: Remove.
5697 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5698 Update.
5699 * stabsread.c (define_symbol, read_type): Update.
5700 * linespec.c (find_linespec_symbols): Update.
5701 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5702 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5703 * dbxread.c (read_dbx_symtab): Update.
5704 * cp-support.h (cp_canonicalize_string_full)
5705 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5706 Return unique_xmalloc_ptr.
5707 * cp-support.c (inspect_type): Update.
5708 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5709 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5710 Likewise.
5711 * c-typeprint.c (print_name_maybe_canonical): Update.
5712 * break-catch-throw.c (check_status_exception_catchpoint):
5713 Update.
5714
bf4cb9be
TV
57152020-05-08 Tom de Vries <tdevries@suse.de>
5716
5717 * infrun.c (follow_fork): Copy current_line and current_symtab to
5718 child thread.
5719
a1b68f28
SM
57202020-05-07 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * async-event.c (struct async_signal_handler, struct
5723 async_event_handler): Reformat, remove typedef.
5724
98d48915
SM
57252020-05-07 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5728 access thistype->main_type->dyn_prop_list directly.
5729
7aa91313
SM
57302020-05-07 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5733 (remove_dyn_prop): Remove. Update all users to use
5734 type::remove_dyn_prop.
5735 * gdbtypes.c (remove_dyn_prop): Rename to...
5736 (type::remove_dyn_prop): ... this.
5737
5c54719c
SM
57382020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5739
5740 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5741 (add_dyn_prop): Remove. Update all users to use
5742 type::add_dyn_prop.
5743 * gdbtypes.c (add_dyn_prop): Rename to...
5744 (type::add_dyn_prop): ... this.
5745
24e99c6c
SM
57462020-05-07 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5749 (get_dyn_prop): Remove. Update all users to use
5750 type::dyn_prop.
5751 * gdbtypes.c (get_dyn_prop): Rename to...
5752 (type::dyn_prop): ... this.
5753
0d4bf016
SM
57542020-05-06 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5757
ac4a4f1c
SM
57582020-05-06 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5761 instruction, skip it if it's there.
5762
a3bbacc1
SM
57632020-05-05 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5766
c3236f84
SM
57672020-05-04 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5770 * gdbtypes.c (recursive_dump_type): Remove use of
5771 TYPE_INCOMPLETE.
5772
3b6acaee
TT
57732020-05-03 Tom Tromey <tom@tromey.com>
5774
5775 * breakpoint.c (catch_command, tcatch_command): Remove.
5776 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5777 add_show_prefix_cmd.
5778 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5779 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5780 Remove.
5781 (add_internal_problem_command): Use add_basic_prefix_cmd,
5782 add_show_prefix_cmd.
5783 * mips-tdep.c (set_mipsfpu_command): Remove.
5784 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5785 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5786 (_initialize_index_cache): Use add_basic_prefix_cmd.
5787 * memattr.c (dummy_cmd): Remove.
5788 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5789 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5790 (_initialize_tui_win): Use add_basic_prefix_cmd,
5791 add_show_prefix_cmd.
5792 * cli/cli-logging.c (set_logging_command): Remove.
5793 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5794 add_show_prefix_cmd.
5795 (show_logging_command): Remove.
5796 * target.c (target_command): Remove.
5797 (add_target): Use add_basic_prefix_cmd.
5798
a51119cd
HD
57992020-05-02 Hannes Domani <ssbssa@yahoo.de>
5800
5801 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5802
652fc23a 58032020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5804
652fc23a
PW
5805 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5806 info_command.
5807
117539e6
KR
58082020-04-30 Kamil Rytarowski <n54@gmx.com>
5809
5810 * nbsd-nat.c (nbsd_enable_proc_events)
5811 (nbsd_nat_target::post_startup_inferior): Add.
5812 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5813 (nbsd_nat_target::update_thread_list): Rewrite.
5814 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5815 "PTRACE_LWP_CREATE".
5816 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5817
102e38eb 58182020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5819
102e38eb
PW
5820 * stack.c (_initialize_stack): Remove duplicated creation
5821 of "frame" command and "f" alias.
5822
ee9d1e5f
HD
58232020-04-30 Hannes Domani <ssbssa@yahoo.de>
5824
5825 PR gdb/18706
5826 * gdbtypes.c (check_typedef): Calculate size of array of
5827 stubbed type.
5828
627c7fb8
HD
58292020-04-30 Hannes Domani <ssbssa@yahoo.de>
5830
5831 PR gdb/15559
5832 * i386-tdep.c (i386_push_dummy_call): Call
5833 i386_thiscall_push_dummy_call.
5834 (i386_thiscall_push_dummy_call): New function.
5835 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5836 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5837 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5838
ffc2844e
SM
58392020-04-29 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbarch.sh (do_read): Add shellcheck disable directive for
5842 warning SC2162.
5843
1207375d
SM
58442020-04-29 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5847 "referenced but not assigned" warning.
5848
9fdb2916
SM
58492020-04-29 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * gdbarch.sh: Remove code that sets fallbackdefault.
5852
759cea5e
SM
58532020-04-29 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * gdbarch.sh: Use shell operators && and || instead of
5856 -a and -o.
5857
cb02ab24
SM
58582020-04-29 Simon Marchi <simon.marchi@efficios.com>
5859
5860 * gdbarch.sh: Use $(...) instead of `...`.
5861
a6fc5ffc
SM
58622020-04-29 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * gdbarch.sh: Use double quotes around variables.
5865
8d113d13
SM
58662020-04-29 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * gdbarch.sh: Use %s with printf, instead of variables in the
5869 format string.
5870
ed6acedd
TT
58712020-04-29 Tom Tromey <tromey@adacore.com>
5872
5873 PR ada/25875:
5874 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5875 type fields here.
5876 (read_enumeration_type): Call
5877 update_enumeration_type_from_children later. Update comments.
5878 (process_enumeration_scope): Don't create type fields.
5879
b68b1b58
KR
58802020-04-29 Kamil Rytarowski <n54@gmx.com>
5881
5882 * nbsd-tdep.c: Include "xml-syscall.h".
5883 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5884
f94b2e03
KR
58852020-04-29 Kamil Rytarowski <n54@gmx.com>
5886
5887 * nbsd-nat.c: Include "sys/wait.h".
5888 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5889 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5890 (nbsd_nat_target::remove_exec_catchpoint)
5891 (nbsd_nat_target::set_syscall_catchpoint): Add.
5892 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5893 (nbsd_nat_target::insert_exec_catchpoint)
5894 (nbsd_nat_target::remove_exec_catchpoint)
5895 (nbsd_nat_target::set_syscall_catchpoint): Add.
5896 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5897 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5898 `nbsd_get_syscall_number'.
5899
fc49bc72
TT
59002020-04-29 Tom Tromey <tom@tromey.com>
5901
5902 * stack.c (print_block_frame_labels): Remove.
5903
d642b692
HD
59042020-04-29 Hannes Domani <ssbssa@yahoo.de>
5905
5906 PR gdb/17320
5907 * ada-valprint.c (val_print_packed_array_elements): Move array
5908 end bracket to new line.
5909 (ada_val_print_string): Remove extra spaces before first array
5910 element.
5911 * c-valprint.c (c_value_print_array): Likewise.
5912 * m2-valprint.c (m2_print_array_contents): Likewise.
5913 (m2_value_print_inner): Likewise.
5914 * p-valprint.c (pascal_value_print_inner): Likewise.
5915 * valprint.c (generic_val_print_array): Likewise.
5916 (value_print_array_elements): Move first array element and array
5917 end bracket to new line.
5918
ea90f227
TV
59192020-04-29 Tom de Vries <tdevries@suse.de>
5920
5921 PR symtab/25889
5922 * linespec.c (find_method): Fix ix calculation.
5923
4498ef4f
KR
59242020-04-28 Kamil Rytarowski <n54@gmx.com>
5925
5926 * syscalls/update-netbsd.sh: New file.
5927 * syscalls/netbsd.xml: Regenerate.
5928 * data-directory/Makefile.in: Register `netbsd.xml' in
5929 `SYSCALLS_FILES'.
5930
a55e30b5
SM
59312020-04-28 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * syscalls/update-freebsd.sh: Add double quotes.
5934
2b2fbab8
TT
59352020-04-28 Tom Tromey <tom@tromey.com>
5936
5937 * NEWS: Update.
5938 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5939 (cmdpy_init): Allow class_tui.
5940
a65189c9
TV
59412020-04-28 Mark Williams <mark@myosotissp.com>
5942
5943 PR gdb/24480
5944 * dwarf2read.c: Add missing assingments to list_in_scope when
5945 start_symtab was already called.
5946
1b95cdb7
SM
59472020-04-28 Simon Marchi <simon.marchi@efficios.com>
5948
5949 PR gdb/25881
5950 * dwarf2/read.c (offset_map_type): Use
5951 gdb:hash_enum<sect_offset> as hash function.
5952
15cd93d0
TV
59532020-04-28 Tom de Vries <tdevries@suse.de>
5954
5955 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5956 with DW_AT_signature.
5957
1eb39914
SM
59582020-04-27 Simon Marchi <simon.marchi@efficios.com>
5959
5960 * configure.ac: Remove check for fs_base/gs_base in
5961 user_regs_struct.
5962 * configure: Re-generate.
5963 * config.in: Re-generate.
5964 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5965 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5966 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5967
991a3e2e
LM
59682020-04-27 Luis Machado <luis.machado@linaro.org>
5969
5970 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5971 problematic inline frame unwinding situation.
5972 * frame.c (frame_id_computed_p): New function.
5973 * frame.h (frame_id_computed_p): New prototype.
5974
361ba0e8
TT
59752020-04-26 Tom Tromey <tom@tromey.com>
5976
5977 * command.h (enum command_class) <class_pseudo>: Remove.
5978
bc3609fd
PW
59792020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980
5981 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5982 and whitespace.
5983
b9771db7
KR
59842020-04-25 Kamil Rytarowski <n54@gmx.com>
5985
ec16513e
SM
5986 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5987 `PT_GET_PROCESS_STATE' block.
b9771db7 5988
7151c1af
TT
59892020-04-24 Tom Tromey <tom@tromey.com>
5990
5991 * symtab.h (symbol_get_demangled_name): Don't declare.
5992 * symtab.c (symbol_get_demangled_name): Remove.
5993 (general_symbol_info::natural_name)
5994 (general_symbol_info::demangled_name): Update.
5995
906bb4c5
TT
59962020-04-24 Tom Tromey <tom@tromey.com>
5997
5998 PR rust/25025:
5999 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6000
bcfe6157
TT
60012020-04-24 Tom Tromey <tom@tromey.com>
6002
6003 PR symtab/12707:
6004 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6005 exists.
6006 (new_symbol): Likewise.
6007 * compile/compile-object-load.c (get_out_value_type): Use
6008 symbol_matches_search_name.
6009
f049a313
TT
60102020-04-24 Tom Tromey <tom@tromey.com>
6011
6012 * dwarf2/read.c (add_partial_symbol): Do not call
6013 compute_and_set_names.
6014
76e288d1
TT
60152020-04-24 Tom Tromey <tom@tromey.com>
6016
6017 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6018 overload.
6019
2467f4f6
TT
60202020-04-24 Tom Tromey <tom@tromey.com>
6021
6022 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6023 (add_psymbol_to_list): New overload. Make old overload call new
6024 one.
6025 * psympriv.h (add_psymbol_to_list): New overload.
6026
e61108c9
TT
60272020-04-24 Tom Tromey <tom@tromey.com>
6028
6029 * dwarf2/read.c (partial_die_info::read) <case
6030 DW_AT_linkage_name>: Use value_as_string.
6031 (dwarf2_string_attr): Use value_as_string.
6032 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6033 method.
6034 * dwarf2/attribute.c (attribute::value_as_string): New method.
6035
8c87a452
TT
60362020-04-24 Tom Tromey <tom@tromey.com>
6037
6038 * symtab.c (general_symbol_info::natural_name)
6039 (general_symbol_info::demangled_name): Check for language_rust.
6040
787de330
TT
60412020-04-24 Tom Tromey <tom@tromey.com>
6042
6043 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6044 (dwarf2_physname): ... from here.
6045 (partial_die_info::read): Add Rust "{" hack.
6046
ff985671
TT
60472020-04-24 Tom Tromey <tom@tromey.com>
6048
6049 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6050 method.
6051 (symbol_set_demangled_name): Don't declare.
6052 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6053 symbol_set_demangled_name.
6054 (general_symbol_info::set_language)
6055 (general_symbol_info::compute_and_set_names): Update.
6056 * minsyms.c (minimal_symbol_reader::install): Update.
6057 * dwarf2/read.c (new_symbol): Update.
6058
1acda803
TT
60592020-04-24 Tom Tromey <tromey@adacore.com>
6060
6061 PR python/23662:
6062 * python/py-type.c (convert_field): Handle
6063 FIELD_LOC_KIND_DWARF_BLOCK.
6064 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6065 (typy_get_dynamic): Nw function.
6066 (type_object_getset): Add "dynamic".
6067 * NEWS: Add entry.
6068
d656f129
TT
60692020-04-24 Tom Tromey <tromey@adacore.com>
6070
6071 * ada-typeprint.c (print_choices, print_variant_part)
6072 (print_record_field_types_dynamic): New functions.
6073 (print_record_field_types): Use print_record_field_types_dynamic.
6074
7d79de9a
TT
60752020-04-24 Tom Tromey <tromey@adacore.com>
6076
6077 * dwarf2/read.c (handle_data_member_location): New overload.
6078 (dwarf2_add_field): Use it.
6079 (decode_locdesc): Add "computed" parameter. Update comment.
6080 * gdbtypes.c (is_dynamic_type_internal): Also look for
6081 FIELD_LOC_KIND_DWARF_BLOCK.
6082 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6083 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6084 virtual base classes.
6085 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6086 FIELD_LOC_KIND_DWARF_BLOCK.
6087
f8e89861
TT
60882020-04-24 Tom Tromey <tromey@adacore.com>
6089
6090 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6091 * gdbtypes.c (is_dynamic_type_internal): Check
6092 TYPE_HAS_DYNAMIC_LENGTH.
6093 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6094 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6095 New macros.
6096 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6097 constant.
6098
9c6a1327
TT
60992020-04-24 Tom Tromey <tromey@adacore.com>
6100
6101 * dwarf2/read.c (struct variant_field): Rewrite.
6102 (struct variant_part_builder): New.
6103 (struct nextfield): Remove "variant" field. Add "offset".
6104 (struct field_info): Add "current_variant_part" and
6105 "variant_parts".
6106 (alloc_discriminant_info): Remove.
6107 (alloc_rust_variant): New function.
6108 (quirk_rust_enum): Update.
6109 (dwarf2_add_field): Set "offset" member. Don't handle
6110 DW_TAG_variant_part.
6111 (offset_map_type): New typedef.
6112 (convert_variant_range, create_one_variant)
6113 (create_one_variant_part, create_variant_parts)
6114 (add_variant_property): New functions.
6115 (dwarf2_attach_fields_to_type): Call add_variant_property.
6116 (read_structure_type): Don't handle DW_TAG_variant_part.
6117 (handle_variant_part, handle_variant): New functions.
6118 (handle_struct_member_die): Use them.
6119 (process_structure_scope): Don't handle variant parts.
6120 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6121 (struct discriminant_info): Remove.
6122 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6123 (struct main_type) <flag_discriminated_union>: Remove.
6124 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6125 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6126 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6127 Update.
6128 * valops.c (value_union_variant): Remove.
6129 * value.h (value_union_variant): Don't declare.
6130
b249d2c2
TT
61312020-04-24 Tom Tromey <tromey@adacore.com>
6132
6133 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6134 (ada_value_primitive_packed_val): Update.
6135 * ada-valprint.c (ada_value_print_1): Update.
6136 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6137 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6138 just an address. Use evaluate_for_locexpr_baton.
6139 (dwarf2_evaluate_property): Update.
6140 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6141 array_view.
6142 * findvar.c (default_read_var_value): Update.
6143 * gdbtypes.c (compute_variant_fields_inner)
6144 (resolve_dynamic_type_internal): Update.
6145 (resolve_dynamic_type): Change type of valaddr parameter.
6146 * gdbtypes.h (resolve_dynamic_type): Update.
6147 * valarith.c (value_subscripted_rvalue): Update.
6148 * value.c (value_from_contents_and_address): Update.
6149
61122aa9
TT
61502020-04-24 Tom Tromey <tromey@adacore.com>
6151
6152 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6153 "push_initial_value" parameter.
6154 (dwarf2_evaluate_property): Likewise.
6155 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6156
ef83a141
TT
61572020-04-24 Tom Tromey <tromey@adacore.com>
6158
6159 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6160 (variant::matches, compute_variant_fields_recurse)
6161 (compute_variant_fields_inner, compute_variant_fields): New
6162 functions.
6163 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6164 Use resolved_type after type is made.
6165 (operator==): Add new cases.
6166 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6167 (struct discriminant_range, struct variant, struct variant_part):
6168 New.
6169 (union dynamic_prop_data) <variant_parts, original_type>: New
6170 members.
6171 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6172 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6173 constants.
6174 * value.c (unpack_bits_as_long): Now public.
6175 * value.h (unpack_bits_as_long): Declare.
6176
675127ec
TT
61772020-04-24 Tom Tromey <tromey@adacore.com>
6178
6179 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6180 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6181
9852ceef
HD
61822020-04-24 Hannes Domani <ssbssa@yahoo.de>
6183
6184 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6185
7632c6ce
KR
61862020-04-24 Kamil Rytarowski <n54@gmx.com>
6187
6188 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6189 (remove_fork_catchpoint, post_startup_inferior)
6190 (post_attach): Move...
6191 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6192 (remove_fork_catchpoint, post_startup_inferior)
6193 (post_attach): ...here.
6194 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6195 (remove_fork_catchpoint, post_startup_inferior)
6196 (post_attach): Move...
6197 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6198 (remove_fork_catchpoint, post_startup_inferior)
6199 (post_attach): ...here.
6200
7be2bb4f
TT
62012020-04-24 Tom Tromey <tromey@adacore.com>
6202
6203 * nat/windows-nat.h (struct windows_thread_info)
6204 <pc_adjusted>: New member.
6205 * windows-nat.c (windows_fetch_one_register): Check
6206 pc_adjusted.
6207 (windows_nat_target::get_windows_debug_event)
6208 (windows_nat_target::wait): Set pc_adjusted.
6209
f80cb3b4
TV
62102020-04-24 Tom de Vries <tdevries@suse.de>
6211
6212 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6213 Run gdb-add-index inside temp dir.
6214
29514b87
TT
62152020-04-23 Tom Tromey <tromey@adacore.com>
6216
6217 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6218 in loop.
6219
5939967b
LM
62202020-04-23 Luis Machado <luis.machado@linaro.org>
6221
6222 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6223 get_frame_register instead of gdbarch_unwind_pc.
6224
70bc38f5
TV
62252020-04-23 Tom de Vries <tdevries@suse.de>
6226
6227 * symtab.c (lookup_global_symbol): Prefer def over decl.
6228
de82891c
TV
62292020-04-23 Tom de Vries <tdevries@suse.de>
6230
6231 PR symtab/25807
6232 * block.c (best_symbol, better_symbol): Promote to external.
6233 * block.h (best_symbol, better_symbol): Declare.
6234 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6235 decl.
6236
ecc6c606
TT
62372020-04-23 Tom Tromey <tromey@adacore.com>
6238
6239 PR ada/25837:
6240 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6241 "const char *", not a "const std::string &".
6242 <name_and_matcher::operator==>: Update.
6243 * unittests/lookup_name_info-selftests.c: Change type of
6244 "result".
6245
740480b8
TT
62462020-04-23 Tom Tromey <tom@tromey.com>
6247
6248 * inferior.h (iterate_over_inferiors): Don't declare.
6249 * inferior.c (iterate_over_inferiors): Remove.
6250 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6251 Remove.
6252 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6253 use iterate_over_inferiors.
6254 (darwin_resume_inferior_it)
6255 (struct resume_inferior_threads_param)
6256 (darwin_resume_inferior_threads_it): Remove.
6257 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6258
ae3ab1f0
TV
62592020-04-23 Tom de Vries <tdevries@suse.de>
6260
6261 * blockframe.c (find_pc_partial_function): Use
6262 find_pc_sect_compunit_symtab rather than
6263 objfile->sf->qf->find_pc_sect_compunit_symtab.
6264
317d2668
TV
62652020-04-22 Tom de Vries <tdevries@suse.de>
6266
6267 PR symtab/25764
6268 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6269 in psymtabs.
6270
eea9e357
TV
62712020-04-22 Tom de Vries <tdevries@suse.de>
6272
6273 PR symtab/25801
6274 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6275 symtabs.
6276
3d5afab3
TV
62772020-04-22 Tom de Vries <tdevries@suse.de>
6278
6279 PR symtab/25700
6280 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6281 CU if already created.
6282
d43b7a2d
TBA
62832020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6284
6285 * infrun.c (displaced_step_fixup): Switch to the event_thread
6286 before calling displaced_step_restore, not after.
6287
d89edf9b
MM
62882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6289
6290 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6291 its inferior is not recorded by us.
6292 (record_btrace_target_open): Replace call to
6293 all_non_exited_threads () with call to current_inferior
6294 ()->non_exited_threads ().
6295 (record_btrace_target::stop_recording): Likewise.
6296 (record_btrace_target::close): Likewise.
6297 (record_btrace_target::wait): Likewise.
6298 (record_btrace_target::record_stop_replaying): Likewise.
6299
5897fd49
MM
63002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6301
6302 * btrace.c (btrace_enable): Throw an error on double enables and
6303 when enabling recording fails.
6304 (btrace_disable): Throw an error if the thread is not recorded.
6305
1a476b6d
MM
63062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6307
6308 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6309 request if we do not have a thread_info.
6310
4778a5f8
TV
63112020-04-21 Tom de Vries <tdevries@suse.de>
6312
6313 PR gdb/25471
6314 * thread.c
6315 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6316 exception in get_frame_id.
6317
0fa7617d
TT
63182020-04-20 Tom Tromey <tromey@adacore.com>
6319
6320 * python/python.c (struct gdbpy_event): Mark move constructor as
6321 noexcept.
6322 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6323 constructor as noexcept.
6324 * completer.h (struct completion_result): Mark move constructor as
6325 noexcept.
6326 * completer.c (completion_result::completion_result): Use
6327 initialization style. Don't call reset_match_list.
6328
ad23bda0
MS
63292020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6330
6331 * MAINTAINERS (Write After Approval): Add myself.
6332
45e1f031
TT
63332020-04-18 Tom Tromey <tom@tromey.com>
6334
6335 * windows-tdep.c (init_w32_command_list)
6336 (w32_prefix_command_valid): Restore.
6337 (_initialize_windows_tdep): Call init_w32_command_list.
6338
08feed99
TT
63392020-04-18 Tom Tromey <tom@tromey.com>
6340
6341 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6342 * value.c (value_fn_field): Update.
6343 * valops.c (find_function_in_inferior)
6344 (value_allocate_space_in_inferior): Update.
6345 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6346 Update.
6347 * tui/tui-source.c (tui_source_window::set_contents): Update.
6348 * symtab.c (lookup_global_or_static_symbol)
6349 (find_function_start_sal_1, skip_prologue_sal)
6350 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6351 * symmisc.c (dump_msymbols, dump_symtab_1)
6352 (maintenance_print_one_line_table): Update.
6353 * symfile.c (init_entry_point_info, section_is_mapped)
6354 (list_overlays_command, simple_read_overlay_table)
6355 (simple_overlay_update_1): Update.
6356 * stap-probe.c (handle_stap_probe): Update.
6357 * stabsread.c (dbx_init_float_type, define_symbol)
6358 (read_one_struct_field, read_enum_type, read_range_type): Update.
6359 * source.c (info_line_command): Update.
6360 * python/python.c (gdbpy_source_objfile_script)
6361 (gdbpy_execute_objfile_script): Update.
6362 * python/py-type.c (save_objfile_types): Update.
6363 * python/py-objfile.c (py_free_objfile): Update.
6364 * python/py-inferior.c (python_new_objfile): Update.
6365 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6366 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6367 (maintenance_check_psymtabs): Update.
6368 * printcmd.c (info_address_command): Update.
6369 * objfiles.h (struct objfile) <arch>: New method, from
6370 get_objfile_arch.
6371 (get_objfile_arch): Don't declare.
6372 * objfiles.c (get_objfile_arch): Remove.
6373 (filter_overlapping_sections): Update.
6374 * minsyms.c (msymbol_is_function): Update.
6375 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6376 (output_nondebug_symbol): Update.
6377 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6378 (mdebug_expand_psymtab): Update.
6379 * machoread.c (macho_add_oso_symfile): Update.
6380 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6381 Update.
6382 * linux-fork.c (checkpoint_command): Update.
6383 * linespec.c (convert_linespec_to_sals): Update.
6384 * jit.c (finalize_symtab): Update.
6385 * infrun.c (insert_exception_resume_from_probe): Update.
6386 * ia64-tdep.c (ia64_find_unwind_table): Update.
6387 * hppa-tdep.c (internalize_unwinds): Update.
6388 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6389 Update.
6390 * gcore.c (call_target_sbrk): Update.
6391 * elfread.c (record_minimal_symbol, elf_symtab_read)
6392 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6393 (elf_gnu_ifunc_resolve_by_got): Update.
6394 * dwarf2/read.c (create_addrmap_from_index)
6395 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6396 (read_debug_names_from_section)
6397 (process_psymtab_comp_unit_reader, add_partial_symbol)
6398 (add_partial_subprogram, process_full_comp_unit)
6399 (read_file_scope, read_func_scope, read_lexical_block_scope)
6400 (read_call_site_scope, dwarf2_ranges_read)
6401 (dwarf2_record_block_ranges, dwarf2_add_field)
6402 (mark_common_block_symbol_computed, read_tag_pointer_type)
6403 (read_tag_string_type, dwarf2_init_float_type)
6404 (dwarf2_init_complex_target_type, read_base_type)
6405 (partial_die_info::read, partial_die_info::read)
6406 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6407 (dwarf2_fetch_die_loc_sect_off): Update.
6408 * dwarf2/loc.c (dwarf2_find_location_expression)
6409 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6410 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6411 (dwarf2_loc_desc_get_symbol_read_needs)
6412 (locexpr_describe_location_piece, locexpr_describe_location_1)
6413 (loclist_describe_location): Update.
6414 * dwarf2/index-write.c (write_debug_names): Update.
6415 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6416 * dtrace-probe.c (dtrace_process_dof): Update.
6417 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6418 (process_one_symbol): Update.
6419 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6420 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6421 (coff_read_enum_type): Update.
6422 * cli/cli-cmds.c (edit_command, list_command): Update.
6423 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6424 * breakpoint.c (create_overlay_event_breakpoint)
6425 (create_longjmp_master_breakpoint)
6426 (create_std_terminate_master_breakpoint)
6427 (create_exception_master_breakpoint, get_sal_arch): Update.
6428 * block.c (block_gdbarch): Update.
6429 * annotate.c (annotate_source_line): Update.
6430
0743fc83
TT
64312020-04-17 Tom Tromey <tromey@adacore.com>
6432
6433 * auto-load.c (show_auto_load_cmd): Remove.
6434 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6435 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6436 (maintenance_print_arc_command): Remove.
6437 * tui/tui-win.c (tui_command): Remove.
6438 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6439 * tui/tui-layout.c (tui_layout_command): Remove.
6440 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6441 * python/python.c (user_set_python, user_show_python): Remove.
6442 (_initialize_python): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6445 (install_gdb_commands): Use add_basic_prefix_cmd,
6446 add_show_prefix_cmd.
6447 (info_guile_command): Remove.
6448 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6449 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6452 Remove do_set and do_show parameters.
6453 * cli/cli-style.c (set_style, show_style): Remove.
6454 (_initialize_cli_style): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 (cli_style_option::add_setshow_commands): Remove do_set and
6457 do_show parameters.
6458 (cli_style_option::add_setshow_commands): Use
6459 add_basic_prefix_cmd, add_show_prefix_cmd.
6460 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6461 (set_style_name): Remove.
6462 * cli/cli-dump.c (dump_command, append_command): Remove.
6463 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6464 (tekhex_dump_command, binary_dump_command)
6465 (binary_append_command): Remove.
6466 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6467 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6468 (init_w32_command_list): Remove; move into ...
6469 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6470 * valprint.c (set_print, show_print, set_print_raw)
6471 (show_print_raw): Remove.
6472 (_initialize_valprint): Use add_basic_prefix_cmd,
6473 add_show_prefix_cmd.
6474 * typeprint.c (set_print_type, show_print_type): Remove.
6475 (_initialize_typeprint): Use add_basic_prefix_cmd,
6476 add_show_prefix_cmd.
6477 * record.c (set_record_command, show_record_command): Remove.
6478 (_initialize_record): Use add_basic_prefix_cmd,
6479 add_show_prefix_cmd.
6480 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6481 add_show_prefix_cmd.
6482 (info_command, show_command, set_debug, show_debug): Remove.
6483 * top.h (set_history, show_history): Don't declare.
6484 * top.c (set_history, show_history): Remove.
6485 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6486 (unset_tdesc_cmd): Remove.
6487 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6488 add_show_prefix_cmd.
6489 * symtab.c (info_module_command): Remove.
6490 (_initialize_symtab): Use add_basic_prefix_cmd.
6491 * symfile.c (overlay_command): Remove.
6492 (_initialize_symfile): Use add_basic_prefix_cmd.
6493 * sparc64-tdep.c (info_adi_command): Remove.
6494 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6495 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6496 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6497 add_show_prefix_cmd.
6498 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6499 (_initialize_serial): Use add_basic_prefix_cmd,
6500 add_show_prefix_cmd.
6501 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6502 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6503 add_show_prefix_cmd.
6504 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6505 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6506 add_show_prefix_cmd.
6507 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6508 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6509 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6510 add_show_prefix_cmd.
6511 * remote.c (remote_command, set_remote_cmd): Remove.
6512 (_initialize_remote): Use add_basic_prefix_cmd.
6513 * record-full.c (set_record_full_command)
6514 (show_record_full_command): Remove.
6515 (_initialize_record_full): Use add_basic_prefix_cmd,
6516 add_show_prefix_cmd.
6517 * record-btrace.c (cmd_set_record_btrace)
6518 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6519 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6520 (cmd_show_record_btrace_pt): Remove.
6521 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 * ravenscar-thread.c (set_ravenscar_command)
6524 (show_ravenscar_command): Remove.
6525 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6526 add_show_prefix_cmd.
6527 * mips-tdep.c (show_mips_command, set_mips_command)
6528 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6529 add_show_prefix_cmd.
6530 * maint.c (maintenance_command, maintenance_info_command)
6531 (maintenance_check_command, maintenance_print_command)
6532 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6533 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6534 add_show_prefix_cmd.
6535 (show_per_command_cmd): Remove.
6536 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6537 Remove.
6538 (maintenance_show_test_settings_cmd): Remove.
6539 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6540 add_show_prefix_cmd.
6541 * maint-test-options.c (maintenance_test_options_command):
6542 Remove.
6543 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6544 * macrocmd.c (macro_command): Remove
6545 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6546 * language.c (set_check, show_check): Remove.
6547 (_initialize_language): Use add_basic_prefix_cmd,
6548 add_show_prefix_cmd.
6549 * infcmd.c (unset_command): Remove.
6550 (_initialize_infcmd): Use add_basic_prefix_cmd.
6551 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6552 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6553 add_show_prefix_cmd.
6554 * go32-nat.c (go32_info_dos_command): Remove.
6555 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6556 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6557 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6558 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6559 (_initialize_frame): Use add_basic_prefix_cmd,
6560 add_show_prefix_cmd.
6561 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6562 (_initialize_dcache): Use add_basic_prefix_cmd,
6563 add_show_prefix_cmd.
6564 * cp-support.c (maint_cplus_command): Remove.
6565 (_initialize_cp_support): Use add_basic_prefix_cmd.
6566 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6567 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6568 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6569 add_basic_prefix_cmd, add_show_prefix_cmd.
6570 * breakpoint.c (save_command): Remove.
6571 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6572 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6573 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6574 add_show_prefix_cmd.
6575 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6576 (set_ada_command, show_ada_command): Remove.
6577 (_initialize_ada_language): Use add_basic_prefix_cmd,
6578 add_show_prefix_cmd.
6579 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6580
3557f442
KR
65812020-04-16 Kamil Rytarowski <n54@gmx.com>
6582
6583 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6584 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6585
16197208
SM
65862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6587
6588 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6589 warning messages.
6590
00ac85d3
SM
65912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6592
6593 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6594 import table is not at beginning of .idata section.
6595
381ce63f
PA
65962020-04-16 Pedro Alves <palves@redhat.com>
6597
6598 * inferior.c (delete_inferior): Use delete operator directly
6599 instead of delete_program_space.
6600 * progspace.c (add_program_space): New, factored out from
6601 program_space::program_space.
6602 (remove_program_space): New, factored out from
6603 delete_program_space.
6604 (program_space::program_space): Remove intro comment. Rewrite.
6605 (program_space::~program_space): Remove intro comment. Call
6606 remove_program_space.
6607 (delete_program_space): Delete.
6608 * progspace.h (program_space::program_space): Make explicit. Move
6609 intro comment here, adjusted.
6610 (program_space::~program_space): Move intro comment here,
6611 adjusted.
6612 (delete_program_space): Remove.
6613
a010605f
TT
66142020-04-16 Tom Tromey <tromey@adacore.com>
6615
6616 * windows-nat.c (windows_nat::handle_access_violation): New
6617 function.
6618 * nat/windows-nat.h (handle_access_violation): Declare.
6619 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6620 windows-nat.c. Call handle_access_violation.
6621
efba5c23
TV
66222020-04-16 Tom de Vries <tdevries@suse.de>
6623
6624 PR symtab/25791
6625 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6626 CUs without psymtab.
6627
97ed802d
KB
66282020-04-16 Kevin Buettner <kevinb@redhat.com>
6629
6630 * python/python.c (do_start_initialization): Don't call
6631 PyEval_InitThreads for Python 3.9 and beyond.
6632
c7d64809
KR
66332020-04-15 Kamil Rytarowski <n54@gmx.com>
6634
6635 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6636 thread functions.
6637 (obsd_nat_target::wait): Likewise.
6638
ce127a96
TT
66392020-04-15 Tom Tromey <tromey@adacore.com>
6640
6641 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6642 (DEBUG_EXCEPT): Use debug_printf.
6643
99f1bc6a
AB
66442020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * completer.c (class completion_tracker::completion_hash_entry)
6647 <hash_name>: New member function.
6648 (completion_tracker::discard_completions): New callback to hash a
6649 completion_hash_entry, pass this to htab_create_alloc.
6650
a0e9b532
JT
66512016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6652
6653 * windows-nat.c (windows_make_so): Warn rather than stopping with
6654 an error if realpath() fails.
6655
06ca5dd4
KR
66562020-04-14 Kamil Rytarowski <n54@gmx.com>
6657
6658 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6659 (nbsd_nat_target::info_proc): Add do_status.
6660
194d088f
TV
66612020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6662 Tom de Vries <tdevries@suse.de>
6663
6664 PR symtab/25718
6665 * psympriv.h (struct partial_symtab::read_symtab)
6666 (struct partial_symtab::expand_psymtab)
6667 (struct partial_symtab::read_dependencies): Update comments.
6668 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6669 read_symtab for includer.
6670 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6671 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6672 (struct dwarf2_include_psymtab::m_readin): Remove.
6673 (struct dwarf2_include_psymtab::includer): New member function.
6674 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6675
c1a66c06
TV
66762020-04-14 Tom de Vries <tdevries@suse.de>
6677
6678 PR symtab/25720
6679 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6680 with NULL symbol_matcher and lookup_name.
6681 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6682 and lookup_name.
6683 * dwarf2/read.c (dw2_expand_symtabs_matching)
6684 (dw2_debug_names_expand_symtabs_matching): Same.
6685 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6686 Make lookup_name a pointer. Update comment.
6687 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6688 lookup_name being a pointer.
6689 * symfile.c (expand_symtabs_matching): Same.
6690 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6691 * linespec.c (iterate_over_all_matching_symtabs): Same.
6692
400b5eca
TT
66932020-04-13 Tom Tromey <tom@tromey.com>
6694
6695 * run-on-main-thread.c: Update include.
6696 * unittests/main-thread-selftests.c: Update include.
6697 * tui/tui-win.c: Update include.
6698 * tui/tui-io.c: Update include.
6699 * tui/tui-interp.c: Update include.
6700 * tui/tui-hooks.c: Update include.
6701 * top.h: Update include.
6702 * top.c: Update include.
6703 * ser-base.c: Update include.
6704 * remote.c: Update include.
6705 * remote-notif.c: Update include.
6706 * remote-fileio.c: Update include.
6707 * record-full.c: Update include.
6708 * record-btrace.c: Update include.
6709 * python/python.c: Update include.
6710 * posix-hdep.c: Update include.
6711 * mingw-hdep.c: Update include.
6712 * mi/mi-main.c: Update include.
6713 * mi/mi-interp.c: Update include.
6714 * main.c: Update include.
6715 * linux-nat.c: Update include.
6716 * interps.c: Update include.
6717 * infrun.c: Update include.
6718 * inf-loop.c: Update include.
6719 * event-top.c: Update include.
6720 * event-loop.c: Move to ../gdbsupport/.
6721 * event-loop.h: Move to ../gdbsupport/.
6722 * async-event.h: Update include.
6723 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6724
93b54c8e
TT
67252020-04-13 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-win.c: Include async-event.h.
6728 * remote.c: Include async-event.h.
6729 * remote-notif.c: Include async-event.h.
6730 * record-full.c: Include async-event.h.
6731 * record-btrace.c: Include async-event.h.
6732 * infrun.c: Include async-event.h.
6733 * event-top.c: Include async-event.h.
6734 * event-loop.h: Move some declarations to async-event.h.
6735 * event-loop.c: Don't include ser-event.h or top.h. Move some
6736 code to async-event.c.
6737 * async-event.h: New file.
6738 * async-event.c: New file.
6739 * Makefile.in (COMMON_SFILES): Add async-event.c.
6740 (HFILES_NO_SRCDIR): Add async-event.h.
6741
c1cd3163
TT
67422020-04-13 Tom Tromey <tom@tromey.com>
6743
6744 * utils.c (flush_streams): New function.
6745 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6746
29f2bf4f
TT
67472020-04-13 Tom Tromey <tom@tromey.com>
6748
6749 * event-loop.c (handle_file_event): Use warning, not
6750 printf_unfiltered.
6751
98029d02
TT
67522020-04-13 Tom Tromey <tom@tromey.com>
6753
6754 * event-loop.c: Include <chrono>.
6755
06cc9596
TT
67562020-04-13 Tom Tromey <tom@tromey.com>
6757
6758 * gdb_select.h: Move to ../gdbsupport/.
6759 * event-loop.c: Update include path.
6760 * top.c: Update include path.
6761 * ser-base.c: Update include path.
6762 * ui-file.c: Update include path.
6763 * ser-tcp.c: Update include path.
6764 * guile/scm-ports.c: Update include path.
6765 * posix-hdep.c: Update include path.
6766 * ser-unix.c: Update include path.
6767 * gdb_usleep.c: Update include path.
6768 * mingw-hdep.c: Update include path.
6769 * inflow.c: Update include path.
6770 * infrun.c: Update include path.
6771 * event-top.c: Update include path.
6772
8ae8e197
TT
67732020-04-13 Tom Tromey <tom@tromey.com>
6774
6775 * configure: Rebuild.
6776 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6777
58cf28e8
TT
67782020-04-13 Tom Tromey <tom@tromey.com>
6779
6780 * event-loop.h (start_event_loop): Don't declare.
6781 * event-loop.c (start_event_loop): Move...
6782 * main.c (start_event_loop): ...here. Now static.
6783
b7f999ae
SDJ
67842020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6785
6786 * MAINTAINERS: Update my email address.
6787
1085dfd4
KR
67882020-04-12 Kamil Rytarowski <n54@gmx.com>
6789
6790 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6791 IP_ALL.
6792
49d1d1f5
KR
67932020-04-12 Kamil Rytarowski <n54@gmx.com>
6794
6795 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6796 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6797
b4848d2a
KR
67982020-04-12 Kamil Rytarowski <n54@gmx.com>
6799
6800 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6801 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6802
51c133d5
KR
68032020-04-12 Kamil Rytarowski <n54@gmx.com>
6804
6805 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6806
54b8cbd0
KR
68072020-04-11 Kamil Rytarowski <n54@gmx.com>
6808
6809 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6810 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6811 (nbsd_nat_target::info_proc): New functions.
6812 * nbsd-nat.c (kinfo_get_vmmap): New function.
6813 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6814 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6815 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6816 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6817 functions.
6818 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6819 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6820 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6821 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6822 (KINFO_VME_FLAG_GROWS_DOWN): New.
6823
cf83625d
AS
68242020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6825
6826 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6827 bit shift.
6828
0c4311ab
TT
68292020-04-10 Tom Tromey <tromey@adacore.com>
6830
6831 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6832
3e65b3e9
TT
68332020-04-10 Tom Tromey <tromey@adacore.com>
6834
6835 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6836 separate debug files.
6837
13302e95
HD
68382020-04-10 Hannes Domani <ssbssa@yahoo.de>
6839
6840 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6841 Move to...
6842 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6843 ... here.
6844 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6845 Check for STATUS_WX86_BREAKPOINT.
6846 (windows_nat_target::wait): Same.
6847
bdfc1e8a
TV
68482020-04-10 Tom de Vries <tdevries@suse.de>
6849
6850 PR cli/25808
6851 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6852
f4460aec
SM
68532020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6856 (Write After Approval): Remove Tom de Vries.
6857
a25198bb
BE
68582020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6859
6860 revert partially:
6861 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6862
aac66a4c
SM
6863 * buildsym.c (record_line): Fix undefined behavior and preserve
6864 lines at eof.
a25198bb 6865
206c98a6
KR
68662020-04-09 Kamil Rytarowski <n54@gmx.com>
6867
6868 * auxv.h (svr4_auxv_parse): New.
6869 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6870 and generic_auxv_parse.
6871 (svr4_auxv_parse): Add.
6872 * obsd-tdep.c: Include "auxv.h".
6873 (obsd_auxv_parse): Remove.
6874 (obsd_init_abi): Remove comment.
6875 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6876 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6877 * nbsd-tdep.c: Include "auxv.h".
6878 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6879
71fbdbaf
TT
68802020-04-08 Tom Tromey <tromey@adacore.com>
6881
6882 * nat/windows-nat.h (last_wait_event): Don't declare.
6883 (wait_for_debug_event): Update comment.
6884 * nat/windows-nat.c (last_wait_event): Now static.
6885
2c1d95e8
TT
68862020-04-08 Tom Tromey <tromey@adacore.com>
6887
6888 * windows-nat.c (wait_for_debug_event): Move to
6889 nat/windows-nat.c.
6890 * nat/windows-nat.h (wait_for_debug_event): Declare.
6891 * nat/windows-nat.c (wait_for_debug_event): Move from
6892 windows-nat.c. No longer static.
6893
d2977bc4
TT
68942020-04-08 Tom Tromey <tromey@adacore.com>
6895
6896 * windows-nat.c (get_windows_debug_event): Use
6897 fetch_pending_stop.
6898 * nat/windows-nat.h (fetch_pending_stop): Declare.
6899 * nat/windows-nat.c (fetch_pending_stop): New function.
6900
e758e19c
TT
69012020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * windows-nat.c (windows_continue): Use matching_pending_stop and
6904 continue_last_debug_event.
6905 * nat/windows-nat.h (matching_pending_stop)
6906 (continue_last_debug_event): Declare.
6907 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6908 (matching_pending_stop, continue_last_debug_event): New
6909 functions.
6910
8d30e395
TT
69112020-04-08 Tom Tromey <tromey@adacore.com>
6912
6913 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6914 (handle_exception_result): Move to nat/windows-nat.h.
6915 (DEBUG_EXCEPTION_SIMPLE): Remove.
6916 (windows_nat::handle_ms_vc_exception): New function.
6917 (handle_exception): Move to nat/windows-nat.c.
6918 (get_windows_debug_event): Update.
6919 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6920 nat/windows-nat.c.
6921 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6922 (handle_exception_result): Move from windows-nat.c.
6923 (handle_exception): Declare.
6924 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6925 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6926 windows-nat.c.
6927
29de418d
TT
69282020-04-08 Tom Tromey <tromey@adacore.com>
6929
6930 * windows-nat.c (exception_count, event_count): Remove.
6931 (handle_exception, get_windows_debug_event)
6932 (do_initial_windows_stuff): Update.
6933
a816ba18
TT
69342020-04-08 Tom Tromey <tromey@adacore.com>
6935
6936 * windows-nat.c (windows_nat::handle_load_dll)
6937 (windows_nat::handle_unload_dll): Rename. No longer static.
6938 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6939 Declare.
6940
a00caa12
TT
69412020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * complaints.h (stop_whining): Declare at top-level.
6944 (complaint): Don't declare stop_whining.
6945
d41b524f
TT
69462020-04-08 Tom Tromey <tromey@adacore.com>
6947
6948 * windows-nat.c (windows_nat::handle_output_debug_string):
6949 Rename. No longer static.
6950 * nat/windows-nat.h (handle_output_debug_string): Declare.
6951
3c76026d
TT
69522020-04-08 Tom Tromey <tromey@adacore.com>
6953
6954 * windows-nat.c (current_process_handle, current_process_id)
6955 (main_thread_id, last_sig, current_event, last_wait_event)
6956 (current_windows_thread, desired_stop_thread_id, pending_stops)
6957 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6958 (display_selectors, fake_create_process)
6959 (get_windows_debug_event): Update.
6960 * nat/windows-nat.h (current_process_handle, current_process_id)
6961 (main_thread_id, last_sig, current_event, last_wait_event)
6962 (current_windows_thread, desired_stop_thread_id, pending_stops)
6963 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6964 * nat/windows-nat.c (current_process_handle, current_process_id)
6965 (main_thread_id, last_sig, current_event, last_wait_event)
6966 (current_windows_thread, desired_stop_thread_id, pending_stops)
6967 (siginfo_er): New globals. Move from windows-nat.c.
6968
9d8679cc
TT
69692020-04-08 Tom Tromey <tromey@adacore.com>
6970
6971 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6972 (handle_load_dll): Update.
6973 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6974
28688adf
TT
69752020-04-08 Tom Tromey <tromey@adacore.com>
6976
6977 * windows-nat.c (enum thread_disposition_type): Move to
6978 nat/windows-nat.h.
6979 (windows_nat::thread_rec): Rename from thread_rec. No longer
6980 static.
6981 (windows_add_thread, windows_nat_target::fetch_registers)
6982 (windows_nat_target::store_registers, handle_exception)
6983 (windows_nat_target::resume, get_windows_debug_event)
6984 (windows_nat_target::get_tib_address)
6985 (windows_nat_target::thread_name)
6986 (windows_nat_target::thread_alive): Update.
6987 * nat/windows-nat.h (enum thread_disposition_type): Move from
6988 windows-nat.c.
6989 (thread_rec): Declare.
6990
4834dad0
TT
69912020-04-08 Tom Tromey <tromey@adacore.com>
6992
6993 * windows-nat.c: Add "using namespace".
6994 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6995 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6996
65bafd5b
TT
69972020-04-08 Tom Tromey <tromey@adacore.com>
6998
6999 * nat/windows-nat.h (struct windows_thread_info): Declare
7000 destructor.
7001 * nat/windows-nat.c (~windows_thread_info): New.
7002
0a4afda3
TT
70032020-04-08 Tom Tromey <tromey@adacore.com>
7004
7005 PR gdb/22992
7006 * windows-nat.c (current_event): Update comment.
7007 (last_wait_event, desired_stop_thread_id): New globals.
7008 (struct pending_stop): New.
7009 (pending_stops): New global.
7010 (windows_nat_target) <stopped_by_sw_breakpoint>
7011 <supports_stopped_by_sw_breakpoint>: New methods.
7012 (windows_fetch_one_register): Add assertions. Adjust PC.
7013 (windows_continue): Handle pending stops. Suspend other threads
7014 when stepping. Use last_wait_event
7015 (wait_for_debug_event): New function.
7016 (get_windows_debug_event): Use wait_for_debug_event. Handle
7017 pending stops. Queue spurious stops.
7018 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7019 (windows_nat_target::kill): Use wait_for_debug_event.
7020 * nat/windows-nat.h (struct windows_thread_info)
7021 <stopped_at_software_breakpoint>: New field.
7022 * nat/windows-nat.c (windows_thread_info::resume): Clear
7023 stopped_at_software_breakpoint.
7024
8e61ebec
TT
70252020-04-08 Tom Tromey <tromey@adacore.com>
7026
7027 * windows-nat.c (enum thread_disposition_type): New.
7028 (thread_rec): Replace "get_context" parameter with "disposition";
7029 change type.
7030 (windows_add_thread, windows_nat_target::fetch_registers)
7031 (windows_nat_target::store_registers, handle_exception)
7032 (windows_nat_target::resume, get_windows_debug_event)
7033 (windows_nat_target::get_tib_address)
7034 (windows_nat_target::thread_name)
7035 (windows_nat_target::thread_alive): Update.
7036
98a03287
TT
70372020-04-08 Tom Tromey <tromey@adacore.com>
7038
7039 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7040 (windows_continue): Use windows_continue::resume.
7041 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7042 resume>: Declare new methods.
7043 * nat/windows-nat.c: New file.
7044 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7045
7c7411bc
TT
70462020-04-08 Tom Tromey <tromey@adacore.com>
7047
7048 * windows-nat.c (windows_add_thread, windows_delete_thread)
7049 (windows_nat_target::fetch_registers)
7050 (windows_nat_target::store_registers, fake_create_process)
7051 (windows_nat_target::resume, windows_nat_target::resume)
7052 (get_windows_debug_event, windows_nat_target::wait)
7053 (windows_nat_target::pid_to_str)
7054 (windows_nat_target::get_tib_address)
7055 (windows_nat_target::get_ada_task_ptid)
7056 (windows_nat_target::thread_name)
7057 (windows_nat_target::thread_alive): Use lwp, not tid.
7058
2950fdf7
TT
70592020-04-08 Tom Tromey <tromey@adacore.com>
7060
7061 * windows-nat.c (handle_exception)
7062 (windows_nat_target::thread_name): Update.
7063 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7064 <name>: Now unique_xmalloc_ptr.
7065
62fe396b
TT
70662020-04-08 Tom Tromey <tromey@adacore.com>
7067
7068 * windows-nat.c (thread_rec)
7069 (windows_nat_target::fetch_registers): Update.
7070 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7071 Update comment.
7072 <debug_registers_changed, reload_context>: Now bool.
7073
e9534bd2
TT
70742020-04-08 Tom Tromey <tromey@adacore.com>
7075
7076 * windows-nat.c (windows_add_thread): Use new.
7077 (windows_init_thread_list, windows_delete_thread): Use delete.
7078 (get_windows_debug_event): Update.
7079 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7080 destructor, and initializers.
7081
ae1f8880
TT
70822020-04-08 Tom Tromey <tromey@adacore.com>
7083
7084 * windows-nat.c (struct windows_thread_info): Remove.
7085 * nat/windows-nat.h: New file.
7086
55a1e039
TT
70872020-04-08 Tom Tromey <tromey@adacore.com>
7088
7089 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7090 (thread_rec, windows_add_thread, windows_delete_thread)
7091 (windows_continue): Update.
7092
93366324
TT
70932020-04-08 Tom Tromey <tromey@adacore.com>
7094
7095 * windows-nat.c (struct windows_thread_info): Remove typedef.
7096 (thread_head): Remove.
7097 (thread_list): New global.
7098 (thread_rec, windows_add_thread, windows_init_thread_list)
7099 (windows_delete_thread, windows_continue): Update.
7100
0f2265e2
SM
71012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7102
7103 * windows-tdep.h (windows_init_abi): Add comment.
7104 (cygwin_init_abi): New declaration.
7105 * windows-tdep.c: Split signal enumeration in two, one for
7106 Windows and one for Cygwin.
7107 (windows_gdb_signal_to_target): Only deal with signal of the
7108 Windows OS ABI.
7109 (cygwin_gdb_signal_to_target): New function.
7110 (windows_init_abi): Rename to windows_init_abi_common, don't set
7111 gdb_signal_to_target gdbarch method. Add new new function with
7112 this name.
7113 (cygwin_init_abi): New function.
7114 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7115 comment. Don't call windows_init_abi.
7116 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7117 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7118 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7119 i386_windows_init_abi_common, don't call windows_init_abi. Add
7120 a new function of this name.
7121 (i386_cygwin_init_abi): New function.
7122 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7123 OS ABI Cygwin.
7124
3810f182
SM
71252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7126
7127 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7128 parameter.c.
7129 (dwarf2_read_gdb_index): Update.
7130
063f8e80
KR
71312020-04-07 Kamil Rytarowski <n54@gmx.com>
7132
7133 * nbsd-tdep.c: Include "objfiles.h".
7134 (nbsd_skip_solib_resolver): New.
7135 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7136
85a9510c 71372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7138
7139 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7140 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7141 with DW_LLE_base_addressx are being emitted in DWARFv5.
7142 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7143 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7144 unsigned integer.
7145
9fc3eaae 71462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7147
7148 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7149 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7150 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7151 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7152 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7153 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7154 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7155
7156
41144253 71572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7158
7159 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7160 (read_loclist_index): New function definition.
7161 (lookup_loclist_base): New function definition.
7162 (read_loclist_header): New function definition.
7163 (dwarf2_cu): Add loclist_base and loclist_header field.
7164 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7165 (read_full_die_1): Read the value of DW_AT_loclists_base.
7166 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7167 (read_attribute_value): Handle DW_FORM_loclistx.
7168 (skip_one_die): Handle DW_FORM_loclistx.
7169 (loclist_header): New structure declaration.
7170 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7171
9f4e76a4
SM
71722020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7175 constructor. Remove `addr` parameter from other constructor and
7176 add `per_cu` parameter.
7177 * dwarf2/read.c (create_partial_symtab): Update.
7178
25c11aca
TV
71792020-04-07 Tom de Vries <tdevries@suse.de>
7180
7181 PR symtab/25796
7182 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7183 (partial_die_info::fixup): Inherit has_const_value.
7184
5707e24b
TV
71852020-04-07 Tom de Vries <tdevries@suse.de>
7186
7187 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7188 symbols without address.
7189
05f00e22
KR
71902020-04-06 Kamil Rytarowski <n54@gmx.com>
7191
7192 * nbsd-nat.h (struct thread_info): Add forward declaration.
7193 (nbsd_nat_target::thread_alive): Add.
7194 (nbsd_nat_target::thread_name): Likewise.
7195 (nbsd_nat_target::update_thread_list): Likewise.
7196 (update_thread_list::post_attach): Likewise.
7197 (post_attach::pid_to_str): Likewise.
7198 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7199 (nbsd_thread_lister): Add.
7200 (nbsd_nat_target::thread_alive): Likewise.
7201 (nbsd_nat_target::thread_name): Likewise.
7202 (nbsd_add_threads): Likewise.
7203 (update_thread_list::post_attach): Likewise.
7204 (nbsd_nat_target::update_thread_list): Likewise.
7205 (post_attach::pid_to_str): Likewise.
7206
6ee448cc
TT
72072020-04-06 Tom Tromey <tromey@adacore.com>
7208
7209 * ada-valprint.c (print_variant_part): Extract the variant field.
7210 (print_field_values): Use the field as the outer value when
7211 recursing.
7212
dea34e8c
TT
72132020-04-06 Tom Tromey <tromey@adacore.com>
7214
7215 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7216 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7217 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7218 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7219 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7220
93689ce9
TT
72212020-04-06 Tom Tromey <tromey@adacore.com>
7222
7223 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7224 TYPE_CODE_ERROR.
7225
79743962
KR
72262020-04-06 Kamil Rytarowski <n54@gmx.com>
7227
7228 * nbsd-tdep.c: Include "gdbarch.h".
7229 Define enum with NetBSD signal numbers.
7230 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7231 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7232 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7233 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7234 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7235 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7236 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7237 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7238 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7239 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7240 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7241 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7242
9e7c9a03
HD
72432020-04-03 Hannes Domani <ssbssa@yahoo.de>
7244
7245 PR gdb/25325
7246 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7247
d9e49b61
TT
72482020-04-03 Tom Tromey <tromey@adacore.com>
7249
7250 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7251 Read constant block.
7252
e0fc5c3f
SM
72532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7254
7255 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7256 (gdb_bfd_get_full_section_contents): New declaration.
7257 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7258 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7259 gdb_bfd_get_full_section_contents.
7260
e2ff18a0
SM
72612020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7262
7263 * exec.c (build_section_table): Replace internal_error with
7264 gdb_assert.
7265 (section_table_xfer_memory_partial): Likewise.
7266 * mdebugread.c (parse_partial_symbols): Likewise.
7267 * psymtab.c (lookup_partial_symbol): Likewise.
7268 * utils.c (wrap_here): Likewise.
7269
0830d301
TT
72702020-04-02 Tom Tromey <tromey@adacore.com>
7271
7272 * f-lang.c (build_fortran_types): Use arch_type to initialize
7273 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7274
e7da7f8f
TT
72752020-04-02 Tom Tromey <tromey@adacore.com>
7276
7277 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7278 of attributes.
7279
c90d28ac
AB
72802020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7281 Bernd Edlinger <bernd.edlinger@hotmail.de>
7282 Tom Tromey <tromey@adacore.com>
7283
7284 * buildsym.c (buildsym_compunit::record_line): Remove
7285 deduplication code.
7286
1aa98955
TV
72872020-04-02 Tom de Vries <tdevries@suse.de>
7288
7289 PR ada/24671
7290 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7291
d3214198
TV
72922020-04-02 Tom de Vries <tdevries@suse.de>
7293
7294 * dwarf2/read.c (dwarf2_gdb_index_functions,
7295 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7296 NULL.
7297 * psymtab.c (psym_lookup_global_symbol_language): New function.
7298 (psym_functions): Init psym_lookup_global_symbol_language with
7299 psym_lookup_global_symbol_language.
7300 * symfile-debug.c (debug_sym_quick_functions): Init
7301 lookup_global_symbol_language with NULL.
7302 * symfile.c (set_initial_language): Remove fixme comment.
7303 * symfile.h (struct quick_symbol_functions): Add
7304 lookup_global_symbol_language.
7305 * symtab.c (find_quick_global_symbol_language): New function.
7306 (find_main_name): Use find_quick_global_symbol_language.
7307
2836752f
SM
73082020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7309
7310 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7311
64dc2d4b
BE
73122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7313
7314 * buildsym.c (record_line): Fix undefined behavior and preserve
7315 lines at eof.
7316
bbe3dc41
BE
73172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7318
7319 * buildsym.c (record_line): Fix the resizing condition.
7320
6b4a335b
TT
73212020-04-01 Tom Tromey <tom@tromey.com>
7322
7323 * value.h (value_literal_complex): Add comment.
7324 * valops.c (value_literal_complex): Refer to value.h.
7325
3638a098
TT
73262020-04-01 Tom Tromey <tom@tromey.com>
7327
7328 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7329 (scalar_type): New rule, from typebase.
7330 (typebase): Use scalar_type. Recognize complex types.
7331 (field_name): Handle FLOAT_KEYWORD.
7332 (ident_tokens): Add _Complex and __complex__.
7333
c34e8714
TT
73342020-04-01 Tom Tromey <tom@tromey.com>
7335
7336 PR exp/25299:
7337 * valarith.c (promotion_type, complex_binop): New functions.
7338 (scalar_binop): Handle complex numbers. Use promotion_type.
7339 (value_pos, value_neg, value_complement): Handle complex numbers.
7340
fa649bb7
TT
73412020-04-01 Tom Tromey <tom@tromey.com>
7342
7343 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7344 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7345 (parse_number): Handle complex numbers.
7346
981c08ce
TT
73472020-04-01 Tom Tromey <tom@tromey.com>
7348
7349 * c-valprint.c (c_decorations): Change complex suffix to "i".
7350
4c99290d
TT
73512020-04-01 Tom Tromey <tom@tromey.com>
7352
7353 * valprint.c (generic_value_print_complex): Use accessors.
7354 * value.h (value_real_part, value_imaginary_part): Declare.
7355 * valops.c (value_real_part, value_imaginary_part): New
7356 functions.
7357 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7358
5b930b45
TT
73592020-04-01 Tom Tromey <tom@tromey.com>
7360
7361 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7362 (read_range_type): Update.
7363 * mdebugread.c (basic_type): Update.
7364 * go-lang.c (build_go_types): Use init_complex_type.
7365 * gdbtypes.h (struct main_type) <complex_type>: New member.
7366 (init_complex_type): Update.
7367 (arch_complex_type): Don't declare.
7368 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7369 Make name if none given. Use alloc_type_copy. Look for cached
7370 complex type.
7371 (arch_complex_type): Remove.
7372 (gdbtypes_post_init): Use init_complex_type.
7373 * f-lang.c (build_fortran_types): Use init_complex_type.
7374 * dwarf2/read.c (read_base_type): Update.
7375 * d-lang.c (build_d_types): Use init_complex_type.
7376 * ctfread.c (read_base_type): Update.
7377
53cccef1
TBA
73782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7379
7380 * infrun.c (stop_all_threads): Update assertion, plus when
7381 stopping threads, take into account that we might be trying
7382 to stop an all-stop target.
7383 (stop_waiting): Call 'stop_all_threads' if there exists a
7384 non-stop target.
7385
a0714d30
TBA
73862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7387
7388 * target.h (exists_non_stop_target): New function declaration.
7389 * target.c (exists_non_stop_target): New function.
7390
60e22c1e
HD
73912020-04-01 Hannes Domani <ssbssa@yahoo.de>
7392
7393 PR gdb/24789
7394 * eval.c (is_integral_or_integral_reference): New function.
7395 (evaluate_subexp_standard): Allow integer references in
7396 pointer arithmetic.
7397
e139a727
TBA
73982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7399
7400 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7401 check for no ptid in the stop reply when the target is non-stop.
7402
e0802d59
TT
74032020-04-01 Tom Tromey <tromey@adacore.com>
7404
7405 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7406 "name" parameter to rvalue reference. Initialize m_name_holder.
7407 <lookup_name_info>: New overloads.
7408 <name>: Return gdb::string_view.
7409 <c_str>: New method.
7410 <make_ignore_params>: Update.
7411 <search_name_hash>: Update.
7412 <language_lookup_name>: Return const char *.
7413 <m_name>: Change type.
7414 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7415 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7416 (lookup_name_info::match_any): Update.
7417 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7418 Update.
7419 * minsyms.c (linkage_name_str): Update.
7420 * language.c (default_symbol_name_matcher): Update.
7421 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7422 Update.
7423 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7424 (ada_lookup_name_info::ada_lookup_name_info): Update.
7425 (literal_symbol_name_matcher): Update.
7426
8c072cb6
TT
74272020-04-01 Tom Tromey <tromey@adacore.com>
7428
7429 * psymtab.c (psymtab_search_name): Remove function.
7430 (psym_lookup_symbol): Create search name and lookup name here.
7431 (lookup_partial_symbol): Remove "name" parameter; add
7432 lookup_name.
7433 (psym_expand_symtabs_for_function): Update.
7434
6f29a534
TT
74352020-03-31 Joel Jones <joelkevinjones@gmail.com>
7436
7437 PR tui/25597:
7438 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7439
af62665e
TT
74402020-03-31 Tom Tromey <tromey@adacore.com>
7441
7442 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7443 memcpy.
7444
d1a89da5
NC
74452020-03-30 Nelson Chu <nelson.chu@sifive.com>
7446
7447 * features/riscv/32bit-csr.xml: Regenerated.
7448 * features/riscv/64bit-csr.xml: Regenerated.
7449
d8af9068
TT
74502020-03-30 Tom Tromey <tromey@adacore.com>
7451
7452 * ada-valprint.c (print_variant_part): Update.
7453 * ada-lang.h (ada_which_variant_applies): Update.
7454 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7455 outer_valaddr parameters; replace with "outer" value parameter.
7456 (to_fixed_variant_branch_type): Update.
7457
227c0bf4
PFC
74582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7459
7460 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7461 <list>. Remove inclusion of observable.h.
7462 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7463 (struct arch_lwp_info): New struct.
7464 (class ppc_linux_dreg_interface): New class.
7465 (struct ppc_linux_process_info): New struct.
7466 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7467 <low_new_clone, low_forget_process, low_prepare_to_resume>
7468 <copy_thread_dreg_state, mark_thread_stale>
7469 <mark_debug_registers_changed, register_hw_breakpoint>
7470 <clear_hw_breakpoint, register_wp, clear_wp>
7471 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7472 <num_memory_accesses, get_trigger_type>
7473 <create_watchpoint_request, hwdebug_point_cmp>
7474 <init_arch_lwp_info, get_arch_lwp_info>
7475 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7476 methods.
7477 <struct ptid_hash>: New inner struct.
7478 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7479 members.
7480 (saved_dabr_value, hwdebug_info, max_slots_number)
7481 (struct hw_break_tuple, struct thread_points, ppc_threads)
7482 (have_ptrace_hwdebug_interface)
7483 (hwdebug_find_thread_points_by_tid)
7484 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7485 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7486 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7487 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7488 use m_dreg_interface.
7489 (hwdebug_point_cmp): Change to...
7490 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7491 reference arguments instead of pointers.
7492 (ppc_linux_nat_target::ranged_break_num_registers): Use
7493 m_dreg_interface.
7494 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7495 m_dreg_interface. Call register_hw_breakpoint.
7496 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7497 m_dreg_interface. Call clear_hw_breakpoint.
7498 (get_trigger_type): Change to...
7499 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7500 comment.
7501 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7502 use m_dreg_interface. Call register_hw_breakpoint.
7503 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7504 use m_dreg_interface. Call clear_hw_breakpoint.
7505 (can_use_watchpoint_cond_accel): Change to...
7506 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7507 method. Update comment, use m_dreg_interface and
7508 m_process_info.
7509 (calculate_dvc): Change to...
7510 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7511 m_dreg_interface.
7512 (num_memory_accesses): Change to...
7513 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7514 (check_condition): Change to...
7515 (ppc_linux_nat_target::check_condition): ...this method.
7516 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7517 comment, use m_dreg_interface.
7518 (create_watchpoint_request): Change to...
7519 (ppc_linux_nat_target::create_watchpoint_request): ...this
7520 method. Use m_dreg_interface.
7521 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7522 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7523 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7524 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7525 (ppc_linux_nat_target::low_forget_process)
7526 (ppc_linux_nat_target::low_new_fork)
7527 (ppc_linux_nat_target::low_new_clone)
7528 (ppc_linux_nat_target::low_delete_thread)
7529 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7530 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7531 only call mark_thread_stale.
7532 (ppc_linux_thread_exit): Remove.
7533 (ppc_linux_nat_target::stopped_data_address): Change to...
7534 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7535 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7536 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7537 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7538 comment. Call low_stopped_data_address.
7539 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7540 m_dreg_interface.
7541 (ppc_linux_nat_target::masked_watch_num_registers): Use
7542 m_dreg_interface.
7543 (ppc_linux_nat_target::copy_thread_dreg_state)
7544 (ppc_linux_nat_target::mark_thread_stale)
7545 (ppc_linux_nat_target::mark_debug_registers_changed)
7546 (ppc_linux_nat_target::register_hw_breakpoint)
7547 (ppc_linux_nat_target::clear_hw_breakpoint)
7548 (ppc_linux_nat_target::register_wp)
7549 (ppc_linux_nat_target::clear_wp)
7550 (ppc_linux_nat_target::init_arch_lwp_info)
7551 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7552 (_initialize_ppc_linux_nat): Remove observer callback.
7553
4db10d8f
PFC
75542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7555
7556 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7557 (ppc_linux_nat_target::auxv_parse)
7558 (ppc_linux_nat_target::read_description)
7559 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7560 Move up.
7561
1310c1b0
PFC
75622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7563
7564 * linux-nat.h (low_new_clone): New method.
7565 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7566
69b037c3
SM
75672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7568
7569 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7570 (dbx_expand_psymtab): ... this.
7571 (start_psymtab): Update.
7572 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7573 (mdebug_expand_psymtab): ... this.
7574 (parse_partial_symbols): Update.
7575 (new_psymtab): Update.
7576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7577 (xcoff_expand_psymtab): ... this.
7578 (xcoff_start_psymtab): Update.
7579
48993951
SM
75802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7581
7582 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7583 <expand_dependencies>: ... this.
7584 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7585 (partial_symtab::expand_dependencies): ... this.
7586 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7587 Update.
7588 (dwarf2_psymtab::expand_psymtab): Update.
7589 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7590 * mdebugread.c (psymtab_to_symtab_1): Update.
7591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7592
3ad83046
SM
75932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7594
7595 * psympriv.h (discard_psymtab): Remove.
7596 * dbxread.c (dbx_end_psymtab): Update.
7597 * xcoffread.c (xcoff_end_psymtab): Update.
7598
4d1b9ab6
TT
75992020-03-28 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7602 comment.
7603
f1749218
TT
76042020-03-28 Tom Tromey <tom@tromey.com>
7605
7606 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7607
ebea7626
HD
76082020-03-27 Hannes Domani <ssbssa@yahoo.de>
7609
7610 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7611
a879b4d5
JB
76122020-03-26 John Baldwin <jhb@FreeBSD.org>
7613
7614 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7615
0826b30a
TT
76162020-03-26 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7619 (mark_common_block_symbol_computed, read_tag_string_type)
7620 (attr_to_dynamic_prop, read_subrange_type): Update.
7621 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7622 to be methods on struct attribute.
7623 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7624 (read_call_site_scope, partial_die_info::read)
7625 (partial_die_info::read, lookup_die_type, follow_die_ref):
7626 Update.
7627 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7628 from dwarf2_get_ref_die_offset.
7629 (attribute::constant_value): New method, from
7630 dwarf2_get_attr_constant_value.
7631 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7632 Declare method.
7633 <constant_value>: New method.
7634
2b2558bf
TT
76352020-03-26 Tom Tromey <tom@tromey.com>
7636
7637 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7638 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7639 (dwarf_type_encoding_name): Move to stringify.c.
7640 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7641 * dwarf2/stringify.c: New file.
7642 * dwarf2/stringify.h: New file.
7643
eeb64781
TT
76442020-03-26 Tom Tromey <tom@tromey.com>
7645
7646 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7647 Rewrite.
7648
a39fdb41
TT
76492020-03-26 Tom Tromey <tom@tromey.com>
7650
7651 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7652 methods.
7653 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7654 (lookup_ranges_base): Likewise.
7655 (read_cutu_die_from_dwo, read_full_die_1): Update.
7656
436c571c
TT
76572020-03-26 Tom Tromey <tom@tromey.com>
7658
7659 * dwarf2/read.c (read_import_statement, read_file_scope)
7660 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7661 (read_lexical_block_scope, read_call_site_scope)
7662 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7663 (handle_struct_member_die, process_structure_scope)
7664 (update_enumeration_type_from_children)
7665 (process_enumeration_scope, read_array_type, read_common_block)
7666 (read_namespace, read_module, read_subroutine_type): Update.
7667 (sibling_die): Remove.
7668
052c8bb8
TT
76692020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7672 (build_type_psymtabs_reader, read_structure_type)
7673 (read_enumeration_type, read_full_die_1): Update.
7674 (dwarf2_attr_no_follow): Move to die.h.
7675 * dwarf2/die.h (struct die_info) <attr>: New method.
7676
2b24b6e4
TT
76772020-03-26 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7680 <base_address>: Now an optional.
7681 (dwarf2_find_base_address, dwarf2_rnglists_process)
7682 (dwarf2_ranges_process, fill_in_loclist_baton)
7683 (dwarf2_symbol_mark_computed): Update.
7684
c2d50fd0
TT
76852020-03-26 Tom Tromey <tom@tromey.com>
7686
7687 * dwarf2/read.c (struct die_info): Move to die.h.
7688 * dwarf2/die.h: New file.
7689
0df7ad3a
TT
76902020-03-26 Tom Tromey <tom@tromey.com>
7691
7692 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7693 * dwarf2/read.c
7694 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7695 Move to line-header.c.
7696 (read_checked_initial_length_and_offset, read_formatted_entries):
7697 Likewise.
7698 (dwarf_decode_line_header): Split into two.
7699 * dwarf2/line-header.c
7700 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7701 Move from read.c.
7702 (read_checked_initial_length_and_offset, read_formatted_entries):
7703 Likewise.
7704 (dwarf_decode_line_header): New function, split from read.c.
7705
86c0bb4c
TT
77062020-03-26 Tom Tromey <tom@tromey.com>
7707
7708 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7709 Declare method.
7710 * dwarf2/read.c (read_attribute_value): Update.
7711 (dwarf2_per_objfile::read_line_string): Rename from
7712 read_indirect_line_string.
7713 (read_formatted_entries): Update.
7714
2ef46c2f
TT
77152020-03-26 Tom Tromey <tom@tromey.com>
7716
7717 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7718 variable.
7719
4f9c1eda
TT
77202020-03-26 Tom Tromey <tom@tromey.com>
7721
7722 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7723 const.
7724 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7725 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7726 parameter const.
7727
5a0e026f
TT
77282020-03-26 Tom Tromey <tom@tromey.com>
7729
7730 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7731 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7732 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7733 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7734
8844c11b
TT
77352020-03-26 Tom Tromey <tom@tromey.com>
7736
7737 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7738 file_names_size, file_full_name, file_file_name>: Use const.
7739 <file_name_at, file_names>: Add const overload.
7740 * dwarf2/line-header.c (line_header::file_file_name)
7741 (line_header::file_full_name): Update.
7742
c90ec28a
TT
77432020-03-26 Tom Tromey <tom@tromey.com>
7744
7745 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7746 (macro_start_file, consume_improper_spaces)
7747 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7748 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7749 (dwarf_decode_macros): Move to macro.c.
7750 * dwarf2/macro.c: New file.
7751 * dwarf2/macro.h: New file.
7752 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7753
4f44ae6c
TT
77542020-03-26 Tom Tromey <tom@tromey.com>
7755
7756 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7757 method.
7758 * dwarf2/section.c: New method. From
7759 read_indirect_string_at_offset_from.
7760 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7761 (read_indirect_string_at_offset_from): Move to section.c.
7762 (read_indirect_string_at_offset): Rewrite.
7763 (read_indirect_line_string_at_offset): Remove.
7764 (read_indirect_string, read_indirect_line_string)
7765 (dwarf_decode_macro_bytes): Update.
7766
a0194fa8
TT
77672020-03-26 Tom Tromey <tom@tromey.com>
7768
7769 * dwarf2/section.h (struct dwarf2_section_info)
7770 <overload_complaint>: Declare.
7771 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7772 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7773 Rename from dwarf2_section_buffer_overflow_complaint.
7774 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7775 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7776
3d27bbdb
TT
77772020-03-26 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7780 Declare.
7781 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7782 Move from read.c.
7783 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7784 to section.c.
7785
9eac9650
TT
77862020-03-26 Tom Tromey <tom@tromey.com>
7787
7788 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7789
bf80d710
TT
77902020-03-26 Tom Tromey <tom@tromey.com>
7791
7792 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7793 "builder".
7794 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7795 parameter.
7796 (dwarf_decode_macros): Update.
7797
0314b390
TT
77982020-03-26 Tom Tromey <tom@tromey.com>
7799
7800 * dwarf2/read.c (read_attribute_value): Update.
7801 (read_indirect_string_from_dwz): Move to dwz.c; change into
7802 method.
7803 (dwarf_decode_macro_bytes): Update.
7804 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7805 * dwarf2/dwz.c: New file.
7806 * Makefile.in (COMMON_SFILES): Add dwz.c.
7807
9fda78b6
TT
78082020-03-26 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7811 * dwarf2/read.c: Add include.
7812 * dwarf2/index-write.c: Add include.
7813 * dwarf2/index-cache.c: Add include.
7814 * dwarf2/dwz.h: New file.
7815
33aa3c10
TT
78162020-03-25 Tom Tromey <tom@tromey.com>
7817
7818 * compile/compile-object-load.c (get_out_value_type): Mention
7819 correct symbol name in error message.
7820
d503b685
HD
78212020-03-25 Hannes Domani <ssbssa@yahoo.de>
7822
7823 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7824
7b1eff95
TV
78252020-03-25 Tom de Vries <tdevries@suse.de>
7826
7827 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7828 * symmisc.c (dump_symtab_1): Print user and includes fields.
7829 (maintenance_info_symtabs): Same.
7830
dd895392
AB
78312020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 PR gdb/25534
7834 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7835 (riscv_regcache_cooked_write): New function.
7836 (riscv_push_dummy_call): Use new function.
7837 (riscv_return_value): Likewise.
7838
5ab2fbf1
SM
78392020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7840
7841 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7842 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7843 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7844 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7845 * infrun.c (follow_fork): Likewise.
7846 (follow_fork_inferior): Likewise.
7847 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7848 * linux-nat.h (class linux_nat_target): Likewise.
7849 * remote.c (class remote_target) <follow_fork>: Likewise.
7850 (remote_target::follow_fork): Likewise.
7851 * target-delegates.c: Re-generate.
7852 * target.c (default_follow_fork): Likewise.
7853 (target_follow_fork): Likewise.
7854 * target.h (struct target_ops) <follow_fork>: Likewise.
7855 (target_follow_fork): Likewise.
7856
a64fafb5
TV
78572020-03-24 Tom de Vries <tdevries@suse.de>
7858
7859 * psymtab.c (maintenance_info_psymtabs): Print user field.
7860
fe26d3a3
TT
78612020-03-20 Tom Tromey <tromey@adacore.com>
7862
7863 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7864 const.
7865 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7866 const.
7867
c884cc46
SM
78682020-03-20 Simon Marchi <simon.marchi@efficios.com>
7869
7870 * ptrace.m4: Don't check for ptrace declaration.
7871 * config.in: Re-generate.
7872 * configure: Re-generate.
7873 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7874 not defined.
7875
1ff700c2
KR
78762020-03-20 Kamil Rytarowski <n54@gmx.com>
7877
7878 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7879 `PTRACE_TYPE_RET'.
7880 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7881 * sparc-nat.c (gdb_ptrace): Likewise.
7882 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7883
f7d4f0b1
TT
78842020-03-20 Tom Tromey <tromey@adacore.com>
7885
7886 * c-exp.y (lex_one_token): Fix assert.
7887
f67210ff
TT
78882020-03-20 Tom Tromey <tromey@adacore.com>
7889
7890 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7891 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7892 strncpy call.
7893
1773be9e
TT
78942020-03-20 Tom Tromey <tromey@adacore.com>
7895
7896 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7897
70304be9
TT
78982020-03-20 Tom Tromey <tromey@adacore.com>
7899
7900 * ada-valprint.c (print_variant_part): Remove parameters; switch
7901 to value-based API.
7902 (print_field_values): Likewise.
7903 (ada_val_print_struct_union): Likewise.
7904 (ada_value_print_1): Update.
7905
9faa006d
KR
79062020-03-20 Kamil Rytarowski <n54@gmx.com>
7907
7908 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7909 nbsd_nat_target instead of inf_ptrace_target.
7910 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7911 nbsd_nat_target.
7912
4a90f062
KR
79132020-03-20 Kamil Rytarowski <n54@gmx.com>
7914
7915 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7916 it to the ptrace call.
7917 * (store_registers): Likewise.
7918
79192020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7920
7921 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7922 it to the ptrace call.
7923 * (store_registers): Likewise.
7924
2d07da27
LM
79252020-03-19 Luis Machado <luis.machado@linaro.org>
7926
7927 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7928 valid, fetch vg value from ptrace.
7929
f09db380
KR
79302020-03-19 Kamil Rytarowski <n54@gmx.com>
7931 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7932 * inf-ptrace.c: Likewise.
7933 * (gdb_ptrace): Add.
7934 * (inf_ptrace_target::resume): Update.
7935 * (inf_ptrace_target::xfer_partial): Likewise.
7936 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7937 * (inf_ptrace_peek_poke): Update.
7938
fcc7376e
KR
79392020-03-19 Kamil Rytarowski <n54@gmx.com>
7940
7941 * x86-bsd-nat.c (gdb_ptrace): New.
7942 * (x86bsd_dr_set): Add new argument `ptid'.
7943 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7944 x86bsd_dr_set_addr): Update.
7945
cada5fc9
AB
79462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * remote.c (remote_target::process_stop_reply): Handle events for
7949 all threads differently.
7950
19a2740f
AB
79512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * completer.c (completion_tracker::remove_completion): Define new
7954 function.
7955 * completer.h (completion_tracker::remove_completion): Declare new
7956 function.
7957 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7958 when adding a C++ function symbol.
7959
724fd9ba
AB
79602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * completer.c (completion_tracker::completion_hash_entry): Define
7963 new class.
7964 (advance_to_filename_complete_word_point): Call
7965 recompute_lowest_common_denominator.
7966 (completion_tracker::completion_tracker): Call discard_completions
7967 to setup the hash table.
7968 (completion_tracker::discard_completions): Allow for being called
7969 from the constructor, pass new equal function, and element deleter
7970 when constructing the hash table. Initialise new class member
7971 variables.
7972 (completion_tracker::maybe_add_completion): Remove use of
7973 m_entries_vec, and store more information into m_entries_hash.
7974 (completion_tracker::recompute_lcd_visitor): New function, most
7975 content taken from...
7976 (completion_tracker::recompute_lowest_common_denominator):
7977 ...here, this now just visits each item in the hash calling the
7978 above visitor.
7979 (completion_tracker::build_completion_result): Remove use of
7980 m_entries_vec, call recompute_lowest_common_denominator.
7981 * completer.h (completion_tracker::have_completions): Remove use
7982 of m_entries_vec.
7983 (completion_tracker::completion_hash_entry): Declare new class.
7984 (completion_tracker::recompute_lowest_common_denominator): Change
7985 function signature.
7986 (completion_tracker::recompute_lcd_visitor): Declare new function.
7987 (completion_tracker::m_entries_vec): Delete.
7988 (completion_tracker::m_entries_hash): Initialize to NULL.
7989 (completion_tracker::m_lowest_common_denominator_valid): New
7990 member variable.
7991 (completion_tracker::m_lowest_common_denominator_max_length): New
7992 member variable.
7993
5a82b8a1
KR
79942020-03-17 Kamil Rytarowski <n54@gmx.com>
7995
7996 * regformats/regdef.h: Put reg in gdb namespace.
7997
fb516a69
KR
79982020-03-17 Kamil Rytarowski <n54@gmx.com>
7999
8000 * i386-bsd-nat.c (gdb_ptrace): New.
8001 * (i386bsd_fetch_inferior_registers,
8002 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8003 * (i386bsd_fetch_inferior_registers,
8004 i386bsd_store_inferior_registers) Use gdb_ptrace.
8005
1c0aa1fb
KR
80062020-03-17 Kamil Rytarowski <n54@gmx.com>
8007
8008 * amd64-bsd-nat.c (gdb_ptrace): New.
8009 * (amd64bsd_fetch_inferior_registers,
8010 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8011 * (amd64bsd_fetch_inferior_registers,
8012 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8013
5ccd2fb7
KR
80142020-03-17 Kamil Rytarowski <n54@gmx.com>
8015
8016 * user-regs.c (user_reg::read): Rename to...
8017 (user_reg::xread): ...this.
8018 * (append_user_reg): Rename argument `read' to `xread'.
8019 * (user_reg_add_builtin): Likewise.
8020 * (user_reg_add): Likewise.
8021 * (value_of_user_reg): Likewise.
8022
2108a63a
KR
80232020-03-17 Kamil Rytarowski <n54@gmx.com>
8024
8025 * sparc-nat.c (gdb_ptrace): New.
8026 * sparc-nat.c (sparc_fetch_inferior_registers)
8027 (sparc_store_inferior_registers) Remove obsolete comment.
8028 * sparc-nat.c (sparc_fetch_inferior_registers)
8029 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8030 * sparc-nat.c (sparc_fetch_inferior_registers)
8031 (sparc_store_inferior_registers) Use gdb_ptrace.
8032
a225c9a8
KR
80332020-03-17 Kamil Rytarowski <n54@gmx.com>
8034
8035 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8036 it to the ptrace call.
8037 * sh-nbsd-nat.c (store_registers): Likewise.
8038
98097623
KR
80392020-03-17 Kamil Rytarowski <n54@gmx.com>
8040
8041 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8042 nbsd_nat_target instead of inf_ptrace_target.
8043 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8044 nbsd_nat_target.
8045
9e38d619
KR
80462020-03-17 Kamil Rytarowski <n54@gmx.com>
8047
8048 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8049
a2ecbe9f
KR
80502020-03-17 Kamil Rytarowski <n54@gmx.com>
8051
8052 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8053 <sys/sysctl.h>.
8054 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8055
58990295
TV
80562020-03-17 Tom de Vries <tdevries@suse.de>
8057
8058 PR gdb/23710
8059 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8060 fields.
8061 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8062 fields.
8063 (process_imported_unit_die): Skip import of c++ CUs.
8064
771dd3a8
TT
80652020-03-16 Tom Tromey <tom@tromey.com>
8066
8067 * p-valprint.c (pascal_object_print_value): Initialize
8068 base_value.
8069
817a7585
AK
80702020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8071 Shahab Vahedi <shahab@synopsys.com>
8072
8073 * Makefile.in: Add arch/arc.o
8074 * configure.tgt: Likewise.
8075 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8076 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8077 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8078 * arc-tdep.h (arc_read_description): Add proto type.
8079 * arch/arc.c: New file.
8080 * arch/arc.h: Likewise.
8081 * features/Makefile: Replace old target descriptions with new.
8082 * features/arc-arcompact.c: Remove.
8083 * features/arc-arcompact.xml: Likewise.
8084 * features/arc-v2.c: Likewise
8085 * features/arc-v2.xml: Likewise
8086 * features/arc/aux-arcompact.xml: New file.
8087 * features/arc/aux-v2.xml: Likewise.
8088 * features/arc/core-arcompact.xml: Likewise.
8089 * features/arc/core-v2.xml: Likewise.
8090 * features/arc/aux-arcompact.c: Generate.
8091 * features/arc/aux-v2.c: Likewise.
8092 * features/arc/core-arcompact.c: Likewise.
8093 * features/arc/core-v2.c: Likewise.
8094 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8095
67430cd0
TT
80962020-03-16 Tom Tromey <tromey@adacore.com>
8097
8098 PR gdb/25663:
8099 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8100 putting value into bcache.
8101
30efb6c7
SM
81022020-03-16 Simon Marchi <simon.marchi@efficios.com>
8103
8104 PR gdb/21500
8105 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8106 to...
8107 (amd64_windows_init_abi_common): ... this. Don't set size of
8108 long type.
8109 (amd64_windows_init_abi): New function.
8110 (amd64_cygwin_init_abi): New function.
8111 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8112 the Cygwin OS ABI.
8113 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8114 comment.
8115
8db52437
SM
81162020-03-16 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8119 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8120 (pe_import_directory_entry): New struct type.
8121 (is_linked_with_cygwin_dll): New function.
8122 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8123 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8124 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8125
5982a56a
SM
81262020-03-16 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8129 i386_cygwin_core_osabi_sniffer.
8130
7a1998df
SM
81312020-03-16 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * i386-cygwin-tdep.c: Rename to...
8134 * i386-windows-tdep.c: ... this.
8135 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8136 i386-windows-tdep.c.
8137 * configure.tgt: Likewise.
8138
053205cc
SM
81392020-03-16 Simon Marchi <simon.marchi@efficios.com>
8140
8141 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8142 * osabi.c (gdb_osabi_names): Add "Windows".
8143 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8144 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8145 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8146 i386_cygwin_osabi_sniffer.
8147 (_initialize_i386_cygwin_tdep): Register OS ABI
8148 GDB_OSABI_WINDOWS for i386.
8149 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8150 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8151 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8152 for x86-64.
8153 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8154 when the target matches '*-*-mingw*'.
8155
fe4b2ee6
SM
81562020-03-16 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * defs.h (enum gdb_osabi): Move to...
8159 * osabi.h (enum gdb_osabi): ... here.
8160 * gdbarch.sh: Include osabi.h in gdbarch.h.
8161 * gdbarch.h: Re-generate.
8162
cb9b645d
SM
81632020-03-16 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8166 function.
8167 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8168
3293bbaf
TT
81692020-03-14 Tom Tromey <tom@tromey.com>
8170
8171 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8172 for C++.
8173 (c_type_print_modifier): Likewise. Add "language" parameter.
8174 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8175 (c_type_print_base_1): Update.
8176 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8177 constants.
8178 * type-stack.c (type_stack::insert): Handle tp_atomic and
8179 tp_restrict.
8180 (type_stack::follow_type_instance_flags): Likewise.
8181 (type_stack::follow_types): Likewise. Merge type-following code.
8182 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8183 (space_identifier, cv_with_space_id)
8184 (const_or_volatile_or_space_identifier_noopt)
8185 (const_or_volatile_or_space_identifier): Remove.
8186 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8187 rules.
8188 (ptr_operator, typebase): Update.
8189 (enum token_flag) <FLAG_C>: New constant.
8190 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8191 "_Atomic".
8192 (lex_one_token): Handle FLAG_C.
8193
154151a6
KR
81942020-03-14 Kamil Rytarowski <n54@gmx.com>
8195
8196 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8197 it to the ptrace call.
8198 * m68k-bsd-nat.c (store_registers): Likewise.
8199
bc107784
KR
82002020-03-14 Kamil Rytarowski <n54@gmx.com>
8201
8202 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8203 gdb_byte *.
8204 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8205 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8206 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8207
01a80117
KR
82082020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8211 nbsd_nat_target instead of inf_ptrace_target.
8212 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8213 nbsd_nat_target.
8214
f90280ca
KR
82152020-03-14 Kamil Rytarowski <n54@gmx.com>
8216
8217 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8218 register_t.
8219
6def66f1
KR
82202020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8223 it to the ptrace call.
8224 * alpha-bsd-nat.c (store_registers): Likewise.
8225
66eaca97
KR
82262020-03-14 Kamil Rytarowski <n54@gmx.com>
8227
8228 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8229 includes.
8230 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8231 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8232 fill_fpregset): Likewise.
8233
4fed520b
KR
82342020-03-14 Kamil Rytarowski <n54@gmx.com>
8235
8236 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8237 nbsd_nat_target instead of inf_ptrace_target.
8238 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8239 nbsd_nat_target.
8240
2190cf06
KR
82412020-03-14 Kamil Rytarowski <n54@gmx.com>
8242
8243 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8244 register_t.
8245
75c56d3d
KR
82462020-03-14 Kamil Rytarowski <n54@gmx.com>
8247
8248 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8249 it to the ptrace call.
8250 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8251 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8252 * arm-nbsd-nat.c (store_register): Likewise.
8253 * arm-nbsd-nat.c (store_regs): Likewise.
8254 * arm-nbsd-nat.c (store_fp_register): Likewise.
8255 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8256
6018d381
KR
82572020-03-14 Kamil Rytarowski <n54@gmx.com>
8258
8259 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8260 nbsd_nat_target instead of inf_ptrace_target.
8261 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8262 nbsd_nat_target.
8263
013f99f0
KR
82642020-03-14 Kamil Rytarowski <n54@gmx.com>
8265
8266 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8267 it to the ptrace call.
8268 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8269
12753073
KR
82702020-03-14 Kamil Rytarowski <n54@gmx.com>
8271
6227b330
KR
8272 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8273 it to the ptrace call.
8274 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8275
82762020-03-14 Kamil Rytarowski <n54@gmx.com>
8277
8278 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8279 gdb_byte *.
12753073
KR
8280 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8281
d5be5fa4
KR
82822020-03-14 Kamil Rytarowski <n54@gmx.com>
8283
8284 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8285 instead of inf_ptrace_target.
8286 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8287 nbsd_nat_target.
8288
8110f842
KR
82892020-03-14 Kamil Rytarowski <n54@gmx.com>
8290
8291 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8292 register_t.
8293
52feded7
KR
82942020-03-14 Kamil Rytarowski <n54@gmx.com>
8295
8296 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8297 register_t.
8298
25567eee
KR
82992020-03-14 Kamil Rytarowski <n54@gmx.com>
8300
8301 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8302 register_t.
8303
426a9c18
TT
83042020-03-13 Tom Tromey <tom@tromey.com>
8305
8306 * value.h (val_print): Don't declare.
8307 * valprint.h (val_print_array_elements)
8308 (val_print_scalar_formatted, generic_val_print): Don't declare.
8309 * valprint.c (generic_val_print_array): Take a struct value.
8310 (generic_val_print_ptr, generic_val_print_memberptr)
8311 (generic_val_print_bool, generic_val_print_int)
8312 (generic_val_print_char, generic_val_print_complex)
8313 (generic_val_print): Remove.
8314 (generic_value_print): Update.
8315 (do_val_print): Remove unused parameters. Don't call
8316 la_val_print.
8317 (val_print): Remove.
8318 (common_val_print): Update. Don't call value_check_printable.
8319 (val_print_scalar_formatted, val_print_array_elements): Remove.
8320 * rust-lang.c (rust_val_print): Remove.
8321 (rust_language_defn): Update.
8322 * p-valprint.c (pascal_val_print): Remove.
8323 (pascal_value_print_inner): Update.
8324 (pascal_object_print_val_fields, pascal_object_print_val):
8325 Remove.
8326 (pascal_object_print_static_field): Update.
8327 * p-lang.h (pascal_val_print): Don't declare.
8328 * p-lang.c (pascal_language_defn): Update.
8329 * opencl-lang.c (opencl_language_defn): Update.
8330 * objc-lang.c (objc_language_defn): Update.
8331 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8332 * m2-lang.h (m2_val_print): Don't declare.
8333 * m2-lang.c (m2_language_defn): Update.
8334 * language.h (struct language_defn) <la_val_print>: Remove.
8335 * language.c (unk_lang_value_print_inner): Rename. Change
8336 argument types.
8337 (unknown_language_defn, auto_language_defn): Update.
8338 * go-valprint.c (go_val_print): Remove.
8339 * go-lang.h (go_val_print): Don't declare.
8340 * go-lang.c (go_language_defn): Update.
8341 * f-valprint.c (f_val_print): Remove.
8342 * f-lang.h (f_value_print): Don't declare.
8343 * f-lang.c (f_language_defn): Update.
8344 * d-valprint.c (d_val_print): Remove.
8345 * d-lang.h (d_value_print): Don't declare.
8346 * d-lang.c (d_language_defn): Update.
8347 * cp-valprint.c (cp_print_value_fields)
8348 (cp_print_value_fields_rtti, cp_print_value): Remove.
8349 (cp_print_static_field): Update.
8350 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8351 (c_val_print_struct, c_val_print_union, c_val_print_int)
8352 (c_val_print_memberptr, c_val_print): Remove.
8353 * c-lang.h (c_val_print_array, cp_print_value_fields)
8354 (cp_print_value_fields_rtti): Don't declare.
8355 * c-lang.c (c_language_defn, cplus_language_defn)
8356 (asm_language_defn, minimal_language_defn): Update.
8357 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8358 (ada_val_print_enum): Take a struct value.
8359 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8360 (ada_val_print): Remove.
8361 (ada_value_print_1): Update.
8362 (printable_val_type): Remove.
8363 * ada-lang.h (ada_val_print): Don't declare.
8364 * ada-lang.c (ada_language_defn): Update.
8365
42331a1e
TT
83662020-03-13 Tom Tromey <tom@tromey.com>
8367
8368 * valprint.c (do_val_print): Update.
8369 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8370 a struct value.
8371 (value_to_value_object_no_release): Declare.
8372 * python/py-value.c (value_to_value_object_no_release): New
8373 function.
8374 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8375 struct value.
8376 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8377 function.
8378 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8379 a struct value.
8380 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8381 Declare.
8382 (gdbscm_apply_val_pretty_printer): Take a struct value.
8383 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8384 value.
8385 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8386 value.
8387 * extension-priv.h (struct extension_language_ops)
8388 <apply_val_pretty_printer>: Take a struct value.
8389 * cp-valprint.c (cp_print_value): Create a struct value.
8390 (cp_print_value): Update.
8391
3a916a97
TT
83922020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * ada-valprint.c (print_field_values): Call common_val_print.
8395
b59eac37
TT
83962020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * ada-valprint.c (val_print_packed_array_elements): Remove
8399 bitoffset and val parameters. Call common_val_print.
8400 (ada_val_print_string): Remove offset, address, and original_value
8401 parameters.
8402 (ada_val_print_array): Update.
8403 (ada_value_print_array): New function.
8404 (ada_value_print_1): Call it.
8405
03371129
TT
84062020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * ada-valprint.c (ada_value_print): Use common_val_print.
8409
2e088f8b
TT
84102020-03-13 Tom Tromey <tom@tromey.com>
8411
8412 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8413
39ef85a8
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * ada-valprint.c (ada_value_print_num): New function.
8417 (ada_value_print_1): Use it.
8418
b9fa6e07
TT
84192020-03-13 Tom Tromey <tom@tromey.com>
8420
8421 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8422
416595d6
TT
84232020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * ada-valprint.c (ada_value_print_ptr): New function.
8426 (ada_value_print_1): Use it.
8427
5b5e15ec
TT
84282020-03-13 Tom Tromey <tom@tromey.com>
8429
8430 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8431 call common_val_print.
8432 (ada_val_print_1): Update.
8433 (ada_value_print_1): New function.
8434 (ada_value_print_inner): Rewrite.
8435
fbf54e75
TT
84362020-03-13 Tom Tromey <tom@tromey.com>
8437
8438 * cp-valprint.c (cp_print_value_fields): Update.
8439 (cp_print_value): New function.
8440
64b653ca
TT
84412020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * m2-valprint.c (m2_value_print_inner): Use
8444 cp_print_value_fields.
8445 * cp-valprint.c (cp_print_value_fields): New function.
8446 * c-valprint.c (c_value_print_struct): New function.
8447 (c_value_print_inner): Use c_value_print_struct.
8448 * c-lang.h (cp_print_value_fields): Declare.
8449
6999f067
TT
84502020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * c-valprint.c (c_value_print_array): New function.
8453 (c_value_print_inner): Use it.
8454
ce80b8bd
TT
84552020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * c-valprint.c (c_value_print_memberptr): New function.
8458 (c_value_print_inner): Use it.
8459
2faac269
TT
84602020-03-13 Tom Tromey <tom@tromey.com>
8461
8462 * c-valprint.c (c_value_print_int): New function.
8463 (c_value_print_inner): Use it.
8464
da3e2c29
TT
84652020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * c-valprint.c (c_value_print_ptr): New function.
8468 (c_value_print_inner): Use it.
8469
50836231
TT
84702020-03-13 Tom Tromey <tom@tromey.com>
8471
8472 * c-valprint.c (c_value_print_inner): Rewrite.
8473
4f412b6e
TT
84742020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_value_print_complex): New function.
8477 (generic_value_print): Use it.
8478
f5354008
TT
84792020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * valprint.c (generic_val_print_float): Don't call
8482 val_print_scalar_formatted.
8483 (generic_val_print, generic_value_print): Update.
8484
3eec3b05
TT
84852020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * valprint.c (generic_value_print_char): New function
8488 (generic_value_print): Use it.
8489
fdddfccb
TT
84902020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * valprint.c (generic_value_print_int): New function.
8493 (generic_value_print): Use it.
8494
6dde7521
TT
84952020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * valprint.c (generic_value_print_bool): New function.
8498 (generic_value_print): Use it.
8499
4112d2e6
TT
85002020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * valprint.c (generic_val_print_func): Simplify.
8503 (generic_val_print, generic_value_print): Update.
8504
65786af6
TT
85052020-03-13 Tom Tromey <tom@tromey.com>
8506
8507 * valprint.c (generic_val_print_flags): Remove.
8508 (generic_val_print, generic_value_print): Update.
8509 (val_print_type_code_flags): Add original_value parameter.
8510
40f3ce18
TT
85112020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * valprint.c (generic_val_print): Update.
8514 (generic_value_print): Update.
8515 * valprint.c (generic_val_print_enum): Don't call
8516 val_print_scalar_formatted.
8517
2a5b130b
TT
85182020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8521 * valprint.c (generic_value_print_ptr): New function.
8522
abc66ce9
TT
85232020-03-13 Tom Tromey <tom@tromey.com>
8524
8525 * valprint.c (generic_value_print): Rewrite.
8526
07a32858
TT
85272020-03-13 Tom Tromey <tom@tromey.com>
8528
8529 * p-valprint.c (pascal_object_print_value_fields)
8530 (pascal_object_print_value): New functions.
8531
64d64d3a
TT
85322020-03-13 Tom Tromey <tom@tromey.com>
8533
8534 * p-valprint.c (pascal_value_print_inner): Rewrite.
8535
6a95a1f5
TT
85362020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * f-valprint.c (f_value_print_innner): Rewrite.
8539
59fcdac6
TT
85402020-03-13 Tom Tromey <tom@tromey.com>
8541
8542 * m2-valprint.c (m2_print_unbounded_array): New overload.
8543 (m2_print_unbounded_array): Update.
8544 (m2_print_array_contents): Take a struct value.
8545 (m2_value_print_inner): Rewrite.
8546
d133c3e1
TT
85472020-03-13 Tom Tromey <tom@tromey.com>
8548
8549 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8550 (d_value_print_inner): New function.
8551 * d-lang.h (d_value_print_inner): Declare.
8552 * d-lang.c (d_language_defn): Use d_value_print_inner.
8553
23b0f06b
TT
85542020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * go-valprint.c (go_value_print_inner): New function.
8557 * go-lang.h (go_value_print_inner): Declare.
8558 * go-lang.c (go_language_defn): Use go_value_print_inner.
8559
5f56f7cb
TT
85602020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8563 API.
8564 (rust_val_print): Rewrite.
8565 (rust_value_print_inner): New function, from rust_val_print.
8566 (rust_language_defn): Use rust_value_print_inner.
8567
26792ee0
TT
85682020-03-13 Tom Tromey <tom@tromey.com>
8569
8570 * ada-valprint.c (ada_value_print_inner): New function.
8571 * ada-lang.h (ada_value_print_inner): Declare.
8572 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8573
24051bbe
TT
85742020-03-13 Tom Tromey <tom@tromey.com>
8575
8576 * f-valprint.c (f_value_print_innner): New function.
8577 * f-lang.h (f_value_print_innner): Declare.
8578 * f-lang.c (f_language_defn): Use f_value_print_innner.
8579
c0941be6
TT
85802020-03-13 Tom Tromey <tom@tromey.com>
8581
8582 * p-valprint.c (pascal_value_print_inner): New function.
8583 * p-lang.h (pascal_value_print_inner): Declare.
8584 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8585
62c4663d
TT
85862020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * m2-valprint.c (m2_value_print_inner): New function.
8589 * m2-lang.h (m2_value_print_inner): Declare.
8590 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8591
62182190
TT
85922020-03-13 Tom Tromey <tom@tromey.com>
8593
8594 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8595 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8596 * c-valprint.c (c_value_print_inner): New function.
8597 * c-lang.h (c_value_print_inner): Declare.
8598 * c-lang.c (c_language_defn, cplus_language_defn)
8599 (asm_language_defn, minimal_language_defn): Use
8600 c_value_print_inner.
8601
1e592a8a
TT
86022020-03-13 Tom Tromey <tom@tromey.com>
8603
8604 * p-valprint.c (pascal_object_print_value_fields): Now static.
8605 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8606
7fe471e9
TT
86072020-03-13 Tom Tromey <tom@tromey.com>
8608
8609 * c-valprint.c (c_val_print_array): Simplify.
8610
d121c6ce
TT
86112020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * valprint.c (value_print_array_elements): New function.
8614 * valprint.h (value_print_array_elements): Declare.
8615
4dba70ee
TT
86162020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8619 * mips-tdep.c (mips_print_register): Use
8620 value_print_scalar_formatted.
8621
4f9ae810
TT
86222020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * valprint.h (value_print_scalar_formatted): Declare.
8625 * valprint.c (value_print_scalar_formatted): New function.
8626
156bfec9
TT
86272020-03-13 Tom Tromey <tom@tromey.com>
8628
8629 * valprint.h (generic_value_print): Declare.
8630 * valprint.c (generic_value_print): New function.
8631
2b4e573d
TT
86322020-03-13 Tom Tromey <tom@tromey.com>
8633
8634 * valprint.c (do_val_print): Call la_value_print_inner, if
8635 available.
8636 * rust-lang.c (rust_language_defn): Update.
8637 * p-lang.c (pascal_language_defn): Update.
8638 * opencl-lang.c (opencl_language_defn): Update.
8639 * objc-lang.c (objc_language_defn): Update.
8640 * m2-lang.c (m2_language_defn): Update.
8641 * language.h (struct language_defn) <la_value_print_inner>: New
8642 member.
8643 * language.c (unknown_language_defn, auto_language_defn): Update.
8644 * go-lang.c (go_language_defn): Update.
8645 * f-lang.c (f_language_defn): Update.
8646 * d-lang.c (d_language_defn): Update.
8647 * c-lang.c (c_language_defn, cplus_language_defn)
8648 (asm_language_defn, minimal_language_defn): Update.
8649 * ada-lang.c (ada_language_defn): Update.
8650
a1f6a07c
TT
86512020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * c-valprint.c (c_value_print): Use common_val_print.
8654
410cf315
TT
86552020-03-13 Tom Tromey <tom@tromey.com>
8656
8657 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8658
72a45c93
TT
86592020-03-13 Tom Tromey <tom@tromey.com>
8660
8661 * f-valprint.c (f77_print_array_1, f_val_print): Use
8662 common_val_print.
8663
040f66bd
TT
86642020-03-13 Tom Tromey <tom@tromey.com>
8665
8666 * riscv-tdep.c (riscv_print_one_register_info): Use
8667 common_val_print.
8668
a6e05a6c
TT
86692020-03-13 Tom Tromey <tom@tromey.com>
8670
8671 * mi/mi-main.c (output_register): Use common_val_print.
8672
3444c526
TT
86732020-03-13 Tom Tromey <tom@tromey.com>
8674
8675 * infcmd.c (default_print_one_register_info): Use
8676 common_val_print.
8677
c2a44efe
TT
86782020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * valprint.h (common_val_print_checked): Declare.
8681 * valprint.c (common_val_print_checked): New function.
8682 * stack.c (print_frame_arg): Use common_val_print_checked.
8683
b0c26e99
TT
86842020-03-13 Tom Tromey <tom@tromey.com>
8685
8686 * valprint.c (do_val_print): New function, from val_print.
8687 (val_print): Use do_val_print.
8688 (common_val_print): Use do_val_print.
8689
ce3acbe9
TT
86902020-03-13 Tom Tromey <tom@tromey.com>
8691
8692 * valprint.c (value_print): Use scoped_value_mark.
8693
96c7f873
TV
86942020-03-13 Tom de Vries <tdevries@suse.de>
8695
8696 PR symtab/25646
8697 * psymtab.c (partial_symtab::partial_symtab): Don't set
8698 globals_offset and statics_offset. Push element onto
8699 current_global_psymbols and current_static_psymbols stacks.
8700 (concat): New function.
8701 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8702 element from current_global_psymbols and current_static_psymbols
8703 stacks. Concat popped elements to global_psymbols and
8704 static_symbols.
8705 (add_psymbol_to_list): Use current_global_psymbols and
8706 current_static_psymbols stacks.
8707 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8708 current_static_psymbols fields.
8709
6ba0a321
CB
87102020-03-12 Christian Biesinger <cbiesinger@google.com>
8711
8712 * corelow.c (sniff_core_bfd): Remove.
8713 (class core_target) <m_core_vec>: Remove.
8714 (core_target::core_target): Update.
8715 (core_file_fns): Remove.
8716 (deprecated_add_core_fns): Remove.
8717 (default_core_sniffer): Remove.
8718 (sniff_core_bfd): Remove.
8719 (default_check_format): Remove.
8720 (gdb_check_format): Remove.
8721 (core_target_open): Update.
8722 (core_target::get_core_register_section): Update.
8723 (get_core_registers_cb): Update.
8724 (core_target::fetch_registers): Update.
8725 * gdbcore.h (struct core_fns): Remove.
8726 (deprecated_add_core_fns): Remove.
8727 (default_core_sniffer): Remove.
8728 (default_check_format): Remove.
8729
227031b2
TT
87302020-03-12 Tom Tromey <tom@tromey.com>
8731
8732 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8733 CORE_ADDR.
8734 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8735
53807e9f
TT
87362020-03-12 Tom Tromey <tom@tromey.com>
8737
8738 * remote.c (remote_target::download_tracepoint)
8739 (remote_target::enable_tracepoint)
8740 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8741 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8742 sprintf_vma.
8743
64f25102
TT
87442020-03-12 Tom Tromey <tom@tromey.com>
8745
8746 * symfile-mem.c: Update CORE_ADDR size assert.
8747
272cd5a3
SM
87482020-03-12 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * selftest.m4: Move to gdbsupport/.
8751 * acinclude.m4: Update path to selftest.m4.
8752
74cd3f9d
SM
87532020-03-12 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8756 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8757 gdbarch-selfselftests.c and selftest-arch.c.
8758 (SUBDIR_UNITTESTS_OBS): Rename to...
8759 (SELFTESTS_OBS): ... this.
8760 (COMMON_SFILES): Remove disasm-selftests.c and
8761 gdbarch-selftests.c.
8762 * configure.ac: Don't add selftest-arch.{c,o} to
8763 CONFIG_{SRCS,OBS}.
8764 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8765 preprocessor conditions.
8766
db6878ac
SM
87672020-03-12 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * configure.ac: Don't source bfd/development.sh.
8770 * selftest.m4: Modify comment.
8771 * configure: Re-generate.
8772
4d696a5c
SM
87732020-03-12 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8776 not "true" or "false".
8777 * configure: Re-generate.
8778
8dd8e1c7
CB
87792020-03-12 Christian Biesinger <cbiesinger@google.com>
8780
8781 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8782 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8783 renamed to arm_nbsd_supply_gregset.
8784 (fetch_register): Update to call arm_nbsd_supply_gregset.
8785 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8786 (arm_netbsd_nat_target::fetch_registers): Update.
8787 (fetch_elfcore_registers): Removed.
8788 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8789 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8790 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8791 not require NetBSD system headers.
8792 (arm_nbsd_regset): New struct.
8793 (arm_nbsd_iterate_over_regset_sections): New function.
8794 (arm_netbsd_init_abi_common): Updated to call
8795 set_gdbarch_iterate_over_regset_sections.
8796 * arm-nbsd-tdep.h: New file.
8797
dd69bf7a
KB
87982020-03-11 Kevin Buettner <kevinb@redhat.com>
8799
8800 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8801 recursion.
8802
a0761e34
SM
88032020-03-11 Simon Marchi <simon.marchi@efficios.com>
8804
8805 * configure: Re-generate.
8806
e7a82140
TT
88072020-03-11 Tom Tromey <tromey@adacore.com>
8808
8809 * ada-typeprint.c (print_choices): Fix comment.
8810
dcc050c8
AB
88112020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8812
8813 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8814 previous item in the list, when the list has no items.
8815
1c33af77
TV
88162020-03-11 Tom de Vries <tdevries@suse.de>
8817
8818 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8819 PROP_LOCLIST handling code.
8820
8c95582d
AB
88212020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8822
8823 * buildsym-legacy.c (record_line): Pass extra parameter to
8824 record_line.
8825 * buildsym.c (buildsym_compunit::record_line): Take an extra
8826 parameter, reduce duplication in the line table, and record the
8827 is_stmt flag in the line table.
8828 * buildsym.h (buildsym_compunit::record_line): Add extra
8829 parameter.
8830 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8831 non-statement lines.
8832 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8833 this to the symtab builder.
8834 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8835 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8836 through to dwarf_record_line_1.
8837 * infrun.c (process_event_stop_test): When stepping, don't stop at
8838 a non-statement instruction, and only refresh the step info when
8839 we land in the middle of a line's range. Also add an extra
8840 comment.
8841 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8842 field.
8843 * record-btrace.c (btrace_find_line_range): Only record lines
8844 marked as is-statement.
8845 * stack.c (frame_show_address): Show the frame address if we are
8846 in a non-statement sal.
8847 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8848 (maintenance_print_one_line_table): Print a header for the is_stmt
8849 column, and include is_stmt information in the output.
8850 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8851 preference to non-statements.
8852 (find_pcs_for_symtab_line): Prefer is-statement entries.
8853 (find_line_common): Likewise.
8854 * symtab.h (struct linetable_entry): Add is_stmt field.
8855 (struct symtab_and_line): Likewise.
8856 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8857 arranging the line table.
8858
e4003a34
TV
88592020-03-07 Tom de Vries <tdevries@suse.de>
8860
8861 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8862 DIE.
8863
e8932576
TT
88642020-03-07 Tom Tromey <tom@tromey.com>
8865
8866 * valops.c (value_literal_complex): Remove obsolete comment.
8867 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8868 comment.
8869
29734269
SM
88702020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8871
8872 * infrun.h: Forward-declare thread_info.
8873 (set_step_info): Add thread_info parameter, add doc.
8874 * infrun.c (set_step_info): Add thread_info parameter, move doc
8875 to header.
8876 * infrun.c (process_event_stop_test): Pass thread to
8877 set_step_info call.
8878 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8879 set_step_info.
8880 (prepare_one_step): Add thread_info parameter, pass it to
8881 set_step_frame and prepare_one_step (recursive) call.
8882 (step_1): Pass thread to prepare_one_step call.
8883 (step_command_fsm::should_stop): Pass thread to
8884 prepare_one_step.
8885 (until_next_fsm): Pass thread to set_step_frame call.
8886 (finish_command): Pass thread to set_step_info call.
8887
b7d64b29
HD
88882020-03-06 Hannes Domani <ssbssa@yahoo.de>
8889
8890 * windows-tdep.c (windows_solib_create_inferior_hook):
8891 Check if inferior is running.
8892
09f2921c
TV
88932020-03-06 Tom de Vries <tdevries@suse.de>
8894
8895 * NEWS: Fix "the the".
8896 * ctfread.c: Same.
8897
fd760e79
TV
88982020-03-06 Tom de Vries <tdevries@suse.de>
8899
8900 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8901
20ea4a60
AB
89022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * .dir-locals.el: Add a comment referencing the other copies of
8905 this file.
8906
0afbabf0
JB
89072020-03-05 John Baldwin <jhb@FreeBSD.org>
8908
8909 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8910 psargs.
8911
842806cb
TBA
89122020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8913
8914 * .gitattributes: New file.
8915
be1e3d3e
TT
89162020-03-04 Tom Tromey <tom@tromey.com>
8917
8918 * symmisc.c (print_symbol_bcache_statistics)
8919 (print_objfile_statistics): Update.
8920 * symfile.c (allocate_symtab): Use intern.
8921 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8922 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8923 macro_cache>: Remove.
8924 <string_cache>: New member.
8925 (struct objfile) <intern>: New methods.
8926 * elfread.c (elf_symtab_read): Use intern.
8927 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8928 (dwarf2_compute_name, dwarf2_physname)
8929 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8930 names.
8931 (guess_partial_die_structure_name): Update.
8932 (partial_die_info::fixup): Intern name.
8933 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8934 name.
8935 (dwarf2_name): Intern name. Update.
8936 * buildsym.c (buildsym_compunit::get_macro_table): Use
8937 string_cache.
8938
4e7625fd
TT
89392020-03-04 Tom Tromey <tom@tromey.com>
8940
8941 * jit.c (bfd_open_from_target_memory): Make "target" const.
8942 * corefile.c (gnutarget): Now const.
8943 * gdbcore.h (gnutarget): Now const.
8944
46f9f931
HD
89452020-03-04 Hannes Domani <ssbssa@yahoo.de>
8946
8947 * NEWS: Mention support for WOW64 processes.
8948 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8949 (amd64_windows_segment_register_p): Remove static.
8950 (_initialize_amd64_windows_nat): Update.
8951 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8952 * i386-windows-nat.c (context_offset): Update.
8953 (i386_mappings): Rename and remove static.
8954 (i386_windows_segment_register_p): Remove static.
8955 (_initialize_i386_windows_nat): Update.
8956 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8957 (STATUS_WX86_SINGLE_STEP): New macro.
8958 (EnumProcessModulesEx): New macro.
8959 (Wow64SuspendThread): New macro.
8960 (Wow64GetThreadContext): New macro.
8961 (Wow64SetThreadContext): New macro.
8962 (Wow64GetThreadSelectorEntry): New macro.
8963 (windows_set_context_register_offsets): Add static.
8964 (windows_set_segment_register_p): Likewise.
8965 (windows_add_thread): Adapt for WOW64 processes.
8966 (windows_fetch_one_register): Likewise.
8967 (windows_nat_target::fetch_registers): Likewise.
8968 (windows_store_one_register): Likewise.
8969 (display_selector): Likewise.
8970 (display_selectors): Likewise.
8971 (handle_exception): Likewise.
8972 (windows_continue): Likewise.
8973 (windows_nat_target::resume): Likewise.
8974 (windows_add_all_dlls): Likewise.
8975 (do_initial_windows_stuff): Likewise.
8976 (windows_nat_target::attach): Likewise.
8977 (windows_get_exec_module_filename): Likewise.
8978 (windows_nat_target::create_inferior): Likewise.
8979 (windows_xfer_siginfo): Likewise.
8980 (_initialize_loadable): Initialize Wow64SuspendThread,
8981 Wow64GetThreadContext, Wow64SetThreadContext,
8982 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8983 * windows-nat.h (windows_set_context_register_offsets):
8984 Remove declaration.
8985 (windows_set_segment_register_p): Likewise.
8986 (i386_windows_segment_register_p): Add declaration.
8987 (amd64_windows_segment_register_p): Likewise.
8988
440cf44e
LM
89892020-03-04 Luis Machado <luis.machado@linaro.org>
8990
8991 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8992 in "info registers" for AArch64/ARM.
8993
8994 The change caused "info registers" to not print GPR's.
8995
8996 gdb/ChangeLog:
8997
8998 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8999
9000 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9001 when reg->group is empty and reggroup is not.
9002
1009d92f
TT
90032020-03-03 Tom Tromey <tromey@adacore.com>
9004
9005 * dwarf2/frame.c (struct dwarf2_frame_cache)
9006 <checked_tailcall_bottom, entry_cfa_sp_offset,
9007 entry_cfa_sp_offset_p>: Remove members.
9008 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9009 (dwarf2_frame_prev_register): Don't call
9010 dwarf2_tailcall_sniffer_first.
9011 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9012 * frame-unwind.c (add_unwinder): New fuction.
9013 (frame_unwind_init): Use it. Add tailcall unwinder.
9014
5e5d66b6
AB
90152020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9016 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9017
9018 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9019 value should be printed as true.
9020
584cf46d
HD
90212020-03-03 Hannes Domani <ssbssa@yahoo.de>
9022
9023 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9024 (windows_init_abi): Set and use windows_so_ops.
9025
7b973adc
SDJ
90262020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9027
9028 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9029 when verifying if dealing with a convenience variable.
9030
bb7b70ab
LM
90312020-03-03 Luis Machado <luis.machado@linaro.org>
9032
9033 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9034
9822cb57
SM
90352020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * infrun.c (gdbarch_supports_displaced_stepping): New.
9038 (use_displaced_stepping): Break up conditions in smaller pieces.
9039 Use gdbarch_supports_displaced_stepping.
9040 (displaced_step_prepare_throw): Use
9041 gdbarch_supports_displaced_stepping.
9042
63e163f2
AB
90432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * NEWS: Mention new behaviour of the history filename.
9046 * top.c (write_history_p): Add comment.
9047 (show_write_history_p): Add header comment, give a different
9048 message when history writing is on, but the history filename is
9049 empty.
9050 (history_filename): Add comment.
9051 (history_filename_empty): New function.
9052 (show_history_filename): Add header comment, give a different
9053 message when the filename is empty.
9054 (init_history): Compare history_filename against nullptr, and only
9055 read history if the filename is not empty.
9056 (set_history_filename): Add header comment, and only make
9057 non-empty filenames absolute.
9058 (init_main): Make the filename argument to 'set history filename'
9059 optional.
9060
81b86b97
CB
90612020-03-02 Christian Biesinger <cbiesinger@google.com>
9062
9063 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9064 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9065 (fetch_fp_register): Update.
9066 (fetch_fp_regs): Update.
9067 (store_fp_register): Update.
9068 (store_fp_regs): Update.
9069 (arm_netbsd_nat_target::read_description): New function.
9070 (fetch_elfcore_registers): Update.
9071
24ed6739
AB
90722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9075 general_thread if the stop reply is missing a thread-id.
9076 (remote_target::process_stop_reply): Use the first non-exited
9077 thread if the target didn't pass a thread-id.
9078 * infrun.c (do_target_wait): Move call to
9079 switch_to_inferior_no_thread to ....
9080 (do_target_wait_1): ... here.
9081
a84bb2a0
JT
90822020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9083
9084 * debuginfod-support.c: Include defs.h first.
9085
658dadf0
TV
90862020-02-28 Tom de Vries <tdevries@suse.de>
9087
9088 * symfile.c (set_initial_language): Use default language for lookup.
9089
4ebe4877
SM
90902020-02-28 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9093 reader variable, pass `this` to read_cutu_die_from_dwo.
9094
e5da1139
AM
90952020-02-27 Aaron Merey <amerey@redhat.com>
9096
9097 * source.c (open_source_file): Check for nullptr when computing
9098 srcpath.
9099
317f7127
TT
91002020-02-27 Tom Tromey <tromey@adacore.com>
9101
9102 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9103 member.
9104 (dwarf2_add_field): Don't update nfields.
9105 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9106
3104d9ee
AB
91072020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9110 abs.
9111
b83470bf
TT
91122020-02-26 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9115 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9116 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9117 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9118 per_cu_data.
9119
edfe0a0c
TT
91202020-02-26 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/index-write.c (psym_index_map): Change type.
9123 (add_address_entry_worker, write_one_signatured_type)
9124 (recursively_count_psymbols, recursively_write_psymbols)
9125 (class debug_names, psyms_seen_size, write_gdbindex)
9126 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9127
0d79cdc4
AM
91282020-02-26 Aaron Merey <amerey@redhat.com>
9129
9130 * Makefile.in: Handle optional debuginfod support.
9131 * NEWS: Update.
9132 * README: Add --with-debuginfod summary.
9133 * config.in: Regenerate.
9134 * configure: Regenerate.
9135 * configure.ac: Handle optional debuginfod support.
9136 * debuginfod-support.c: debuginfod helper functions.
9137 * debuginfod-support.h: Ditto.
9138 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9139 summary.
9140 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9141 when a dwz file cannot be found.
9142 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9143 debuginfo file cannot be found.
9144 * source.c (open_source_file): Query debuginfod servers when a
9145 source file cannot be found.
9146 * top.c (print_gdb_configuration): Include
9147 --{with,without}-debuginfod in the output.
9148
b65ce565
JG
91492020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9150
9151 * thread.c (thr_try_catch_cmd): Print thread name.
9152
d4c9a4f8
SM
91532020-02-26 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9156 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9157 dwarf2_fetch_die_type_sect_off): Move to...
9158 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9159 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9160 dwarf2_fetch_die_type_sect_off): ... here.
9161 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9162 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9163 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9164
0dce4280
TV
91652020-02-26 Tom de Vries <tdevries@suse.de>
9166
9167 PR gdb/25603
9168 * symfile.c (set_initial_language): Exit-early if
9169 language_mode == language_mode_manual.
9170
450a1bfc
SM
91712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9172
9173 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9174 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9175 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9176
9e80cfa1
AB
91772020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9178
9179 * gdbtypes.c (create_array_type_with_stride): Handle negative
9180 array strides.
9181 * valarith.c (value_subscripted_rvalue): Likewise.
9182
09624f1f
LM
91832020-02-25 Luis Machado <luis.machado@linaro.org>
9184
9185 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9186
8cb5117c
SM
91872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9188
9189 * loc.h (dwarf2_get_die_type): Move to...
9190 * read.h (dwarf2_get_die_type): ... here.
9191 * read.c (dwarf2_get_die_type): Move doc to header.
9192
c325c44e
JB
91932020-02-25 Joel Brobecker <brobecker@adacore.com>
9194
9195 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9196 'gnulib/Makefile.in' to the list.
9197
4ac93832
TT
91982020-02-24 Tom Tromey <tom@tromey.com>
9199
9200 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9201 Remove.
9202 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9203 XOBNEWVEC.
9204
197400e8
TT
92052020-02-24 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9208 New method.
9209 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9210 (dw2_do_instantiate_symtab, dw2_get_file_names)
9211 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9212
76935768
TT
92132020-02-24 Tom Tromey <tom@tromey.com>
9214
9215 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9216 make_scoped_restore.
9217 (dwarf2_psymtab::read_symtab): Don't clear
9218 reading_partial_symbols.
9219
a88ef40d
TV
92202020-02-24 Tom de Vries <tdevries@suse.de>
9221
9222 PR gdb/25592
9223 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9224
c9af6521
TV
92252020-02-24 Tom de Vries <tdevries@suse.de>
9226
9227 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9228 commands layout next/prev/regs.
9229
5707a07a
TT
92302020-02-22 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9233 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9234
3b0fb49e
TT
92352020-02-22 Tom Tromey <tom@tromey.com>
9236
9237 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9238
283be8bf
TT
92392020-02-22 Tom Tromey <tom@tromey.com>
9240
9241 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9242 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9243 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9244 * tui/tui.c (_initialize_tui): Add usage text.
9245
ca793b96
TT
92462020-02-22 Tom Tromey <tom@tromey.com>
9247
9248 * tui/tui-win.c (tui_set_focus_command)
9249 (tui_set_win_height_command): Use error_no_arg.
9250 (_initialize_tui_win): Update help text.
9251 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9252
432b5c40
TT
92532020-02-22 Tom Tromey <tom@tromey.com>
9254
9255 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9256 * tui/tui-disasm.h (struct tui_disasm_window)
9257 <display_start_addr>: Declare.
9258 * tui/tui-source.h (struct tui_source_window)
9259 <display_start_addr>: Declare.
9260 * tui/tui-winsource.h (struct tui_source_window_base)
9261 <show_source_line, display_start_addr>: New methods.
9262 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9263 Rename and move to protected section.
9264 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9265 (tui_source_window_base::do_erase_source_content): Update.
9266 (tui_source_window_base::show_source_line): Now a method.
9267 (tui_source_window_base::show_source_content)
9268 (tui_source_window_base::tui_source_window_base)
9269 (tui_source_window_base::rerender)
9270 (tui_source_window_base::refill)
9271 (tui_source_window_base::do_scroll_horizontal)
9272 (tui_source_window_base::set_is_exec_point_at)
9273 (tui_source_window_base::update_breakpoint_info)
9274 (tui_source_window_base::update_exec_info): Update.
9275 * tui/tui-source.c (tui_source_window::set_contents)
9276 (tui_source_window::showing_source_p)
9277 (tui_source_window::do_scroll_vertical)
9278 (tui_source_window::location_matches_p)
9279 (tui_source_window::line_is_displayed): Update.
9280 (tui_source_window::display_start_addr): New method.
9281 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9282 (tui_disasm_window::do_scroll_vertical)
9283 (tui_disasm_window::location_matches_p): Update.
9284 (tui_disasm_window::display_start_addr): New method.
9285
01b1af32
TT
92862020-02-22 Tom Tromey <tom@tromey.com>
9287
9288 * NEWS: Add entry for gdb.register_window_type.
9289 * tui/tui-layout.h (window_factory): New typedef.
9290 (tui_register_window): Declare.
9291 * tui/tui-layout.c (saved_tui_windows): New global.
9292 (tui_apply_current_layout): Use it.
9293 (tui_register_window): New function.
9294 * python/python.c (do_start_initialization): Call
9295 gdbpy_initialize_tui.
9296 (python_GdbMethods): Add "register_window_type" function.
9297 * python/python-internal.h (gdbpy_register_tui_window)
9298 (gdbpy_initialize_tui): Declare.
9299 * python/py-tui.c: New file.
9300 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9301
fc96d20b
TT
93022020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9305
935c78c0
TT
93062020-02-22 Tom Tromey <tom@tromey.com>
9307
9308 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9309 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9310 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9311 (tui_set_win_focus_to): Move from tui-win.c.
9312
0240c8f1
TT
93132020-02-22 Tom Tromey <tom@tromey.com>
9314
9315 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9316 functions.
9317 (known_window_types): New global.
9318 (tui_get_window_by_name): Reimplement.
9319 (initialize_known_windows): New function.
9320 (validate_window_name): Rewrite.
9321 (_initialize_tui_layout): Call initialize_known_windows.
9322
fdb01f0c
TT
93232020-02-22 Tom Tromey <tom@tromey.com>
9324
9325 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9326 Remove constants.
9327 * tui/tui-winsource.h (struct tui_source_window_base)
9328 <tui_source_window_base>: Remove parameter.
9329 * tui/tui-winsource.c
9330 (tui_source_window_base::tui_source_window_base): Remove
9331 parameter.
9332 (tui_source_window_base::refill): Update.
9333 * tui/tui-stack.h (struct tui_locator_window)
9334 <tui_locator_window>: Update.
9335 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9336 Default the constructor.
9337 * tui/tui-regs.h (struct tui_data_item_window)
9338 <tui_data_item_window>: Default the constructor.
9339 (struct tui_data_window) <tui_data_window>: Likewise.
9340 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9341 Default the constructor.
9342 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9343 Default the constructor.
9344 <type>: Remove.
9345 (struct tui_win_info) <tui_win_info>: Default the constructor.
9346 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9347 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9348 Default the constructor.
9349
865a5aec
TT
93502020-02-22 Tom Tromey <tom@tromey.com>
9351
9352 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9353 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9354 * tui/tui-win.c (tui_resize_all): Don't call
9355 tui_delete_invisible_windows.
9356 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9357 done.
9358 (tui_set_layout): Update.
9359 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9360 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9361 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9362
e098d18c
TT
93632020-02-22 Tom Tromey <tom@tromey.com>
9364
9365 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9366 correctly.
9367
eb9c8874
TT
93682020-02-22 Tom Tromey <tom@tromey.com>
9369
9370 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9371
7eed1a8e
TT
93722020-02-22 Tom Tromey <tom@tromey.com>
9373
9374 * tui/tui-winsource.h (struct tui_source_window_iterator)
9375 <inner_iterator>: New etytypedef.
9376 <tui_source_window_iterator>: Take "end" parameter.
9377 <tui_source_window_iterator>: Take iterator.
9378 <operator*, advance>: Update.
9379 <m_iter>: Change type.
9380 <m_end>: New field.
9381 (struct tui_source_windows) <begin, end>: Update.
9382 * tui/tui-layout.c (tui_windows): New global.
9383 (tui_apply_current_layout): Clear tui_windows.
9384 (tui_layout_window::apply): Update tui_windows.
9385 * tui/tui-data.h (tui_windows): Declare.
9386 (all_tui_windows): Now inline function.
9387 (class tui_window_iterator, struct all_tui_windows): Remove.
9388
7c043ba6
TT
93892020-02-22 Tom Tromey <tom@tromey.com>
9390
9391 PR tui/17850:
9392 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9393 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9394 "height" argument.
9395 (class tui_layout_window) <get_sizes>: Likewise.
9396 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9397 argument.
9398 <get_sizes>: Add "height" argument.
9399 <m_vertical>: New field.
9400 * tui/tui-layout.c (tui_layout_split::clone): Update.
9401 (tui_layout_split::get_sizes): Add "height" argument.
9402 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9403 (tui_new_layout_command): Parse "-horizontal".
9404 (_initialize_tui_layout): Update help string.
9405 (tui_layout_split::specification): Add "-horizontal" when needed.
9406 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9407 argument.
9408 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9409 New methods.
9410
6bc56648
TT
94112020-02-22 Tom Tromey <tom@tromey.com>
9412
9413 * tui/tui-layout.h (enum tui_adjust_result): New.
9414 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9415 (class tui_layout_window) <adjust_size>: Return
9416 tui_adjust_result. Rewrite.
9417 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9418 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9419
c22fef7e
TT
94202020-02-22 Tom Tromey <tom@tromey.com>
9421
9422 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9423 parameter and return types.
9424 (class tui_layout_base) <specification>: Add "depth".
9425 (class tui_layout_window) <specification>: Add "depth".
9426 (class tui_layout_split) <specification>: Add "depth".
9427 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9428 and return types.
9429 (tui_new_layout_command): Parse sub-layouts.
9430 (_initialize_tui_layout): Update help string.
9431 (tui_layout_window::specification): Add "depth".
9432 (add_layout_command): Update.
9433
ee325b61
TT
94342020-02-22 Tom Tromey <tom@tromey.com>
9435
9436 * NEWS: Add "tui new-layout" item.
9437 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9438 Add new-layout command to help text.
9439 (validate_window_name): New function.
9440 (tui_new_layout_command): New function.
9441 (_initialize_tui_layout): Register "new-layout".
9442 (tui_layout_window::specification): New method.
9443 (tui_layout_window::specification): New method.
9444 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9445 method.
9446 (class tui_layout_window) <specification>: New method.
9447 (class tui_layout_split) <specification>: New method.
9448
416eb92d
TT
94492020-02-22 Tom Tromey <tom@tromey.com>
9450
9451 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9452 * tui/tui-win.c (window_name_completer): Update comment.
9453 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9454 Declare method.
9455 (class tui_layout_window) <replace_window>: Likewise.
9456 (class tui_layout_split) <replace_window>: Likewise.
9457 (tui_set_layout): Don't declare.
9458 (tui_set_initial_layout): Declare function.
9459 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9460 (asm_regs_layout): New globals.
9461 (tui_current_layout, show_layout): Remove.
9462 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9463 (find_layout, tui_apply_layout): New function.
9464 (layout_completer): Remove.
9465 (tui_next_layout): Reimplement.
9466 (tui_next_layout_command): New function.
9467 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9468 (tui_regs_layout): Reimplement.
9469 (tui_regs_layout_command): New function.
9470 (extract_display_start_addr): Rewrite.
9471 (next_layout, prev_layout): Remove.
9472 (tui_layout_window::replace_window): New method.
9473 (tui_layout_split::replace_window): New method.
9474 (destroy_layout): New function.
9475 (layout_list): New global.
9476 (add_layout_command): New function.
9477 (initialize_layouts): Update.
9478 (tui_layout_command): New function.
9479 (_initialize_tui_layout): Install "layout" commands.
9480 * tui/tui-data.h (enum tui_layout_type): Remove.
9481 (tui_current_layout): Don't declare.
9482
0dbc2fc7
TT
94832020-02-22 Tom Tromey <tom@tromey.com>
9484
9485 * tui/tui-regs.c (tui_reg_layout): Remove.
9486 (tui_reg_command): Use tui_regs_layout.
9487 * tui/tui-layout.h (tui_reg_command): Declare.
9488 * tui/tui-layout.c (tui_reg_command): New function.
9489
5afe342e
TT
94902020-02-22 Tom Tromey <tom@tromey.com>
9491
9492 * tui/tui.c (tui_rl_delete_other_windows): Call
9493 tui_remove_some_windows.
9494 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9495 Declare method.
9496 (class tui_layout_window) <remove_windows>: New method.
9497 (class tui_layout_split) <remove_windows>: Declare.
9498 (tui_remove_some_windows): Declare.
9499 * tui/tui-layout.c (tui_remove_some_windows): New function.
9500 (tui_layout_split::remove_windows): New method.
9501
427326a8
TT
95022020-02-22 Tom Tromey <tom@tromey.com>
9503
9504 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9505 * tui/tui-layout.h (tui_next_layout): Declare.
9506 * tui/tui-layout.c (tui_next_layout): New function.
9507
3fe12b6d
TT
95082020-02-22 Tom Tromey <tom@tromey.com>
9509
9510 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9511 correct coordinates.
9512
59b8b5d2
TT
95132020-02-22 Tom Tromey <tom@tromey.com>
9514
9515 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9516 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9517 DATA_WIN case.
9518
2a3d458b
TT
95192020-02-22 Tom Tromey <tom@tromey.com>
9520
9521 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9522 TUI_DISASM_WIN, not tui_win_list.
9523
3f0cbb04
TT
95242020-02-22 Tom Tromey <tom@tromey.com>
9525
9526 * valprint.c (generic_val_print_enum_1)
9527 (val_print_type_code_flags): Style member names.
9528 * rust-lang.c (val_print_struct, rust_print_enum)
9529 (rust_print_struct_def, rust_internal_print_type): Style member
9530 names.
9531 * p-valprint.c (pascal_object_print_value_fields): Style member
9532 names. Only call fprintf_symbol_filtered for static members.
9533 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9534 * f-valprint.c (f_val_print): Style member names.
9535 * f-typeprint.c (f_type_print_base): Style member names.
9536 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9537 call fprintf_symbol_filtered for static members.
9538 (cp_print_class_member): Style member names.
9539 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9540 member names.
9541 * ada-valprint.c (ada_print_scalar): Style enum names.
9542 (ada_val_print_enum): Likewise.
9543 * ada-typeprint.c (print_enum_type): Style enum names.
9544
d4d947ae
TT
95452020-02-21 Tom Tromey <tom@tromey.com>
9546
9547 * psympriv.h (struct partial_symtab): Update comment.
9548
e94e944b
TT
95492020-02-21 Tom Tromey <tromey@adacore.com>
9550
9551 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9552 type is CORE_ADDR.
9553
1eb73179
TV
95542020-02-21 Tom de Vries <tdevries@suse.de>
9555
9556 PR gdb/25534
9557 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9558 if dependencies[i]->user != NULL.
9559
4f180d53
AT
95602020-02-21 Ali Tamur <tamur@google.com>
9561
9562 * dwarf2/read.c (dwarf2_name): Add null check.
9563
22b6cd70
TT
95642020-02-20 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9567 ">=", in binary search.
9568 (dwarf2_find_containing_comp_unit): New overload.
9569 (run_test): New self-test.
9570 (_initialize_dwarf2_read): Register new test.
9571
bd0cf5a6
NC
95722020-02-20 Nelson Chu <nelson.chu@sifive.com>
9573
9574 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9575 * riscv-tdep.h: Likewise.
9576 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9577 rv32-only CSR.
9578 * features/riscv/64bit-csr.xml: Regenerated.
9579
3f702acd
SDJ
95802020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9581 Tom Tromey <tom@tromey.com>
9582
9583 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9584 of 'fputc_unfiltered'.
9585 (putchar_unfiltered): Call 'fputc_unfiltered'.
9586 (fputc_unfiltered): Call 'fputs_unfiltered'.
9587
d13c7322
AB
95882020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9589
9590 * config.in: Regenerate.
9591 * configure: Regenerate.
9592 * configure.ac: Add --with-python-libdir option.
9593 * main.c: Use WITH_PYTHON_LIBDIR.
9594
869d8950
TT
95952020-02-19 Tom Tromey <tom@tromey.com>
9596
9597 * symtab.c (general_symbol_info::compute_and_set_names): Use
9598 obstack_strndup. Simplify call to symbol_set_demangled_name.
9599
298e9637
SM
96002020-02-19 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * dwarf2/read.c (allocate_signatured_type_table,
9603 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9604 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9605 Remove objfile parameter, update all callers.
9606
08410482
DE
96072020-02-19 Doug Evans <dje@google.com>
9608
9609 PR rust/25535
9610 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9611 rust_enum_variant calculation.
9612
dfdeeca1
TT
96132020-02-19 Tom Tromey <tromey@adacore.com>
9614
9615 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9616
2ef5453b
TT
96172020-02-19 Tom Tromey <tromey@adacore.com>
9618
9619 * ada-lang.c (cache_symbol): Use obstack_strdup.
9620
9f1528a1
AB
96212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9622
9623 * configure: Regenerate.
9624
d3c22fa8
TT
96252020-02-19 Tom Tromey <tromey@adacore.com>
9626
9627 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9628 NULL check.
9629
bf84f706
MR
96302020-02-19 Maciej W. Rozycki <macro@wdc.com>
9631
9632 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9633
d1c9b20f
AB
96342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9637 if GDBSERVER is not defined.
9638 (riscv_tdesc_cache): Likewise, also store const target_desc.
9639 (STATIC_IN_GDB): Define.
9640 (riscv_create_target_description): Update declaration with
9641 STATIC_IN_GDB.
9642 (riscv_lookup_target_description): New function, only define if
9643 GDBSERVER is not defined.
9644 * arch/riscv.h (riscv_create_target_description): Declare only
9645 when GDBSERVER is defined.
9646 (riscv_lookup_target_description): New declaration when GDBSERVER
9647 is not defined.
9648 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9649 (riscv_linux_read_features): ...this, and return
9650 riscv_gdbarch_features instead of target_desc.
9651 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9652 (riscv_linux_read_description): Rename to...
9653 (riscv_linux_read_features): ...this.
9654 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9655 Update to use riscv_gdbarch_features and
9656 riscv_lookup_target_description.
9657 * riscv-tdep.c (riscv_find_default_target_description): Use
9658 riscv_lookup_target_description instead of
9659 riscv_create_target_description.
9660
373d7ac0
SM
96612020-02-18 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * valprint.c (generic_val_print_enum_1): When printing a flag
9664 enum with value 0 and there is no enumerator with value 0, print
9665 just "0" instead of "(unknown: 0x0)".
9666
b29a2df0
SM
96672020-02-18 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * valprint.c (generic_val_print_enum_1): Print unknown part of
9670 flag enum in hex.
9671
6740f0cc
SM
96722020-02-18 Simon Marchi <simon.marchi@efficios.com>
9673
9674 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9675 flag enums to contain duplicate enumerators.
9676 * valprint.c (generic_val_print_enum_1): Update comment.
9677
edd45eb0
SM
96782020-02-18 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * dwarf2/read.c: Include "count-one-bits.h".
9681 (update_enumeration_type_from_children): If an enumerator has
9682 multiple bits set, don't treat the enumeration as a "flag enum".
9683 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9684 of flag enums have 0 or 1 bit set.
9685
6d0cf446
BE
96862020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9687
9688 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9689 conversion.
9690 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9691 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9692 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9693 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9694 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9695
7001c1b7
SM
96962020-02-18 Simon Marchi <simon.marchi@efficios.com>
9697
9698 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9699
fdb61c6c
SM
97002020-02-14 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9703 displaced_step_closure_up.
9704 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9705 (struct displaced_step_closure_up):
9706 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9707 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9708 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9709 Likewise.
9710 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9711 * gdbarch.c, gdbarch.h: Re-generate.
9712 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9713 displaced_step_closure_up.
9714 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9715 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9716 * infrun.h (displaced_step_closure_up): New type alias.
9717 (struct displaced_step_inferior_state) <step_closure>: Change
9718 type to displaced_step_closure_up.
9719 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9720 displaced_step_closure_up.
9721 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9722
a4a38eb4
TT
97232020-02-14 Tom Tromey <tom@tromey.com>
9724
9725 * minidebug.c (gnu_debug_key): New global.
9726 (find_separate_debug_file_in_section): Use it.
9727
e8217e61
SM
97282020-02-14 Simon Marchi <simon.marchi@efficios.com>
9729
9730 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9731 std::unique_ptr.
9732 * gdbarch.c: Re-generate.
9733 * gdbarch.h: Re-generate.
9734 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9735 change.
9736 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9737 type to std::unique_ptr.
9738 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9739 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9740 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9741 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9742 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9743 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9744 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9745 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9746 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9747
d8d83535
SM
97482020-02-14 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9751 std::unique_ptr.
9752 (displaced_step_clear): Rename to...
9753 (displaced_step_reset): ... this. Just call displaced->reset ().
9754 (displaced_step_clear_cleanup): Rename to...
9755 (displaced_step_reset_cleanup): ... this.
9756 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9757 (displaced_step_fixup): Likewise.
9758 (resume_1): Likewise.
9759 (handle_inferior_event): Restore child's memory before calling
9760 displaced_step_fixup on the parent.
9761 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9762 to std::unique_ptr.
9763 <step_closure>: Change type to std::unique_ptr.
9764
5f661e03
SM
97652020-02-14 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * arm-tdep.c: Include count-one-bits.h.
9768 (cleanup_block_store_pc): Use count_one_bits.
9769 (cleanup_block_load_pc): Use count_one_bits.
9770 (arm_copy_block_xfer): Use count_one_bits.
9771 (thumb2_copy_block_xfer): Use count_one_bits.
9772 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9773 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9774 (thumb_get_next_pcs_raw): Use count_one_bits.
9775 (arm_get_next_pcs_raw): Use count_one_bits_l.
9776 * arch/arm.c (bitcount): Remove.
9777 * arch/arm.h (bitcount): Remove.
9778
8084e579
TT
97792020-02-14 Tom Tromey <tromey@adacore.com>
9780
9781 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9782 Update.
9783 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9784 * dwarf2/loc.c (call_site_find_chain_1): Return
9785 unique_xmalloc_ptr.
9786 (call_site_find_chain): Likewise.
9787
258bf0ee
RB
97882020-02-14 Richard Biener <rguenther@suse.de>
9789
9790 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9791 on expression with division operators.
9792
f98a8458
AKS
97932020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9794
9795 * MAINTAINERS (Write After Approval): Adding myself.
9796
d1437c0e
TT
97972020-02-12 Tom Tromey <tom@tromey.com>
9798
9799 * event-loop.c (event_data, gdb_event, event_handler_func):
9800 Remove.
9801
3d4560f7
TT
98022020-02-12 Tom Tromey <tom@tromey.com>
9803
9804 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9805 (dwarf2_frame_objfile_data): Add comment.
9806 (find_comp_unit, set_comp_unit): New functions.
9807 (dwarf2_frame_find_fde): Use find_comp_unit.
9808 (dwarf2_build_frame_info): Use set_comp_unit.
9809
21982304
TT
98102020-02-12 Tom Tromey <tom@tromey.com>
9811
9812 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9813 (comp_unit): Don't initialize objfile.
9814 (execute_cfa_program): Add text_offset parameter.
9815 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9816 (dwarf2_frame_cache): Update.
9817 (dwarf2_build_frame_info): Don't set "objfile" member.
9818
4debb237
TT
98192020-02-12 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9822 (decode_frame_entry): Likewise.
9823 (dwarf2_build_frame_info): Update.
9824
0d404d44
TT
98252020-02-12 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9828 (decode_frame_entry_1): Use the comp_unit obstack.
9829
a7a3ae5c
TT
98302020-02-12 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2/frame.c (struct comp_unit): Add initializers and
9833 constructor.
9834 (dwarf2_frame_objfile_data): Store a comp_unit.
9835 (dwarf2_frame_find_fde): Update.
9836 (dwarf2_build_frame_info): Use "new".
9837
a9d65418
TT
98382020-02-12 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9841 (dwarf2_fde_table): Typedef for std::vector.
9842 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9843 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9844 (decode_frame_entry): Update.
9845 (dwarf2_build_frame_info): Use "new".
9846
7559c217
CB
98472020-02-12 Christian Biesinger <cbiesinger@google.com>
9848
9849 * arm-tdep.c (arm_gdbarch_init): Update.
9850 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9851 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9852 have_neon, is_m>: Change to bool.
9853
aeefc73c
CB
98542020-02-12 Christian Biesinger <cbiesinger@google.com>
9855
9856 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9857
d27b8e5f
TT
98582020-02-12 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9861
cd5900f3
HD
98622020-02-12 Hannes Domani <ssbssa@yahoo.de>
9863
9864 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9865 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9866
f056b22b
TT
98672020-02-11 Tom Tromey <tom@tromey.com>
9868
9869 * psymtab.h: Update comment.
9870
f92ff6b5
TT
98712020-02-11 Tom Tromey <tom@tromey.com>
9872
9873 * gdb_obstack.h (struct auto_obstack): Use
9874 DISABLE_COPY_AND_ASSIGN.
9875
3fd6912b
TT
98762020-02-11 Tom Tromey <tom@tromey.com>
9877
9878 * dwarf2/frame.h (struct objfile): Don't forward declare.
9879
69ed9b74
CB
98802020-02-11 Christian Biesinger <cbiesinger@google.com>
9881
9882 * cris-tdep.c (cris_supply_gregset): Change signature to match
9883 what struct regset expects.
9884 (cris_regset): New struct.
9885 (fetch_core_registers): Remove.
9886 (cris_iterate_over_regset_sections): New function.
9887 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9888 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9889
bda874f6
CB
98902020-02-11 Christian Biesinger <cbiesinger@google.com>
9891
9892 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9893 registers.
9894
754e1564
CB
98952020-02-11 Christian Biesinger <cbiesinger@google.com>
9896
9897 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9898
8ddd8e0e
SM
98992020-02-11 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * configure: Re-generate.
9902
898e7f60
SM
99032020-02-11 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * configure: Re-generate.
9906
58df732b
SM
99072020-02-11 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * acinclude: Update warning.m4 path.
9910 * warning.m4: Move to gdbsupport.
9911
da5bd37e
TT
99122020-02-11 Tom Tromey <tromey@adacore.com>
9913
9914 * remote.c (remote_console_output): Update.
9915 * printcmd.c (printf_command): Update.
9916 * event-loop.c (gdb_wait_for_event): Update.
9917 * linux-nat.c (sigchld_handler): Update.
9918 * remote-sim.c (gdb_os_write_stdout): Update.
9919 (gdb_os_flush_stdout): Update.
9920 (gdb_os_flush_stderr): Update.
9921 (gdb_os_write_stderr): Update.
9922 * exceptions.c (print_exception): Update.
9923 * remote-fileio.c (remote_fileio_func_read): Update.
9924 (remote_fileio_func_write): Update.
9925 * tui/tui.c (tui_enable): Update.
9926 * tui/tui-interp.c (tui_interp::init): Update.
9927 * utils.c (init_page_info): Update.
9928 (putchar_unfiltered, fputc_unfiltered): Update.
9929 (gdb_flush): Update.
9930 (emit_style_escape): Update.
9931 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9932 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9933 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9934 (stderr_file::write): Update.
9935 (stderr_file::puts): Update.
9936 * ui-file.h (ui_file_isatty, ui_file_write)
9937 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9938 (ui_file_puts): Don't declare.
9939
85f0dd3c
TV
99402020-02-10 Tom de Vries <tdevries@suse.de>
9941
9942 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9943 sentinel to char *.
9944
2e927613
TV
99452020-02-09 Tom de Vries <tdevries@suse.de>
9946
9947 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9948 filename if it matches "<artificial>".
9949
6bafc845
HD
99502020-02-09 Hannes Domani <ssbssa@yahoo.de>
9951
9952 * windows-tdep.c (struct enum_value_name): New struct.
9953 (create_enum): New function.
9954 (windows_get_siginfo_type): Create and use enum types.
9955
7928d571
HD
99562020-02-09 Hannes Domani <ssbssa@yahoo.de>
9957
9958 * NEWS: Mention $_siginfo support for Windows.
9959 * windows-nat.c (handle_exception): Set siginfo_er.
9960 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9961 (windows_xfer_siginfo): New function.
9962 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9963 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9964 (init_windows_gdbarch_data): New function.
9965 (get_windows_gdbarch_data): New function.
9966 (windows_get_siginfo_type): New function.
9967 (windows_init_abi): Register windows_get_siginfo_type.
9968 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9969
6751ebae
TT
99702020-02-08 Tom Tromey <tom@tromey.com>
9971
9972 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9973 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9974 <keep>: Declare method.
9975 <m_keep>: Remove member.
9976 <~cutu_reader>: Remove.
9977 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9978 (cutu_reader::cutu_reader): Update.
9979 (cutu_reader::keep): Rename from ~cutu_reader.
9980 (process_psymtab_comp_unit, build_type_psymtabs_1)
9981 (process_skeletonless_type_unit, load_partial_comp_unit)
9982 (load_full_comp_unit, dwarf2_read_addr_index)
9983 (read_signatured_type): Update.
9984
135f5437
TT
99852020-02-08 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9988 "want_partial_unit" parameter.
9989 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9990 Inline check for DW_TAG_partial_unit.
9991 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9992
9f66ff1c
TT
99932020-02-08 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9996 read.c.
9997 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9998 read.c.
9999
c8a7a66f
TT
100002020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (read_address): Move to comp-unit.c.
10003 (dwarf2_rnglists_process, dwarf2_ranges_process)
10004 (read_attribute_value, dwarf_decode_lines_1)
10005 (var_decode_location, decode_locdesc): Update.
10006 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10007 read.c. Remove "cu" parameter.
10008 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10009 method.
10010
8266302d
TT
100112020-02-08 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10014 (read_indirect_line_string): Update.
10015 * dwarf2/comp-unit.c (read_offset): Remove.
10016 (read_comp_unit_head): Update.
10017 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10018 method.
10019 (read_offset): Don't declare.
10020
4057dfde
TT
100212020-02-08 Tom Tromey <tom@tromey.com>
10022
10023 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10024 * dwarf2/read.c (struct comp_unit_head): Move to
10025 dwarf2/comp-unit.h.
10026 (enum class rcuh_kind): Move to comp-unit.h.
10027 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10028 (read_comp_unit_head, error_check_comp_unit_head)
10029 (read_and_check_comp_unit_head): Move to comp-unit.c.
10030 (read_offset, dwarf_unit_type_name): Likewise.
10031 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10032 (cutu_reader::cutu_reader, read_call_site_scope)
10033 (find_partial_die, follow_die_offset): Update.
10034 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10035
24aa364d
TT
100362020-02-08 Tom Tromey <tom@tromey.com>
10037
10038 * dwarf2/read.c (read_offset_1): Move to leb.c.
10039 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10040 (dwarf_decode_macro_bytes): Update.
10041 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10042 * dwarf2/leb.h (read_offset): Declare.
10043
2c7d5afc
TT
100442020-02-08 Tom Tromey <tom@tromey.com>
10045
10046 * dwarf2/read.c (dwarf2_section_size): Remove.
10047 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10048 Update.
10049 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10050
4075cb26
TT
100512020-02-08 Tom Tromey <tom@tromey.com>
10052
10053 * dwarf2/read.c (read_initial_length): Move to leb.c.
10054 * dwarf2/leb.h (read_initial_length): Declare.
10055 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10056 handle_nonstd parameter.
10057 * dwarf2/frame.c (read_initial_length): Remove.
10058 (decode_frame_entry_1): Update.
10059
09ba997f
TT
100602020-02-08 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2/loc.c (dwarf2_find_location_expression)
10063 (dwarf_evaluate_loc_desc::get_tls_address)
10064 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10065 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10066 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10067 (dwarf2_compile_property_to_c)
10068 (dwarf2_loc_desc_get_symbol_read_needs)
10069 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10070 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10071 (loclist_describe_location, loclist_tracepoint_var_ref)
10072 (loclist_generate_c_location): Update.
10073 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10074 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10075 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10076 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10077 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10078 (dwarf2_per_cu_data::addr_size)
10079 (dwarf2_per_cu_data::ref_addr_size)
10080 (dwarf2_per_cu_data::text_offset)
10081 (dwarf2_per_cu_data::addr_type): Now methods.
10082 (per_cu_header_read_in): Make per_cu "const".
10083 (dwarf2_version): Remove.
10084 (dwarf2_per_cu_data::int_type): Now a method.
10085 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10086 (set_die_type, read_array_type, read_subrange_index_type)
10087 (read_tag_string_type, read_subrange_type): Update.
10088 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10089 offset_size, ref_addr_size, text_offset, addr_type, version,
10090 objfile, int_type, addr_sized_int_type>: Declare methods.
10091
96c738c0
TT
100922020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10095 Move earlier.
10096
8fdd972c
TT
100972020-02-08 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2/read.h (dwarf_line_debug): Declare.
10100 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10101 * dwarf2/read.c: Move line_header code to new files.
10102 (dwarf_line_debug): No longer static.
10103 * dwarf2/line-header.c: New file.
10104 * dwarf2/line-header.h: New file.
10105
03075812
TT
101062020-02-08 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.c (struct line_header) <file_full_name,
10109 file_file_name>: Return unique_xmalloc_ptr.
10110 (line_header::file_file_name): Update.
10111 (line_header::file_full_name): Update.
10112 (dw2_get_file_names_reader): Update.
10113 (macro_start_file): Update.
10114
bb822404
TT
101152020-02-08 Tom Tromey <tom@tromey.com>
10116
10117 * dwarf2/read.c (struct line_header) <file_full_name,
10118 file_file_name>: Declare methods.
10119 (dw2_get_file_names_reader): Update.
10120 (file_file_name): Now a method.
10121 (file_full_name): Likewise.
10122 (macro_start_file): Update.
10123
009b64fc
TT
101242020-02-08 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2/read.c (dwarf_always_disassemble)
10127 (show_dwarf_always_disassemble): Move to loc.c.
10128 (_initialize_dwarf2_read): Move "always-disassemble" registration
10129 to loc.c.
10130 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10131 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10132 static.
10133 (show_dwarf_always_disassemble): Move from read.c.
10134 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10135
5895093f
TT
101362020-02-08 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10139 (create_quick_file_names_table): Return htab_up.
10140 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10141 Update.
10142 * dwarf2/read.h (struct dwarf2_per_objfile)
10143 <quick_file_names_table>: Now htab_up.
10144
b3b32279
TT
101452020-02-08 Tom Tromey <tom@tromey.com>
10146
10147 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10148
1d33d811
TT
101492020-02-08 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10152 Rewrite.
10153 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10154 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10155 (abbrev_table::abbrev_table): No longer inline.
10156 (ABBREV_HASH_SIZE): Remove.
10157 (abbrev_table::m_abbrevs): Now an htab_up.
10158
86de1d91
TT
101592020-02-08 Tom Tromey <tom@tromey.com>
10160
10161 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10162 (cutu_reader): Update.
10163 (build_type_psymtabs_1): Update.
10164 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10165 (abbrev_table::alloc_abbrev): Update.
10166 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10167 (abbrev_table::read): New static method, renamed from
10168 abbrev_table_read_table.
10169 (abbrev_table::alloc_abbrev)
10170 (abbrev_table::add_abbrev): Now private.
10171 (abbrev_table::abbrev_table): Now private.
10172 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10173
0335378b
TT
101742020-02-08 Tom Tromey <tom@tromey.com>
10175
10176 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10177 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10178 htab_up.
10179
48b490f2
TT
101802020-02-08 Tom Tromey <tom@tromey.com>
10181
10182 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10183 htab_up.
10184 (lookup_dwo_unit_in_dwp): Update.
10185 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10186 on obstack.
10187
bc68fb19
TT
101882020-02-08 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10191 obstack.
10192
d15acc42
TT
101932020-02-08 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10196 line_header_hash.
10197 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10198 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10199 Change type to htab_up.
10200
eaa5fa8b
TT
102012020-02-08 Tom Tromey <tom@tromey.com>
10202
10203 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10204 htab_up. Don't allocate on obstack.
10205 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10206 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10207 Change type to htab_up.
10208
b0b6a987
TT
102092020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10212 Change type to htab_up.
10213 * dwarf2/read.c (create_signatured_type_table_from_index)
10214 (create_signatured_type_table_from_debug_names)
10215 (create_all_type_units, add_type_unit)
10216 (lookup_dwo_signatured_type, lookup_signatured_type)
10217 (process_skeletonless_type_unit): Update.
10218 (create_debug_type_hash_table, create_debug_types_hash_table):
10219 Change type of types_htab.
10220 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10221 htab_up. Don't allocate on obstack.
10222 (create_cus_hash_table): Change type of cus_htab parameter.
10223 (struct dwo_file) <cus, tus>: Now htab_up.
10224 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10225 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10226 (queue_and_load_all_dwo_tus): Update.
10227 * dwarf2/index-write.c (write_gdbindex): Update.
10228 (write_debug_names): Update.
10229
39856def
TT
102302020-02-08 Tom Tromey <tom@tromey.com>
10231
10232 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10233 dwarf2/read.c. Remove "next" member. Add constructor ntad
10234 destructor.
10235 (struct dwarf2_per_objfile) <queue>: New member.
10236 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10237 dwarf2/read.h.
10238 (dwarf2_queue, dwarf2_queue_tail): Remove.
10239 (class dwarf2_queue_guard): Add parameter to constructor. Use
10240 DISABLE_COPY_AND_ASSIGN.
10241 <m_per_objfile>: New member.
10242 <~dwarf2_queue_guard>: Rewrite.
10243 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10244 Update.
10245 (~dwarf2_queue_item): New.
10246
3e225074
TT
102472020-02-08 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/read.c (struct die_info) <has_children>: New member.
10250 (dw2_get_file_names_reader): Remove has_children.
10251 (dw2_get_file_names): Update.
10252 (read_cutu_die_from_dwo): Remove has_children.
10253 (cutu_reader::init_tu_and_read_dwo_dies)
10254 (cutu_reader::cutu_reader): Update.
10255 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10256 Remove has_children.
10257 (build_type_psymtabs_1, process_skeletonless_type_unit)
10258 (load_partial_comp_unit, load_full_comp_unit): Update.
10259 (create_dwo_cu_reader): Remove has_children.
10260 (create_cus_hash_table, read_die_and_children): Update.
10261 (read_full_die_1,read_full_die): Remove has_children.
10262 (read_signatured_type): Update.
10263 (class cutu_reader) <has_children>: Remove.
10264
82ca8957
TT
102652020-02-08 Tom Tromey <tom@tromey.com>
10266
10267 * dwarf2/expr.c: Rename from dwarf2expr.c.
10268 * dwarf2/expr.h: Rename from dwarf2expr.h.
10269 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10270 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10271 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10272 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10273 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10274 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10275 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10276 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10277 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10278 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10279 * dwarf2/loc.c: Rename from dwarf2loc.c.
10280 * dwarf2/loc.h: Rename from dwarf2loc.h.
10281 * dwarf2/read.c: Rename from dwarf2read.c.
10282 * dwarf2/read.h: Rename from dwarf2read.h.
10283 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10284 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10285 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10286 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10287 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10288 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10289 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10290 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10291 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10292 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10293 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10294 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10295 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10296 Update.
10297 * Makefile.in (COMMON_SFILES): Update.
10298 (HFILES_NO_SRCDIR): Update.
10299
9e35d499
TT
103002020-02-08 Tom Tromey <tom@tromey.com>
10301
10302 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10303 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10304
1eba2311
TT
103052020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2read.h (struct die_info): Don't declare.
10308
e41c2da2
TT
103092020-02-08 Tom Tromey <tom@tromey.com>
10310
10311 * dwarf2read.h (die_info_ptr): Remove typedef.
10312
4fc6c0d5
TT
103132020-02-08 Tom Tromey <tom@tromey.com>
10314
10315 * dwarf2read.c (read_call_site_scope)
10316 (handle_data_member_location, dwarf2_add_member_fn)
10317 (mark_common_block_symbol_computed, read_common_block)
10318 (attr_to_dynamic_prop, partial_die_info::read)
10319 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10320 (dwarf2_symbol_mark_computed, set_die_type): Update.
10321 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10322 method.
10323 (attr_form_is_block): Don't declare.
10324 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10325
cd6c91b4
TT
103262020-02-08 Tom Tromey <tom@tromey.com>
10327
10328 * dwarf2read.c (dwarf2_find_base_address, )
10329 (read_call_site_scope, rust_containing_type)
10330 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10331 (handle_data_member_location, dwarf2_add_member_fn)
10332 (get_alignment, read_structure_type, process_structure_scope)
10333 (mark_common_block_symbol_computed, read_common_block)
10334 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10335 (partial_die_info::read, read_attribute_value, new_symbol)
10336 (lookup_die_type, dwarf2_get_ref_die_offset)
10337 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10338 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10339 (dwarf2_symbol_mark_computed): Update.
10340 * dwarf2/attribute.h (struct attribute) <value_as_address,
10341 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10342 methods.
10343 (value_as_address, attr_form_is_section_offset)
10344 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10345 * dwarf2/attribute.c (attribute::value_as_address)
10346 (attribute::form_is_section_offset, attribute::form_is_constant)
10347 (attribute::form_is_ref): Now methods.
10348
162dce55
TT
103492020-02-08 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2read.c (struct attribute, DW_STRING)
10352 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10353 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10354 (attr_form_is_block, attr_form_is_section_offset)
10355 (attr_form_is_constant, attr_form_is_ref): Move.
10356 * dwarf2/attribute.h: New file.
10357 * dwarf2/attribute.c: New file, from dwarf2read.c.
10358 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10359
3054dd54
TT
103602020-02-08 Tom Tromey <tom@tromey.com>
10361
10362 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10363 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10364 Move.
10365 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10366 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10367 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10368 abbrev.c.
10369 * dwarf2/abbrev.h: New file.
10370 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10371 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10372
96b79293
TT
103732020-02-08 Tom Tromey <tom@tromey.com>
10374
10375 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10376 (dwarf2_section_size, dwarf2_get_section_info)
10377 (create_signatured_type_table_from_debug_names)
10378 (create_addrmap_from_aranges, read_debug_names_from_section)
10379 (get_gdb_index_contents_from_section, read_comp_unit_head)
10380 (error_check_comp_unit_head, read_abbrev_offset)
10381 (create_debug_type_hash_table, init_cu_die_reader)
10382 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10383 (read_comp_units_from_section, create_cus_hash_table)
10384 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10385 (create_dwp_v2_section, dwarf2_rnglists_process)
10386 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10387 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10388 (read_indirect_string_from_dwz, read_addr_index_1)
10389 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10390 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10391 (fill_in_loclist_baton): Update.
10392 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10393 get_containing_section, get_bfd_owner, get_bfd_section,
10394 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10395 (dwarf2_read_section, get_section_name, get_section_file_name)
10396 (get_containing_section, get_section_bfd_owner)
10397 (get_section_bfd_section, get_section_name, get_section_file_name)
10398 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10399 declare.
10400 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10401 (dwarf2_section_info::get_bfd_owner)
10402 (dwarf2_section_info::get_bfd_section)
10403 (dwarf2_section_info::get_name)
10404 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10405 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10406 (dwarf2_section_info::read): Now methods.
10407 * dwarf-index-write.c (class debug_names): Update.
10408
2c86cff9
TT
104092020-02-08 Tom Tromey <tom@tromey.com>
10410
10411 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10412 Move to dwarf2/section.h.
10413 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10414 (get_section_bfd_section, get_section_name)
10415 (get_section_file_name, get_section_id, get_section_flags)
10416 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10417 dwarf2/section.c.
10418 * dwarf2/section.h: New file.
10419 * dwarf2/section.c: New file, from dwarf2read.c.
10420 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10421
f4382c45
TT
104222020-02-08 Tom Tromey <tom@tromey.com>
10423
10424 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10425 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10426 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10427 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10428 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10429 * dwarf2/leb.h: New file, from dwarf2read.c.
10430 * dwarf2/leb.c: New file, from dwarf2read.c.
10431 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10432 Remove.
10433 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10434 (COMMON_SFILES): Add dwarf2/leb.c.
10435
01840b7a
JB
104362020-02-08 Joel Brobecker <brobecker@adacore.com>
10437
10438 GDB 9.1 released.
10439
dfcb27e4
IB
104402020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10441
10442 PR gdb/25190:
aac66a4c
SM
10443 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10444 * gdb/remote.c (remote_console_output): Update.
10445 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10446 (ui_file_puts): ...this.
10447 * gdb/ui-file.h (ui_file_puts): Add declaration.
10448 * gdb/utils.c (emit_style_escape): Update.
10449 (flush_wrap_buffer): Update.
10450 (fputs_maybe_filtered): Update.
10451 (fputs_unfiltered): Add function.
dfcb27e4 10452
faa17681
IB
104532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10454
aac66a4c
SM
10455 * gdb/event-loop.c (gdb_wait_for_event): Update.
10456 * gdb/printcmd.c (printf_command): Update.
10457 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10458 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10459 (gdb_os_flush_stderr): Update.
10460 * gdb/remote.c (remote_console_output): Update.
10461 * gdb/ui-file.c (gdb_flush): Rename to...
10462 (ui_file_flush): ...this.
10463 (stderr_file::write): Update.
10464 (stderr_file::puts): Update.
10465 * gdb/ui-file.h (gdb_flush): Rename to...
10466 (ui_file_flush): ...this.
10467 * gdb/utils.c (gdb_flush): Add function.
10468 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10469
5abbbe1d
TT
104702020-02-07 Tom Tromey <tromey@adacore.com>
10471
10472 PR breakpoints/24915:
10473 * source.c (find_and_open_source): Do not check basenames_may_differ.
10474
919adfe8
TT
104752020-02-07 Tom Tromey <tom@tromey.com>
10476
10477 * README: Update gdbserver documentation.
10478 * gdbserver: Move to top level.
10479 * configure.tgt (build_gdbserver): Remove.
10480 * configure.ac: Remove --enable-gdbserver.
10481 * configure: Rebuild.
10482 * Makefile.in (distclean): Don't mention gdbserver.
10483
1d5d29e7
SV
104842020-02-06 Shahab Vahedi <shahab@synopsys.com>
10485
10486 * source-cache.c (source_cache::ensure): Surround
10487 get_plain_source_lines with a try/catch.
10488 (source_cache::get_line_charpos): Get rid of try/catch
10489 and only check for the return value of "ensure".
10490 * tui/tui-source.c (tui_source_window::set_contents):
10491 Simplify "nlines" calculation.
10492
6eb1129c
SV
104932020-02-06 Shahab Vahedi <shahab@synopsys.com>
10494
10495 * MAINTAINERS (Write After Approval): Add myself.
10496
c6a42d11
CB
104972020-02-05 Christian Biesinger <cbiesinger@google.com>
10498
10499 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10500 function call.
10501
c8ecdda6
CB
105022020-02-05 Christian Biesinger <cbiesinger@google.com>
10503
10504 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10505
f6480e70
MR
105062020-02-05 Maciej W. Rozycki <macro@wdc.com>
10507
10508 * nat/riscv-linux-tdesc.h: New file.
10509 * nat/riscv-linux-tdesc.c: New file, taking code from...
10510 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10511 ... here.
10512 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10513 NATDEPFILES.
10514
dcc9fbc6
AB
105152020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10516
10517 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10518 we don't set the fake simulator ptid to the null_ptid.
10519
719546c4
SM
105202020-02-03 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10523 * gdbthread.h (class thread_info) <resumed>: Likewise.
10524 * infrun.c (resume_1): Likewise.
10525 (proceed): Likewise.
10526 (infrun_thread_stop_requested): Likewise.
10527 (stop_all_threads): Likewise.
10528 (handle_inferior_event): Likewise.
10529 (restart_threads): Likewise.
10530 (finish_step_over): Likewise.
10531 (keep_going_stepped_thread): Likewise.
10532 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10533 (linux_handle_extended_wait): Likewise.
10534 * record-btrace.c (get_thread_current_frame_id): Likewise.
10535 * record-full.c (record_full_wait_1): Likewise.
10536 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10537 * target.c (target_resume): Likewise.
10538 * thread.c (set_running_thread): Likewise.
10539
e409c542
AKS
105402020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10541
10542 * f-valprint.c (f77_print_array_1): Changed datatype of index
10543 variable to LONGEST from int to enable it to contain bound
10544 values correctly.
10545
ee98c0da
MR
105462020-02-03 Maciej W. Rozycki <macro@wdc.com>
10547
10548 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10549 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10550 offsets according to FLEN determined.
10551 (riscv_linux_nat_target::read_description): Determine FLEN
10552 dynamically.
10553 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10554 according to FLEN determined.
10555 (riscv_linux_nat_target::store_registers): Likewise.
10556
aa66aac4
SV
105572020-02-01 Shahab Vahedi <shahab@synopsys.com>
10558
10559 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10560 when reg->group is empty and reggroup is not.
10561
fd9faca8
TT
105622020-01-31 Tom Tromey <tromey@adacore.com>
10563
10564 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10565 Call beneath target's mourn_inferior after unpushing.
10566
42330a68
AB
105672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 PR tui/9765
10570 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10571 have enough lines to fill the screen, still return the lowest
10572 address we found.
10573
7a27a45b
AB
105742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10575
10576 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10577 '-', '<', and '>' commands.
10578
c47f70e2
PA
105792020-01-29 Pedro Alves <palves@redhat.com>
10580 Sergio Durigan Junior <sergiodj@redhat.com>
10581
10582 * infcmd.c (construct_inferior_arguments): Assert that
10583 'argc' is greater than 0.
10584
5133a315
LM
105852020-01-29 Luis Machado <luis.machado@linaro.org>
10586
10587 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10588 (BRK_INSN_MASK): Define to 0xd4200000.
10589 (aarch64_program_breakpoint_here_p): New function.
10590 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10591 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10592 breakpoint.c.
10593 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10594 breakpoint.h
10595 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10596 call gdbarch_program_breakpoint_here_p.
10597 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10598 default_program_breakpoint_here_p, changed return type to bool and
10599 simplified.
10600 * breakpoint.h (program_breakpoint_here): Moved prototype to
10601 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10602 return type to bool.
10603 * gdbarch.c: Regenerate.
10604 * gdbarch.h: Regenerate.
10605 * gdbarch.sh (program_breakpoint_here_p): New method.
10606 * infrun.c (handle_signal_stop): Call
10607 gdbarch_program_breakpoint_here_p.
10608
168f8c6b
TT
106092020-01-26 Tom Tromey <tom@tromey.com>
10610
10611 * ctfread.c (struct ctf_fp_info): Reindent.
10612 (_initialize_ctfread): Remove.
10613
128a391f
TT
106142020-01-26 Tom Tromey <tom@tromey.com>
10615
10616 * psymtab.c (partial_map_expand_apply)
10617 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10618 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10619 (psym_print_stats, psym_expand_symtabs_for_function)
10620 (psym_map_symbol_filenames, psym_map_matching_symbols)
10621 (psym_expand_symtabs_matching)
10622 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10623 (maintenance_check_psymtabs): Use new methods.
10624 * psympriv.h (struct partial_symtab) <readin_p,
10625 get_compunit_symtab>: New methods.
10626 <readin, compunit_symtab>: Remove members.
10627 (struct standard_psymtab): New.
10628 (struct legacy_psymtab): Derive from standard_psymtab.
10629 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10630 standard_psymtab.
10631 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10632
0494dbec
TT
106332020-01-26 Tom Tromey <tom@tromey.com>
10634
10635 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10636 read_dependencies. Add assert.
10637 * psymtab.c (partial_symtab::read_dependencies): New method.
10638 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10639 method.
10640 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10641 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10642 read_dependencies.
10643 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10644 Add assert.
10645
8566b89b
TT
106462020-01-26 Tom Tromey <tom@tromey.com>
10647
10648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10649 Call expand_psymtab.
10650 (xcoff_read_symtab): Call expand_psymtab.
10651 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10652 legacy_expand_psymtab.
10653 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10654 method.
10655 (struct legacy_psymtab) <expand_psymtab>: Implement.
10656 <legacy_expand_psymtab>: New member.
10657 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10658 (parse_partial_symbols): Set legacy_expand_psymtab.
10659 (psymtab_to_symtab_1): Change argument order. Call
10660 expand_psymtab.
10661 (new_psymtab): Set legacy_expand_psymtab.
10662 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10663 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10664 expand_psymtab.
10665 (dwarf2_psymtab::expand_psymtab): Rename from
10666 psymtab_to_symtab_1. Call expand_psymtab.
10667 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10668 (dbx_end_psymtab): Likewise.
10669 (dbx_psymtab_to_symtab_1): Change argument order. Call
10670 expand_psymtab.
10671 (dbx_read_symtab): Call expand_psymtab.
10672 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10673 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10674 (ctf_psymtab::read_symtab): Call expand_psymtab.
10675
077cbab2
TT
106762020-01-26 Tom Tromey <tom@tromey.com>
10677
10678 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10679 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10680 messages.
10681 * mdebugread.c (mdebug_read_symtab): Remove prints.
10682 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10683 assert.
10684 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10685
891813be
TT
106862020-01-26 Tom Tromey <tom@tromey.com>
10687
10688 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10689 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10690 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10691 legacy_symtab.
10692 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10693 * psymtab.c (psymtab_to_symtab): Call method.
10694 (dump_psymtab): Update.
10695 * psympriv.h (struct partial_symtab): Add virtual destructor.
10696 <read_symtab>: New method.
10697 (struct legacy_symtab): New.
10698 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10699 (struct pst_map) <pst>: Now a legacy_psymtab.
10700 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10701 (new_psymtab): Use legacy_psymtab.
10702 * dwarf2read.h (struct dwarf2_psymtab): New.
10703 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10704 * dwarf2read.c (dwarf2_create_include_psymtab)
10705 (dwarf2_build_include_psymtabs, create_type_unit_group)
10706 (create_partial_symtab, process_psymtab_comp_unit_reader)
10707 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10708 (set_partial_user): Use dwarf2_psymtab.
10709 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10710 (psymtab_to_symtab_1, process_full_comp_unit)
10711 (process_full_type_unit, dwarf2_ranges_read)
10712 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10713 (dwarf_decode_lines): Use dwarf2_psymtab.
10714 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10715 (add_address_entry_worker, write_one_signatured_type)
10716 (recursively_count_psymbols, recursively_write_psymbols)
10717 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10718 (write_debug_names): Likewise.
10719 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10720 <pst>: Now a legacy_psymtab.
10721 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10722 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10723 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10724 * ctfread.c (struct ctf_psymtab): New.
10725 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10726 ctf_psymtab.
10727 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10728 (create_partial_symtab): Return a ctf_psymtab.
10729 (scan_partial_symbols): Update.
10730
c3693a1d
TT
107312020-01-26 Tom Tromey <tom@tromey.com>
10732
10733 * xcoffread.c (xcoff_start_psymtab): Use new.
10734 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10735 renamed from start_psymtab_common.
10736 * psympriv.h (struct partial_symtab): Add new constructor.
10737 (start_psymtab_common): Don't declare.
10738 * mdebugread.c (parse_partial_symbols): Use new.
10739 * dwarf2read.c (create_partial_symtab): Use new.
10740 * dbxread.c (start_psymtab): Use new.
10741 * ctfread.c (create_partial_symtab): Use new.
10742
32caafd0
TT
107432020-01-26 Tom Tromey <tom@tromey.com>
10744
10745 * xcoffread.c (xcoff_end_psymtab): Use new.
10746 * psymtab.c (start_psymtab_common): Use new.
10747 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10748 Update.
10749 * psympriv.h (struct partial_symtab): Add parameters to
10750 constructor. Don't inline.
10751 (allocate_psymtab): Don't declare.
10752 * mdebugread.c (new_psymtab): Use new.
10753 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10754 * dbxread.c (dbx_end_psymtab): Use new.
10755
abaa2f23
TT
107562020-01-26 Tom Tromey <tom@tromey.com>
10757
10758 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10759 allocate_psymtab. Update documentation.
10760 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10761 allocate_psymtab. Do not use new.
10762 (allocate_psymtab): Use new. Update.
10763
6d94535f
TT
107642020-01-26 Tom Tromey <tom@tromey.com>
10765
10766 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10767 * psymtab.c (psym_print_stats): Update.
10768 * psympriv.h (struct partial_symtab) <readin,
10769 psymtabs_addrmap_supported, anonymous>: Now bool.
10770 * mdebugread.c (psymtab_to_symtab_1): Update.
10771 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10772 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10773 (process_full_comp_unit, process_full_type_unit): Update.
10774 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10775 * ctfread.c (psymtab_to_symtab): Update.
10776
6f17252b
TT
107772020-01-26 Tom Tromey <tom@tromey.com>
10778
10779 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10780 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10781 * psymtab.c (psymtab_storage): Delete psymtabs.
10782 (psymtab_storage::allocate_psymtab): Use new.
10783 (psymtab_storage::discard_psymtab): Use delete.
10784 * psympriv.h (struct partial_symtab): Add constructor and
10785 initializers.
10786
f6f1cebc
TT
107872020-01-26 Tom Tromey <tom@tromey.com>
10788
10789 * machoread.c: Do not include psympriv.h.
10790
e47e48f6
PW
107912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10792
10793 * NEWS: Mention the new option and the set/show commands.
10794
a2fedca9
PW
107952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10796
10797 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10798 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10799 (validate_exec_file): New variables, enums, functions.
10800 (exec_file_locate_attach, print_section_info): Style the filenames.
10801 (_initialize_exec): Install show_exec_file_mismatch_command and
10802 set_exec_file_mismatch_command.
10803 * gdbcore.h (validate_exec_file): Declare.
10804 * infcmd.c (attach_command): Call validate_exec_file.
10805 * remote.c ( remote_target::remote_add_inferior): Likewise.
10806
7ffa82e1
AB
108072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10808
10809 * frame.c (find_frame_sal): Move call to get_next_frame into more
10810 inner scope.
10811 * inline-frame.c (inilne_state) <inline_state>: Update argument
10812 types.
10813 (inilne_state) <skipped_symbol>: Rename to...
10814 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10815 (skip_inline_frames): Build vector of skipped symbols and use this
10816 to reate the inline_state.
10817 (inline_skipped_symbol): Add a comment and some assertions, fetch
10818 skipped symbol from the list.
10819
3d92a3e3
AB
108202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * buildsym.c (lte_is_less_than): Delete.
10823 (buildsym_compunit::end_symtab_with_blockvector): Create local
10824 lambda function to sort line table entries, and use
10825 std::stable_sort instead of std::sort.
10826 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10827 markers when looking for a previous line.
10828
94a72be7
AB
108292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10830
10831 * dwarf2read.c (lnp_state_machine::record_line): Include
10832 end_sequence parameter in debug print out. Record the line if we
10833 are at an end_sequence marker even if it's not the start of a
10834 statement.
10835 * symmisc.c (maintenance_print_one_line_table): Print end of
10836 sequence markers with 'END' not '0'.
10837
53af73bf
PA
108382020-01-24 Pedro Alves <palves@redhat.com>
10839
10840 PR gdb/25410
10841 * thread.c (scoped_restore_current_thread::restore): Use
10842 switch_to_inferior_no_thread.
10843 * exec.c: Include "progspace-and-thread.h".
10844 (add_target_sections, remove_target_sections):
10845 scoped_restore_current_pspace_and_thread instead of
10846 scoped_restore_current_thread.
10847 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10848 and aspace to the inferior before calling clone_program_space.
10849 Remove stale comment.
10850
3050c6f4
CB
108512020-01-24 Christian Biesinger <cbiesinger@google.com>
10852
10853 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10854 (arm_netbsd_nat_target::fetch_registers): ...this.
10855 (arm_nbsd_nat_target::store_registers): Rename to...
10856 (arm_netbsd_nat_target::store_registers): ...this.
10857
73685c7e
CB
108582020-01-24 Christian Biesinger <cbiesinger@google.com>
10859
10860 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10861 register_t.
10862
89203d40
CB
108632020-01-24 Christian Biesinger <cbiesinger@google.com>
10864
10865 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10866 Update comment.
10867 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10868 Likewise.
10869 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10870 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10871 the correct replacement (iterate_over_regset_sections).
10872 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10873 Update comment.
10874
1ba1ac88
AB
108752020-01-24 Graham Markall <graham.markall@embecosm.com>
10876
10877 PR gdb/23718
10878 * gdb/python/python.c (execute_gdb_command): Call
10879 async_enable_stdin in catch block.
10880
f3364a6d
AB
108812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10884 SWITCH_THRU_ALL_UIS.
10885
733d0a67
AB
108862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10887
10888 PR tui/9765
10889 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10890 comment, add extra parameter, and update to store previous symbol
10891 when appropriate.
10892 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10893 add extra parameter.
10894 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10895 remove unneeded parameter, add try/catch around gdb_print_insn,
10896 rewrite to add items to asm_lines vector.
10897 (tui_find_backward_disassembly_start_address): New function.
10898 (tui_find_disassembly_address): Updated throughout.
10899 (tui_disasm_window::set_contents): Update for changes to
10900 tui_disassemble.
10901 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10902 number of lines to scroll.
10903
b3b3bada
SM
109042020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10905
10906 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10907 (SECT_OFF_DATA): Likewise.
10908 (SECT_OFF_RODATA): Likewise.
10909 (SECT_OFF_TEXT): Likewise.
10910 (SECT_OFF_BSS): Likewise.
10911 (struct objfile) <text_section_offset, data_section_offset>: New
10912 methods.
10913 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10914 objfile::text_section_offset.
10915 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10916 * coffread.c (coff_symtab_read): Likewise.
10917 (enter_linenos): Likewise.
10918 (process_coff_symbol): Likewise.
10919 * ctfread.c (get_objfile_text_range): Likewise.
10920 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10921 Use objfile::data_section_offset.
10922 * dwarf2-frame.c (execute_cfa_program): Use
10923 objfile::text_section_offset.
10924 (dwarf2_frame_find_fde): Likewise.
10925 * dwarf2read.c (create_addrmap_from_index): Likewise.
10926 (create_addrmap_from_aranges): Likewise.
10927 (dw2_find_pc_sect_compunit_symtab): Likewise.
10928 (process_psymtab_comp_unit_reader): Likewise.
10929 (add_partial_symbol): Likewise.
10930 (add_partial_subprogram): Likewise.
10931 (process_full_comp_unit): Likewise.
10932 (read_file_scope): Likewise.
10933 (read_func_scope): Likewise.
10934 (read_lexical_block_scope): Likewise.
10935 (read_call_site_scope): Likewise.
10936 (dwarf2_rnglists_process): Likewise.
10937 (dwarf2_ranges_process): Likewise.
10938 (dwarf2_ranges_read): Likewise.
10939 (dwarf_decode_lines_1): Likewise.
10940 (new_symbol): Likewise.
10941 (dwarf2_fetch_die_loc_sect_off): Likewise.
10942 (dwarf2_per_cu_text_offset): Likewise.
10943 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10944 * hppa-tdep.c (read_unwind_info): Likewise.
10945 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10946 * psympriv.h (struct partial_symtab): Likewise.
10947 * psymtab.c (find_pc_sect_psymtab): Likewise.
10948 * solib-svr4.c (enable_break): Likewise.
10949 * stap-probe.c (relocate_address): Use
10950 objfile::data_section_offset.
10951 * xcoffread.c (enter_line_range): Use
10952 objfile::text_section_offset.
10953 (read_xcoff_symtab): Likewise.
10954
ab53f382
SM
109552020-01-23 Simon Marchi <simon.marchi@efficios.com>
10956
10957 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10958 declaration to narrower scopes.
10959
e7eee665
SM
109602020-01-23 Simon Marchi <simon.marchi@efficios.com>
10961
10962 * darwin-nat.h (struct darwin_exception_msg, enum
10963 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10964 Move up.
10965 (class darwin_nat_target) <wait_1, check_new_threads,
10966 decode_exception_message, decode_message, stop_inferior,
10967 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10968 * darwin-nat.c (darwin_check_new_threads): Rename to...
10969 (darwin_nat_target::check_new_threads): ... this.
10970 (darwin_suspend_inferior_it): Remove.
10971 (darwin_decode_exception_message): Rename to...
10972 (darwin_nat_target::decode_exception_message): ... this.
10973 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10974 (darwin_decode_message): Rename to...
10975 (darwin_nat_target::decode_message): ... this.
10976 (cancel_breakpoint): Rename to...
10977 (darwin_nat_target::cancel_breakpoint): ... this.
10978 (darwin_wait): Rename to...
10979 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10980 instead of iterate_over_inferiors.
10981 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10982 (darwin_stop_inferior): Rename to...
10983 (darwin_nat_target::stop_inferior): ... this.
10984 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10985 (darwin_init_thread_list): Rename to...
10986 (darwin_nat_target::init_thread_list): ... this.
10987 (darwin_ptrace_him): Rename to...
10988 (darwin_nat_target::ptrace_him): ... this.
10989 (darwin_nat_target::create_inferior): Pass lambda function to
10990 fork_inferior.
10991 (darwin_nat_target::detach): Call stop_inferior instead of
10992 darwin_stop_inferior.
10993 * fork-inferior.h (fork_inferior): Change init_trace_fun
10994 parameter to gdb::function_view.
10995 * fork-inferior.c (fork_inferior): Likewise.
10996
c162ed3e
HD
109972020-01-23 Hannes Domani <ssbssa@yahoo.de>
10998
10999 * i386-cygwin-tdep.c (core_process_module_section): Update.
11000 * windows-nat.c (struct lm_info_windows): Add text_offset.
11001 (windows_xfer_shared_libraries): Update.
11002 * windows-tdep.c (windows_xfer_shared_library):
11003 Add text_offset_cached argument.
11004 * windows-tdep.h (windows_xfer_shared_library): Update.
11005
a1237872
SM
110062020-01-21 Simon Marchi <simon.marchi@efficios.com>
11007
11008 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11009
b3ee6dd9
SM
110102020-01-21 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11013 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11014 replace with range-based for.
11015 (gdbsim_interrupt_inferior): Remove.
11016 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11017 with a range-based for. Inline code from
11018 gdbsim_interrupt_inferior.
11019
f9fac3c8
SM
110202020-01-21 Simon Marchi <simon.marchi@efficios.com>
11021
11022 * infrun.c (proceed): Fix indentation.
11023
f6474de9
TT
110242020-01-21 Tom Tromey <tromey@adacore.com>
11025
11026 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11027 * python/python.c (python_extension_ops): Update.
11028 (gdbpy_colorize): New function.
11029 * python/lib/gdb/__init__.py (colorize): New function.
11030 * extension.h (ext_lang_colorize): Declare.
11031 * extension.c (ext_lang_colorize): New function.
11032 * extension-priv.h (struct extension_language_ops) <colorize>: New
11033 member.
11034 * cli/cli-style.c (_initialize_cli_style): Update help text.
11035
f0c702d4
LM
110362020-01-21 Luis Machado <luis.machado@linaro.org>
11037
11038 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11039 <cond>: Change type to bool.
11040 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11041 (aarch64_displaced_step_cb): Likewise.
11042 (aarch64_displaced_step_tb): Likewise.
11043
1ab139e5
LM
110442020-01-21 Luis Machado <luis.machado@linaro.org>
11045
11046 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11047 output.
11048
0c271889
LM
110492020-01-21 Luis Machado <luis.machado@linaro.org>
11050
11051 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11052 <pc_adjust>: Adjust the documentation.
11053 (aarch64_displaced_step_fixup): Check if PC really moved before
11054 adjusting it.
11055
4d89c1c7
TT
110562020-01-19 Tom Tromey <tom@tromey.com>
11057
11058 * disasm.c (~gdb_disassembler): New destructor.
11059 (gdb_buffered_insn_length): Call disassemble_free_target.
11060 * disasm.h (class gdb_disassembler): Declare destructor. Use
11061 DISABLE_COPY_AND_ASSIGN.
11062
c0ab21c2
TT
110632020-01-19 Tom Tromey <tom@tromey.com>
11064
11065 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11066 (die_reader_func_ftype): Remove.
11067 (cutu_reader): New class.
11068 (dw2_get_file_names_reader): Remove "data" parameter.
11069 (dw2_get_file_names): Use cutu_reader.
11070 (create_debug_type_hash_table): Update.
11071 (read_cutu_die_from_dwo): Update comment.
11072 (lookup_dwo_unit): Add dwo_name parameter.
11073 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11074 die_reader_func_ftype and data parameters.
11075 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11076 Remove die_reader_func_ftype and data parameters.
11077 (~cutu_reader): New; from init_cutu_and_read_dies.
11078 (cutu_reader::cutu_reader): Rename from
11079 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11080 and data parameters.
11081 (init_cutu_and_read_dies_simple): Remove.
11082 (struct process_psymtab_comp_unit_data): Remove.
11083 (process_psymtab_comp_unit_reader): Remove data parameter; add
11084 want_partial_unit and pretend_language parameters.
11085 (process_psymtab_comp_unit): Use cutu_reader.
11086 (build_type_psymtabs_reader): Remove data parameter.
11087 (build_type_psymtabs_1): Use cutu_reader.
11088 (process_skeletonless_type_unit): Likewise.
11089 (load_partial_comp_unit_reader): Remove.
11090 (load_partial_comp_unit): Use cutu_reader.
11091 (load_full_comp_unit_reader): Remove.
11092 (load_full_comp_unit): Use cutu_reader.
11093 (struct create_dwo_cu_data): Remove.
11094 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11095 dwo_unit parameters.
11096 (create_cus_hash_table): Use cutu_reader.
11097 (struct dwarf2_read_addr_index_data): Remove.
11098 (dwarf2_read_addr_index_reader): Remove.
11099 (dwarf2_read_addr_index): Use cutu_reader.
11100 (read_signatured_type_reader): Remove.
11101 (read_signatured_type): Use cutu_reader.
11102
45bbae5c
TT
111032020-01-19 Tom Tromey <tom@tromey.com>
11104
11105 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11106 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11107 (tui_wrefresh): Declare.
11108 * tui/tui-wingeneral.c (suppress_output): New global.
11109 (tui_suppress_output, ~tui_suppress_output): New constructor and
11110 destructor.
11111 (tui_wrefresh): New function.
11112 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11113 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11114 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11115 method.
11116 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11117 tui_wrefresh.
11118 (tui_data_window::no_refresh): New method.
11119 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11120 (tui_reg_command): Use tui_suppress_output
11121 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11122 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11123 method.
11124 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11125
4f13c1c0
TT
111262020-01-19 Tom Tromey <tom@tromey.com>
11127
11128 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11129 Handle case where symtab is null.
11130
fa47e446
SM
111312020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11132
11133 * linux-fork.c (one_fork_p): Simplify.
11134
26f42329
SM
111352020-01-17 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * top.c (struct qt_args): Remove.
11138 (kill_or_detach): Change return type to void, replace `void *`
11139 parameter with a proper one.
11140 (print_inferior_quit_action): Likewise.
11141 (quit_confirm): Use range-based for loop to iterate over inferiors.
11142 (quit_force): Likewise.
11143
a9ac81b1
SM
111442020-01-17 Simon Marchi <simon.marchi@efficios.com>
11145
11146 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11147 `void *` parameter with proper parameters.
11148 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11149 (print_one_inferior): Change return type to void, replace `void *`
11150 parameter with proper parameters.
11151 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11152 inferiors.
11153 (get_other_inferior): Remove.
11154 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11155 inferiors.
11156
788eca49
SM
111572020-01-17 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * mi/mi-interp.c (report_initial_inferior): Remove.
11160 (mi_interp::init): Use range-based for to iterate over inferiors.
11161
d9bc85b6
SM
111622020-01-17 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * python/py-inferior.c (build_inferior_list): Remove.
11165 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11166
40c94099
CB
111672020-01-16 Christian Biesinger <cbiesinger@google.com>
11168
11169 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11170 (btrace_stitch_trace): Likewise.
11171 * charset.c (intermediate_encoding): Likewise (vaild).
11172 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11173 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11174 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11175
e0cdfe3c
HD
111762020-01-16 Hannes Domani <ssbssa@yahoo.de>
11177
11178 * windows-tdep.c (windows_get_tlb_type):
11179 Add rtl_user_process_parameters type.
11180
790f1718 111812020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11182 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11183
11184 PR build/24805
11185 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11186 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11187 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11188 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11189 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11190 (ps_plog): Redeclare exported functions with default visibility.
11191
3112ed97
NA
111922020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11193
11194 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11195 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11196
8dc3273e
SM
111972020-01-15 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * infcmd.c (post_create_inferior): Use get_thread_regcache
11200 instead of get_current_regcache.
11201
ff47f4f0
TT
112022020-01-14 Tom Tromey <tom@tromey.com>
11203
11204 PR symtab/12535:
11205 * python/python.c (gdbpy_decode_line): Treat empty string the same
11206 as no argument.
11207
975f45b7
TT
112082020-01-14 Tom Tromey <tom@tromey.com>
11209
11210 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11211
25e57356
TT
112122020-01-14 Tom Tromey <tom@tromey.com>
11213
11214 * nat/linux-btrace.c: Don't include <config.h>.
11215 * nat/linux-ptrace.c: Don't include <config.h>.
11216 * nat/x86-linux-dregs.c: Don't include <config.h>.
11217
05ea2a05
TT
112182020-01-14 Tom Tromey <tom@tromey.com>
11219
11220 * configure: Rebuild.
11221 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11222
01027315
TT
112232020-01-14 Tom Tromey <tom@tromey.com>
11224
11225 * nat/x86-linux-dregs.c: Include configh.h.
11226 * nat/linux-ptrace.c: Include configh.h.
11227 * nat/linux-btrace.c: Include configh.h.
11228 * defs.h: Include config.h, bfd.h.
11229 * configure.ac: Don't source common.host.
11230 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11231 * configure: Rebuild.
11232 * acinclude.m4: Update path.
11233 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11234 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11235 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11236 (CLIBS): Add LIBSUPPORT.
11237 (CDEPS): Likewise.
11238 (COMMON_SFILES): Remove gdbsupport files.
11239 (HFILES_NO_SRCDIR): Likewise.
11240 (stamp-version): Update path to create-version.sh.
11241 (ALLDEPFILES): Remove gdbsupport files.
11242
b2ceabe8
TT
112432020-01-14 Tom Tromey <tom@tromey.com>
11244
11245 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11246 USE_WIN32API when needed.
11247 * configure.ac (USE_WIN32API): Don't define.
11248 (WIN32LIBS): Use WIN32APILIBS.
11249 * configure: Rebuild.
11250
25c51f71
TT
112512020-01-14 Tom Tromey <tom@tromey.com>
11252
11253 * configure: Rebuild.
11254 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11255
717c684d
BE
112562020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11257
11258 * skip.c (skip_function_command): Make skip w/o arguments use the
11259 name of the inlined function if pc is inside any inlined function.
11260
7da6a5b9
LM
112612020-01-14 Luis Machado <luis.machado@linaro.org>
11262
11263 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11264 * infrun.c (resume_1): Likewise.
11265 (handle_inferior_event): Remove stale comment.
11266 * linux-nat.c (linux_nat_target::resume): Update comments.
11267 (save_stop_reason): Likewise.
11268 (linux_nat_filter_event): Likewise.
11269 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11270
44e4c775
AB
112712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11272
11273 * elfread.c (record_minimal_symbol): Set section index to 0 for
11274 non-allocatable sections.
11275
18a8505e
AT
11276
112772020-01-13 Ali Tamur <tamur@google.com>
11278
11279 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11280 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11281 to gdb::optional. Update comments.
11282 (dwo_file): Update comments.
11283 (read_attribute): Update API to take an additional out parameter,
11284 need_reprocess. This is used to mark attributes that need other
11285 attributes (e.g. str_offsets_base) for correct computation which may not
11286 have been read yet.
11287 (read_attribute_reprocess): New function declaration.
11288 (read_addr_index): Likewise.
11289 (read_dwo_str_index): Likewise.
11290 (read_stub_str_index): Likewise.
11291 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11292 (lookup_addr_base): New function definition.
11293 (lookup_ranges_base): Likewise.
11294 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11295 lookup_ranges_base.
11296 (init_cutu_and_read_dies): Update comments.
11297 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11298 unit. This is used to inherit parent's str_offsets_base and addr_base.
11299 Update comments.
11300 (init_cutu_and_read_dies_simple): Reflect API changes.
11301 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11302 (create_cus_hash_table): Change API to take parent compile unit.
11303 Reflect API changes.
11304 (open_and_init_dwo_file): Reflect API changes.
11305 (dwarf2_get_pc_bounds): Update comments.
11306 (dwarf2_record_block_ranges): Likewise.
11307 (read_full_die_1): Change implementation to reprocess attributes that
11308 need str_offsets_base and addr_base.
11309 (partial_die_info::read): Likewise.
11310 (read_attribute_reprocess): New function definition.
11311 (read_attribute_value): Change API to take an additional out parameter,
11312 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11313 when a non-dwo compile unit has index based attributes.
11314 (read_attribute): Reflect API changes.
11315 (read_addr_index_1): Reflect API changes. Update comments.
11316 (dwarf2_read_addr_index_data): Reflect API changes.
11317 (dwarf2_read_addr_index): Likewise.
11318 (read_str_index): Change API and implementation. This becomes a helper
11319 to be used by the new string index related methods. Update error
11320 message and comments.
11321 (read_dwo_str_index): New function definition.
11322 (read_stub_str_index): Likewise.
11323 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11324 * symfile.h (dwarf2_debug_sections): Likewise.
11325 * xcoffread.c (dwarf2_debug_sections): Likewise.
11326
0cac9354
SM
113272020-01-13 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11330 core_reg_sect type to gdb_byte *.
11331 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11332 * cris-tdep.c (fetch_core_registers): Likewise.
11333 * corelow.c (core_target::get_core_register_section): Change
11334 type of `contents` to gdb::byte_vector.
11335
9a6d629c
AB
113362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11337
11338 * tui/tui-wingeneral.c (box_win): Position the title in the center
11339 of the border.
11340
d8b2f9e3
SM
113412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11342
11343 * corelow.c (core_target::get_core_register_section): Use
11344 std::vector instead of alloca.
11345
bb564c58
SM
113462020-01-13 Simon Marchi <simon.marchi@efficios.com>
11347
11348 * warning.m4: Add -Wmissing-declarations to build_warnings.
11349 * configure: Re-generate.
11350
6b366111
SM
113512020-01-13 Simon Marchi <simon.marchi@efficios.com>
11352
11353 * python/python.c (init__gdb_module): Add declaration.
11354
6c265988
SM
113552020-01-13 Simon Marchi <simon.marchi@efficios.com>
11356
11357 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11358 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11359 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11360 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11361 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11362 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11363 * ada-exp.y (_initialize_ada_exp): Add declaration.
11364 * ada-lang.c (_initialize_ada_language): Add declaration.
11365 * ada-tasks.c (_initialize_tasks): Add declaration.
11366 * agent.c (_initialize_agent): Add declaration.
11367 * aix-thread.c (_initialize_aix_thread): Add declaration.
11368 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11369 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11370 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11371 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11372 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11373 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11374 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11375 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11376 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11377 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11378 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11379 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11380 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11381 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11382 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11383 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11384 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11385 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11386 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11387 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11388 * annotate.c (_initialize_annotate): Add declaration.
11389 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11390 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11391 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11392 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11393 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11394 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11395 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11396 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11397 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11398 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11399 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11400 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11401 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11402 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11403 * auto-load.c (_initialize_auto_load): Add declaration.
11404 * auxv.c (_initialize_auxv): Add declaration.
11405 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11406 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11407 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11408 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11409 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11410 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11411 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11412 * breakpoint.c (_initialize_breakpoint): Add declaration.
11413 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11414 * btrace.c (_initialize_btrace): Add declaration.
11415 * charset.c (_initialize_charset): Add declaration.
11416 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11417 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11418 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11419 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11420 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11421 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11422 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11423 * coffread.c (_initialize_coffread): Add declaration.
11424 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11425 * compile/compile.c (_initialize_compile): Add declaration.
11426 * complaints.c (_initialize_complaints): Add declaration.
11427 * completer.c (_initialize_completer): Add declaration.
11428 * copying.c (_initialize_copying): Add declaration.
11429 * corefile.c (_initialize_core): Add declaration.
11430 * corelow.c (_initialize_corelow): Add declaration.
11431 * cp-abi.c (_initialize_cp_abi): Add declaration.
11432 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11433 * cp-support.c (_initialize_cp_support): Add declaration.
11434 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11435 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11436 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11437 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11438 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11439 * ctfread.c (_initialize_ctfread): Add declaration.
11440 * d-lang.c (_initialize_d_language): Add declaration.
11441 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11442 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11443 * dbxread.c (_initialize_dbxread): Add declaration.
11444 * dcache.c (_initialize_dcache): Add declaration.
11445 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11446 * disasm.c (_initialize_disasm): Add declaration.
11447 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11448 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11449 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11450 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11451 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11452 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11453 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11454 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11455 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11456 * elfread.c (_initialize_elfread): Add declaration.
11457 * exec.c (_initialize_exec): Add declaration.
11458 * extension.c (_initialize_extension): Add declaration.
11459 * f-lang.c (_initialize_f_language): Add declaration.
11460 * f-valprint.c (_initialize_f_valprint): Add declaration.
11461 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11462 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11463 * filesystem.c (_initialize_filesystem): Add declaration.
11464 * findcmd.c (_initialize_mem_search): Add declaration.
11465 * findvar.c (_initialize_findvar): Add declaration.
11466 * fork-child.c (_initialize_fork_child): Add declaration.
11467 * frame-base.c (_initialize_frame_base): Add declaration.
11468 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11469 * frame.c (_initialize_frame): Add declaration.
11470 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11471 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11472 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11473 * gcore.c (_initialize_gcore): Add declaration.
11474 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11475 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11476 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11477 * gdbarch.c (_initialize_gdbarch): Add declaration.
11478 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11479 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11480 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11481 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11482 * go-lang.c (_initialize_go_language): Add declaration.
11483 * go32-nat.c (_initialize_go32_nat): Add declaration.
11484 * guile/guile.c (_initialize_guile): Add declaration.
11485 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11486 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11487 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11488 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11489 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11490 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11491 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11492 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11493 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11494 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11495 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11496 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11497 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11498 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11499 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11500 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11501 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11502 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11503 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11504 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11505 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11506 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11507 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11508 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11509 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11510 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11511 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11512 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11513 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11514 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11515 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11516 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11517 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11518 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11519 * infcall.c (_initialize_infcall): Add declaration.
11520 * infcmd.c (_initialize_infcmd): Add declaration.
11521 * inflow.c (_initialize_inflow): Add declaration.
11522 * infrun.c (_initialize_infrun): Add declaration.
11523 * interps.c (_initialize_interpreter): Add declaration.
11524 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11525 * jit.c (_initialize_jit): Add declaration.
11526 * language.c (_initialize_language): Add declaration.
11527 * linux-fork.c (_initialize_linux_fork): Add declaration.
11528 * linux-nat.c (_initialize_linux_nat): Add declaration.
11529 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11530 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11531 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11532 * m2-lang.c (_initialize_m2_language): Add declaration.
11533 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11534 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11535 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11536 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11537 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11538 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11539 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11540 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11541 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11542 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11543 * machoread.c (_initialize_machoread): Add declaration.
11544 * macrocmd.c (_initialize_macrocmd): Add declaration.
11545 * macroscope.c (_initialize_macroscope): Add declaration.
11546 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11547 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11548 * maint.c (_initialize_maint_cmds): Add declaration.
11549 * mdebugread.c (_initialize_mdebugread): Add declaration.
11550 * memattr.c (_initialize_mem): Add declaration.
11551 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11552 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11553 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11554 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11555 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11556 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11557 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11558 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11559 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11560 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11561 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11562 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11563 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11564 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11565 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11566 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11567 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11568 * mipsread.c (_initialize_mipsread): Add declaration.
11569 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11570 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11571 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11572 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11573 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11574 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11575 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11576 * nto-procfs.c (_initialize_procfs): Add declaration.
11577 * objc-lang.c (_initialize_objc_language): Add declaration.
11578 * observable.c (_initialize_observer): Add declaration.
11579 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11580 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11581 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11582 * osabi.c (_initialize_gdb_osabi): Add declaration.
11583 * osdata.c (_initialize_osdata): Add declaration.
11584 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11585 * parse.c (_initialize_parse): Add declaration.
11586 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11587 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11588 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11589 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11590 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11591 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11592 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11593 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11594 * printcmd.c (_initialize_printcmd): Add declaration.
11595 * probe.c (_initialize_probe): Add declaration.
11596 * proc-api.c (_initialize_proc_api): Add declaration.
11597 * proc-events.c (_initialize_proc_events): Add declaration.
11598 * proc-service.c (_initialize_proc_service): Add declaration.
11599 * procfs.c (_initialize_procfs): Add declaration.
11600 * producer.c (_initialize_producer): Add declaration.
11601 * psymtab.c (_initialize_psymtab): Add declaration.
11602 * python/python.c (_initialize_python): Add declaration.
11603 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11604 * record-btrace.c (_initialize_record_btrace): Add declaration.
11605 * record-full.c (_initialize_record_full): Add declaration.
11606 * record.c (_initialize_record): Add declaration.
11607 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11608 * regcache.c (_initialize_regcache): Add declaration.
11609 * reggroups.c (_initialize_reggroup): Add declaration.
11610 * remote-notif.c (_initialize_notif): Add declaration.
11611 * remote-sim.c (_initialize_remote_sim): Add declaration.
11612 * remote.c (_initialize_remote): Add declaration.
11613 * reverse.c (_initialize_reverse): Add declaration.
11614 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11615 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11616 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11617 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11618 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11619 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11620 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11621 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11622 Add declaration.
11623 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11624 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11625 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11626 * rust-exp.y (_initialize_rust_exp): Add declaration.
11627 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11628 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11629 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11630 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11631 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11632 * score-tdep.c (_initialize_score_tdep): Add declaration.
11633 * ser-go32.c (_initialize_ser_dos): Add declaration.
11634 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11635 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11636 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11637 * ser-uds.c (_initialize_ser_socket): Add declaration.
11638 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11639 * serial.c (_initialize_serial): Add declaration.
11640 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11641 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11642 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11643 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11644 * skip.c (_initialize_step_skip): Add declaration.
11645 * sol-thread.c (_initialize_sol_thread): Add declaration.
11646 * solib-aix.c (_initialize_solib_aix): Add declaration.
11647 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11648 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11649 * solib-frv.c (_initialize_frv_solib): Add declaration.
11650 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11651 * solib-target.c (_initialize_solib_target): Add declaration.
11652 * solib.c (_initialize_solib): Add declaration.
11653 * source-cache.c (_initialize_source_cache): Add declaration.
11654 * source.c (_initialize_source): Add declaration.
11655 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11656 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11657 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11658 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11659 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11660 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11661 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11662 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11663 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11664 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11665 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11666 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11667 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11668 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11669 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11670 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11671 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11672 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11673 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11674 * stabsread.c (_initialize_stabsread): Add declaration.
11675 * stack.c (_initialize_stack): Add declaration.
11676 * stap-probe.c (_initialize_stap_probe): Add declaration.
11677 * std-regs.c (_initialize_frame_reg): Add declaration.
11678 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11679 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11680 * symfile.c (_initialize_symfile): Add declaration.
11681 * symmisc.c (_initialize_symmisc): Add declaration.
11682 * symtab.c (_initialize_symtab): Add declaration.
11683 * target.c (_initialize_target): Add declaration.
11684 * target-connection.c (_initialize_target_connection): Add
11685 declaration.
11686 * target-dcache.c (_initialize_target_dcache): Add declaration.
11687 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11688 * thread.c (_initialize_thread): Add declaration.
11689 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11690 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11691 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11692 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11693 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11694 * tracectf.c (_initialize_ctf): Add declaration.
11695 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11696 * tracefile.c (_initialize_tracefile): Add declaration.
11697 * tracepoint.c (_initialize_tracepoint): Add declaration.
11698 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11699 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11700 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11701 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11702 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11703 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11704 * tui/tui.c (_initialize_tui): Add declaration.
11705 * typeprint.c (_initialize_typeprint): Add declaration.
11706 * ui-style.c (_initialize_ui_style): Add declaration.
11707 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11708 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11709 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11710 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11711 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11712 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11713 * unittests/filtered_iterator-selftests.c
11714 (_initialize_filtered_iterator_selftests): Add declaration.
11715 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11716 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11717 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11718 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11719 * unittests/main-thread-selftests.c
11720 (_initialize_main_thread_selftests): Add declaration.
11721 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11722 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11723 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11724 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11725 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11726 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11727 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11728 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11729 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11730 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11731 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11732 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11733 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11734 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11735 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11736 declaration.
11737 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11738 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11739 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11740 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11741 * user-regs.c (_initialize_user_regs): Add declaration.
11742 * utils.c (_initialize_utils): Add declaration.
11743 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11744 * valops.c (_initialize_valops): Add declaration.
11745 * valprint.c (_initialize_valprint): Add declaration.
11746 * value.c (_initialize_values): Add declaration.
11747 * varobj.c (_initialize_varobj): Add declaration.
11748 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11749 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11750 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11751 * windows-nat.c (_initialize_windows_nat): Add declaration.
11752 (_initialize_check_for_gdb_ini): Add declaration.
11753 (_initialize_loadable): Add declaration.
11754 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11755 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11756 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11757 * xcoffread.c (_initialize_xcoffread): Add declaration.
11758 * xml-support.c (_initialize_xml_support): Add declaration.
11759 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11760 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11761 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11762 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11763
e2de1eec
SM
117642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11765
11766 * regformats/regdat.sh: Generate declaration for init function.
11767
e0037b4c
SM
117682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11769
11770 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11771 up.
11772 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11773 close_one_inferior>: New methods.
11774 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11775 pass down target to find_inferior_pid.
11776 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11777 Pass down target to find_inferior_ptid.
11778 (gdbsim_target::create_inferior): Pass down target to
11779 add_thread_silent.
11780 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11781 target down to find_inferior_ptid and switch_to_thread.
11782 (gdbsim_target::close): Update to call close_one_inferior.
11783 (struct resume_data): Remove.
11784 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11785 directly, rather than through a void pointer.
11786 (gdbsim_target::resume): Update to call resume_one_inferior.
11787
58920b5b
SM
117882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11791
4ec89149
PA
117922020-01-12 Pedro Alves <palves@redhat.com>
11793
11794 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11795 directly for the current inferior instead of
11796 discard_all_inferiors.
11797 (discard_all_inferiors): Delete.
11798
7c392d1d
TT
117992020-01-11 Tom Tromey <tom@tromey.com>
11800
11801 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11802 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11803 deprecated_safe_get_selected_frame.
11804
d9ebdab7
TBA
118052020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11806
11807 * inferior.c (print_inferior): Switch inferior before printing it.
11808
f3c469b9
PA
118092020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11810 Pedro Alves <palves@redhat.com>
11811
11812 * progspace-and-thread.c (switch_to_program_space_and_thread):
11813 Assert there's an inferior for PSPACE. Use
11814 switch_to_inferior_no_thread to switch the inferior too.
11815 * progspace.c (program_space::~program_space): Call
11816 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11817 (program_space::free_all_objfiles): Don't call clear_symtab_users
11818 here.
11819 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11820
65c574f6
PA
118212020-01-10 Pedro Alves <palves@redhat.com>
11822
11823 * NEWS: Mention multi-target debugging, "info connections", and
11824 "add-inferior -no-connection".
11825
2f4fcf00
PA
118262020-01-10 Pedro Alves <palves@redhat.com>
11827
11828 * infrun.c: Include "target-connection.h".
11829 (check_multi_target_resumption): New.
11830 (proceed): Call it.
11831 * target-connection.c (make_target_connection_string): Make
11832 extern.
11833 * target-connection.h (make_target_connection_string): Declare.
11834
121b3efd
PA
118352020-01-10 Pedro Alves <palves@redhat.com>
11836
11837 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11838 * inferior.c (uiout_field_connection): New function.
11839 (print_inferior): Add new "connection-id" column.
11840 (add_inferior_command): Show connection number/string of added
11841 inferior.
11842 * process-stratum-target.h
11843 (process_stratum_target::connection_string): New virtual method.
11844 (process_stratum_target::connection_number): New field.
11845 * remote.c (remote_target::connection_string): New override.
11846 * target-connection.c: New file.
11847 * target-connection.h: New file.
11848 * target.c (decref_target): Remove process_stratum targets from
11849 the connection list.
11850 (target_stack::push): Add process_stratum targets to the
11851 connection list.
11852
4f837581
PA
118532020-01-10 Pedro Alves <palves@redhat.com>
11854
11855 Revert:
11856 2016-04-12 Pedro Alves <palves@redhat.com>
11857 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11858 Remove references to name.
11859 * serial.h (struct serial) <name>: Delete.
11860
f4ec508e
PA
118612020-01-10 Pedro Alves <palves@redhat.com>
11862
11863 * gdbarch-selftests.c (register_to_value_test): Remove "target
11864 already pushed" check.
11865
5b6d1e4f
PA
118662020-01-10 Pedro Alves <palves@redhat.com>
11867 John Baldwin <jhb@FreeBSD.org>
11868
11869 * aarch64-linux-nat.c
11870 (aarch64_linux_nat_target::thread_architecture): Adjust.
11871 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11872 (task_command_1): Likewise.
11873 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11874 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11875 (aix_thread_target::store_registers)
11876 (aix_thread_target::thread_alive): Adjust.
11877 * amd64-fbsd-tdep.c: Include "inferior.h".
11878 (amd64fbsd_get_thread_local_address): Pass down target.
11879 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11880 thread's gdbarch instead of target_gdbarch.
11881 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11882 get_last_target_status.
11883 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11884 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11885 inferiors.
11886 (update_inserted_breakpoint_locations): Skip if inferiors with no
11887 execution.
11888 (update_global_location_list): When handling moribund locations,
11889 find representative inferior for location's pspace, and use thread
11890 count of its process_stratum target.
11891 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11892 * bsd-uthread.c (bsd_uthread_target::wait): Use
11893 as_process_stratum_target and adjust thread_change_ptid and
11894 add_thread calls.
11895 (bsd_uthread_target::update_thread_list): Use
11896 as_process_stratum_target and adjust find_thread_ptid,
11897 thread_change_ptid and add_thread calls.
11898 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11899 find_thread_ptid call.
11900 * corelow.c (add_to_thread_list): Adjust add_thread call.
11901 (core_target_open): Adjust add_thread_silent and thread_count
11902 calls.
11903 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11904 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11905 * event-top.c (async_disconnect): Pop targets from all inferiors.
11906 * exec.c (add_target_sections): Push exec target on all inferiors
11907 sharing the program space.
11908 (remove_target_sections): Remove the exec target from all
11909 inferiors sharing the program space.
11910 (exec_on_vfork): New.
11911 * exec.h (exec_on_vfork): Declare.
11912 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11913 Pass it down.
11914 (fbsd_nat_target::update_thread_list): Adjust.
11915 (fbsd_nat_target::resume): Adjust.
11916 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11917 down.
11918 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11919 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11920 get_thread_arch_regcache call.
11921 * fork-child.c (gdb_startup_inferior): Pass target down to
11922 startup_inferior and set_executing.
11923 * gdbthread.h (struct process_stratum_target): Forward declare.
11924 (add_thread, add_thread_silent, add_thread_with_info)
11925 (in_thread_list): Add process_stratum_target parameter.
11926 (find_thread_ptid(inferior*, ptid_t)): New overload.
11927 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11928 parameter.
11929 (all_threads()): Delete overload.
11930 (all_threads, all_non_exited_threads): Add process_stratum_target
11931 parameter.
11932 (all_threads_safe): Use brace initialization.
11933 (thread_count): Add process_stratum_target parameter.
11934 (set_resumed, set_running, set_stop_requested, set_executing)
11935 (threads_are_executing, finish_thread_state): Add
11936 process_stratum_target parameter.
11937 (switch_to_thread): Use is_current_thread.
11938 * i386-fbsd-tdep.c: Include "inferior.h".
11939 (i386fbsd_get_thread_local_address): Pass down target.
11940 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11941 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11942 have_inferiors check.
11943 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11944 (inf_ptrace_target::attach): Adjust.
11945 * infcall.c (run_inferior_call): Adjust.
11946 * infcmd.c (run_command_1): Pass target to
11947 scoped_finish_thread_state.
11948 (proceed_thread_callback): Skip inferiors with no execution.
11949 (continue_command): Rename 'all_threads' local to avoid hiding
11950 'all_threads' function. Adjust get_last_target_status call.
11951 (prepare_one_step): Adjust set_running call.
11952 (signal_command): Use user_visible_resume_target. Compare thread
11953 pointers instead of inferior_ptid.
11954 (info_program_command): Adjust to pass down target.
11955 (attach_command): Mark target's 'thread_executing' flag.
11956 (stop_current_target_threads_ns): New, factored out from ...
11957 (interrupt_target_1): ... this. Switch inferior before making
11958 target calls.
11959 * inferior-iter.h
11960 (struct all_inferiors_iterator, struct all_inferiors_range)
11961 (struct all_inferiors_safe_range)
11962 (struct all_non_exited_inferiors_range): Filter on
11963 process_stratum_target too. Remove explicit.
11964 * inferior.c (inferior::inferior): Push dummy target on target
11965 stack.
11966 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11967 Add process_stratum_target parameter, and pass it down.
11968 (have_live_inferiors): Adjust.
11969 (switch_to_inferior_and_push_target): New.
11970 (add_inferior_command, clone_inferior_command): Handle
11971 "-no-connection" parameter. Use
11972 switch_to_inferior_and_push_target.
11973 (_initialize_inferior): Mention "-no-connection" option in
11974 the help of "add-inferior" and "clone-inferior" commands.
11975 * inferior.h: Include "process-stratum-target.h".
11976 (interrupt_target_1): Use bool.
11977 (struct inferior) <push_target, unpush_target, target_is_pushed,
11978 find_target_beneath, top_target, process_target, target_at,
11979 m_stack>: New.
11980 (discard_all_inferiors): Delete.
11981 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11982 (all_inferiors, all_non_exited_inferiors): Add
11983 process_stratum_target parameter.
11984 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11985 (target_last_proc_target): New global.
11986 (follow_fork_inferior): Push target on new inferior. Pass target
11987 to add_thread_silent. Call exec_on_vfork. Handle target's
11988 reference count.
11989 (follow_fork): Adjust get_last_target_status call. Also consider
11990 target.
11991 (follow_exec): Push target on new inferior.
11992 (struct execution_control_state) <target>: New field.
11993 (user_visible_resume_target): New.
11994 (do_target_resume): Call target_async.
11995 (resume_1): Set target's threads_executing flag. Consider resume
11996 target.
11997 (commit_resume_all_targets): New.
11998 (proceed): Also consider resume target. Skip threads of inferiors
11999 with no execution. Commit resumtion in all targets.
12000 (start_remote): Pass current inferior to wait_for_inferior.
12001 (infrun_thread_stop_requested): Consider target as well. Pass
12002 thread_info pointer to clear_inline_frame_state instead of ptid.
12003 (infrun_thread_thread_exit): Consider target as well.
12004 (random_pending_event_thread): New inferior parameter. Use it.
12005 (do_target_wait): Rename to ...
12006 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12007 down.
12008 (threads_are_resumed_pending_p, do_target_wait): New.
12009 (prepare_for_detach): Adjust calls.
12010 (wait_for_inferior): New inferior parameter. Handle it. Use
12011 do_target_wait_1 instead of do_target_wait.
12012 (fetch_inferior_event): Adjust. Switch to representative
12013 inferior. Pass target down.
12014 (set_last_target_status): Add process_stratum_target parameter.
12015 Save target in global.
12016 (get_last_target_status): Add process_stratum_target parameter and
12017 handle it.
12018 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12019 (context_switch): Check inferior_ptid == null_ptid before calling
12020 inferior_thread().
12021 (get_inferior_stop_soon): Pass down target.
12022 (wait_one): Rename to ...
12023 (poll_one_curr_target): ... this.
12024 (struct wait_one_event): New.
12025 (wait_one): New.
12026 (stop_all_threads): Adjust.
12027 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12028 event's target.
12029 (switch_back_to_stepped_thread): Also consider target.
12030 (print_stop_event): Update.
12031 (normal_stop): Update. Also consider the resume target.
12032 * infrun.h (wait_for_inferior): Remove declaration.
12033 (user_visible_resume_target): New declaration.
12034 (get_last_target_status, set_last_target_status): New
12035 process_stratum_target parameter.
12036 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12037 process_stratum_target parameter, and use it.
12038 (clear_inline_frame_state (thread_info*)): New.
12039 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12040 process_stratum_target parameter.
12041 (clear_inline_frame_state (thread_info*)): Declare.
12042 * linux-fork.c (delete_checkpoint_command): Pass target down to
12043 find_thread_ptid.
12044 (checkpoint_command): Adjust.
12045 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12046 instead of just tweaking inferior_ptid.
12047 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12048 (exit_lwp): Pass target down to find_thread_ptid.
12049 (attach_proc_task_lwp_callback): Pass target down to
12050 add_thread/set_running/set_executing.
12051 (linux_nat_target::attach): Pass target down to
12052 thread_change_ptid.
12053 (get_detach_signal): Pass target down to find_thread_ptid.
12054 Consider last target status's target.
12055 (linux_resume_one_lwp_throw, resume_lwp)
12056 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12057 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12058 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12059 (linux_nat_target::async_wait_fd): New.
12060 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12061 target down.
12062 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12063 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12064 * linux-thread-db.c (struct thread_db_info::process_target): New
12065 field.
12066 (add_thread_db_info): Save target.
12067 (get_thread_db_info): New process_stratum_target parameter. Also
12068 match target.
12069 (delete_thread_db_info): New process_stratum_target parameter.
12070 Also match target.
12071 (thread_from_lwp): Adjust to pass down target.
12072 (thread_db_notice_clone): Pass down target.
12073 (check_thread_db_callback): Pass down target.
12074 (try_thread_db_load_1): Always push the thread_db target.
12075 (try_thread_db_load, record_thread): Pass target down.
12076 (thread_db_target::detach): Pass target down. Always unpush the
12077 thread_db target.
12078 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12079 target down. Always unpush the thread_db target.
12080 (find_new_threads_callback, thread_db_find_new_threads_2)
12081 (thread_db_target::update_thread_list): Pass target down.
12082 (thread_db_target::pid_to_str): Pass current inferior down.
12083 (thread_db_target::get_thread_local_address): Pass target down.
12084 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12085 target down.
12086 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12087 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12088 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12089 (procfs_init_inferior): Rename to ...
12090 (procfs_target::procfs_init_inferior): ... this and adjust.
12091 (procfs_target::create_inferior, procfs_notice_thread)
12092 (procfs_do_thread_registers): Adjust.
12093 * ppc-fbsd-tdep.c: Include "inferior.h".
12094 (ppcfbsd_get_thread_local_address): Pass down target.
12095 * proc-service.c (ps_xfer_memory): Switch current inferior and
12096 program space as well.
12097 (get_ps_regcache): Pass target down.
12098 * process-stratum-target.c
12099 (process_stratum_target::thread_address_space)
12100 (process_stratum_target::thread_architecture): Pass target down.
12101 * process-stratum-target.h
12102 (process_stratum_target::threads_executing): New field.
12103 (as_process_stratum_target): New.
12104 * ravenscar-thread.c
12105 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12106 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12107 down.
12108 * record-btrace.c (record_btrace_target::info_record): Adjust.
12109 (record_btrace_target::record_method)
12110 (record_btrace_target::record_is_replaying)
12111 (record_btrace_target::fetch_registers)
12112 (get_thread_current_frame_id, record_btrace_target::resume)
12113 (record_btrace_target::wait, record_btrace_target::stop): Pass
12114 target down.
12115 * record-full.c (record_full_wait_1): Switch to event thread.
12116 Pass target down.
12117 * regcache.c (regcache::regcache)
12118 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12119 process_stratum_target parameter and handle it.
12120 (current_thread_target): New global.
12121 (get_thread_regcache): Add process_stratum_target parameter and
12122 handle it. Switch inferior before calling target method.
12123 (get_thread_regcache): Pass target down.
12124 (get_thread_regcache_for_ptid): Pass target down.
12125 (registers_changed_ptid): Add process_stratum_target parameter and
12126 handle it.
12127 (registers_changed_thread, registers_changed): Pass target down.
12128 (test_get_thread_arch_aspace_regcache): New.
12129 (current_regcache_test): Define a couple local test_target_ops
12130 instances and use them for testing.
12131 (readwrite_regcache): Pass process_stratum_target parameter.
12132 (cooked_read_test, cooked_write_test): Pass mock_target down.
12133 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12134 (get_thread_arch_aspace_regcache): Add process_stratum_target
12135 parameter.
12136 (regcache::target): New method.
12137 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12138 (regcache::registers_changed_ptid): Add process_stratum_target
12139 parameter.
12140 (regcache::m_target): New field.
12141 (registers_changed_ptid): Add process_stratum_target parameter.
12142 * remote.c (remote_state::supports_vCont_probed): New field.
12143 (remote_target::async_wait_fd): New method.
12144 (remote_unpush_and_throw): Add remote_target parameter.
12145 (get_current_remote_target): Adjust.
12146 (remote_target::remote_add_inferior): Push target.
12147 (remote_target::remote_add_thread)
12148 (remote_target::remote_notice_new_inferior)
12149 (get_remote_thread_info): Pass target down.
12150 (remote_target::update_thread_list): Skip threads of inferiors
12151 bound to other targets. (remote_target::close): Don't discard
12152 inferiors. (remote_target::add_current_inferior_and_thread)
12153 (remote_target::process_initial_stop_replies)
12154 (remote_target::start_remote)
12155 (remote_target::remote_serial_quit_handler): Pass down target.
12156 (remote_target::remote_unpush_target): New remote_target
12157 parameter. Unpush the target from all inferiors.
12158 (remote_target::remote_unpush_and_throw): New remote_target
12159 parameter. Pass it down.
12160 (remote_target::open_1): Check whether the current inferior has
12161 execution instead of checking whether any inferior is live. Pass
12162 target down.
12163 (remote_target::remote_detach_1): Pass down target. Use
12164 remote_unpush_target.
12165 (extended_remote_target::attach): Pass down target.
12166 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12167 (remote_target::append_resumption): Pass down target.
12168 (remote_target::append_pending_thread_resumptions)
12169 (remote_target::remote_resume_with_hc, remote_target::resume)
12170 (remote_target::commit_resume): Pass down target.
12171 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12172 (remote_target::interrupt_query)
12173 (remote_target::remove_new_fork_children)
12174 (remote_target::check_pending_events_prevent_wildcard_vcont)
12175 (remote_target::remote_parse_stop_reply)
12176 (remote_target::process_stop_reply): Pass down target.
12177 (first_remote_resumed_thread): New remote_target parameter. Pass
12178 it down.
12179 (remote_target::wait_as): Pass down target.
12180 (unpush_and_perror): New remote_target parameter. Pass it down.
12181 (remote_target::readchar, remote_target::remote_serial_write)
12182 (remote_target::getpkt_or_notif_sane_1)
12183 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12184 down target.
12185 (remote_target::mourn_inferior): Pass down target. Use
12186 remote_unpush_target.
12187 (remote_target::core_of_thread)
12188 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12189 (remote_target::pid_to_exec_file)
12190 (remote_target::thread_handle_to_thread_info): Pass down target.
12191 (remote_target::async_wait_fd): New.
12192 * riscv-fbsd-tdep.c: Include "inferior.h".
12193 (riscv_fbsd_get_thread_local_address): Pass down target.
12194 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12195 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12196 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12197 Adjust.
12198 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12199 * solib-svr4.c (enable_break): Pass down target.
12200 * spu-multiarch.c (parse_spufs_run): Pass down target.
12201 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12202 * target-delegates.c: Regenerate.
12203 * target.c (g_target_stack): Delete.
12204 (current_top_target): Return the current inferior's top target.
12205 (target_has_execution_1): Refer to the passed-in inferior's top
12206 target.
12207 (target_supports_terminal_ours): Check whether the initial
12208 inferior was already created.
12209 (decref_target): New.
12210 (target_stack::push): Incref/decref the target.
12211 (push_target, push_target, unpush_target): Adjust.
12212 (target_stack::unpush): Defref target.
12213 (target_is_pushed): Return bool. Adjust to refer to the current
12214 inferior's target stack.
12215 (dispose_inferior): Delete, and inline parts ...
12216 (target_preopen): ... here. Only dispose of the current inferior.
12217 (target_detach): Hold strong target reference while detaching.
12218 Pass target down.
12219 (target_thread_name): Add assertion.
12220 (target_resume): Pass down target.
12221 (target_ops::beneath, find_target_at): Adjust to refer to the
12222 current inferior's target stack.
12223 (get_dummy_target): New.
12224 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12225 has a thread running.
12226 (initialize_targets): Rename to ...
12227 (_initialize_target): ... this.
12228 * target.h: Include "gdbsupport/refcounted-object.h".
12229 (struct target_ops): Inherit refcounted_object.
12230 (target_ops::shortname, target_ops::longname): Make const.
12231 (target_ops::async_wait_fd): New method.
12232 (decref_target): Declare.
12233 (struct target_ops_ref_policy): New.
12234 (target_ops_ref): New typedef.
12235 (get_dummy_target): Declare function.
12236 (target_is_pushed): Return bool.
12237 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12238 (all_matching_threads_iterator::all_matching_threads_iterator):
12239 Handle filter target.
12240 * thread-iter.h (struct all_matching_threads_iterator, struct
12241 all_matching_threads_range, class all_non_exited_threads_range):
12242 Filter by target too. Remove explicit.
12243 * thread.c (threads_executing): Delete.
12244 (inferior_thread): Pass down current inferior.
12245 (clear_thread_inferior_resources): Pass down thread pointer
12246 instead of ptid_t.
12247 (add_thread_silent, add_thread_with_info, add_thread): Add
12248 process_stratum_target parameter. Use it for thread and inferior
12249 searches.
12250 (is_current_thread): New.
12251 (thread_info::deletable): Use it.
12252 (find_thread_ptid, thread_count, in_thread_list)
12253 (thread_change_ptid, set_resumed, set_running): New
12254 process_stratum_target parameter. Pass it down.
12255 (set_executing): New process_stratum_target parameter. Pass it
12256 down. Adjust reference to 'threads_executing'.
12257 (threads_are_executing): New process_stratum_target parameter.
12258 Adjust reference to 'threads_executing'.
12259 (set_stop_requested, finish_thread_state): New
12260 process_stratum_target parameter. Pass it down.
12261 (switch_to_thread): Also match inferior.
12262 (switch_to_thread): New process_stratum_target parameter. Pass it
12263 down.
12264 (update_threads_executing): Reimplement.
12265 * top.c (quit_force): Pop targets from all inferior.
12266 (gdb_init): Don't call initialize_targets.
12267 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12268 Declare.
12269 (windows_add_thread, windows_delete_thread): Adjust.
12270 (get_windows_debug_event): Rename to ...
12271 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12272 * tracefile-tfile.c (tfile_target_open): Pass down target.
12273 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12274 Forward declare.
12275 (switch_to_thread): Add process_stratum_target parameter.
12276 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12277 parameter. Use it.
12278 (mi_on_resume): Pass target down.
12279 * nat/fork-inferior.c (startup_inferior): Add
12280 process_stratum_target parameter. Pass it down.
12281 * nat/fork-inferior.h (startup_inferior): Add
12282 process_stratum_target parameter.
12283 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12284
75c6c844
PA
122852020-01-10 Pedro Alves <palves@redhat.com>
12286
12287 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12288 directly. Instead find the first thread in the thread list and
12289 use switch_to_thread.
12290
78f2c40a
PA
122912020-01-10 Pedro Alves <palves@redhat.com>
12292
12293 * remote.c (remote_target::remote_add_inferior): Don't bind a
12294 process to the current inferior if the current inferior is already
12295 bound to a process.
12296
e7af6c70
TBA
122972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12298 Pedro Alves <palves@redhat.com>
12299
12300 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12301 If no process is specified, return null_ptid instead of
12302 inferior_ptid.
12303 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12304 TARGET_WAITKIND_SIGNALLED with no pid.
12305
31ba933e
PA
123062020-01-10 Pedro Alves <palves@redhat.com>
12307
12308 * remote.c (first_remote_resumed_thread): New.
12309 (remote_target::wait_as): Use it as default event_ptid instead of
12310 inferior_ptid.
12311
735fc2ca
PA
123122020-01-10 Pedro Alves <palves@redhat.com>
12313
12314 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12315
c17e02e1
PA
123162020-01-10 Pedro Alves <palves@redhat.com>
12317
12318 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12319 not -1.
12320
ab1ddbcf
PA
123212020-01-10 Pedro Alves <palves@redhat.com>
12322
12323 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12324 ptid to get_last_target_status.
12325 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12326 ptid to get_last_target_status.
12327 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12328 get_last_target_status.
12329 (info_program_command): Don't pass a target_waitstatus to
12330 get_last_target_status.
12331 * infrun.c (init_wait_for_inferior): Use
12332 nullify_last_target_wait_ptid.
12333 (get_last_target_status): Handle nullptr arguments.
12334 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12335 (print_stop_event): Don't pass a ptid to get_last_target_status.
12336 (normal_stop): Don't pass a ptid to get_last_target_status.
12337 * infrun.h (get_last_target_status, set_last_target_status): Move
12338 comments here and update.
12339 (nullify_last_target_wait_ptid): Declare.
12340 * linux-fork.c (fork_load_infrun_state): Remove local extern
12341 declaration of nullify_last_target_wait_ptid.
12342 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12343 to get_last_target_status.
12344
f3f8ece4
PA
123452020-01-10 Pedro Alves <palves@redhat.com>
12346
12347 * gdbthread.h (scoped_restore_current_thread)
12348 <dont_restore, restore, m_dont_restore>: Declare.
12349 * thread.c (thread_alive): Add assertion. Return bool.
12350 (switch_to_thread_if_alive): New.
12351 (prune_threads): Switch inferior/thread.
12352 (print_thread_info_1): Switch thread before calling target methods.
12353 (scoped_restore_current_thread::restore): New, factored out from
12354 ...
12355 (scoped_restore_current_thread::~scoped_restore_current_thread):
12356 ... this.
12357 (scoped_restore_current_thread::scoped_restore_current_thread):
12358 Add assertion.
12359 (thread_apply_all_command, thread_select): Use
12360 switch_to_thread_if_alive.
12361 * infrun.c (proceed, restart_threads, handle_signal_stop)
12362 (switch_back_to_stepped_thread): Switch current thread before
12363 calling target methods.
12364
db2d40f7
PA
123652020-01-10 Pedro Alves <palves@redhat.com>
12366
12367 * inferior.c (switch_to_inferior_no_thread): New function,
12368 factored out from ...
12369 (inferior_command): ... here.
12370 * inferior.h (switch_to_inferior_no_thread): Declare.
12371 * mi/mi-main.c (run_one_inferior): Use
12372 switch_to_inferior_no_thread.
12373
bd420a2d
PA
123742020-01-10 Pedro Alves <palves@redhat.com>
12375
12376 * infcmd.c (kill_command): Remove dead code.
12377
ddf5db90
PA
123782020-01-10 Pedro Alves <palves@redhat.com>
12379
12380 * remote.c (remote_target::mourn_inferior): No longer check
12381 whether the target is running.
12382
5018ce90
PA
123832020-01-10 Pedro Alves <palves@redhat.com>
12384
12385 * corelow.c (core_target::has_execution): Change parameter type to
12386 inferior pointer.
12387 * inferior.c (number_of_live_inferiors): Use
12388 inferior::has_execution instead of target_has_execution_1.
12389 * inferior.h (inferior::has_execution): New.
12390 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12391 inferior::has_execution instead of target_has_execution_1.
12392 * process-stratum-target.c
12393 (process_stratum_target::has_execution): Change parameter type to
12394 inferior pointer. Check the inferior's PID instead of
12395 inferior_ptid.
12396 * process-stratum-target.h
12397 (process_stratum_target::has_execution): Change parameter type to
12398 inferior pointer.
12399 * record-full.c (record_full_core_target::has_execution): Change
12400 parameter type to inferior pointer.
12401 * target.c (target_has_execution_1): Change parameter type to
12402 inferior pointer.
12403 (target_has_execution_current): Adjust.
12404 * target.h (target_ops::has_execution): Change parameter type to
12405 inferior pointer.
12406 (target_has_execution_1): Change parameter type to inferior
12407 pointer. Change return type to bool.
12408 * tracefile.h (tracefile_target::has_execution): Change parameter
12409 type to inferior pointer.
12410
74375d18
PA
124112020-01-10 Pedro Alves <palves@redhat.com>
12412
12413 * exceptions.c (print_flush): Remove current_top_target() check.
12414
acdf84a6
PA
124152020-01-10 Pedro Alves <palves@redhat.com>
12416
12417 * remote.c (show_remote_exec_file): Show the current inferior's
12418 exec-file instead of the command variable's value.
12419
ec506636
PA
124202020-01-10 Pedro Alves <palves@redhat.com>
12421
12422 * record-full.c (record_full_resume_ptid): New global.
12423 (record_full_target::resume): Set it.
12424 (record_full_wait_1): Use record_full_resume_ptid instead of
12425 inferior_ptid.
12426
873657b9
PA
124272020-01-10 Pedro Alves <palves@redhat.com>
12428
12429 * gdbthread.h (scoped_restore_current_thread)
12430 <dont_restore, restore, m_dont_restore>: Declare.
12431 * thread.c (thread_alive): Add assertion. Return bool.
12432 (switch_to_thread_if_alive): New.
12433 (prune_threads): Switch inferior/thread.
12434 (print_thread_info_1): Switch thread before calling target methods.
12435 (scoped_restore_current_thread::restore): New, factored out from
12436 ...
12437 (scoped_restore_current_thread::~scoped_restore_current_thread):
12438 ... this.
12439 (scoped_restore_current_thread::scoped_restore_current_thread):
12440 Add assertion.
12441 (thread_apply_all_command, thread_select): Use
12442 switch_to_thread_if_alive.
12443
7f0ae84c
GB
124442020-01-10 George Barrett <bob@bob131.so>
12445
12446 * stap-probe.c (stap_modify_semaphore): Don't check for null
12447 semaphores.
12448 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12449 for null semaphores.
12450
f5a7c406
AB
124512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12452
12453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12454 all source windows, and maintain horizontal scroll status while
12455 doing so.
12456
9ae6bf64
TT
124572020-01-09 Tom Tromey <tom@tromey.com>
12458
12459 PR tui/18932:
12460 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12461 update_source_window, not print_source_lines.
12462
b2efe70c
AB
124632020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * tui/tui.c (tui_enable): Register tui hooks after calling
12466 tui_display_main.
12467
5f23a082
CB
124682020-01-09 Christian Biesinger <cbiesinger@google.com>
12469
12470 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12471
3061113b
SM
124722020-01-08 Simon Marchi <simon.marchi@efficios.com>
12473
12474 * thread.c (print_thread_info_1): Fix indentation.
12475
57d75002
CB
124762020-01-09 Christian Biesinger <cbiesinger@google.com>
12477
12478 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12479 unique_xmalloc_ptr outside the if to always free the demangled name.
12480
6a053cb1
TT
124812020-01-08 Tom Tromey <tromey@adacore.com>
12482
12483 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12484 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12485 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12486 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12487 Remove.
12488 (section_offsets): New typedef.
12489 * symtab.c (fixup_section, get_msymbol_address): Update.
12490 * symmisc.c (dump_msymbols): Update.
12491 * symfile.h (relative_addr_info_to_section_offsets)
12492 (symfile_map_offsets_to_segments): Update.
12493 * symfile.c (build_section_addr_info_from_objfile)
12494 (init_objfile_sect_indices): Update.
12495 (struct place_section_arg): Change type of "offsets".
12496 (place_section): Update.
12497 (relative_addr_info_to_section_offsets): Change type of
12498 "section_offsets". Remove "num_sections" parameter.
12499 (default_symfile_offsets, syms_from_objfile_1)
12500 (set_objfile_default_section_offset): Update.
12501 (reread_symbols): No need to preserve section offsets by hand.
12502 (symfile_map_offsets_to_segments): Change type of "offsets".
12503 * stap-probe.c (relocate_address): Update.
12504 * stabsread.h (process_one_symbol): Update.
12505 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12506 (solib_target_relocate_section_addresses): Update.
12507 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12508 Update.
12509 * solib-frv.c (frv_relocate_main_executable): Update.
12510 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12511 * solib-aix.c (solib_aix_get_section_offsets): Change return
12512 type.
12513 (solib_aix_solib_create_inferior_hook): Update.
12514 * remote.c (remote_target::get_offsets): Update.
12515 * psymtab.c (find_pc_sect_psymtab): Update.
12516 * psympriv.h (struct partial_symbol) <address, text_low,
12517 text_high>: Update.
12518 * objfiles.h (obj_section_offset): Update.
12519 (struct objfile) <section_offsets>: Change type.
12520 <num_sections>: Remove.
12521 (objfile_relocate): Update.
12522 * objfiles.c (entry_point_address_query): Update
12523 (relocate_one_symbol): Change type of "section_offsets".
12524 (objfile_relocate1, objfile_relocate1): Change type of
12525 "new_offsets".
12526 (objfile_rebase1): Update.
12527 * mipsread.c (mipscoff_symfile_read): Update.
12528 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12529 parameter.
12530 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12531 (parse_external, psymtab_to_symtab_1): Update.
12532 * machoread.c (macho_symfile_offsets): Update.
12533 * ia64-tdep.c (ia64_find_unwind_table): Update.
12534 * hppa-tdep.c (read_unwind_info): Update.
12535 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12536 * dwarf2read.c (create_addrmap_from_index)
12537 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12538 (process_psymtab_comp_unit_reader, add_partial_symbol)
12539 (add_partial_subprogram, process_full_comp_unit)
12540 (read_file_scope, read_func_scope, read_lexical_block_scope)
12541 (read_call_site_scope, dwarf2_rnglists_process)
12542 (dwarf2_ranges_process, dwarf2_ranges_read)
12543 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12544 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12545 Update.
12546 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12547 Update.
12548 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12549 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12550 (process_one_symbol): Change type of "section_offsets".
12551 * ctfread.c (get_objfile_text_range): Update.
12552 * coffread.c (coff_symtab_read, enter_linenos)
12553 (process_coff_symbol): Update.
12554 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12555 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12556
456e800a
TT
125572020-01-08 Tom Tromey <tromey@adacore.com>
12558
12559 * dwarf2read.c (parse_macro_definition): Use std::string.
12560 (parse_macro_definition): Likewise.
12561
6dfa2fc2
TT
125622020-01-08 Tom Tromey <tromey@adacore.com>
12563
12564 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12565 (ATTR_ALLOC_CHUNK): Remove.
12566
421d1616
TT
125672020-01-08 Tom Tromey <tromey@adacore.com>
12568
12569 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12570
43816ebc
TT
125712020-01-08 Tom Tromey <tromey@adacore.com>
12572
12573 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12574 (dwarf2_compute_name, open_dwo_file): Likewise.
12575 (process_enumeration_scope): Use std::vector.
12576 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12577 (partial_die_info::fixup, dwarf2_start_subfile)
12578 (guess_full_die_structure_name, dwarf2_name): Likewise.
12579 (determine_prefix): Update.
12580 (guess_full_die_structure_name): Make return type const.
12581 (partial_die_full_name): Return unique_xmalloc_ptr.
12582 (DW_FIELD_ALLOC_CHUNK): Remove.
12583
4212d509
TT
125842020-01-07 Tom Tromey <tromey@adacore.com>
12585
12586 PR build/24937:
12587 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12588
06a6207a
JT
125892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12590
12591 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12592
153d79c4
AB
125932020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12594
12595 * stack.c (print_frame_info): Move disassemble_next_line code
12596 inside source_print block.
12597
66182876
EZ
125982020-01-06 Eli Zaretskii <eliz@gnu.org>
12599
12600 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12601 gdb/signals.h, as we are now using native signal symbols.
12602
cbfa8581
SV
126032020-01-06 Shahab Vahedi <shahab@synopsys.com>
12604
12605 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12606 overflow by an early check of content vs threshold.
aac66a4c 12607 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12608 Likewise.
12609
3f602821
EZ
126102020-01-06 Eli Zaretskii <eliz@gnu.org>
12611
12612 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12613
a08c904d
JT
126142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12615
12616 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12617 export table if no section contains it's RVA.
12618
89a65580
EZ
126192020-01-06 Eli Zaretskii <eliz@gnu.org>
12620
12621 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12622
8b7fcda2
HD
126232020-01-06 Hannes Domani <ssbssa@yahoo.de>
12624
12625 * source.c (print_source_lines_base): Set last_line_listed.
12626
a61b4f69
SV
126272020-01-06 Shahab Vahedi <shahab@synopsys.com>
12628
12629 * tui/tui-disasm.c: Remove trailing spaces.
12630
559e7e50
EZ
126312020-01-06 Eli Zaretskii <eliz@gnu.org>
12632 Pedro Alves <palves@redhat.com>
12633
12634 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12635 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12636 (windows_gdb_signal_to_target): New function, uses the above
12637 enumeration to convert GDB internal signal codes to equivalent
12638 Windows codes.
12639 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12640 * windows-nat.c: Include "gdb_wait.h".
12641 (get_windows_debug_event): Extract the fatal exception from the
12642 exit status and convert to the equivalent Posix signal number.
12643 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12644 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12645 * gdbsupport/gdb_wait.c: New file, implements
12646 windows_status_to_termsig.
12647 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12648 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12649
f2302a34
AB
126502020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12651
12652 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12653 show_layout.
12654
6a5206eb
LM
126552020-01-05 Luis Machado <luis.machado@linaro.org>
12656
12657 * aarch64-linux-nat.c
12658 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12659 and bfd_mach_aarch64.
12660
6ec1d75e
PW
126612020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12662
12663 * ui-file.c (stdio_file::can_emit_style_escape)
12664 (tee_file::can_emit_style_escape): Ensure style is used also on
12665 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12666 to gdb_stdout.
12667 * main.c (set_gdb_data_directory): Use file style to output the
12668 warning that the given pathname is not a directory.
12669 * top.c (show_history_filename, gdb_safe_append_history)
12670 (show_gdb_datadir): Use file style.
12671
44f81a76
HD
126722020-01-03 Hannes Domani <ssbssa@yahoo.de>
12673
12674 * solib-target.c (struct lm_info_target):
12675 Change offsets to be a unique_xmalloc_ptr.
12676 (solib_target_relocate_section_addresses): Update.
12677
25057eb0
HD
126782020-01-03 Hannes Domani <ssbssa@yahoo.de>
12679
12680 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12681
6e2118f5
BE
126822020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12683
12684 * MAINTAINERS (Write After Approval): Add myself.
12685
8133c7dc
LM
126862020-01-02 Luis Machado <luis.machado@linaro.org>
12687
12688 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12689 Cell BE architecture.
12690 * target.h (struct target_ops) <thread_architecture>: Likewise.
12691
48189bec
HD
126922020-01-01 Hannes Domani <ssbssa@yahoo.de>
12693
12694 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12695
ead1063b
HD
126962020-01-01 Hannes Domani <ssbssa@yahoo.de>
12697
12698 * MAINTAINERS (Write After Approval): Add myself.
12699
e5d78223
JB
127002020-01-01 Joel Brobecker <brobecker@adacore.com>
12701
12702 * gdbarch.sh: Update copyright year range of generated files.
12703
b811d2c2
JB
127042020-01-01 Joel Brobecker <brobecker@adacore.com>
12705
12706 Update copyright year range in all GDB files.
12707
5f4def5c
JB
127082020-01-01 Joel Brobecker <brobecker@adacore.com>
12709
12710 * copyright.py: Convert to Python 3.
12711
51fd4002
JB
127122020-01-01 Joel Brobecker <brobecker@adacore.com>
12713
12714 * copyright.py: Adapt after move of gnulib directory from gdb
12715 directory to toplevel directory.
12716
5fb651f2
JB
127172020-01-01 Joel Brobecker <brobecker@adacore.com>
12718
12719 * copyright.py (main): Exit if run from the wrong directory.
12720
5dd8bf88
JB
127212020-01-01 Joel Brobecker <brobecker@adacore.com>
12722
12723 * top.c (print_gdb_version): Change copyright year to 2020.
12724
9f71dacb 127252020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12726
9f71dacb 12727 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12728
9f71dacb 12729For older changes see ChangeLog-2019.
c906108c
SS
12730\f
12731Local Variables:
12732mode: change-log
12733left-margin: 8
12734fill-column: 74
12735version-control: never
57da7796 12736coding: utf-8
c906108c 12737End: