]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add type::endianity_is_not_default / type::set_endianity_is_not_default
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
db558e34
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <endianity_is_not_default,
4 set_endianity_is_not_default>: New methods.
5 (TYPE_ENDIANITY_NOT_DEFAULT): Use
6 type::endianity_is_not_default, change all write call sites to
7 use type::set_endianity_is_not_default.
8
22c4c60c
SM
92020-09-14 Simon Marchi <simon.marchi@efficios.com>
10
11 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
12 uses with type::is_fixed_instance.
13
9cdd0d12
SM
142020-09-14 Simon Marchi <simon.marchi@efficios.com>
15
16 * gdbtypes.h (struct type) <is_fixed_instance,
17 set_is_fixed_instance>: New methods.
18 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
19 write call sites to use type::set_is_fixed_instance.
20
0becda7a
SM
212020-09-14 Simon Marchi <simon.marchi@efficios.com>
22
23 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
24 uses with type::is_gnu_ifunc.
25
03cc7249
SM
262020-09-14 Simon Marchi <simon.marchi@efficios.com>
27
28 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
29 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
30 use type::set_is_gnu_ifunc.
31
3f46044c
SM
322020-09-14 Simon Marchi <simon.marchi@efficios.com>
33
34 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
35 uses with type::stub_is_supported.
36
9baccff6
SM
372020-09-14 Simon Marchi <simon.marchi@efficios.com>
38
39 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
40 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
41 use type::set_stub_is_supported.
42
bd63c870
SM
432020-09-14 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
46 uses with type::is_vector.
47
2062087b
SM
482020-09-14 Simon Marchi <simon.marchi@efficios.com>
49
50 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
51 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
52 use type::set_is_vector.
53
a409645d
SM
542020-09-14 Simon Marchi <simon.marchi@efficios.com>
55
56 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
57 uses with type::has_varargs.
58
1d6286ed
SM
592020-09-14 Simon Marchi <simon.marchi@efficios.com>
60
61 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
62 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
63 use type::set_has_varargs.
64
7f9f399b
SM
652020-09-14 Simon Marchi <simon.marchi@efficios.com>
66
67 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
68 uses with type::is_prototyped.
69
27e69b7a
SM
702020-09-14 Simon Marchi <simon.marchi@efficios.com>
71
72 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
73 New methods.
74 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
75 call sites to use type::set_is_prototyped.
76
d2183968
SM
772020-09-14 Simon Marchi <simon.marchi@efficios.com>
78
79 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
80 uses with type::target_is_stub.
81
8f53807e
SM
822020-09-14 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
85 New methods.
86 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
87 sites to use type::set_target_is_stub.
88
e46d3488
SM
892020-09-14 Simon Marchi <simon.marchi@efficios.com>
90
91 * gdbtypes.h (TYPE_STUB): Remove, replace all
92 uses with type::is_stub.
93
b4b73759
SM
942020-09-14 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
97 (TYPE_STUB): Use type::is_stub, change all write call sites to
98 use type::set_is_stub.
99
20ce4123
SM
1002020-09-14 Simon Marchi <simon.marchi@efficios.com>
101
102 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
103 type::has_no_signedness.
104
15152a54
SM
1052020-09-14 Simon Marchi <simon.marchi@efficios.com>
106
107 * gdbtypes.h (struct type) <has_no_signedness,
108 set_has_no_signedness>: New methods.
109 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
110 call sites to use type::set_has_no_signedness.
111
c6d940a9
SM
1122020-09-14 Simon Marchi <simon.marchi@efficios.com>
113
114 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
115 type::is_unsigned.
116
653223d3
SM
1172020-09-14 Simon Marchi <simon.marchi@efficios.com>
118
119 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
120 methods.
121 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
122 sites to use type::set_is_unsigned.
123
55ea94da
FH
1242020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
125 Adam Renquinha <arenquinha@cimeq.qc.ca>
126
127 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
128 pointer and stack frame offset when unwinding.
129
6791b117
PA
1302020-09-13 Pedro Alves <pedro@palves.net>
131
132 * NEWS: Document "-break-insert --qualified".
133 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
134
77f2120b
PA
1352020-09-13 Pedro Alves <pedro@palves.net>
136
137 * linespec.c (classify_mtype, compare_msyms): Delete.
138 (search_minsyms_for_name): Remove classification logic. Instead
139 filter out trampoline symbols if we also found an external
140 function of the same name.
141
ed6a896c
JB
1422020-09-13 Joel Brobecker <brobecker@adacore.com>
143
144 * NEWS: Create a new section for the next release branch.
145 Rename the section of the current branch, now that it has
146 been cut.
147
32aea73e
JB
1482020-09-13 Joel Brobecker <brobecker@adacore.com>
149
150 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
151 * version.in: Bump version to 11.0.50.DATE-git.
152
8087c3fa
JB
1532020-09-12 Joel Brobecker <brobecker@adacore.com>
154
155 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
156
2a67f09d
FW
1572020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
158 Felix Willgerodt <Felix.Willgerodt@intel.com>
159
160 * gdbarch.sh: Added bfloat16 type.
161 * gdbarch.c: Regenerated.
162 * gdbarch.h: Regenerated.
163 * gdbtypes.c (floatformats_bfloat16): New struct.
164 (gdbtypes_post_init): Add builtin_bfloat16.
165 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
166 (floatformats_bfloat16): New struct.
167 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
168 (i386_ymm_type): Add field "v16_bfloat16"
169 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
170 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
171 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
172 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
173 * features/i386/64bit-avx512.xml: Add bfloat16 type.
174 * features/i386/64bit-avx512.c: Regenerated.
175 * features/i386/64bit-sse.xml: Add bfloat16 type.
176 * features/i386/64bit-sse.c: Regenerated.
177
1347d111
FW
1782020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
179
180 * i386-tdep.c (i386_zmm_type): Fix field names.
181 (i386_ymm_type): Fix field names.
182
7a4e8e7d
TBA
1832020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
184
185 * breakpoint.c: Fix typo in the help message of the
186 "set breakpoint condition-evaluation" command.
187
cf4ac4be
KR
1882020-09-10 Kamil Rytarowski <n54@gmx.com>
189
190 * nbsd-nat.c: Include "nat/netbsd-nat.h".
191 * (nbsd_nat_target::pid_to_exec_file)
192 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
193 (nbsd_nat_target::post_startup_inferior)
194 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
195 (nbsd_add_threads): Switch local code to common gdb/nat functions.
196 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
197 * (nbsd_thread_lister): Remove.
198
f404573e
KR
1992020-09-10 Kamil Rytarowski <n54@gmx.com>
200
201 * fork-inferior.c (startup_inferior): Avoid double free.
202
1ccb2c17
KR
2032020-09-10 Kamil Rytarowski <n54@gmx.com>
204
205 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
206 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
207
feedfcc7
KR
2082020-09-10 Kamil Rytarowski <n54@gmx.com>
209
210 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
211 * netbsd-nat.c: Include <sys/ptrace.h>.
212 * (netbsd_nat::enable_proc_events): Add.
213
c489f8c6
KR
2142020-09-10 Kamil Rytarowski <n54@gmx.com>
215
216 * netbsd-nat.h: Include "gdbsupport/function-view.h".
217 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
218 (netbsd_nat::for_each_thread): Add.
219 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
220 "gdbsupport/common-debug.h".
221 * (netbsd_nat::netbsd_thread_lister)
222 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
223 (netbsd_nat::for_each_thread): Add.
224
330662f6
KR
2252020-09-10 Kamil Rytarowski <n54@gmx.com>
226
227 * netbsd-nat.h: Include <unistd.h>.
228 * (netbsd_nat::pid_to_exec_file): Add.
229 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
230 * (netbsd_nat::pid_to_exec_file) Add.
231
70b67307
KR
2322020-09-10 Kamil Rytarowski <n54@gmx.com>
233
234 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
235
99cf6da6
KR
2362020-09-10 Kamil Rytarowski <n54@gmx.com>
237
238 * netbsd-nat.h: New file.
239 * netbsd-nat.c: Likewise.
240
1b788fb6
TT
2412020-09-09 Tom Tromey <tromey@adacore.com>
242
243 * ada-lang.c (remove_extra_symbols): Do not increment when
244 removing an element
245
03b0a45f
TT
2462020-09-08 Tom Tromey <tromey@adacore.com>
247
248 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
249
3cae4447
TT
2502020-09-08 Tom Tromey <tromey@adacore.com>
251
252 PR win32/25302:
253 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
254 (gdb_bfd_init_data): New function.
255 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
256
7f08fd51
TBA
2572020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
258
259 * infrun.c (fetch_inferior_event): Use
260 `switch_to_target_no_thread` to switch the target.
261
3e6ff933
TT
2622020-09-06 Tom Tromey <tom@tromey.com>
263
264 * symfile.h (dwarf2_free_objfile): Don't declare.
265
e56798df
AKS
2662020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
267
268 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
269 to match 16 byte real/complex type generated by Flang compiler.
270
8f5c6526
TV
2712020-09-03 Tom de Vries <tdevries@suse.de>
272
273 PR breakpoint/26546
274 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
275 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
276
c5065df0
SM
2772020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * maint.c (index_digits): New function.
280 (struct maint_print_section_data): Remove.
281 (print_bfd_section_info): Remove print_data parameter, add arg
282 and index_digits.
283 (print_objfile_section_info): Likewise.
284 (print_bfd_section_info_maybe_relocated): Likewise (plus
285 objfile).
286 (maintenance_info_sections): Adjust calls.
287
02c6f3f1
TT
2882020-09-02 Tom Tromey <tromey@adacore.com>
289
290 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
291 for null pointers.
292 (ada_varobj_adjust_for_child_access): Special-case null pointers.
293
ef5e5b0b
SM
2942020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * bcache.h (struct bcache) <insert>: Change type of `added` to
297 pointer to bool.
298 * bcache.c (bcache::insert): Likewise.
299 * gdbtypes.c (check_types_worklist): Adjust.
300 * psymtab.c (add_psymbol_to_bcache): Adjust.
301
973695d6
KB
3022020-08-31 Kevin Buettner <kevinb@redhat.com>
303
304 * corelow.c (unordered_set): Include.
305 (class core_target): Add field 'm_core_unavailable_mappings'.
306 (core_target::build_file_mappings): Print only one warning
307 per inaccessible file. Add unavailable/broken mappings
308 to m_core_unavailable_mappings.
309 (core_target::xfer_partial): Call...
310 (core_target::xfer_memory_via_mappings): New method.
311
264fc0e2
SM
3122020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
315 type to bool.
316
2de01bdb
SM
3172020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * dwarf2/read.c (struct field_info): Fix indentation.
320
f3bd50f1
SM
3212020-08-31 Simon Marchi <simon.marchi@efficios.com>
322
323 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
324 ordering in comment.
325 * frame.c (frame_id_eq): Fix indentation.
326
22b9b4b0
SL
3272020-08-31 Scott Linder <scott@scottlinder.com>
328 Simon Marchi <simon.marchi@efficios.com>
329
330 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
331 inline frame ids in outer frame.
332
84154d16
SM
3332020-08-31 Simon Marchi <simon.marchi@efficios.com>
334
335 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
336 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
337 (outer_frame_id): Use FID_STACK_OUTER instead of
338 FID_STACK_INVALID.
339 (frame_id_p): Don't check for outer_frame_id.
340
8efaf6b3
SM
3412020-08-31 Simon Marchi <simon.marchi@efficios.com>
342
343 * frame-unwind.c (frame_unwind_got_optimized): Don't set
344 regnum/frame in value. Call allocate_value_lazy.
345 * frame.c (frame_unwind_register_value): Use
346 val_print_not_saved.
347
fe1fe7ea
SM
3482020-08-31 Simon Marchi <simon.marchi@efficios.com>
349
350 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
351
f7c7700d
PA
3522020-08-29 Pedro Alves <pedro@palves.net>
353
354 * progspace.c (print_program_space): Use all_inferiors. Switch to
355 the inferior before calling target_pid_to_str.
356
e0814aae
TT
3572020-08-28 Tom Tromey <tom@tromey.com>
358
359 * xcoffread.c (xcoff_end_psymtab): Update comment.
360 * dbxread.c (dbx_end_psymtab): Update comment.
361
626d2320
TV
3622020-08-28 Tom de Vries <tdevries@suse.de>
363
364 PR breakpoint/26544
365 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
366 event_location.
367 (create_breakpoint): Same.
368 (base_breakpoint_decode_location): Same.
369 (bkpt_create_sals_from_location): Same.
370 (bkpt_decode_location): Same.
371 (bkpt_probe_create_sals_from_location): Same.
372 (bkpt_probe_decode_location): Same.
373 (tracepoint_create_sals_from_location): Same.
374 (tracepoint_decode_location): Same.
375 (tracepoint_probe_decode_location): Same.
376 (strace_marker_create_sals_from_location): Same.
377 (strace_marker_decode_location): Same.
378 (create_sals_from_location_default): Same.
379 (decode_location_default): Same.
380 * breakpoint.h (struct breakpoint_ops): Same.
381 (create_breakpoint): Same.
382 * linespec.h (decode_line_full): Same.
383 * linespec.c (decode_line_full): Same. Throw error if
384 result.size () == 0.
385
df631783
PA
3862020-08-27 Pedro Alves <pedro@palves.net>
387
388 PR gdb/26524
389 * breakpoint.c (until_break_fsm) <location_breakpoint,
390 caller_breakpoint>: Delete fields.
391 <breakpoints>: New field.
392 <until_break_fsm>: Adjust to save a breakpoint vector instead of
393 two individual breakpoints.
394 (until_break_fsm::should_stop): Loop over breakpoints in the
395 breakpoint vector.
396 (until_break_fsm::clean_up): Adjust to clear the breakpoints
397 vector.
398 (until_break_command): Handle location expanding into multiple
399 sals.
400
b2b38aa4
PA
4012020-08-27 Pedro Alves <pedro@palves.net>
402
403 PR gdb/26523
404 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
405 bp_until breakpoints user-specified locations. Update intro
406 comment.
407
b886559f
SM
4082020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
411 gdb_bfd_sections): New.
412 * maint.c (print_bfd_section_info): Change param type to
413 maint_print_section_data.
414 (print_objfile_section_info): Likewise.
415 (print_bfd_section_info_maybe_relocated): Likewise.
416 (maintenance_info_sections): Use gdb_bfd_sections.
417
4c6e63bf
SV
4182020-08-25 Shahab Vahedi <shahab@synopsys.com>
419
420 * MAINTAINERS: Add ARC target and maintainer.
421
8d7f0635
AK
4222020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
423
424 * configure.tgt: ARC support for GNU/Linux.
425 * Makefile.in (ALL_TARGET_OBJS): Likewise.
426 * arc-linux-tdep.c: New file.
427 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
428 * arc-tdep.c (arc_write_pc): Use it.
429
fdd8731b
SV
4302020-08-25 Shahab Vahedi <shahab@synopsys.com>
431
432 * arc-tdep.c (arc_check_for_hardware_loop): New.
433 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
434
22459524
SV
4352020-08-25 Shahab Vahedi <shahab@synopsys.com>
436
437 * arc-tdep.h: Include "gdbarch.h".
438
995d3a19
SV
4392020-08-25 Shahab Vahedi <shahab@synopsys.com>
440
441 * arch/arc.h
442 (arc_gdbarch_features): New class to stir the selection of target XML.
443 (arc_create_target_description): Use FEATURES to choose XML target.
444 (arc_lookup_target_description): Use arc_create_target_description
445 to create _new_ target descriptions or return the already created
446 ones if the FEATURES is the same.
447 * arch/arc.c: Implementation of prototypes described above.
448 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
449 (arc_gdbarch_features_init): Initialize the FEATURES struct.
450 * arc-tdep.c (*_feature_name): Make feature names consistent.
451 (arc_register_feature): A new struct to hold information about
452 registers of a particular target/feature.
453 (arc_check_tdesc_feature): Check if XML provides registers in
454 compliance with ARC_REGISTER_FEATURE structs.
455 (arc_update_acc_reg_names): Add aliases for r58 and r59.
456 (determine_*_reg_feature_set): Which feature name to look for.
457 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
458 (mach_type_to_arc_isa): Convert from a set of binutils machine types
459 to expected ISA enums to be used in arc_gdbarch_features structs.
460 * features/Makefile (FEATURE_XMLFILES): Add new files.
461 * gdb/features/arc/v1-aux.c: New file.
462 * gdb/features/arc/v1-aux.xml: Likewise.
463 * gdb/features/arc/v1-core.c: Likewise.
464 * gdb/features/arc/v1-core.xml: Likewise.
465 * gdb/features/arc/v2-aux.c: Likewise.
466 * gdb/features/arc/v2-aux.xml: Likewise.
467 * gdb/features/arc/v2-core.c: Likewise.
468 * gdb/features/arc/v2-core.xml: Likewise.
469 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
470
3945d2d7
GM
4712020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
472 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 PR m2/26372
fc5d6901 475 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
476 an assert. Remove single element array indexing pattern as the
477 MULTI_SUBSCRIPT support will handle this case too.
478
2677f2d3
SM
4792020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * value.h (valprint_check_validity): Move declaration from
482 here...
483 * valprint.h (valprint_check_validity): ... to here.
484
c426fddb
SM
4852020-08-24 Simon Marchi <simon.marchi@efficios.com>
486
487 * debug.h: New file.
488 * debug.c (debug_prefixed_vprintf): New function.
489 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
490 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
491
1eb8556f
SM
4922020-08-24 Simon Marchi <simon.marchi@efficios.com>
493
494 * infrun.h (infrun_debug_printf_1): New function declaration.
495 (infrun_debug_printf): New macro.
496 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
497 throughout.
498 (infrun_debug_printf): New function.
499 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
500 (handle_jit_event): Likewise.
501
b8fff44e
MW
5022020-08-21 Mark Wielaard <mark@klomp.org>
503
504 * ada-lex.l: Extend register warnings diagnostics comment for g++.
505
d19c3068
SM
5062020-08-22 Simon Marchi <simon.marchi@efficios.com>
507
508 * frame.c (enum class frame_id_status): New.
509 (struct frame_info) <this_id::p>: Change type to frame_id_status.
510 (fprintf_frame): Update.
511 (compute_frame_id): Set frame id status to "computing" on entry.
512 Set it back to "not_computed" on failure and to "computed" on
513 success.
514 (get_frame_id): Assert the frame id is not being computed.
515 (create_sentinel_frame): Use frame_id_status::COMPUTED.
516 (create_new_frame): Likewise.
517 (frame_cleanup_after_sniffer): Update assert.
518
b70e516e
SM
5192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * regcache.c (pid_ptid_regcache_map): New type.
522 (target_ptid_regcache_map): Remove.
523 (target_pid_ptid_regcache_map): New type.
524 (regcaches): Change type to target_pid_ptid_regcache_map.
525 (get_thread_arch_aspace_regcache): Update.
526 (regcache_thread_ptid_changed): Update, handle pid-like ptid
527 case.
528 (regcaches_size): Update.
529 (regcache_count): Update.
530 (registers_changed_ptid_target_pid_test): New.
531 (_initialize_regcache): Register new test.
532
cdd9148a
SM
5332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * regcache.c (regcache_count): New.
536 (struct regcache_test_data): New.
537 (regcache_test_data_up): New.
538 (populate_regcaches_for_test): New.
539 (regcaches_test): Remove.
540 (get_thread_arch_aspace_regcache_test): New.
541 (registers_changed_ptid_all_test): New.
542 (registers_changed_ptid_target_test): New.
543 (registers_changed_ptid_target_ptid_test): New.
544 (regcache_thread_ptid_changed): Remove regcache_count lambda.
545 (_initialize_regcache): Register new tests.
546
dd125343
SM
5472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
550 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
551 gdbarch and aspace parameter. Use current inferior's aspace.
552 Validate regcache's arch value.
553 (regcaches_test): Update.
554
3ee93972
SM
5552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * regcache.c (regcaches_test): Call registers_changed.
558
33bf4c5c
TBA
5592020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
560
561 * infrun.c (process_event_stop_test): Fix typo "breapoint".
562
c2fd7fae
AKS
5632020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
564
565 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
566 to find the end of prologue for flang compiled binaries.
567 * arm-tdep.c (arm_skip_prologue): Likewise.
568 * i386-tdep.c (i386_skip_prologue): Likewise.
569 * producer.c (producer_is_llvm): New function.
570 (producer_parsing_tests): Added new tests for clang/flang.
571 * producer.h (producer_is_llvm): New declaration.
572
9327494e
SM
5732020-08-18 Simon Marchi <simon.marchi@efficios.com>
574
575 * linux-nat.c (linux_nat_debug_printf): New function.
576 (linux_nat_debug_printf_1): New macro. Use throughout the file.
577
d138725a
AM
5782020-08-18 Aaron Merey <amerey@redhat.com>
579
580 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
581 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
582 (CLIBS): Add DEBUGINFOD_LIBS.
583
f9b11e6b
ST
5842020-08-17 Sergei Trofimovich <siarheit@google.com>
585
586 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
587 'gdbarch_num_regs'.
588
3ae7ab99
TT
5892020-08-17 Tom Tromey <tromey@adacore.com>
590
591 * ada-varobj.c (ada_varobj_decode_var): Handle case where
592 ada_get_decoded_value returns NULL.
593
b017825f
TT
5942020-08-17 Tom Tromey <tromey@adacore.com>
595
596 * python/py-inferior.c (infpy_search_memory): Use
597 gdb_py_object_from_ulongest.
598 * python/py-infevents.c (create_inferior_call_event_object)
599 (create_memory_changed_event_object): Use
600 gdb_py_object_from_ulongest.
601 * python/py-linetable.c (ltpy_entry_get_pc): Use
602 gdb_py_object_from_ulongest.
603
7635cf79
SM
6042020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * loc.c (class symbol_needs_eval_context): Fix indentation.
607
f54be24b
SM
6082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
611 bool.
612
53d5a2a5
TV
6132020-08-17 Tom de Vries <tdevries@suse.de>
614
615 PR gdb/26393
616 * gdbtypes.c (dump_dynamic_prop): New function.
617 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
618
547ce8f0
TV
6192020-08-15 Tom de Vries <tdevries@suse.de>
620
621 PR backtrace/26390
622 * stack.c (print_frame_args): Temporarily set the selected
623 frame to FRAME while printing the frame's arguments.
624
6ea815e7
PFC
6252020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
626
627 PR breakpoints/26385
628 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
629 Always clear watchpoint with PTRACE_SET_DEBUGREG.
630
6e562fa3
PFC
6312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
632
633 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
634 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
635 and >= to check return value instead of == -1 and != -1.
636
d369b608
SM
6372020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * utils.h (class gdb_argv) <as_array_view>: New method.
640 * utils.c (gdb_argv_as_array_view_test): New.
641 (_initialize_utils): Register selftest.
642 * maint.c (maintenance_selftest): Use the new method.
643
b31488a3
KR
6442020-08-13 Kamil Rytarowski <n54@gmx.com>
645
646 * target.h (supports_dumpcore, dumpcore): New
647 function declarations.
648 * target.c (supports_dumpcore, dumpcore): New
649 functions.
650 * target-delegates.c: Rebuild.
651 * gcore.c (gcore_command): Use target_supports_dumpcore ()
652 and target_dumpcore ().
653
002a3166
AM
6542020-08-13 Aaron Merey <amerey@redhat.com>
655
656 * debuginfod-support.c: Replace global variables with user_data.
657
ece5bc8a
SM
6582020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * maint.c (maintenance_selftest): Split args and pass array_view
661 to run_tests.
662
6d8a0a5e
LM
6632020-08-12 Luis Machado <luis.machado@linaro.org>
664
665 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
666 type's length.
667 Use %s and pulongest to print the length.
668
7cf663a9
PA
6692020-08-12 Pedro Alves <palves@redhat.com>
670
671 * NEWS: Move "Multi-target debugging support" item to the
672 "Changes since GDB 9" section.
673
27c7b875
PA
6742020-08-12 Pedro Alves <palves@redhat.com>
675
676 PR gdb/26336
677 * progspace.c (program_space::remove_objfile): Invalidate the
678 frame cache.
679
1796a2a1
TV
6802020-08-11 Tom de Vries <tdevries@suse.de>
681
682 * MAINTAINERS: Mark ms1 as deleted.
683
f8e3fe0d
LM
6842020-08-10 Luis Machado <luis.machado@linaro.org>
685
686 PR gdb/26310
687
688 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
689 act accordingly.
690 (aarch64_analyze_prologue_test): Add more unit tests to exercise
691 movz/str/stur/stp skipping behavior.
692
cc308722
LM
6932020-08-10 Luis Machado <luis.machado@linaro.org>
694
695 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
696 struct user_sve_header instead of struct sve_context.
697
041d9819
SM
6982020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
699
700 * read.h (dwarf2_fetch_die_loc_sect_off,
701 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
702 `void *` parameter with function_view.
703 * read.c (dwarf2_fetch_die_loc_sect_off,
704 dwarf2_fetch_die_loc_cu_off): Likewise.
705 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
706 (per_cu_dwarf_call): Adjust.
707 (get_frame_address_in_block_wrapper): Remove.
708 (indirect_synthetic_pointer): Adjust.
709 (get_ax_pc): Remove.
710 (dwarf2_compile_expr_to_ax): Adjust.
711
38f8aa06
TV
7122020-08-08 Tom de Vries <tdevries@suse.de>
713
714 PR build/26344
715 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
716 constructor.
717 * regcache.c (get_thread_arch_aspace_regcache): Same.
718
a52b3ae2
TT
7192020-08-07 Tom Tromey <tromey@adacore.com>
720
721 * ravenscar-thread.c
722 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
723 New method.
724 (ravenscar_thread_target::wait): Check
725 runtime_initialized.
726 (ravenscar_thread_target::prepare_to_store)
727 (ravenscar_thread_target::stopped_by_sw_breakpoint)
728 (ravenscar_thread_target::stopped_by_hw_breakpoint)
729 (ravenscar_thread_target::stopped_by_watchpoint)
730 (ravenscar_thread_target::stopped_data_address)
731 (ravenscar_thread_target::core_of_thread): Use
732 scoped_restore_current_thread and
733 set_base_thread_from_ravenscar_task.
734
0e29517d
TT
7352020-08-07 Tom Tromey <tromey@adacore.com>
736
737 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
738
592f9bd7
TT
7392020-08-07 Tom Tromey <tromey@adacore.com>
740
741 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
742 update_inferior_ptid before update_thread_list.
743 (temporarily_change_regcache_ptid): New class.
744 (ravenscar_thread_target::fetch_registers)
745 (ravenscar_thread_target::store_registers)
746 (ravenscar_thread_target::prepare_to_store): Use base thread when
747 forwarding operation.
748
39e2018a
TT
7492020-08-07 Tom Tromey <tromey@adacore.com>
750
751 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
752 "is_pid" case.
753
2080266b
TT
7542020-08-07 Tom Tromey <tromey@adacore.com>
755
756 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
757 New methods.
758 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
759 first.
760 (ravenscar_thread_target::add_thread): Rename from
761 ravenscar_add_thread.
762 (ravenscar_thread_target::update_thread_list): Use a lambda.
763 (ravenscar_thread_target::xfer_partial): New method.
764
78c02f21
TT
7652020-08-07 Tom Tromey <tromey@adacore.com>
766
767 * ada-lang.h (ada_task_list_iterator_ftype): Now a
768 gdb::function_view.
769 (iterate_over_live_ada_tasks): Change type of argument.
770 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
771 of argument.
772
d5d833af
TT
7732020-08-07 Tom Tromey <tromey@adacore.com>
774
775 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
776 Remove.
777 (ravenscar_thread_target::extra_thread_info): Remove.
778 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
779 defer to target beneath for non-Ravenscar threads.
780
a8ac85bb
TT
7812020-08-07 Tom Tromey <tromey@adacore.com>
782
783 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
784 get_base_thread_from_ravenscar_task>: Now methods.
785 <m_cpu_map>: New member.
786 (ravenscar_thread_target::get_thread_base_cpu): Rename from
787 ravenscar_get_thread_base_cpu. Check m_cpu_map.
788 (ravenscar_thread_target::task_is_currently_active): Update.
789 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
790 Now a method.
791 (ravenscar_thread_target::add_active_thread): Put initial thread
792 into the m_cpu_map.
793
550ab58d
TT
7942020-08-07 Tom Tromey <tromey@adacore.com>
795
796 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
797 event_ptid.
798
e9546579
TT
7992020-08-07 Tom Tromey <tromey@adacore.com>
800
801 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
802 runtime_initialized.
803
3d4470e5
TT
8042020-08-07 Tom Tromey <tromey@adacore.com>
805
806 * ravenscar-thread.c (ravenscar_thread_target): Don't call
807 add_active_thread.
808 (ravenscar_thread_target::add_active_thread): Now public.
809 (ravenscar_inferior_created): Call add_active_thread after pushing
810 the target.
811
888bdb2b
SM
8122020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * regcache.c (ptid_regcache_map): New type.
815 (target_ptid_regcache_map): New type.
816 (regcaches): Change type to target_ptid_regcache_map.
817 (get_thread_arch_aspace_regcache): Update to regcaches' new
818 type.
819 (regcache_thread_ptid_changed): Likewise.
820 (registers_changed_ptid): Likewise.
821 (regcaches_size): Likewise.
822 (regcaches_test): Update.
823 (regcache_thread_ptid_changed): Update.
824 * regcache.h (regcache_up): New type.
825 * gdbsupport/ptid.h (hash_ptid): New struct.
826
b161a60d
SM
8272020-08-07 Simon Marchi <simon.marchi@efficios.com>
828
829 * observable.h (thread_ptid_changed): Add parameter
830 `process_stratum_target *`.
831 * infrun.c (infrun_thread_ptid_changed): Add parameter
832 `process_stratum_target *` and use it.
833 (selftests): New namespace.
834 (infrun_thread_ptid_changed): New function.
835 (_initialize_infrun): Register selftest.
836 * regcache.c (regcache_thread_ptid_changed): Add parameter
837 `process_stratum_target *` and use it.
838 (regcache_thread_ptid_changed): New function.
839 (_initialize_regcache): Register selftest.
840 * thread.c (thread_change_ptid): Pass target to
841 thread_ptid_changed observable.
842
d2854d8d
CT
8432020-08-06 Caroline Tice <cmtice@google.com>
844
fe4c3d43
SM
845 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
846 (struct dwp_sections): Update field comments. Add loclists and
847 rnglists fields.
848 (struct virtual_v2_dwo_sections): Rename struct to
849 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
850 size & offset fields for loclists and rnglists.
851 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
852 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
853 skipping dummy type units.
854 (create_dwp_hash_table): Update the large comment above the function to
855 discuss Version 5 DWP files as well, with references. Update all the
856 version checks in the function to check for version 5 as well. Add new
857 section at the end to create dwp hash table for version 5.
858 (create_dwp_v2_section): Rename function to
859 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
860 Add V5 to error message text.
861 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
862 into calls to create_dwp_v2_or_v5_section.
863 (create_dwo_unit_in_dwp_v5): New function.
864 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
865 check for version2; add else clause to handle version 5.
866 (open_and_init_dwo_file): Add code to check dwarf version & only call
867 create_debug_types_hash_table (with sections.types) if version is not 5;
868 else call create_debug_type_hash_table, with sections.info.
869 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
870 version 5.
871 (dwarf2_locate_v5_dwp_sections): New function.
872 (open_and_init_dwp_file): Add else-if clause for version 5 to call
873 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 874
159ed7d9
SM
8752020-08-06 Simon Marchi <simon.marchi@efficios.com>
876
877 * regcache.h (class regcache): Remove friend
878 registers_changed_ptid.
879 <regcache_thread_ptid_changed>: Remove.
880 <regcaches>: Remove.
881 * regcache.c (regcache::regcaches): Rename to...
882 (regcaches): ... this. Make static.
883 (get_thread_arch_aspace_regcache): Update.
884 (regcache::regcache_thread_ptid_changed): Rename to...
885 (regcache_thread_ptid_changed): ... this. Update.
886 (class regcache_access): Remove.
887 (regcaches_test): Update.
888 (_initialize_regcache): Update.
889 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
890 <forward_list>.
891
174981ae
SM
8922020-08-06 Simon Marchi <simon.marchi@efficios.com>
893
894 * regcache.h (class regcache) <current_regcache>: Rename to...
895 <regcaches>: ... this. Move doc here.
896 * regcache.c (regcache::current_regcache) Rename to...
897 (regcache::regcaches): ... this. Move doc to header.
898 (get_thread_arch_aspace_regcache): Update.
899 (regcache::regcache_thread_ptid_changed): Update.
900 (registers_changed_ptid): Update.
901 (class regcache_access) <current_regcache_size>: Rename to...
902 <regcaches_size>: ... this.
903 (current_regcache_test): Rename to...
904 (regcaches_test): ... this.
905 (_initialize_regcache): Update.
906
ed908db6
VC
9072020-08-06 Victor Collod <vcollod@nvidia.com>
908
909 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
910
b5582ab7
KB
9112020-08-05 Kevin Buettner <kevinb@redhat.com>
912
913 * corelow.c (core_target::build_file_mappings): Don't output
914 null pathname in warning.
915
ea946b86
SM
9162020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
919 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
920 gdb.dwarf2/dw2-single-line-discriminators.exp,
921 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
922
57d02173
TT
9232020-08-05 Tom Tromey <tromey@adacore.com>
924
925 PR rust/26197:
926 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
927 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
928 Fix off-by-one and type size errors in ordinary case.
929
5555c86d
TV
9302020-08-05 Tom de Vries <tdevries@suse.de>
931
932 * gdbtypes.c (type_not_allocated, type_not_associated): Use
933 "prop->const_val () == 0" instead of "prop->const_val () != 0".
934
97916bfe
SM
9352020-08-04 Simon Marchi <simon.marchi@efficios.com>
936
937 * frame.h (frame_id_p): Return bool.
938 (frame_id_artificial_p): Return bool.
939 (frame_id_eq): Return bool.
940 (has_stack_frames): Return bool.
941 (get_selected_frame): Fix typo in comment.
942 (get_frame_pc_if_available): Return bool.
943 (get_frame_address_in_block_if_available): Return bool.
944 (get_frame_func_if_available): Return bool.
945 (read_frame_register_unsigned): Return bool.
946 (get_frame_register_bytes): Return bool.
947 (safe_frame_unwind_memory): Return bool.
948 (deprecated_frame_register_read): Return bool.
949 (frame_unwinder_is): Return bool.
950 * frame.c (struct frame_info) <prev_arch::p>: Change type to
951 bool.
952 <this_id::p>: Likewise.
953 <prev_p>: Likewise.
954 (frame_stash_add): Return bool.
955 (get_frame_id): Use bool.
956 (frame_id_build_special) Use bool.
957 (frame_id_build_unavailable_stack): Use bool.
958 (frame_id_build): Use bool.
959 (frame_id_p): Return bool, use true/false instead of 1/0.
960 (frame_id_artificial_p): Likewise.
961 (frame_id_eq): Likewise.
962 (frame_id_inner): Likewise.
963 (get_frame_func_if_available): Likewise.
964 (read_frame_register_unsigned): Likewise.
965 (deprecated_frame_register_read): Likewise.
966 (get_frame_register_bytes): Likewise.
967 (has_stack_frames): Likewise.
968 (inside_main_func): Likewise.
969 (inside_entry_func): Likewise.
970 (get_frame_pc_if_available): Likewise.
971 (get_frame_address_in_block_if_available): Likewise.
972 (frame_unwinder_is): Likewise.
973 (safe_frame_unwind_memory): Likewise.
974 (frame_unwind_arch): Likewise.
975
fedfee88
SM
9762020-08-04 Simon Marchi <simon.marchi@efficios.com>
977
978 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
979 type to cached_copy_status.
980 (fprintf_frame): Adjust.
981 (get_frame_func_if_available): Adjust.
982 (frame_cleanup_after_sniffer): Adjust.
983
6cfa9b59
MW
9842020-08-04 Mark Wielaard <mark@klomp.org>
985
986 * MAINTAINERS (Write After Approval): Update email address.
987
66d6346b
SM
9882020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
991 dynamic_prop::const_val.
992
8a6d5e35
SM
9932020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
996 dynamic_prop::kind.
997
51d6067d
SM
9982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1001
b26e2ae7
JM
10022020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1003
1004 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1005
39791af2
JM
10062020-08-04 Weimin Pan <weimin.pan@oracle.com>
1007 Jose E. Marchesi <jose.marchesi@oracle.com>
1008
1009 * configure.tgt: Add entry for bpf-*-*.
1010 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1011 (ALLDEPFILES): Add bpf-tdep.c.
1012 * bpf-tdep.c: New file.
1013 * MAINTAINERS: Add bpf target and maintainer.
1014 * NEWS: Mention the support for the new target.
1015
521894aa
TV
10162020-08-04 Tom de Vries <tdevries@suse.de>
1017
1018 PR symtab/23270
1019 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1020 Error.
1021
5d6356e9
JB
10222020-08-03 John Baldwin <jhb@FreeBSD.org>
1023
1024 * syscalls/freebsd.xml: Regenerate.
1025
0cf82b81
JB
10262020-08-03 John Baldwin <jhb@FreeBSD.org>
1027
1028 * syscalls/update-freebsd.sh: Fix usage and year range.
1029
8f34b746
TV
10302020-08-03 Tom de Vries <tdevries@suse.de>
1031
1032 PR symtab/26333
1033 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1034 DW_LNE_lo_user/DW_LNE_hi_user range.
1035
5e500d33
SM
10362020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 PR ada/26318
1039 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1040 kind.
1041
78319c15
TBA
10422020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043
1044 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1045
4c55e970
TBA
10462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1047
1048 * breakpoint.c (set_breakpoint_condition): Update the condition
1049 expressions after checking that the input condition string parses
1050 successfully and does not contain junk at the end.
1051
1e620590
TBA
10522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053
1054 * breakpoint.c (set_breakpoint_condition): Update the
1055 condition string after parsing the new condition successfully.
1056
c8693053
RO
10572020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058
1059 * proc-api.c (_STRUCTURED_PROC): Don't define.
1060 * proc-events.c: Likewise.
1061 * proc-flags.c: Likewise.
1062 * proc-why.c: Likewise.
1063 * procfs.c: Likewise.
1064
1065 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1066 * configure, config.in: Regenerate.
1067
5a99adb8
TV
10682020-07-30 Tom de Vries <tdevries@suse.de>
1069
1070 PR build/26320
1071 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1072 m_red/m_green/m_blue in a union.
1073
8ba83e91
TV
10742020-07-29 Tom de Vries <tdevries@suse.de>
1075
1076 PR tdep/26280
1077 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1078
f75a0693
AB
10792020-07-28 Tom Tromey <tromey@adacore.com>
1080
1081 PR symtab/26270:
1082 * symtab.h (find_pc_partial_function_sym): Declare.
1083 * cli/cli-cmds.c (disassemble_command): Use
1084 find_pc_partial_function_sym. Check asm_demangle.
1085 * blockframe.c (cache_pc_function_sym): New global.
1086 (cache_pc_function_name): Remove.
1087 (clear_pc_function_cache): Update.
1088 (find_pc_partial_function_sym): New function, from
1089 find_pc_partial_function.
1090 (find_pc_partial_function): Rewrite using
1091 find_pc_partial_function_sym.
1092
16f3242c
TT
10932020-07-28 Tom Tromey <tromey@adacore.com>
1094
1095 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1096 help. Add usage.
1097
4888741a
TT
10982020-07-28 Tom Tromey <tromey@adacore.com>
1099
1100 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1101 <DW_OP_GNU_variable_value>: Cast to address type.
1102
4d46f402
KR
11032020-07-28 Kamil Rytarowski <n54@gmx.com>
1104
1105 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1106 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1107 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1108 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1109 (nbsd_get_siginfo_type): New.
1110 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1111 (_initialize_nbsd_tdep): New.
1112
d70f978b
L
11132020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1114
1115 PR binutils/26301
1116 * configure: Regenerated.
1117
377170fa
L
11182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1119
1120 PR binutils/26301
1121 * configure: Regenerated.
1122
43d5901d
AB
11232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * python/py-frame.c: Remove 'user-regs.h' include.
1126 (frapy_read_register): Rewrite to make use of
1127 gdbpy_parse_register_id.
1128 * python/py-registers.c (gdbpy_parse_register_id): New function,
1129 moved here from python/py-unwind.c. Updated the return type, and
1130 also accepts register descriptor objects.
1131 * python/py-unwind.c: Remove 'user-regs.h' include.
1132 (pyuw_parse_register_id): Moved to python/py-registers.c.
1133 (unwind_infopy_add_saved_register): Update to use
1134 gdbpy_parse_register_id.
1135 (pending_framepy_read_register): Likewise.
1136 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1137
14fa8fb3
AB
11382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * python/py-registers.c: Add 'user-regs.h' include.
1141 (register_descriptor_iter_find): New function.
1142 (register_descriptor_iterator_object_methods): New static global
1143 methods array.
1144 (register_descriptor_iterator_object_type): Add pointer to methods
1145 array.
1146
ddce1758
JB
11472020-07-27 John Baldwin <jhb@FreeBSD.org>
1148
1149 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1150 for all architectures on FreeBSD 11.3 and later.
1151
a4089f52
TT
11522020-07-27 Tom Tromey <tromey@adacore.com>
1153
1154 * gcore.h (load_corefile): Don't declare.
1155
95420d30
TV
11562020-07-27 Tom de Vries <tdevries@suse.de>
1157
1158 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1159 * config.in: Regenerate.
1160 * configure: Regenerate.
1161
05a6b8c2
EZ
11622020-07-26 Eli Zaretskii <eliz@gnu.org>
1163
1164 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1165 ws2tcpip.h. When checking whether socklen_t type is defined, use
1166 ws2tcpip.h if it is available and sys/socket.h isn't.
1167 * configure: Regenerate.
1168 * config.in: Regenerate.
1169
e79eb02f
AB
11702020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 PR fortran/23051
1173 PR fortran/26139
1174 * valops.c (value_ind): Pass address to
1175 readjust_indirect_value_type.
1176 * value.c (readjust_indirect_value_type): Make parameter
1177 non-const, and add extra address parameter. Resolve original type
1178 before using it.
1179 * value.h (readjust_indirect_value_type): Update function
1180 signature and comment.
1181
876518dd
TV
11822020-07-25 Tom de Vries <tdevries@suse.de>
1183
1184 PR symtab/26243
1185 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1186 entries.
1187
f6720b1c
AM
11882020-07-24 Aaron Merey <amerey@redhat.com>
1189
1190 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1191 * configure: Rebuild.
1192
513487e1
KB
11932020-07-23 Kevin Buettner <kevinb@redhat.com>
1194
1195 PR corefiles/26294
1196 * corelow.c (_initialize_corelow): Add period to help text
1197 for "maintenance print core-file-backed-mappings".
1198
e7bc9db8
PA
11992020-07-23 Pedro Alves <pedro@palves.net>
1200
1201 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1202 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1203 meanwhile.
1204 * frame.c (frame_cache_generation, get_frame_cache_generation):
1205 New.
1206 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1207 (get_prev_frame_if_no_cycle): On exception, don't touch
1208 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1209 * frame.h (get_frame_cache_generation): Declare.
1210
90fcc466
TV
12112020-07-23 Tom de Vries <tdevries@suse.de>
1212
1213 PR tui/26282
1214 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1215 New default constructor.
1216
78344df7
AB
12172020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1220 exclude non-statement entries.
1221
b089853a
KB
12222020-07-22 Kevin Buettner <kevinb@redhat.com>
1223
1224 * NEWS (New commands): Mention new command
1225 "maintenance print core-file-backed-mappings".
1226
09c2f5d4
KB
12272020-07-22 Kevin Buettner <kevinb@redhat.com>
1228
1229 * corelow.c (gdbcmd.h): Include.
1230 (core_target::info_proc_mappings): New method.
1231 (get_current_core_target): New function.
1232 (maintenance_print_core_file_backed_mappings): New function.
1233 (_initialize_corelow): Add core-file-backed-mappings to
1234 "maint print" commands.
1235
9c5ec5c2 12362020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1237
9c5ec5c2
KB
1238 * linux-tdep.c (dump_note_entry_p): New function.
1239 (linux_dump_mapping_p_ftype): New typedef.
1240 (linux_find_memory_regions_full): Add new parameter,
1241 should_dump_mapping_p.
1242 (linux_find_memory_regions): Adjust call to
1243 linux_find_memory_regions_full.
1244 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1245 call to linux_find_memory_regions_full.
1246
db082f59
KB
12472020-07-22 Kevin Buettner <kevinb@redhat.com>
1248
1249 * corelow.c (solist.h, unordered_map): Include.
1250 (class core_target): Add field m_core_file_mappings and
1251 method build_file_mappings.
1252 (core_target::core_target): Call build_file_mappings.
1253 (core_target::~core_target): Free memory associated with
1254 m_core_file_mappings.
1255 (core_target::build_file_mappings): New method.
1256 (core_target::xfer_partial): Use m_core_file_mappings
1257 for memory transfers.
1258 * linux-tdep.c (linux_read_core_file_mappings): New
1259 function.
1260 (linux_core_info_proc_mappings): Rewrite to use
1261 linux_read_core_file_mappings.
1262 (linux_init_abi): Register linux_read_core_file_mappings.
1263
7e183d27
KB
12642020-07-22 Kevin Buettner <kevinb@redhat.com>
1265
1266 * arch-utils.c (default_read_core_file_mappings): New function.
1267 * arch-utils.c (default_read_core_file_mappings): Declare.
1268 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1269 * gdbarch.h, gdbarch.c: Regenerate.
1270
2735d421
KB
12712020-07-22 Kevin Buettner <kevinb@redhat.com>
1272
1273 PR corefiles/25631
1274 * corelow.c (core_target:xfer_partial): Revise
1275 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1276 case after first checking the stratum beneath the core
1277 target.
1278 (has_all_memory): Return true.
1279 * target.c (raw_memory_xfer_partial): Revise comment
1280 regarding use of has_all_memory.
1281
e56cb451
KB
12822020-07-22 Kevin Buettner <kevinb@redhat.com>
1283
1284 * exec.h (section_table_xfer_memory): Revise declaration,
1285 replacing section name parameter with an optional callback
1286 predicate.
1287 * exec.c (section_table_xfer_memory): Likewise.
1288 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1289 of section_table_xfer_memory.
1290
32fa152e
TT
12912020-07-22 Tom Tromey <tromey@adacore.com>
1292
1293 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1294 lookup_symbol_search_name.
1295
a67a1c41
AB
12962020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1299 redundant local variable.
1300 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1301 reference, not pointer, update code accordingly.
1302
a7b4ff4f
SM
13032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1304 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1307 * jit.c (jit_breakpoint_re_set_internal): Use the
1308 `skip_jit_symbol_lookup` field.
1309
2340e834
SM
13102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1311 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1312
1313 * jit.c (jit_read_descriptor): Define the descriptor address once,
1314 use twice.
1315 (jit_breakpoint_deleted): Move the declaration of the loop variable
1316 `iter` into the loop header.
1317 (jit_breakpoint_re_set_internal): Move the declaration of the local
1318 variable `objf_data` to the first point of definition.
1319 (jit_event_handler): Move the declaration of local variables
1320 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1321 Rename `objf` to `jited`.
1322
c1072906
SM
13232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1326 Remove.
1327 * jit.c (get_jiter_objfile_data): Update.
1328
c8474dc3
TBA
13292020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1330 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * jit.c (struct jit_program_space_data): Remove.
1333 (jit_program_space_key): Remove.
1334 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1335 stuff.
1336 (get_jit_program_space_data): Remove.
1337 (jit_breakpoint_deleted): Iterate on all of the program space's
1338 objfiles.
1339 (jit_inferior_init): Likewise.
1340 (jit_breakpoint_re_set_internal): Likewise. Also change return
1341 type to void.
1342 (jit_breakpoint_re_set): Pass current_program_space to
1343 jit_breakpoint_re_set_internal.
1344
77208eb7
SM
13452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * jit.h (struct jiter_objfile_data) <cached_code_address,
1348 jit_breakpoint>: Move to here from ...
1349 * jit.c (jit_program_space_data): ... here.
1350 (jiter_objfile_data::~jiter_objfile_data): Update.
1351 (jit_breakpoint_deleted): Update.
1352 (jit_breakpoint_re_set_internal): Update.
1353
8c1c720f
SM
13542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1357 checks.
1358 (jit_read_descriptor): Remove NULL check.
1359 (jit_event_handler): Add an assertion.
1360
0e74a041
SM
13612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * jit.h (struct jit_objfile_data): Split into...
1364 (struct jiter_objfile_data): ... this ...
1365 (struct jited_objfile_data): ... and this.
1366 * objfiles.h (struct objfile) <jit_data>: Remove.
1367 <jiter_data, jited_data>: New fields.
1368 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1369 (jiter_objfile_data::~jiter_objfile_data): ... this.
1370 (get_jit_objfile_data): Rename to ...
1371 (get_jiter_objfile_data): ... this.
1372 (add_objfile_entry): Update.
1373 (jit_read_descriptor): Use get_jiter_objfile_data.
1374 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1375 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1376 (jit_inferior_exit_hook): Use objfile's jited_data field.
1377
238b5c9f
SM
13782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * jit.h: Forward-declare `struct minimal_symbol`.
1381 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1382 constructor, destructor, and an objfile* field.
1383 * jit.c (jit_objfile_data): Remove.
1384 (struct jit_objfile_data): Migrate from here to jit.h.
1385 (jit_objfile_data::~jit_objfile_data): New destructor
1386 implementation with code moved from free_objfile_data.
1387 (free_objfile_data): Delete.
1388 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1389 (jit_find_objf_with_entry_addr): Ditto.
1390 (jit_inferior_exit_hook): Ditto.
1391 (_initialize_jit): Remove the call to
1392 register_objfile_data_with_cleanup.
1393 * objfiles.h (struct objfile) <jit_data>: New field.
1394
fe053b9e
TBA
13952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1396
1397 * jit.h: Forward-declare `struct objfile`.
1398 (jit_event_handler): Add a second parameter, the JITer objfile.
1399 * jit.c (jit_read_descriptor): Change the signature to take the
1400 JITer objfile as an argument instead of the jit_program_space_data.
1401 (jit_inferior_init): Update the call to jit_read_descriptor.
1402 (jit_event_handler): Use the new JITer objfile argument when calling
1403 jit_read_descriptor.
1404 * breakpoint.c (handle_jit_event): Update the call to
1405 jit_event_handler to pass the JITer objfile.
1406
4cec0c66
JB
14072020-07-21 John Baldwin <jhb@FreeBSD.org>
1408
1409 * gdbarch.c: Regenerate.
1410 * gdbarch.h: Regenerate.
1411 * gdbarch.sh (handle_segmentation_fault): Remove method.
1412 * infrun.c (handle_segmentation_fault): Remove.
1413 (print_signal_received_reason): Remove call to
1414 handle_segmentation_fault.
1415
0e42f66a
JB
14162020-07-21 John Baldwin <jhb@FreeBSD.org>
1417
1418 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1419 Rename to sparc64_linux_report_signal_info and add siggnal
1420 argument.
1421 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1422 instead of sparc64_linux_handle_segmentation_fault.
1423
77bdfeb2
JB
14242020-07-21 John Baldwin <jhb@FreeBSD.org>
1425
1426 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1427 i386_linux_report_signal_info instead of
1428 i386_linux_handle_segmentation_fault.
1429 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1430 to i386_linux_report_signal_info and add siggnal argument.
1431 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1432 of i386_linux_handle_segmentation_fault.
1433 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1434 to i386_linux_report_signal_info and add siggnal argument.
1435
ad97bfc5
JB
14362020-07-21 John Baldwin <jhb@FreeBSD.org>
1437
1438 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1439 hook if present.
1440
272bb05c
JB
14412020-07-21 John Baldwin <jhb@FreeBSD.org>
1442
1443 * gdbarch.c: Regenerate.
1444 * gdbarch.h: Regenerate.
1445 * gdbarch.sh (report_signal_info): New method.
1446 * infrun.c (print_signal_received_reason): Invoke gdbarch
1447 report_signal_info hook if present.
1448
baf8791e
AB
14492020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * python/py-registers.c : Add 'unordered_map' include.
1452 (gdbpy_new_reggroup): Renamed to...
1453 (gdbpy_get_reggroup): ...this. Update to only create register
1454 group descriptors when needed.
1455 (gdbpy_reggroup_iter_next): Update.
1456
f7306dac
AB
14572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * python/py-registers.c (gdbpy_register_object_data): New static
1460 global.
1461 (gdbpy_register_object_data_init): New function.
1462 (gdbpy_new_register_descriptor): Renamed to...
1463 (gdbpy_get_register_descriptor): ...this, and update to reuse
1464 existing register descriptors where possible.
1465 (gdbpy_register_descriptor_iter_next): Update.
1466 (gdbpy_initialize_registers): Register new gdbarch data.
1467
05c309a8
SM
14682020-07-21 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * linux-nat.c (stopped_pids): Make static.
1471
d1fd641e
SM
14722020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1473
1474 PR ada/26235
1475 * gdbtypes.c (ada_discrete_type_low_bound,
1476 ada_discrete_type_high_bound): Handle undefined bounds.
1477
1de14d77
KR
14782020-07-21 Kamil Rytarowski <n54@gmx.com>
1479
1480 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1481 declaration.
1482 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1483 function.
1484
ed810cc7
JB
14852020-07-20 John Baldwin <jhb@FreeBSD.org>
1486
1487 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1488 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1489 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1490 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1491 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1492 method.
1493
ae5369e7
LC
14942020-07-20 Ludovic Courtès <ludo@gnu.org>
1495
1496 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1497 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1498 which are deprecated in Guile 3.0.
1499 * configure.ac (try_guile_versions): Add "guile-3.0".
1500 * configure (try_guile_versions): Regenerate.
1501 * NEWS: Update entry.
1502
68cf161c
LC
15032020-07-20 Ludovic Courtès <ludo@gnu.org>
1504 Doug Evans <dje@google.com>
1505
1506 PR gdb/21104
1507 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1508 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1509 USING_GUILE_BEFORE_2_2.
1510 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1511 Change type to 'scm_t_port_type *'.
1512 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1513 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1514 parameter and honor it. Update callers.
1515 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1516 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1517 functions.
1518 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1519 USING_GUILE_BEFORE_2_2.
1520 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1521 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1522 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1523 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1524 and 'SCM_PORT_TYPE'.
1525 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1526 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1527 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1528 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1529 [!USING_GUILE_BEFORE_2_2]: New functions.
1530 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1531 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1532 'gdbscm_memory_port_read'.
1533 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1534 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1535 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1536 function.
1537 (ioscm_init_memory_port): Remove.
1538 (ioscm_init_memory_port_stream): New function
1539 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1540 function.
1541 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1542 Return scm_from_uint (0).
1543 (gdbscm_set_memory_port_read_buffer_size_x)
1544 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1545 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1546 Return scm_from_uint (0).
1547 (gdbscm_set_memory_port_write_buffer_size_x)
1548 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1549 * configure.ac (try_guile_versions): Add "guile-2.2".
1550 * configure: Regenerate.
1551 * NEWS: Add entry.
1552
aee91db3
TT
15532020-07-18 Tom Tromey <tom@tromey.com>
1554
1555 * linux-nat.c (linux_multi_process): Remove.
1556 (linux_nat_target::supports_multi_process): Return true.
1557
0e267416
AB
15582020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1561 (riscv_lookup_target_description): Return pointer out of
1562 unique_ptr.
1563 * target-descriptions.c (allocate_target_description): Add
1564 comment.
1565 (target_desc_deleter::operator()): Likewise.
1566 * target-descriptions.h (struct target_desc_deleter): Moved to
1567 gdbsupport/tdesc.h.
1568 (target_desc_up): Likewise.
1569
f80c8ec4
TT
15702020-07-17 Tom Tromey <tromey@adacore.com>
1571
1572 * linux-nat.c (linux_nat_target::supports_non_stop)
1573 (linux_nat_target::always_non_stop_p): Use "true".
1574 (linux_nat_target::supports_disable_randomization): Use "true" and
1575 "false".
1576
d0ce17d8
CT
15772020-07-16 Caroline Tice <cmtice@google.com>
1578
1579 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1580 (RNGLIST_HEADER_SIZE64): New constant definition.
1581 (struct dwop_section_names): Add rnglists_dwo.
1582 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1583 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1584 (struct dwo_sections): Add rnglists field.
1585 (read_attribut_reprocess): Add tag parameter.
1586 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1587 (cu_debug_rnglists_section): New function (decl & definition).
1588 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1589 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1590 die whose range is being checked; get rnglist section from
1591 cu_debug_rnglists_section, to get from either objfile or dwo file as
1592 appropriate. Add cases for DW_RLE_base_addressx,
1593 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1594 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1595 test inside if-condition and updating complaint message.
1596 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1597 dwarf2_rnglists_process.
1598 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1599 dwarf2_ranges_process.
1600 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1601 need_ranges_base and update comment appropriately. Also pass die tag
1602 to dwarf2_ranges_read.
1603 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1604 need_ranges_base and update comment appropriately. Also pass die tag
1605 to dwarf2_ranges_process.
1606 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1607 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1608 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1609 need_ranges_base and update comment appropriately. Also pass die tag
1610 to read_attribute_reprocess and dwarf2_ranges_read.
1611 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1612 and update function comment appropriately.
1613 (read_loclist_index): Call read_loclists_rnglists_header instead of
1614 read_loclist_header.
1615 (read_rnglist_index): New function.
1616 (read_attribute_reprocess): Add tag parameter. Add code for
1617 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1618 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1619
3dcc261c
AB
16202020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1621
1622 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1623 being resolved.
1624
ccb9eba6
AB
16252020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * arch-utils.c (show_architecture): Update formatting of messages.
1628
cf88be68
SM
16292020-07-12 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * gdbtypes.h (struct type) <bounds>: Handle array and string
1632 types.
1633 * ada-lang.c (assign_aggregate): Use type::bounds on
1634 array/string type.
1635 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1636 * c-varobj.c (c_number_of_children): Likewise.
1637 (c_describe_child): Likewise.
1638 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1639 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1640 (f_type_print_base): Likewise.
1641 * f-valprint.c (f77_array_offset_tbl): Likewise.
1642 (f77_get_upperbound): Likewise.
1643 (f77_print_array_1): Likewise.
1644 * guile/scm-type.c (gdbscm_type_range): Likewise.
1645 * m2-typeprint.c (m2_array): Likewise.
1646 (m2_is_long_set_of_type): Likewise.
1647 * m2-valprint.c (get_long_set_bounds): Likewise.
1648 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1649 * python/py-type.c (typy_range): Likewise.
1650 * rust-lang.c (rust_internal_print_type): Likewise.
1651 * type-stack.c (type_stack::follow_types): Likewise.
1652 * valarith.c (value_subscripted_rvalue): Likewise.
1653 * valops.c (value_cast): Likewise.
1654
509971ae
SM
16552020-07-12 Simon Marchi <simon.marchi@efficios.com>
1656
1657 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1658 callers to use the equivalent accessor methods.
1659
107406b7
SM
16602020-07-12 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1663 (struct type) <bit_stride>: New method.
1664 (TYPE_BIT_STRIDE): Remove.
1665 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1666
bb789949
SM
16672020-07-12 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1670 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1671 callers to use the equivalent accessor methods instead.
1672
39498edb
SM
16732020-07-12 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1676 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1677 callers to use the equivalent accessor methods instead.
1678
3b606f38
SM
16792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1682 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1683 to use dynamic_prop::kind.
1684
064d9cb9
SM
16852020-07-12 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1688 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1689 to get the bound property's kind and check against
1690 PROP_UNDEFINED.
1691
5537ddd0
SM
16922020-07-12 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1695 all callers to use type::range_bounds followed by
1696 dynamic_prop::{low,high}.
1697
8c2e4e06
SM
16982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1701 const_val, set_const_val, baton, set_locexpr, set_loclist,
1702 set_addr_offset, variant_parts, set_variant_parts,
1703 original_type, set_original_type>: New methods.
1704 <kind>: Rename to...
1705 <m_kind>: ... this. Update all users to use the new methods
1706 instead.
1707 <data>: Rename to...
1708 <m_data>: ... this. Update all users to use the new methods
1709 instead.
1710
7c6f2712
SM
17112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * gdbtypes.c (get_discrete_bounds): Return failure if
1714 the range type's bounds are not both defined and constant
1715 values.
1716 (get_array_bounds): Update comment. Remove undefined bound check.
1717
599088e3
SM
17182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1721 the type::bounds method directly.
1722
c4dfcb36
SM
17232020-07-12 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1726 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1727 are used to set the range type's bounds to use set_bounds.
1728
0a278aa7
PW
17292020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1730
1731 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1732
cce20f10
PA
17332020-07-10 Pedro Alves <pedro@palves.net>
1734
1735 * gdbthread.h (inferior_ref): Define.
1736 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1737 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1738 * thread.c
1739 (scoped_restore_current_thread::restore):
1740 Adjust to gdb::ref_ptr.
1741 (scoped_restore_current_thread::~scoped_restore_current_thread):
1742 Remove manual decref handling.
1743 (scoped_restore_current_thread::scoped_restore_current_thread):
1744 Adjust to use
1745 inferior_ref::new_reference/thread_info_ref::new_reference.
1746 Incref the thread before calling get_frame_id instead of after.
1747 Let TARGET_CLOSE_ERROR propagate.
1748
6d7aa592
PA
17492020-07-10 Pedro Alves <pedro@palves.net>
1750
1751 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1752 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1753 NOT_AVAILABLE_ERROR.
1754 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1755 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1756
b3e3a4c1
SM
17572020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1758 Pedro Alves <pedro@palves.net>
1759
1760 PR gdb/26199
1761 * infrun.c (threads_are_resumed_pending_p): Delete.
1762 (do_target_wait): Remove threads_are_executing and
1763 threads_are_resumed_pending_p checks from the inferior_matches
1764 lambda. Update comments.
1765
d6cc5d98
PA
17662020-07-10 Pedro Alves <pedro@palves.net>
1767
1768 PR gdb/26199
1769 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1770 executing threads.
1771
7d3badc6
PA
17722020-07-10 Pedro Alves <pedro@palves.net>
1773
1774 PR gdb/26199
1775 * infrun.c (handle_no_resumed): Handle multiple targets.
1776
42bd97a6
PA
17772020-07-10 Pedro Alves <pedro@palves.net>
1778
1779 PR gdb/26199
1780 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1781 target_is_async_p.
1782
43667cc6
PA
17832020-07-10 Pedro Alves <pedro@palves.net>
1784
1785 PR gdb/26199
1786 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1787 threads, not all threads.
1788
96118d11
PA
17892020-07-10 Pedro Alves <pedro@palves.net>
1790
1791 PR gdb/26199
1792 * remote.c (remote_target::open_1): Pass remote target pointer as
1793 data to create_async_event_handler.
1794 (remote_async_inferior_event_handler): Mark async event handler
1795 before returning if the remote target still has either pending
1796 events or unacknowledged notifications.
1797
54904d81
JB
17982020-07-10 John Baldwin <jhb@FreeBSD.org>
1799
1800 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1801 declaration.
1802 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1803 function.
1804
f37e5866
JB
18052020-07-09 John Baldwin <jhb@FreeBSD.org>
1806
1807 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1808 inferior_ptid.
1809
fc238d4a
JB
18102020-07-09 John Baldwin <jhb@FreeBSD.org>
1811
1812 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1813 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1814 AT_FREEBSD_PS_STRINGS.
1815
6e2469ff
HD
18162020-07-08 Hannes Domani <ssbssa@yahoo.de>
1817
1818 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1819 of debugfile path on Windows.
1820
d1076c41
JB
18212020-07-08 John Baldwin <jhb@FreeBSD.org>
1822
1823 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1824 argument to 'data'.
1825
15f3b077
TT
18262020-07-08 Tom Tromey <tromey@adacore.com>
1827
1828 * ada-lang.c (ada_exception_message_1): Use read_memory.
1829
9fc501fd
AB
18302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 PR python/22748
1833 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1834 special handling for inline frames.
1835 * findvar.c (value_of_register_lazy): Skip inline frames when
1836 creating lazy register values.
1837 * frame.c (frame_id_computed_p): Delete definition.
1838 * frame.h (frame_id_computed_p): Delete declaration.
1839
64cb3757
AB
18402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * NEWS: Mention additions to Python API.
1843 * python/py-arch.c (archpy_register_groups): New function.
1844 (arch_object_methods): Add 'register_groups' method.
1845 * python/py-registers.c (reggroup_iterator_object): New struct.
1846 (reggroup_object): New struct.
1847 (gdbpy_new_reggroup): New function.
1848 (gdbpy_reggroup_to_string): New function.
1849 (gdbpy_reggroup_name): New function.
1850 (gdbpy_reggroup_iter): New function.
1851 (gdbpy_reggroup_iter_next): New function.
1852 (gdbpy_new_reggroup_iterator): New function
1853 (gdbpy_initialize_registers): Register new types.
1854 (reggroup_iterator_object_type): Define new Python type.
1855 (gdbpy_reggroup_getset): New static global.
1856 (reggroup_object_type): Define new Python type.
1857 * python/python-internal.h
1858
0f767f94
AB
18592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1862 * python/py-arch.c (archpy_registers): New function.
1863 (arch_object_methods): Add 'registers' method.
1864 * python/py-registers.c: New file.
1865 * python/python-internal.h
1866 (gdbpy_new_register_descriptor_iterator): Declare.
1867 (gdbpy_initialize_registers): Declare.
1868 * python/python.c (do_start_initialization): Call
1869 gdbpy_initialize_registers.
1870 * NEWS: Mention additions to the Python API.
1871
87dbc774
AB
18722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * NEWS: Mention new Python API method.
1875 * python/py-unwind.c (pending_framepy_architecture): New function.
1876 (pending_frame_object_methods): Add architecture method.
1877
3bc98c0c
AB
18782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * gdbarch.c: Regenerate.
1881 * gdbarch.h: Regenerate.
1882 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1883 (gdbarch_data): Use internal_error for the case where
1884 deprecated_set_gdbarch_data was originally needed.
1885 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1886 and use passed in obstack.
1887 (libunwind_frame_set_descr): Should no longer get back NULL from
1888 gdbarch_data.
1889 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1890 type.
1891 * user-regs.c (user_regs_init): Update parameters, and use passed
1892 in obstack.
1893 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1894 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1895
d8cc8af6
TV
18962020-07-06 Tom de Vries <tdevries@suse.de>
1897
1898 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1899 End-Of-Sequence in lte_is_less_than.
1900 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1901 "gdb: Don't reorder line table entries too much when sorting".
1902
947f7597
TV
19032020-07-06 Tom de Vries <tdevries@suse.de>
1904
1905 PR tui/26205
1906 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1907
1e7c1b22
TV
19082020-07-05 Tom de Vries <tdevries@suse.de>
1909
1910 PR build/26187
1911 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1912 std::uncaught_exceptions instead of deprecated
1913 std::uncaught_exception.
1914
a36158ec
SM
19152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * macroexp.h (macro_stringify): Return
1918 gdb::unique_xmalloc_ptr<char>.
1919 * macroexp.c (macro_stringify): Likewise.
1920 * macrotab.c (fixup_definition): Update.
1921
14d960c8
SM
19222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1925 (lex_one_token): Update.
1926 * macroexp.c (struct macro_buffer) <release>: Return
1927 gdb::unique_xmalloc_ptr<char>.
1928 (macro_stringify): Update.
1929 (macro_expand): Update.
1930 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1931 * macroexp.h (macro_expand_next): Likewise.
1932
211d5b1c
SM
19332020-07-02 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * macroexp.h (macro_lookup_ftype): Remove.
1936 (macro_expand, macro_expand_once, macro_expand_next): Remove
1937 lookup function parameters, add scope parameter.
1938 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1939 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1940 * macroscope.h (standard_macro_lookup): Change parameter type
1941 to macro_scope.
1942 * macroscope.c (standard_macro_lookup): Likewise.
1943 * c-exp.y (lex_one_token): Update.
1944 * macrocmd.c (macro_expand_command): Likewise.
1945 (macro_expand_once_command): Likewise.
1946
b1a35af2
SM
19472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * inf-loop.c (inferior_event_handler): Remove client_data param.
1950 * inf-loop.h (inferior_event_handler): Likewise.
1951 * infcmd.c (step_1): Adjust.
1952 * infrun.c (proceed): Adjust.
1953 (fetch_inferior_event): Remove client_data param.
1954 (infrun_async_inferior_event_handler): Adjust.
1955 * infrun.h (fetch_inferior_event): Remove `void *` param.
1956 * linux-nat.c (handle_target_event): Adjust.
1957 * record-btrace.c (record_btrace_handle_async_inferior_event):
1958 Adjust.
1959 * record-full.c (record_full_async_inferior_event_handler):
1960 Adjust.
1961 * remote.c (remote_async_inferior_event_handler): Adjust.
1962
1cdf9e33
TT
19632020-07-01 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1966 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1967
32c1e210
TT
19682020-07-01 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1971 tui_gen_win_info.
1972 (tui_win_info::make_window): Merge with
1973 tui_gen_win_info::make_window.
1974 (tui_win_info::make_visible): Move from tui_gen_win_info.
1975 * tui/tui-win.c (tui_win_info::max_width): Move from
1976 tui_gen_win_info.
1977 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1978 type.
1979 <window_factory>: Likewise.
1980 * tui/tui-layout.c (tui_win_info::resize): Move from
1981 tui_gen_win_info.
1982 (make_standard_window): Change return type.
1983 (get_locator_window, tui_get_window_by_name): Likewise.
1984 (tui_layout_window::apply): Remove a cast.
1985 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1986 (struct tui_win_info): Merge with tui_gen_win_info.
1987 (struct tui_gen_win_info): Remove.
1988
a30cb6da
TT
19892020-07-01 Tom Tromey <tom@tromey.com>
1990
1991 * tui/tui-stack.h (struct tui_locator_window): Derive from
1992 tui_win_info.
1993 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1994 <can_box>: New method.
1995
1eb2161f
TT
19962020-07-01 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1999
7134f2eb
TT
20002020-07-01 Tom Tromey <tom@tromey.com>
2001
2002 * tui/tui-regs.c (tui_data_window::display_registers_from)
2003 (tui_data_window::display_registers_from)
2004 (tui_data_window::first_data_item_displayed)
2005 (tui_data_window::delete_data_content_windows): Update.
2006 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2007 Remove.
2008 (tui_data_window::check_register_values): Update.
2009 (tui_data_item_window::rerender): Add parameters. Update.
2010 (tui_data_item_window::refresh_window): Remove.
2011 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2012 virtual.
2013 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2014 tui_gen_win_info.
2015 <refresh_window, max_height, min_height>: Remove.
2016 <rerender>: Add parameters.
2017 <x, y, visible>: New members.
2018 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2019 <m_item_width>: New member.
2020
22b7b041
TT
20212020-07-01 Tom Tromey <tom@tromey.com>
2022
2023 * tui/tui-regs.c (tui_data_window::show_register_group)
2024 (tui_data_window::check_register_values): Update.
2025 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2026 from item_no.
2027
c9753adb
TT
20282020-07-01 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2031 useless "if".
2032
9ab26b4a
TT
20332020-07-01 Tom Tromey <tom@tromey.com>
2034
2035 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2036 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2037
e555083f
TT
20382020-07-01 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2041 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2042 (struct tui_line_or_address): Move from tui-data.h.
2043 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2044 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2045 (tui_cmd_window, tui_source_window_base, tui_source_window)
2046 (tui_disasm_window): Don't declare.
2047 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2048 to tui-winsource.h.
2049 (SINGLE_KEY): Move to tui-stack.c.
2050
7a02bab7
TT
20512020-07-01 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2054 std::string.
2055 * tui/tui-regs.c (class tab_expansion_file): New.
2056 (tab_expansion_file::write): New method.
2057 (tui_register_format): Change return type. Use
2058 tab_expansion_file.
2059 (tui_get_register, tui_data_window::display_registers_from)
2060 (tui_data_item_window::rerender): Update.
2061 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2062 * tui/tui-io.c (tui_expand_tabs): Remove.
2063
ea68593b
TT
20642020-07-01 Tom Tromey <tom@tromey.com>
2065
2066 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2067
a8caed5d
FS
20682020-07-01 Fangrui Song <maskray@google.com>
2069
2070 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2071
9cdf9820
AKS
20722020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2073
2074 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2075 forms for DW_AT_associated and DW_AT_allocated attributes,
2076 which is already checked in function attr_to_dynamic_prop.
2077
a1520ad8
TT
20782020-06-30 Tom Tromey <tromey@adacore.com>
2079
2080 * dwarf2/read.c (quirk_rust_enum): Correctly call
2081 alloc_rust_variant for default-less enum.
2082
5ac58899
TT
20832020-06-30 Tom Tromey <tromey@adacore.com>
2084
2085 PR build/26183:
2086 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2087 gdb::to_string.
2088
19b187a9
SM
20892020-06-29 Simon Marchi <simon.marchi@efficios.com>
2090
2091 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2092 * gdbarch.h: Re-generate.
2093
cd4c4c07
TT
20942020-06-28 Tom Tromey <tom@tromey.com>
2095
2096 * command.h (cmd_types): Remove.
2097 (cmd_type): Don't declare.
2098 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2099 typedef.
2100 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2101 * cli/cli-decode.c (cmd_type): Remove.
2102
05779d57
PA
21032020-06-27 Pedro Alves <palves@redhat.com>
2104
2105 * fork-child.c (prefork_hook): Adjust.
2106 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2107 Delete.
2108 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2109 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2110 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2111 Remove declarations.
2112 (struct inferior) <set_tty, tty>: New methods.
2113 (struct inferior) <terminal>: Rename to ...
2114 (struct inferior) <m_terminal>: ... this and make private.
2115 * main.c (captured_main_1): Adjust.
2116 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2117 (mi_cmd_inferior_tty_show): Adjust.
2118 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2119 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2120
1776e3e5
NA
21212020-06-26 Nick Alcock <nick.alcock@oracle.com>
2122
2123 * configure.ac: Add --enable-libctf: handle --disable-static
2124 properly.
2125 * acinclude.m4: sinclude ../config/enable.m4.
2126 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2127 (LIBCTF): Substitute in.
2128 (CTF_DEPS): New, likewise.
2129 (CLIBS): libctf needs symbols from libbfd: move earlier.
2130 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2131 flags.
2132 * ctfread.c: Surround in ENABLE_LIBCTF.
2133 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2134 * configure: Regenerate.
2135 * config.in: Likewise.
2136
58373b80
SM
21372020-06-25 Simon Marchi <simon.marchi@efficios.com>
2138
2139 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2140
277474ee
SM
21412020-06-25 Simon Marchi <simon.marchi@efficios.com>
2142
2143 * inferior.h (struct inferior) <terminal>: Change type to
2144 gdb::unique_xmalloc_ptr<char>.
2145 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2146 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2147 field, adjust to unique pointer.
2148 (get_inferior_io_terminal): Adjust to unique pointer.
2149
6d74da72
AB
21502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2153 registers, not just the known core set of registers.
2154
2e52d038
AB
21552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2156
2157 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2158 fflags, frm, and fcsr registers.
2159 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2160 restore groups.
2161 (riscv_tdesc_unknown_reg): New function.
2162 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2163 tdesc_use_registers.
2164 * riscv-tdep.h (struct gdbarch_tdep): Add
2165 unknown_csrs_first_regnum, unknown_csrs_count,
2166 duplicate_fflags_regnum, duplicate_frm_regnum, and
2167 duplicate_fcsr_regnum fields.
2168
be64fd07
AB
21692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2172 callback, use the callback (when not null) to help number unknown
2173 registers.
2174 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2175 (tdesc_use_registers): Add extra parameter to declaration.
2176
3b9fce96
AB
21772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2180 in the file.
2181 (class riscv_pending_register_alias): Likewise.
2182 (riscv_register_feature::register_info): Change 'required_p' field
2183 to 'required', and change its type. Add 'check' member function.
2184 (riscv_register_feature::register_info::check): Define new member
2185 function.
2186 (riscv_xreg_feature): Change initialisation of 'required' field.
2187 (riscv_freg_feature): Likewise.
2188 (riscv_virtual_feature): Likewise.
2189 (riscv_csr_feature): Likewise.
2190 (riscv_check_tdesc_feature): Take extra parameter, the csr
2191 tdesc_feature, rewrite the function to use the new
2192 riscv_register_feature::register_info::check function.
2193 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2194
865bad26
AB
21952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * features/Makefile: Remove all references to the deleted files
2198 below.
2199 * features/riscv/32bit-csr.c: Deleted.
2200 * features/riscv/32bit-csr.xml: Deleted.
2201 * features/riscv/64bit-csr.c: Deleted.
2202 * features/riscv/64bit-csr.xml: Deleted.
2203 * features/riscv/rebuild-csr-xml.sh: Deleted.
2204
ed69cbc8
AB
22052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2208 whitespace error for declaration of names member variable.
2209 (struct riscv_register_feature): Add new prefer_first_name member
2210 variable, and fix whitespace error in declaration of registers.
2211 (riscv_xreg_feature): Initialize prefer_first_name field.
2212 (riscv_freg_feature): Likewise.
2213 (riscv_virtual_feature): Likewise.
2214 (riscv_csr_feature): Likewise.
2215 (riscv_register_name): Expand on comments. Remove register name
2216 modifications for CSR and virtual registers.
2217
4445e8f5
AB
22182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2221 errors.
2222
767a879e
AB
22232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2226 riscv-opc.h.
2227 (class riscv_pending_register_alias): New class.
2228 (riscv_check_tdesc_feature): Take vector of pending aliases and
2229 populate it as appropriate.
2230 (riscv_setup_register_aliases): Delete.
2231 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2232 to riscv_check_tdesc_feature in all cases. Use the vector to
2233 create the register aliases.
2234
bb6e55f3
RO
22352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2236
2237 * sol2-tdep.c (sol2_static_transform_name): Remove.
2238 (sol2_init_abi): Don't register it.
2239 * gdbarch.sh (static_transform_name): Remove.
2240 * gdbarch.c, gdbarch.h: Regenerate.
2241
2242 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2243 gdbarch_static_transform_name.
2244 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2245 * stabsread.c (define_symbol) <'X'>: Remove.
2246 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2247 handling.
2248 <'V'>: Likewise.
2249 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2250 <'S'>: Remove call to gdbarch_static_transform_name.
2251
c6d36836
RO
22522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2253
2254 * procfs.c (procfs_pre_trace): New function.
2255 (procfs_target::create_inferior): Pass it to fork_inferior.
2256
a7e6196b
RO
22572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2258
2259 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2260 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2261 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2262 sol2-tdep.o, sparc-sol2-tdep.o.
2263 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2264 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2265 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2266 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2267
d412e696
RO
22682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2269
2270 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2271 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2272 Call sol2_init_abi.
2273 Remove calls to set_gdbarch_skip_solib_resolver,
2274 set_gdbarch_core_pid_to_str.
2275 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2276 (i386_sol2_static_transform_name): Remove.
2277 (i386_sol2_init_abi): Call sol2_init_abi.
2278 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2279 set_gdbarch_static_transform_name,
2280 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2281 Use sol2_sigtramp_p.
2282 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2283 (sol2_sigtramp_p): New function.
2284 (sol2_static_transform_name): New function.
2285 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2286 (sol2_init_abi): New function.
2287 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2288 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2289 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2290 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2291 (sparc_sol2_static_transform_name): Remove.
2292 (sparc32_sol2_init_abi): Call sol2_init_abi.
2293 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2294 set_gdbarch_static_transform_name,
2295 set_gdbarch_skip_solib_resolver,
2296 set_gdbarch_core_pid_to_str.
2297 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2298 (sparc_sol2_static_transform_name): Remove
2299 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2300 call sol2_sigtramp_p.
2301 (sparc64_sol2_init_abi): Call sol2_init_abi.
2302 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2303 set_gdbarch_static_transform_name,
2304 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2305
a8654e7d
PW
23062020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2307
2308 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2309 * exec.c (validate_exec_file): If from_tty, set both
2310 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2311 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2312 and from_tty, unconditionally ask a confirmation.
2313
caa7fd04
AB
23142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * target-descriptions.c (tdesc_architecture_name): Protect against
2317 NULL pointer dereference.
2318 (maint_print_xml_tdesc_cmd): New function.
2319 (_initialize_target_descriptions): Register new 'maint print
2320 xml-tdesc' command and give it the filename completer.
2321 * NEWS: Mention new 'maint print xml-tdesc' command.
2322
fbf42f4e
AB
23232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * target-descriptions.c (class tdesc_compatible_info): New class.
2326 (struct target_desc): Change type of compatible vector.
2327 (tdesc_compatible_p): Update for change in type of
2328 target_desc::compatible.
2329 (tdesc_compatible_info_list): New function.
2330 (tdesc_compatible_info_arch_name): New function.
2331 (tdesc_add_compatible): Update for change in type of
2332 target_desc::compatible.
2333 (print_c_tdesc::visit_pre): Likewise.
2334
20821f4e
AB
23352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2338 whitespace to underscore.
2339 (maint_print_c_tdesc_cmd): Use fake filename for target
2340 descriptions that came from the target.
2341 (_initialize_target_descriptions): Add filename command completion
2342 for 'maint print c-tdesc'.
2343
1fb5ee62
SM
23442020-06-23 Simon Marchi <simon.marchi@efficios.com>
2345
2346 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2347 lines.
2348
fc3ecb3e
SM
23492020-06-23 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2352 lines.
2353 (dwarf2_find_location_expression): Likewise.
2354 (call_site_parameter_matches): Likewise.
2355 (dwarf2_compile_expr_to_ax): Likewise.
2356 (disassemble_dwarf_expression): Likewise.
2357 (loclist_describe_location): Likewise.
2358
236ef034
PA
23592020-06-23 Pedro Alves <palves@redhat.com>
2360
2361 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2362 progspace-and-thread.h. Include scoped-mock-context.h instead.
2363 (register_to_value_test): Use scoped_mock_context.
2364 * regcache.c: Include "scoped-mock-context.h".
2365 (cooked_read_test): Don't error out if a target is already pushed.
2366 Use scoped_mock_context. Adjust.
2367 * scoped-mock-context.h: New file.
2368
39e7ecca
AB
23692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2372 initializer.
2373 (ada_language::is_string_type_p): New member function.
2374 * c-lang.c (c_language_data): Delete la_is_string_type_p
2375 initializer.
2376 (cplus_language_data): Likewise.
2377 (asm_language_data): Likewise.
2378 (minimal_language_data): Likewise.
2379 * d-lang.c (d_language_data): Likewise.
2380 * f-lang.c (f_is_string_type_p): Delete function, implementation
2381 moved to f_language::is_string_type_p.
2382 (f_language_data): Delete la_is_string_type_p initializer.
2383 (f_language::is_string_type_p): New member function,
2384 implementation from f_is_string_type_p.
2385 * go-lang.c (go_is_string_type_p): Delete function, implementation
2386 moved to go_language::is_string_type_p.
2387 (go_language_data): Delete la_is_string_type_p initializer.
2388 (go_language::is_string_type_p): New member function,
2389 implementation from go_is_string_type_p.
2390 * language.c (language_defn::is_string_type_p): Define new member
2391 function.
2392 (default_is_string_type_p): Make static, add comment copied from
2393 header file.
2394 (unknown_language_data): Delete la_is_string_type_p initializer.
2395 (unknown_language::is_string_type_p): New member function.
2396 (auto_language_data): Delete la_is_string_type_p initializer.
2397 (auto_language::is_string_type_p): New member function.
2398 * language.h (language_data): Delete la_is_string_type_p field.
2399 (language_defn::is_string_type_p): Declare new function.
2400 (default_is_string_type_p): Delete desclaration, move comment to
2401 definition.
2402 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2403 moved to m2_language::is_string_type_p.
2404 (m2_language_data): Delete la_is_string_type_p initializer.
2405 (m2_language::is_string_type_p): New member function,
2406 implementation from m2_is_string_type_p.
2407 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2408 initializer.
2409 * opencl-lang.c (opencl_language_data): Likewise.
2410 * p-lang.c (pascal_is_string_type_p): Delete function,
2411 implementation moved to pascal_language::is_string_type_p.
2412 (pascal_language_data): Delete la_is_string_type_p initializer.
2413 (pascal_language::is_string_type_p): New member function,
2414 implementation from pascal_is_string_type_p.
2415 * rust-lang.c (rust_is_string_type_p): Delete function,
2416 implementation moved to rust_language::is_string_type_p.
2417 (rust_language_data): Delete la_is_string_type_p initializer.
2418 (rust_language::is_string_type_p): New member function,
2419 implementation from rust_is_string_type_p.
2420 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2421 is_string_type_p.
2422
4ffc13fb
AB
24232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * ada-lang.c (ada_language_data): Delete la_print_typedef
2426 initializer.
2427 (ada_language::print_typedef): New member function.
2428 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2429 (cplus_language_data): Likewise.
2430 (asm_language_data): Likewise.
2431 (minimal_language_data): Likewise.
2432 * d-lang.c (d_language_data): Likewise.
2433 * f-lang.c (f_language_data): Likewise.
2434 (f_language::print_typedef): New member function.
2435 * go-lang.c (go_language_data): Delete la_print_typedef
2436 initializer.
2437 * language.c (language_defn::print_typedef): Define member
2438 function.
2439 (unknown_language_data): Delete la_print_typedef initializer.
2440 (unknown_language::print_typedef): New member function.
2441 (auto_language_data): Delete la_print_typedef initializer.
2442 (auto_language::print_typedef): New member function.
2443 * language.h (language_data): Delete la_print_typedef field.
2444 (language_defn::print_typedef): Declare new member function.
2445 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2446 (default_print_typedef): Delete declaration.
2447 * m2-lang.c (m2_language_data): Delete la_print_typedef
2448 initializer.
2449 (m2_language::print_typedef): New member function.
2450 * objc-lang.c (objc_language_data): Delete la_print_typedef
2451 initializer.
2452 * opencl-lang.c (opencl_language_data): Likewise.
2453 * p-lang.c (pascal_language_data): Likewise.
2454 (pascal_language::print_typedef): New member function.
2455 * rust-lang.c (rust_print_typedef): Delete function,
2456 implementation moved to rust_language::print_typedef.
2457 (rust_language): Delete la_print_typedef initializer.
2458 (rust_language::print_typedef): New member function,
2459 implementation from rust_print_typedef.
2460 * typeprint.c (default_print_typedef): Delete.
2461
d711ee67
AB
24622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2465 (ada_language::printstr): New member function.
2466 * c-lang.c (c_language_data): Delete la_printstr initializer.
2467 (cplus_language_data): Likewise.
2468 (asm_language_data): Likewise.
2469 (minimal_language_data): Likewise.
2470 * d-lang.c (d_language_data): Likewise.
2471 * f-lang.c (f_printstr): Rename to f_language::printstr.
2472 (f_language_data): Delete la_printstr initializer.
2473 (f_language::printstr): New member function, implementation from
2474 f_printstr.
2475 * go-lang.c (go_language_data): Delete la_printstr initializer.
2476 * language.c (language_defn::printstr): Define new member
2477 function.
2478 (unk_lang_printstr): Delete.
2479 (unknown_language_data): Delete la_printstr initializer.
2480 (unknown_language::printstr): New member function.
2481 (auto_language_data): Delete la_printstr initializer.
2482 (auto_language::printstr): New member function.
2483 * language.h (language_data): Delete la_printstr field.
2484 (language_defn::printstr): Declare new member function.
2485 (LA_PRINT_STRING): Update call to printstr.
2486 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2487 (m2_language_data): Delete la_printstr initializer.
2488 (m2_language::printstr): New member function, implementation from
2489 m2_printstr.
2490 * objc-lang.c (objc_language_data): Delete la_printstr
2491 initializer.
2492 * opencl-lang.c (opencl_language_data): Likewise.
2493 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2494 (pascal_language_data): Delete la_printstr initializer.
2495 (pascal_language::printstr): New member function, implementation
2496 from pascal_printstr.
2497 * p-lang.h (pascal_printstr): Delete declaration.
2498 * rust-lang.c (rust_printstr): Update header comment.
2499 (rust_language_data): Delete la_printstr initializer.
2500 (rust_language::printstr): New member function.
2501
52b50f2c
AB
25022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2505 (ada_language::printchar): New member function.
2506 * c-lang.c (c_language_data): Delete la_printchar initializer.
2507 (cplus_language_data): Likewise.
2508 (asm_language_data): Likewise.
2509 (minimal_language_data): Likewise.
2510 * d-lang.c (d_language_data): Likewise.
2511 * f-lang.c (f_printchar): Rename to f_language::printchar.
2512 (f_language_data): Delete la_printchar initializer.
2513 (f_language::printchar): New member function, implementation from
2514 f_printchar.
2515 * go-lang.c (go_language_data): Delete la_printchar initializer.
2516 * language.c (unk_lang_printchar): Delete.
2517 (language_defn::printchar): Define new member function.
2518 (unknown_language_data): Delete la_printchar initializer.
2519 (unknown_language::printchar): New member function.
2520 (auto_language_data): Delete la_printchar initializer.
2521 (auto_language::printchar): New member function.
2522 * language.h (language_data): Delete la_printchar field.
2523 (language_defn::printchar): Declare new member function.
2524 (LA_PRINT_CHAR): Update call to printchar.
2525 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2526 (m2_language::printchar): New member function.
2527 * objc-lang.c (objc_language_data): Delete la_printchar
2528 initializer.
2529 * opencl-lang.c (opencl_language_data): Likewise.
2530 * p-lang.c (pascal_language_data): Delete la_printchar
2531 initializer.
2532 (pascal_language::printchar): New member function.
2533 * rust-lang.c (rust_printchar): Rename to
2534 rust_language::printchar.
2535 (rust_language_data): Delete la_printchar initializer.
2536 (rust_language::printchar): New member function, implementation
2537 from rust_printchar.
2538
ec8cec5b
AB
25392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2542 (ada_language_data): Delete la_emitchar initializer.
2543 (ada_language::emitchar): New member function, implementation from
2544 emit_char.
2545 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2546 (cplus_language_data): Likewise.
2547 (asm_language_data): Likewise.
2548 (minimal_language_data): Likewise.
2549 * d-lang.c (d_language_data): Likewise.
2550 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2551 (f_language_data): Delete la_emitchar initializer.
2552 (f_language::emitchar): New member function, implementation from
2553 f_emit_char.
2554 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2555 * language.c (unk_lang_emit_char): Delete.
2556 (language_defn::emitchar): New member function definition.
2557 (unknown_language_data): Delete la_emitchar initializer.
2558 (unknown_language::emitchar): New member function.
2559 (auto_language_data): Delete la_emitchar initializer.
2560 (auto_language::emitchar): New member function.
2561 * language.h (language_data): Delete la_emitchar field.
2562 (language_defn::emitchar): New member field declaration.
2563 (LA_EMIT_CHAR): Update call to emitchar.
2564 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2565 (m2_language_data): Delete la_emitchar initializer.
2566 (m2_language::emitchar): New member function, implementation from
2567 m2_emit_char.
2568 * objc-lang.c (objc_language_data): Delete la_emitchar
2569 initializer.
2570 * opencl-lang.c (opencl_language_data): Likewise.
2571 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2572 (pascal_language_data): Delete la_emitchar initializer.
2573 (pascal_language::emitchar): New member function, implementation
2574 from pascal_emit_char.
2575 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2576 (rust_language_data): Delete la_emitchar initializer.
2577 (rust_language::emitchar): New member function, implementation
2578 from rust_emitchar.
2579
1bf9c363
AB
25802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2583 (ada_language_data): Delete la_post_parser initializer.
2584 (ada_language::post_parser): New member function.
2585 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2586 (cplus_language_data): Likewise.
2587 (asm_language_data): Likewise.
2588 (minimal_language_data): Likewise.
2589 * d-lang.c (d_language_data): Likewise.
2590 * f-lang.c (f_language_data): Likewise.
2591 * go-lang.c (go_language_data): Likewise.
2592 * language.c (unknown_language_data): Likewise.
2593 (auto_language_data): Likewise.
2594 * language.h (language_data): Delete la_post_parser field.
2595 (language_defn::post_parser): New member function.
2596 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2597 * objc-lang.c (objc_language_data): Likewise.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_language_data): Likewise.
2600 * parse.c (parse_exp_in_context): Update call to post_parser.
2601 (null_post_parser): Delete definition.
2602 * parser-defs.h (null_post_parser): Delete declaration.
2603 * rust-lang.c (rust_language_data): Delete la_post_parser
2604 initializer.
2605
87afa652
AB
26062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * ada-lang.c (parse): Rename to ada_language::parser.
2609 (ada_language_data): Delete la_parser initializer.
2610 (ada_language::parser): New member function, implementation from
2611 parse.
2612 * c-lang.c (c_language_data): Delete la_parser initializer.
2613 (cplus_language_data): Likewise.
2614 (asm_language_data): Likewise.
2615 (minimal_language_data): Likewise.
2616 * d-lang.c (d_language_data): Likewise.
2617 (d_language::parser): New member function.
2618 * f-lang.c (f_language_data): Delete la_parser initializer.
2619 (f_language::parser): New member function.
2620 * go-lang.c (go_language_data): Delete la_parser initializer.
2621 (go_language::parser): New member function.
2622 * language.c (unk_lang_parser): Delete.
2623 (language_defn::parser): Define new member function.
2624 (unknown_language_data): Delete la_parser initializer.
2625 (unknown_language::parser): New member function.
2626 (auto_language_data): Delete la_parser initializer.
2627 (auto_language::parser): New member function.
2628 * language.h (language_data): Delete la_parser field.
2629 (language_defn::parser): Declare new member function.
2630 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2631 (m2_language::parser): New member function.
2632 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 (pascal_language::parser): New member function.
2636 * parse.c (parse_exp_in_context): Update call to parser.
2637 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2638 (rust_language::parser): New member function.
2639
37825800
AB
26402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * top.c (print_gdb_configuration): Print --with-python-libdir
2643 configuration value.
2644
5b860c93
PW
26452020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2646
2647 * NEWS: Mention change to the alias command.
2648
cf00cd6f
PW
26492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2650
2651 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2652 (alias_command_completer)
2653 (make_alias_options_def_group): New functions.
2654 (alias_opts, alias_option_defs): New struct and array.
2655 (alias_usage_error): Update usage.
2656 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2657 Use option framework.
2658 (_initialize_cli_cmds): Update alias command help.
2659 Update aliases command help.
2660 (show_user):
2661 Add NULL for new default_args lookup_cmd argument.
2662 (valid_command_p): Rename to validate_aliased_command.
2663 Add NULL for new default_args lookup_cmd argument. Verify that the
2664 aliased_command has no default args.
2665 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2666 (lookup_cmd_1, lookup_cmd): New argument default_args.
2667 (add_alias_cmd):
2668 Add NULL for new default_args lookup_cmd argument.
2669 (print_help_for_command): Show default args under the layout
2670 alias some_alias = some_aliased_cmd some_alias_default_arg.
2671 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2672 xfree default_args in destructor.
2673 * cli/cli-script.c (process_next_line, do_define_command):
2674 Add NULL for new default_args lookup_cmd argument.
2675 * command.h: Declare new default_args argument in lookup_cmd
2676 and lookup_cmd_1.
2677 * completer.c (complete_line_internal_1):
2678 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2679 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2680 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2681 Likewise.
2682 * infcmd.c (_initialize_infcmd): Likewise.
2683 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2684 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2685 * python/py-param.c (add_setshow_generic): Likewise.
2686 * remote.c (_initialize_remote): Likewise.
2687 * top.c (execute_command): Prepend default_args if command has some.
2688 (set_verbose):
2689 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2690 * tracepoint.c (validate_actionline, encode_actions_1):
2691 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2692
bd920864
TBA
26932020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694
2695 * jit.c (jit_read_descriptor): Use bool as the return type.
2696 (jit_breakpoint_re_set_internal): Use bool as the return type.
2697 Invert the return value logic; return true if the jit breakpoint
2698 has been successfully initialized.
2699 (jit_inferior_init): Update the call to
2700 jit_breakpoint_re_set_internal.
2701
f8098322
PA
27022020-06-22 Pedro Alves <palves@redhat.com>
2703
2704 PR gdb/25939
2705 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2706 Use the current inferior instead. Don't return
2707 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2708 wait again.
2709 * sol-thread.c (sol_thread_target::wait): Don't reference
2710 inferior_ptid.
2711 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2712 (sol_update_thread_list_callback): Use the current inferior's pid
2713 instead of inferior_ptid.
2714
196535a6
RO
27152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2716
2717 * procfs.c: Cleanup many comments.
2718
2719 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2720 (AFTER_WATCHFLAG): Replace by value.
2721
2722 (MAIN_PROC_NAME_FORMAT): Inline ...
2723 (create_procinfo): ... here.
2724
2725 (procfs_debug_inferior): Remove SYS_exec handling.
2726 (syscall_is_exec): Likewise.
2727 (procfs_set_exec_trap): Likewise.
2728
2729 (syscall_is_lwp_exit): Inline in callers.
2730 (syscall_is_exit): Likewise.
2731 (syscall_is_exec): Likewise.
2732 (syscall_is_lwp_create): Likewise.
2733
2734 (invalidate_cache): Remove #if 0 code.
2735
2736 (make_signal_thread_runnable): Remove.
2737 (procfs_target::resume): Remove #if 0 code.
2738
cf6f3e86
RO
27392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2740
2741 PR gdb/25939
2742 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2743 call ...
2744 (procfs_target::create_inferior): ... here.
2745
48e9cc84
PW
27462020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2747
2748 * exec.c (validate_exec_file): Ensure the build-id is up to
2749 date by calling reopen_exec_file (that checks file timestamp
2750 to decide to re-read the file).
2751
3922b302
PA
27522020-06-18 Pedro Alves <palves@redhat.com>
2753
2754 PR gdb/25412
2755 * gdbthread.h (delete_thread, delete_thread_silent)
2756 (find_thread_ptid): Update comments.
2757 * thread.c (current_thread_): New global.
2758 (is_current_thread): Move higher, and reimplement.
2759 (inferior_thread): Reimplement.
2760 (set_thread_exited): Use bool. Add assertions.
2761 (add_thread_silent): Simplify thread-reuse handling by always
2762 calling delete_thread.
2763 (delete_thread): Remove intro comment.
2764 (find_thread_ptid): Skip exited threads.
2765 (switch_to_thread_no_regs): Write to current_thread_.
2766 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2767 INFERIOR_PTID. Clear current_thread_.
2768
6dbdab44
PA
27692020-06-18 Pedro Alves <palves@redhat.com>
2770
2771 * aix-thread.c (pd_update): Use switch_to_thread.
2772
2da4b788
PA
27732020-06-18 Pedro Alves <palves@redhat.com>
2774
2775 * ravenscar-thread.c (ravenscar_thread_target): Update.
2776 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2777 (ravenscar_thread_target::add_active_thread): ... this. Don't
2778 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2779 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2780
50838d1b
PA
27812020-06-18 Pedro Alves <palves@redhat.com>
2782
2783 * nat/windows-nat.c (current_windows_thread): Remove.
2784 * nat/windows-nat.h (current_windows_thread): Remove.
2785 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2786 Adjust.
2787 (display_selectors): Adjust to fetch the current
2788 windows_thread_info based on inferior_ptid.
2789 (fake_create_process): No longer write to current_windows_thread.
2790 (windows_nat_target::get_windows_debug_event):
2791 Don't set inferior_ptid or current_windows_thread.
2792 (windows_nat_target::wait): Adjust to not rely on
2793 current_windows_thread.
2794 (do_initial_windows_stuff): Now a method of windows_nat_target.
2795 Switch to the last_ptid thread.
2796 (windows_nat_target::attach): Adjust.
2797 (windows_nat_target::detach): Use switch_to_no_thread instead of
2798 writing to inferior_ptid directly.
2799 (windows_nat_target::create_inferior): Adjust.
2800
31ce04e9
PA
28012020-06-18 Pedro Alves <palves@redhat.com>
2802
2803 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2804
1ee1a363
PA
28052020-06-18 Pedro Alves <palves@redhat.com>
2806
2807 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2808 after creating it, instead of writing to inferior_ptid. Don't
2809 write to inferior_ptid.
2810
6d350754
PA
28112020-06-18 Pedro Alves <palves@redhat.com>
2812
2813 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2814
5d971d48
PA
28152020-06-18 Pedro Alves <palves@redhat.com>
2816
2817 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2818 it, instead of writing to inferior_ptid.
2819
86e57d1b
PA
28202020-06-18 Pedro Alves <palves@redhat.com>
2821
2822 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2823 to inferior_ptid.
2824
f2e1c129
PA
28252020-06-18 Pedro Alves <palves@redhat.com>
2826
2827 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2828 instead of writing to inferior_ptid directly.
2829
60db1b85
PA
28302020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 * corelow.c (core_target::close): Use switch_to_no_thread instead
2833 of writing to inferior_ptid directly.
2834 (add_to_thread_list, core_target_open): Use switch_to_thread
2835 instead of writing to inferior_ptid directly.
2836
fe7d6a8d
PA
28372020-06-18 Pedro Alves <palves@redhat.com>
2838
2839 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2840 inferior_ptid.
2841 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2842 inferior_ptid.
2843 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2844 inferior_ptid directly.
2845 (darwin_nat_target::init_thread_list): Switch to thread, instead
2846 of writing to inferior_ptid.
2847 (darwin_nat_target::attach): Don't write to inferior_ptid.
2848 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2849
975f8708
PA
28502020-06-18 Pedro Alves <palves@redhat.com>
2851
2852 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2853 thread.
2854 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2855 Instead use switch_to_thread.
2856 (gnu_nat_target::detach): Use switch_to_no_thread
2857 instead of writing to inferior_ptid directly. Used passed-in
2858 inferior instead of looking up the inferior by pid.
2859
1a204730
PA
28602020-06-18 Pedro Alves <palves@redhat.com>
2861
2862 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2863 inferior_ptid.
2864
ebe84f23
PA
28652020-06-18 Pedro Alves <palves@redhat.com>
2866
2867 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2868 inferior_ptid.
2869 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2870 thread.
2871 (nto_procfs_target::detach): Avoid referencing
2872 inferior_ptid. Use switch_to_no_thread instead of writing to
2873 inferior_ptid directly.
2874 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2875 instead of writing to inferior_ptid directly.
2876 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2877 to thread.
2878
191f02e5
PA
28792020-06-18 Pedro Alves <palves@redhat.com>
2880
2881 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2882 after creating it, instead of writing to inferior_ptid.
2883 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2884 to inferior_ptid directly.
2885 (gdbsim_target::wait): Don't write to inferior_ptid.
2886
0ac55310
PA
28872020-06-18 Pedro Alves <palves@redhat.com>
2888
2889 * remote.c (remote_target::remote_notice_new_inferior): Use
2890 switch_to_thread instead of writing to inferior_ptid directly.
2891 (remote_target::add_current_inferior_and_thread): Use
2892 switch_to_no_thread instead of writing to inferior_ptid directly.
2893 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2894 and switch_to_thread instead of using set_current_inferior or
2895 writing to inferior_ptid directly.
2896
5233f39b
PA
28972020-06-18 Pedro Alves <palves@redhat.com>
2898
2899 * tracectf.c (ctf_target_open): Switch to added thread instead of
2900 writing to inferior_ptid directly.
2901 (ctf_target::close): Use switch_to_no_thread instead of writing to
2902 inferior_ptid directly.
2903
087e161b
PA
29042020-06-18 Pedro Alves <palves@redhat.com>
2905
2906 * tracefile-tfile.c (tfile_target_open): Don't write to
2907 inferior_ptid directly, instead switch to added thread.
2908 (tfile_target::close): Use switch_to_no_thread instead of writing
2909 to inferior_ptid directly.
2910
7fb43e53
PA
29112020-06-18 Pedro Alves <palves@redhat.com>
2912
2913 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2914 (procfs_target::detach): Use switch_to_no_thread
2915 instead of writing to inferior_ptid directly.
2916 (do_attach): Change return type to void. Switch to the added
2917 thread.
2918 (procfs_target::create_inferior): Switch to the added thread.
2919 (procfs_do_thread_registers): Don't write to inferior_ptid.
2920
18493a00
PA
29212020-06-18 Pedro Alves <palves@redhat.com>
2922
2923 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2924 of writing to inferior_ptid.
2925 (scoped_restore_exited_inferior): Delete.
2926 (handle_vfork_child_exec_or_exit): Simplify using
2927 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2928 instead of writing to inferior_ptid.
2929 (THREAD_STOPPED_BY): Delete.
2930 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2931 (thread_stopped_by_hw_breakpoint): Delete.
2932 (save_waitstatus): Use
2933 scoped_restore_current_thread+switch_to_thread, and call
2934 target_stopped_by_watchpoint instead of
2935 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2936 instead of thread_stopped_by_sw_breakpoint, and
2937 target_stopped_by_hw_breakpoint instead of
2938 thread_stopped_by_hw_breakpoint.
2939 (handle_inferior_event)
2940 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2941 inferior_ptid directly, nor
2942 set_current_inferior/set_current_program_space. Use
2943 switch_to_thread / switch_to_inferior_no_thread instead.
2944
a0776b13
PA
29452020-06-18 Pedro Alves <palves@redhat.com>
2946
2947 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2948 instead of writing to inferior_ptid.
2949
6155c136
PA
29502020-06-18 Pedro Alves <palves@redhat.com>
2951
2952 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2953 added thread.
2954 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2955 to the added thread.
2956 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2957 instead of writing to inferior_ptid.
2958
c5316fc6
PA
29592020-06-18 Pedro Alves <palves@redhat.com>
2960
2961 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2962 (register_to_value_test): Mock a program_space too. Heap-allocate
2963 the address space. Don't write to inferior_ptid. Use
2964 switch_to_thread instead.
2965
8df01799
PA
29662020-06-18 Pedro Alves <palves@redhat.com>
2967
2968 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2969 Delete.
2970 (find_signalled_thread()): New, factored out from
2971 linux_make_corefile_notes and adjusted to handle exited threads.
2972 (linux_make_corefile_notes): Adjust to use the new
2973 find_signalled_thread.
2974
41792d68
PA
29752020-06-18 Pedro Alves <palves@redhat.com>
2976
2977 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2978 of saving/restoring inferior_ptid.
2979
612f258a
TT
29802020-06-17 Tom Tromey <tom@tromey.com>
2981
2982 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2983 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2984 declare.
2985 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2986
efb763a5
SM
29872020-06-15 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2990 of partial symtabs.
2991
2951f6c0
SM
29922020-06-17 Simon Marchi <simon.marchi@efficios.com>
2993
2994 * regformats/reg-arm.dat: Remove.
2995 * regformats/reg-bfin.dat: Remove.
2996 * regformats/reg-cris.dat: Remove.
2997 * regformats/reg-crisv32.dat: Remove.
2998 * regformats/reg-m32r.dat: Remove.
2999 * regformats/reg-tilegx.dat: Remove.
3000 * regformats/reg-tilegx32.dat: Remove.
3001
7d458ea5
SM
30022020-06-17 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * features/Makefile (WHICH): Remove arm files.
3005 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3006 * regformats/arm/arm-with-neon.dat: Remove.
3007 * regformats/arm/arm-with-vfpv2.dat: Remove.
3008 * regformats/arm/arm-with-vfpv3.dat: Remove.
3009
3af96c0d
SM
30102020-06-17 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * features/Makefile (XMLTOC): Remove rx.xml.
3013
b25e22fd
PA
30142020-06-17 Pedro Alves <palves@redhat.com>
3015
3016 * gdbthread.h (thread_control_state) <trap_expected> Update
3017 comments.
3018
a78a19b1
AB
30192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3020
3021 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3022 ada_language::lookup_symbol_nonlocal.
3023 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3024 (ada_language::lookup_symbol_nonlocal): New member function,
3025 implementation from ada_lookup_symbol_nonlocal.
3026 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3027 initializer.
3028 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3029 initializer.
3030 (cplus_language::lookup_symbol_nonlocal): New member function.
3031 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3032 (minimal_language_data) Likewise.
3033 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3034 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3035 initializer.
3036 (d_language::lookup_symbol_nonlocal): New member function.
3037 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3038 initializer.
3039 (f_language::lookup_symbol_nonlocal): New member function.
3040 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3041 initializer.
3042 * language.c (unknown_language_data): Likewise.
3043 (auto_language_data): Likewise.
3044 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3045 field.
3046 (language_defn::lookup_symbol_nonlocal): New member function.
3047 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3048 initializer.
3049 * objc-lang.c (objc_language_data): Likewise.
3050 * opencl-lang.c (opencl_language_data): Likewise.
3051 * p-lang.c (pascal_language_data): Likewise.
3052 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3053 rust_language::lookup_symbol_nonlocal.
3054 (rust_language_data): Delete la_lookup_symbol_nonlocal
3055 initializer.
3056 (rust_language::lookup_symbol_nonlocal): New member function,
3057 implementation from rust_lookup_symbol_nonlocal.
3058 * symtab.c (lookup_symbol_aux): Update call to
3059 lookup_symbol_nonlocal.
3060 (basic_lookup_symbol_nonlocal): Rename to...
3061 (language_defn::lookup_symbol_nonlocal): ...this, and update
3062 header comment. Remove language_defn parameter, and replace with
3063 uses of `this'.
3064 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3065
ebe2334e
AB
30662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3069 initializer.
3070 (ada_language::value_print_inner): New member function.
3071 * c-lang.c (c_language_data): Delete la_value_print_inner
3072 initializer.
3073 (cplus_language_data): Likewise.
3074 (asm_language_data): Likewise.
3075 (minimal_language_data): Likewise.
3076 * d-lang.c (d_language_data): Likewise.
3077 (d_language::value_print_inner): New member function.
3078 * f-lang.c (f_language_data): Delete la_value_print_inner
3079 initializer.
3080 (f_language::value_print_inner): New member function.
3081 * f-lang.h (f_value_print_innner): Rename to...
3082 (f_value_print_inner): ...this (note spelling of 'inner').
3083 * f-valprint.c (f_value_print_innner): Rename to...
3084 (f_value_print_inner): ...this (note spelling of 'inner').
3085 * go-lang.c (go_language_data): Delete la_value_print_inner
3086 initializer.
3087 (go_language::value_print_inner): New member function.
3088 * language.c (language_defn::value_print_inner): Define new member
3089 function.
3090 (unk_lang_value_print_inner): Delete.
3091 (unknown_language_data): Delete la_value_print_inner initializer.
3092 (unknown_language::value_print_inner): New member function.
3093 (auto_language_data): Delete la_value_print_inner initializer.
3094 (auto_language::value_print_inner): New member function.
3095 * language.h (language_data): Delete la_value_print_inner field.
3096 (language_defn::value_print_inner): Delcare new member function.
3097 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3098 initializer.
3099 (m2_language::value_print_inner): New member function.
3100 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3101 initializer.
3102 * opencl-lang.c (opencl_language_data): Likewise.
3103 * p-lang.c (pascal_language_data): Likewise.
3104 (pascal_language::value_print_inner): New member function.
3105 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3106 initializer.
3107 (rust_language::value_print_inner): New member function.
3108 * valprint.c (do_val_print): Update call to value_print_inner.
3109
a1d1fa3e
AB
31102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * ada-lang.c (ada_language_data): Delete la_value_print
3113 initializer.
3114 (ada_language::value_print): New member function.
3115 * c-lang.c (c_language_data): Delete la_value_print initializer.
3116 (cplus_language_data): Likewise.
3117 (asm_language_data): Likewise.
3118 (minimal_language_data): Likewise.
3119 * d-lang.c (d_language_data): Likewise.
3120 * f-lang.c (f_language_data): Likewise.
3121 * go-lang.c (go_language_data): Likewise.
3122 * language.c (unk_lang_value_print): Delete.
3123 (language_defn::value_print): Define new member function.
3124 (unknown_language_data): Delete la_value_print initializer.
3125 (unknown_language::value_print): New member function.
3126 (auto_language_data): Delete la_value_print initializer.
3127 (auto_language::value_print): New member function.
3128 * language.h (language_data): Delete la_value_print field.
3129 (language_defn::value_print): Declare new member function.
3130 (LA_VALUE_PRINT): Update call to value_print.
3131 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3132 * objc-lang.c (objc_language_data): Likewise.
3133 * opencl-lang.c (opencl_language_data): Likewise.
3134 * p-lang.c (pascal_language_data): Likewise.
3135 (pascal_language::value_print): New member function.
3136 * rust-lang.c (rust_language_data): Delete la_value_print
3137 initializer.
3138
f16a9f57
AB
31392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_watch_location_expression): Rename to
3142 ada_language::watch_location_expression.
3143 (ada_language_data): Delete la_watch_location_expression
3144 initializer.
3145 (ada_language::watch_location_expression): New member function,
3146 implementation from ada_watch_location_expression.
3147 * breakpoint.c (watch_command_1): Update call to
3148 watch_location_expression.
3149 * c-lang.c (c_watch_location_expression): Rename to
3150 language_defn::watch_location_expression.
3151 (c_language_data): Delete la_watch_location_expression
3152 initializer.
3153 (cplus_language_data): Likewise.
3154 (asm_language_data): Likewise.
3155 (minimal_language_data): Likewise.
3156 * c-lang.h (c_watch_location_expression): Delete declaration.
3157 * d-lang.c (d_language_data): Delete la_watch_location_expression
3158 initializer.
3159 * f-lang.c (f_language_data): Likewise.
3160 * go-lang.c (go_language_data): Likewise.
3161 * language.c (language_defn::watch_location_expression): Member
3162 function implementation from c_watch_location_expression.
3163 (unknown_language_data): Delete la_watch_location_expression
3164 initializer.
3165 (auto_language_data): Likewise.
3166 * language.h (language_data): Delete la_watch_location_expression
3167 field.
3168 (language_defn::watch_location_expression): Declare new member
3169 function.
3170 * m2-lang.c (m2_language_data): Delete
3171 la_watch_location_expression initializer.
3172 * objc-lang.c (objc_language_data): Likewise.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_language_data): Likewise.
3175 * rust-lang.c (rust_watch_location_expression): Rename to
3176 rust_language::watch_location_expression.
3177 (rust_language_data): Delete la_watch_location_expression
3178 initializer.
3179 (rust_language::watch_location_expression): New member function,
3180 implementation from rust_watch_location_expression.
3181
7e56227d
AB
31822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3185 ada_language::collect_symbol_completion_matches.
3186 (ada_language_data): Delete la_collect_symbol_completion_matches
3187 initializer.
3188 (ada_language::collect_symbol_completion_matches): New member
3189 function, implementation from
3190 ada_collect_symbol_completion_matches.
3191 * c-lang.c (c_language_data): Delete
3192 la_collect_symbol_completion_matches initializer.
3193 (cplus_language_data): Likewise.
3194 (asm_language_data): Likewise.
3195 (minimal_language_data): Likewise.
3196 * d-lang.c (d_language_data): Likewise.
3197 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3198 f_language::collect_symbol_completion_matches.
3199 (f_language_data): Delete la_collect_symbol_completion_matches
3200 initializer.
3201 (f_language::collect_symbol_completion_matches) New member
3202 function, implementation from f_collect_symbol_completion_matches.
3203 * go-lang.c (go_language_data): Delete
3204 la_collect_symbol_completion_matches initializer.
3205 * language.c (unknown_language_data): Likewise.
3206 (auto_language_data): Likewise.
3207 * language.h (language_data): Delete
3208 la_collect_symbol_completion_matches field.
3209 (language_defn::collect_symbol_completion_matches): New member
3210 function.
3211 * m2-lang.c (m2_language_data): Delete
3212 la_collect_symbol_completion_matches initializer.
3213 * objc-lang.c (objc_language_data): Likewise.
3214 * opencl-lang.c (opencl_language_data): Likewise.
3215 * p-lang.c (pascal_language_data): Likewise.
3216 * rust-lang.c (rust_language_data): Likewise.
3217 * symtab.c (default_collect_symbol_completion_matches): Delete.
3218 (collect_symbol_completion_matches): Update call to
3219 collect_symbol_completion_matches.
3220 (collect_symbol_completion_matches_type): Likewise.
3221 * symtab.h (default_collect_symbol_completion_matches): Delete
3222 declaration.
3223
53fc67f8
AB
32242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3227 (ada_language_data): Delete la_word_break_characters initializer.
3228 (ada_language::word_break_characters): New member function.
3229 * c-lang.c (c_language_data): Delete la_word_break_characters
3230 initializer.
3231 (cplus_language_data): Likewise.
3232 (asm_language_data): Likewise.
3233 (minimal_language_data): Likewise.
3234 * completer.c: Update global comment.
3235 (advance_to_expression_complete_word_point): Update call to
3236 word_break_characters.
3237 (complete_files_symbols): Likewise.
3238 (complete_line_internal_1): Likewise.
3239 (default_completer_handle_brkchars): Likewise.
3240 (skip_quoted_chars): Likewise.
3241 * d-lang.c (d_language_data): Delete la_word_break_characters
3242 initializer.
3243 * f-lang.c (f_word_break_characters): Delete.
3244 (f_language_data): Delete la_word_break_characters initializer.
3245 (f_language::word_break_characters): New member function.
3246 * go-lang.c (go_language_data): Delete la_word_break_characters
3247 initializer.
3248 * language.c (unknown_language_data): Likewise.
3249 (auto_language_data): Likewise.
3250 * language.h (default_word_break_characters): Move declaration to
3251 earlier in the file.
3252 (language_data): Delete la_word_break_characters field.
3253 (language_defn::word_break_characters): New member function.
3254 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3255 initializer.
3256 * objc-lang.c (objc_language_data): Likewise.
3257 * opencl-lang.c (opencl_language_data): Likewise.
3258 * p-lang.c (pascal_language_data): Likewise.
3259 * rust-lang.c (rust_language_data): Likewise.
3260
c9debfb9
AB
32612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3264 (ada_language_data): Delete la_get_symbol_name_matcher
3265 initializer.
3266 (language_defn::get_symbol_name_matcher_inner): New member
3267 function.
3268 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3269 initializer.
3270 (cplus_language_data): Likewise.
3271 (cplus_language::get_symbol_name_matcher_inner): New member
3272 function.
3273 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3274 (minimal_language_data): Likewise.
3275 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3276 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3277 initializer.
3278 * dictionary.c (iter_match_first_hashed): Update call to
3279 get_symbol_name_matcher.
3280 (iter_match_next_hashed): Likewise.
3281 (iter_match_next_linear): Likewise.
3282 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3283 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3284 initializer.
3285 (f_language::get_symbol_name_matcher_inner): New member function.
3286 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3287 initializer.
3288 * language.c (default_symbol_name_matcher): Update header comment,
3289 make static.
3290 (language_defn::get_symbol_name_matcher): New definition.
3291 (language_defn::get_symbol_name_matcher_inner): Likewise.
3292 (get_symbol_name_matcher): Delete.
3293 (unknown_language_data): Delete la_get_symbol_name_matcher
3294 initializer.
3295 (auto_language_data): Likewise.
3296 * language.h (language_data): Delete la_get_symbol_name_matcher
3297 field.
3298 (language_defn::get_symbol_name_matcher): New member function.
3299 (language_defn::get_symbol_name_matcher_inner): Likewise.
3300 (default_symbol_name_matcher): Delete declaration.
3301 * linespec.c (find_methods): Update call to
3302 get_symbol_name_matcher.
3303 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3304 initializer.
3305 * minsyms.c (lookup_minimal_symbol): Update call to
3306 get_symbol_name_matcher.
3307 (iterate_over_minimal_symbols): Likewise.
3308 * objc-lang.c (objc_language_data): Delete
3309 la_get_symbol_name_matcher initializer.
3310 * opencl-lang.c (opencl_language_data): Likewise.
3311 * p-lang.c (pascal_language_data): Likewise.
3312 * psymtab.c (psymbol_name_matches): Update call to
3313 get_symbol_name_matcher.
3314 * rust-lang.c (rust_language_data): Delete
3315 la_get_symbol_name_matcher initializer.
3316 * symtab.c (symbol_matches_search_name): Update call to
3317 get_symbol_name_matcher.
3318 (compare_symbol_name): Likewise.
3319
9a49ad8c
AB
33202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * ada-lang.c (ada_language_data): Delete la_compute_program
3323 initializer.
3324 * c-lang.c (c_language_data): Likewise.
3325 (c_language::compute_program): New member function.
3326 (cplus_language_data): Delete la_compute_program initializer.
3327 (cplus_language::compute_program): New member function.
3328 (asm_language_data): Delete la_compute_program initializer.
3329 (minimal_language_data): Likewise.
3330 * c-lang.h (c_compute_program): Update comment.
3331 (cplus_compute_program): Likewise.
3332 * compile/compile-c-support.c (c_compute_program): Likewise.
3333 (cplus_compute_program): Likewise.
3334 * compile/compile.c (compile_to_object): Update call to
3335 la_compute_program.
3336 * d-lang.c (d_language_data): Delete la_compute_program
3337 initializer.
3338 * f-lang.c (f_language_data): Likewise.
3339 * go-lang.c (go_language_data): Likewise.
3340 * language.c (unknown_language_data): Likewise.
3341 (auto_language_data): Likewise.
3342 * language.h (language_data): Delete la_compute_program field.
3343 (language_defn::compute_program): New member function.
3344 * m2-lang.c (m2_language_data): Delete la_compute_program
3345 initializer.
3346 * objc-lang.c (objc_language_data): Likewise.
3347 * opencl-lang.c (opencl_language_data): Likewise.
3348 * p-lang.c (pascal_language_data): Likewise.
3349 * rust-lang.c (rust_language_data): Likewise.
3350
eff93b4d
AB
33512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * ada-lang.c (ada_language_data) Delete
3354 la_class_name_from_physname initializer.
3355 * c-lang.c (c_language_data): Likewise.
3356 (cplus_language_data): Likewise.
3357 (cplus_language::class_name_from_physname): New member function.
3358 (asm_language_data): Delete la_class_name_from_physname
3359 initializer.
3360 (minimal_language_data): Likewise.
3361 * d-lang.c (d_language_data): Likewise.
3362 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3363 method on language_defn class.
3364 (guess_full_die_structure_name): Likewise.
3365 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3366 initializer.
3367 * go-lang.c (go_language_data): Likewise.
3368 * language.c (language_class_name_from_physname): Delete.
3369 (unk_lang_class_name): Delete.
3370 (unknown_language_data): Delete la_class_name_from_physname
3371 initializer.
3372 (auto_language_data): Likewise.
3373 * language.h (language_data): Delete la_class_name_from_physname
3374 field.
3375 (language_defn::class_name_from_physname): New function.
3376 (language_class_name_from_physname): Delete declaration.
3377 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3378 initializer.
3379 * objc-lang.c (objc_language_data): Likewise.
3380 * opencl-lang.c (opencl_language_data): Likewise.
3381 * p-lang.c (pascal_language_data): Likewise.
3382 * rust-lang.c (rust_language_data): Likewise.
3383
de543742
TT
33842020-06-16 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui-data.h (STATUS_NAME): New macro.
3387 * tui/tui-layout.c (tui_remove_some_windows)
3388 (initialize_known_windows, tui_register_window)
3389 (tui_layout_split::remove_windows, initialize_layouts)
3390 (tui_new_layout_command): Don't use hard-coded window names.
3391
a350efd4
TT
33922020-06-16 Tom Tromey <tom@tromey.com>
3393
3394 PR tui/25348:
3395 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3396 tui_initialize_readline. Only run once. Call rl_initialize.
3397 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3398 tui_initialize_readline.
3399 * tui/tui-io.c (tui_setup_io): Call
3400 tui_ensure_readline_initialized.
3401 * tui/tui-interp.c (tui_interp::init): Update.
3402
39ec0490
TT
34032020-06-16 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3406 Also preserve the status window.
3407
d2d1ea20
TT
34082020-06-16 Tom Tromey <tom@tromey.com>
3409
3410 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3411 where m_window==nullptr.
3412
66920317
TT
34132020-06-15 Tom Tromey <tromey@adacore.com>
3414
3415 * windows-nat.c (windows_nat::handle_output_debug_string):
3416 Update.
3417 (windows_nat::handle_ms_vc_exception): Update.
3418 * target.h (target_read_string): Change API.
3419 * target.c (target_read_string): Change API.
3420 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3421 Update.
3422 * solib-frv.c (frv_current_sos): Update.
3423 * solib-dsbt.c (dsbt_current_sos): Update.
3424 * solib-darwin.c (darwin_current_sos): Update.
3425 * linux-thread-db.c (inferior_has_bug): Update.
3426 * expprint.c (print_subexp_standard): Update.
3427 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3428 (ada_exception_message_1): Update.
3429
a5d871dd
TT
34302020-06-15 Tom Tromey <tromey@adacore.com>
3431
3432 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3433
670e35fa
TT
34342020-06-15 Tom Tromey <tromey@adacore.com>
3435
3436 * valprint.c (read_string): Update comment.
3437 * target.c (MIN): Remove.
3438 (target_read_string): Rewrite.
3439
f5272a3b
TT
34402020-06-15 Tom Tromey <tromey@adacore.com>
3441
3442 * corefile.c (read_memory_string): Remove.
3443 * ada-valprint.c (ada_value_print_ptr): Update.
3444 * ada-lang.h (ada_tag_name): Change return type.
3445 * ada-lang.c (type_from_tag): Update.
3446 (ada_tag_name_from_tsd): Change return type. Use
3447 target_read_string.
3448 (ada_tag_name): Likewise.
3449 * gdbcore.h (read_memory_string): Don't declare.
3450
2c074f49
HD
34512020-06-14 Hannes Domani <ssbssa@yahoo.de>
3452
3453 * symtab.c (rbreak_command): Ignore Windows drive colon.
3454
6a17d503
SM
34552020-06-12 Simon Marchi <simon.marchi@efficios.com>
3456
3457 * NEWS: Mention removed GDBserver host support.
3458
453c733f
NC
34592020-06-12 Nelson Chu <nelson.chu@sifive.com>
3460
3461 * features/riscv/rebuild-csr-xml.sh: Updated.
3462
2b4e6a3f
TT
34632020-06-11 Tom Tromey <tom@tromey.com>
3464
3465 PR gdb/18318:
3466 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3467
4412332f
JG
34682020-06-09 Jonny Grant <jg@jguk.org>
34692020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * main.c (captured_main_1): Don't print new line after help.
3472 (print_gdb_help): add mailing list and IRC channel information
3473 to --help. Add new lines between items in the footer. Remove
3474 quotes around bug url.
3475
2f33032a
KS
34762020-06-11 Keith Seitz <keiths@redhat.com>
3477
3478 PR gdb/21356
3479 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3480 Resolve typedefs for type length calculations.
3481
7ab96794
TV
34822020-06-10 Tom de Vries <tdevries@suse.de>
3483
3484 PR ada/24713
3485 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3486 (write_psymbols): Enable .gdb_index for ada.
3487 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3488 ada.
3489
e5f3ece2
TV
34902020-06-10 Tom de Vries <tdevries@suse.de>
3491
3492 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3493 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3494 namei" instead of "const char *name" argument.
3495 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3496 dw2_symtab_iter_init.
3497
940da03e
SM
34982020-06-08 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3501 to use type::field and field::type instead.
3502
b6cdac4b
SM
35032020-06-08 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3506 to use field::type instead.
3507
5d14b6e5
SM
35082020-06-08 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * gdbtypes.h (struct field) <type, set_type>: New methods.
3511 Rename `type` field to...
3512 <m_type>: ... this. Change references throughout to use type or
3513 set_type methods.
3514 (FIELD_TYPE): Use field::type. Change call sites that modify
3515 the field's type to use field::set_type instead.
3516
3d967001
SM
35172020-06-08 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3520 to use type::index_type instead.
3521
262abc0d
SM
35222020-06-08 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3525 methods.
3526 (TYPE_INDEX_TYPE): Use type::index_type.
3527 * gdbtypes.c (create_array_type_with_stride): Likewise.
3528
82836c92
TT
35292020-06-07 Tom Tromey <tom@tromey.com>
3530
3531 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3532 parameter.
3533 (generic_value_print): Update.
3534
940dace9
AB
35352020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 Revert commit 982a38f60b0.
3538 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3539
982a38f6
AB
35402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3543 avoid use after free.
3544
82f06518
TV
35452020-06-05 Tom de Vries <tdevries@suse.de>
3546
3547 * NEWS: Fix typos.
3548
f8c41851
SM
35492020-06-04 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3552 the per_bfd object.
3553 (dwarf2_read_debug_names): Likewise.
3554 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3555 object when re-using a per_bfd object with an index.
3556
f9b5d5ea
TV
35572020-06-03 Tom de Vries <tdevries@suse.de>
3558
3559 PR symtab/26046
3560 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3561 children for C++.
3562 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3563 DW_TAG_subprogram.
3564
f6eee2d0
AB
35652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3566
3567 * ada-lang.c (ada_language_data): Delete skip_trampoline
3568 initializer.
3569 * c-lang.c (c_language_data): Likewise.
3570 (cplus_language_data): Likewise.
3571 (cplus_language::skip_trampoline): New member function.
3572 (asm_language_data): Delete skip_trampoline initializer.
3573 (minimal_language_data): Likewise.
3574 * d-lang.c (d_language_data): Likewise.
3575 * f-lang.c (f_language_data): Likewise.
3576 * go-lang.c (go_language_data): Likewise.
3577 * language.c (unk_lang_trampoline): Delete function.
3578 (skip_language_trampoline): Update.
3579 (unknown_language_data): Delete skip_trampoline initializer.
3580 (auto_language_data): Likewise.
3581 * language.h (language_data): Delete skip_trampoline field.
3582 (language_defn::skip_trampoline): New function.
3583 * m2-lang.c (m2_language_data): Delete skip_trampoline
3584 initializer.
3585 * objc-lang.c (objc_skip_trampoline): Delete function, move
3586 implementation to objc_language::skip_trampoline.
3587 (objc_language_data): Delete skip_trampoline initializer.
3588 (objc_language::skip_trampoline): New member function with
3589 implementation from objc_skip_trampoline.
3590 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3591 initializer.
3592 * p-lang.c (pascal_language_data): Likewise.
3593 * rust-lang.c (rust_language_data): Likewise.
3594
0a50df5d
AB
35952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3596
3597 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3598 (ada_language::demangle): New member function.
3599 * c-lang.c (c_language_data): Delete la_demangle initializer.
3600 (cplus_language_data): Delete la_demangle initializer.
3601 (cplus_language::demangle): New member function.
3602 (asm_language_data): Delete la_demangle initializer.
3603 (minimal_language_data): Delete la_demangle initializer.
3604 * d-lang.c (d_language_data): Delete la_demangle initializer.
3605 (d_language::demangle): New member function.
3606 * f-lang.c (f_language_data): Delete la_demangle initializer.
3607 (f_language::demangle): New member function.
3608 * go-lang.c (go_language_data): Delete la_demangle initializer.
3609 (go_language::demangle): New member function.
3610 * language.c (language_demangle): Update.
3611 (unk_lang_demangle): Delete.
3612 (unknown_language_data): Delete la_demangle initializer.
3613 (unknown_language::demangle): New member function.
3614 (auto_language_data): Delete la_demangle initializer.
3615 (auto_language::demangle): New member function.
3616 * language.h (language_data): Delete la_demangle field.
3617 (language_defn::demangle): New function.
3618 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3619 * objc-lang.c (objc_language_data): Delete la_demangle
3620 initializer.
3621 (objc_language::demangle): New member function.
3622 * opencl-lang.c (opencl_language_data): Delete la_demangle
3623 initializer.
3624 * p-lang.c (pascal_language_data): Likewise.
3625 * rust-lang.c (rust_language_data): Likewise.
3626 (rust_language::demangle): New member function.
3627
fbfb0a46
AB
36282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * ada-lang.c (ada_language_data): Delete la_print_type
3631 initializer.
3632 (ada_language::print_type): New member function.
3633 * c-lang.c (c_language_data): Delete la_print_type initializer.
3634 (c_language::print_type): New member function.
3635 (cplus_language_data): Delete la_print_type initializer.
3636 (cplus_language::print_type): New member function.
3637 (asm_language_data): Delete la_print_type initializer.
3638 (asm_language::print_type): New member function.
3639 (minimal_language_data): Delete la_print_type initializer.
3640 (minimal_language::print_type): New member function.
3641 * d-lang.c (d_language_data): Delete la_print_type initializer.
3642 (d_language::print_type): New member function.
3643 * f-lang.c (f_language_data): Delete la_print_type initializer.
3644 (f_language::print_type): New member function.
3645 * go-lang.c (go_language_data): Delete la_print_type initializer.
3646 (go_language::print_type): New member function.
3647 * language.c (unk_lang_print_type): Delete.
3648 (unknown_language_data): Delete la_print_type initializer.
3649 (unknown_language::print_type): New member function.
3650 (auto_language_data): Delete la_print_type initializer.
3651 (auto_language::print_type): New member function.
3652 * language.h (language_data): Delete la_print_type field.
3653 (language_defn::print_type): New function.
3654 (LA_PRINT_TYPE): Update.
3655 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3656 (m2_language::print_type): New member function.
3657 * objc-lang.c (objc_language_data): Delete la_print_type
3658 initializer.
3659 (objc_language::print_type): New member function.
3660 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3661 to opencl_language::print_type.
3662 (opencl_language_data): Delete la_print_type initializer.
3663 (opencl_language::print_type): New member function, implementation
3664 from opencl_print_type.
3665 * p-lang.c (pascal_language_data): Delete la_print_type
3666 initializer.
3667 (pascal_language::print_type): New member function.
3668 * rust-lang.c (rust_print_type): Delete, implementation moved to
3669 rust_language::print_type.
3670 (rust_language_data): Delete la_print_type initializer.
3671 (rust_language::print_type): New member function, implementation
3672 from rust_print_type.
3673
6f827019
AB
36742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3677 implementation moves to...
3678 (ada_language::sniff_from_mangled_name): ...here. Update return
3679 type.
3680 (ada_language_data): Delete la_sniff_from_mangled_name
3681 initializer.
3682 * c-lang.c (c_language_data): Likewise.
3683 (cplus_language_data): Likewise.
3684 (cplus_language::sniff_from_mangled_name): New member function,
3685 implementation taken from gdb_sniff_from_mangled_name.
3686 (asm_language_data): Delete la_sniff_from_mangled_name
3687 initializer.
3688 (minimal_language_data): Likewise.
3689 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3690 implementation moves to cplus_language::sniff_from_mangled_name.
3691 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3692 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3693 moves to...
3694 (d_language::sniff_from_mangled_name): ...here.
3695 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3696 * f-lang.c (f_language_data): Likewise.
3697 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3698 moves to...
3699 (go_language::sniff_from_mangled_name): ...here.
3700 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3701 * language.c (language_sniff_from_mangled_name): Delete.
3702 (unknown_language_data): Delete la_sniff_from_mangled_name
3703 initializer.
3704 (auto_language_data): Likewise.
3705 * language.h (language_data): Delete la_sniff_from_mangled_name
3706 field.
3707 (language_defn::sniff_from_mangled_name): New function.
3708 (language_sniff_from_mangled_name): Delete declaration.
3709 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3710 field.
3711 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3712 implementation moves to...
3713 (objc_language::sniff_from_mangled_name): ...here.
3714 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3715 * opencl-lang.c (opencl_language_data): Likewise.
3716 * p-lang.c (pascal_language_data): Likewise.
3717 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3718 implementation moves to...
3719 (rust_language::sniff_from_mangled_name): ...here.
3720 (rust_language_data): Delete la_sniff_from_mangled_name
3721 initializer.
3722 * symtab.c (symbol_find_demangled_name): Call
3723 sniff_from_mangled_name member function.
3724
fb8006fd
AB
37252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3728 initializer.
3729 * c-lang.c (c_language_data): Likewise.
3730 (cplus_language_data): Likewise.
3731 (cplus_language::search_name_hash): New member function.
3732 (asm_language_data): Delete la_search_name_hash initializer.
3733 (minimal_language_data): Likewise.
3734 * d-lang.c (d_language_data): Likewise.
3735 * dictionary.c (default_search_name_hash): Rename to...
3736 (language_defn::search_name_hash): ...this.
3737 * f-lang.c (f_language_data): Likewise.
3738 (f_language::search_name_hash): New member function.
3739 * go-lang.c (go_language_data): Delete la_search_name_hash
3740 initializer.
3741 * language.c (unknown_language_data): Likewise.
3742 (auto_language_data): Likewise.
3743 * language.h (struct language_data): Delete la_search_name_hash
3744 field.
3745 (language_defn::search_name_hash): Declare new member function.
3746 (default_search_name_hash): Delete declaration.
3747 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3748 initializer.
3749 * objc-lang.c (objc_language_data): Likewise.
3750 * opencl-lang.c (opencl_language_data): Likewise.
3751 * p-lang.c (pascal_language_data): Likewise.
3752 * rust-lang.c (rust_language_data): Likewise.
3753 * symtab.c (search_name_hash): Update call.
3754
8e25bafe
AB
37552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3758 initializer.
3759 * c-lang.c (class compile_instance): Declare.
3760 (c_language_data): Delete la_get_compile_instance initializer.
3761 (c_language::get_compile_instance): New member function.
3762 (cplus_language_data): Delete la_get_compile_instance initializer.
3763 (cplus_language::get_compile_instance): New member function.
3764 (asm_language_data): Delete la_get_compile_instance initializer.
3765 (minimal_language_data): Likewise.
3766 * c-lang.h (c_get_compile_context): Update comment.
3767 (cplus_get_compile_context): Update comment.
3768 * compile/compile.c (compile_to_object): Update calls, don't rely
3769 on function pointer being NULL.
3770 * d-lang.c (d_language_data): Delete la_get_compile_instance
3771 initializer.
3772 * f-lang.c (f_language_data): Likewise.
3773 * go-lang.c (go_language_data): Likewise.
3774 * language.c (unknown_language_data): Likewise.
3775 (auto_language_data): Likewise.
3776 * language.h (language_data): Delete la_get_compile_instance field.
3777 (language_defn::get_compile_instance): New member function.
3778 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3779 initializer.
3780 * objc-lang.c (objc_language_data): Likewise.
3781 * opencl-lang.c (opencl_language_data): Likewise.
3782 * p-lang.c (pascal_language_data): Likewise.
3783 * rust-lang.c (rust_language_data): Likewise.
3784
4009ee92
AB
37852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * ada-lang.c (ada_add_all_symbols): Update comment.
3788 (ada_iterate_over_symbols): Delete, move implementation to...
3789 (ada_language::iterate_over_symbols): ...here, a new member
3790 function, rewrite to use range based for loop.
3791 (ada_language_data): Delete la_iterate_over_symbols initializer.
3792 * c-lang.c (c_language_data): Likewise.
3793 (cplus_language_data): Likewise.
3794 (asm_language_data): Likewise.
3795 (minimal_language_data): Likewise.
3796 * d-lang.c (d_language_data): Likewise.
3797 * f-lang.c (f_language_data): Likewise.
3798 * go-lang.c (go_language_data): Likewise.
3799 * language.c (unknown_language_data): Likewise.
3800 (auto_language_data): Likewise.
3801 * language.h (language_data): Delete la_iterate_over_symbols field.
3802 (language_defn::iterate_over_symbols): New member function.
3803 (LA_ITERATE_OVER_SYMBOLS): Update.
3804 * linespec.c (iterate_over_all_matching_symtabs): Update.
3805 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3806 initializer.
3807 * objc-lang.c (objc_language_data): Likewise.
3808 * opencl-lang.c (opencl_language_data): Likewise.
3809 * p-lang.c (pascal_language_data): Likewise.
3810 * rust-lang.c (rust_language_data): Likewise.
3811
54f4ca46
AB
38122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * ada-lang.c (ada_language_data): Delete
3815 la_lookup_transparent_type initializer.
3816 * c-lang.c (c_language_data): Likewise.
3817 (cplus_language_data): Likewise.
3818 (cplus_language::lookup_transparent_type): New member function.
3819 (asm_language_data): Delete la_lookup_transparent_type
3820 initializer.
3821 (minimal_language_data): Likewise.
3822 * d-lang.c (d_language_data): Likewise.
3823 * f-lang.c (f_language_data): Likewise.
3824 * go-lang.c (go_language_data): Likewise.
3825 * language.c (unknown_language_data): Likewise.
3826 (auto_language_data): Likewise.
3827 * language.h (struct language_data): Delete
3828 la_lookup_transparent_type field.
3829 (language_defn::lookup_transparent_type): New member function.
3830 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3831 initializer.
3832 * objc-lang.c (objc_language_data): Likewise.
3833 * opencl-lang.c (opencl_language_data): Likewise.
3834 * p-lang.c (pascal_language_data): Likewise.
3835 * rust-lang.c (rust_language_data): Likewise.
3836 * symtab.c (symbol_matches_domain): Update call.
3837
1fb314aa
AB
38382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3839
3840 * ada-lang.c (ada_language_arch_info): Delete function, move
3841 implementation to...
3842 (ada_language::language_arch_info): ...here, a new member
3843 function.
3844 (ada_language_data): Delete la_language_arch_info.
3845 * c-lang.c (c_language_data): Likewise.
3846 (c_language::language_arch_info): New member function.
3847 (cplus_language_arch_info): Delete function, move
3848 implementation to...
3849 (cplus_language::language_arch_info): ...here, a new member
3850 function.
3851 (cplus_language_data): Delete la_language_arch_info.
3852 (asm_language_data): Likewise.
3853 (asm_language::language_arch_info): New member function.
3854 (minimal_language_data): Delete la_language_arch_info.
3855 (minimal_language::language_arch_info): New member function.
3856 * d-lang.c (d_language_arch_info): Delete function, move
3857 implementation to...
3858 (d_language::language_arch_info): ...here, a new member
3859 function.
3860 (d_language_data): Delete la_language_arch_info.
3861 * f-lang.c (f_language_arch_info): Delete function, move
3862 implementation to...
3863 (f_language::language_arch_info): ...here, a new member
3864 function.
3865 (f_language_data): Delete la_language_arch_info.
3866 * go-lang.c (go_language_arch_info): Delete function, move
3867 implementation to...
3868 (go_language::language_arch_info): ...here, a new member
3869 function.
3870 (go_language_data): Delete la_language_arch_info.
3871 * language.c (unknown_language_data): Likewise.
3872 (unknown_language::language_arch_info): New member function.
3873 (auto_language_data): Delete la_language_arch_info.
3874 (auto_language::language_arch_info): New member function.
3875 (language_gdbarch_post_init): Update call to
3876 la_language_arch_info.
3877 * language.h (language_data): Delete la_language_arch_info
3878 function pointer.
3879 (language_defn::language_arch_info): New function.
3880 * m2-lang.c (m2_language_arch_info): Delete function, move
3881 implementation to...
3882 (m2_language::language_arch_info): ...here, a new member
3883 function.
3884 (m2_language_data): Delete la_language_arch_info.
3885 * objc-lang.c (objc_language_arch_info): Delete function, move
3886 implementation to...
3887 (objc_language::language_arch_info): ...here, a new member
3888 function.
3889 (objc_language_data): Delete la_language_arch_info.
3890 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3891 implementation to...
3892 (opencl_language::language_arch_info): ...here, a new member
3893 function.
3894 (opencl_language_data): Delete la_language_arch_info.
3895 * p-lang.c (pascal_language_arch_info): Delete function, move
3896 implementation to...
3897 (pascal_language::language_arch_info): ...here, a new member
3898 function.
3899 (pascal_language_data): Delete la_language_arch_info.
3900 * rust-lang.c (rust_language_arch_info): Delete function, move
3901 implementation to...
3902 (rust_language::language_arch_info): ...here, a new member
3903 function.
3904 (rust_language_data): Delete la_language_arch_info.
3905
48448202
AB
39062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3909 initializer.
3910 * c-lang.c (c_language_data): Likewise.
3911 (cplus_language_data): Likewise.
3912 (cplus_language::pass_by_reference_info): New method.
3913 (asm_language_data): Delete la_pass_by_reference initializer.
3914 (minimal_language_data): Likewise.
3915 * cp-abi.c (cp_pass_by_reference): Remove use of
3916 default_pass_by_reference.
3917 * d-lang.c (d_language_data): Likewise.
3918 * f-lang.c (f_language_data): Likewise.
3919 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3920 default_pass_by_reference.
3921 * go-lang.c (go_language_data): Likewise.
3922 * language.c (language_pass_by_reference): Update.
3923 (default_pass_by_reference): Delete.
3924 (unknown_language_data): Delete la_pass_by_reference
3925 initializer.
3926 (auto_language_data): Likewise.
3927 * language.h (struct language_data): Delete la_pass_by_reference
3928 field.
3929 (language_defn::pass_by_reference_info): New member function.
3930 (default_pass_by_reference): Delete declaration.
3931 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3932 initializer.
3933 * objc-lang.c (objc_language_data): Likewise.
3934 * opencl-lang.c (opencl_language_data): Likewise.
3935 * p-lang.c (pascal_language_data): Likewise.
3936 * rust-lang.c (rust_language_data): Likewise.
3937
15e5fd35
AB
39382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * ada-lang.c (ada_read_var_value): Delete function, move
3941 implementation to...
3942 (ada_language::read_var_value): ...here.
3943 (ada_language_data): Delete la_read_var_value initializer.
3944 * c-lang.c (c_language_data): Likewise.
3945 (cplus_language_data): Likewise.
3946 (minimal_language_data): Likewise.
3947 * d-lang.c (d_language_data): Likewise.
3948 * f-lang.c (f_language_data): Likewise.
3949 * findvar.c (default_read_var_value): Rename to...
3950 (language_defn::read_var_value): ...this.
3951 * findvar.c (read_var_value): Update header comment, and change to
3952 call member function instead of function pointer.
3953 * go-lang.c (go_language_data): Likewise.
3954 * language.c (unknown_language_data): Delete la_read_var_value
3955 initializer.
3956 (auto_language_data): Likewise.
3957 * language.h (struct language_data): Delete la_read_var_value
3958 field.
3959 (language_defn::read_var_value): New member function.
3960 (default_read_var_value): Delete declaration.
3961 * m2-lang.c (m2_language_data): Delete la_read_var_value
3962 initializer.
3963 * objc-lang.c (objc_language_data): Likewise.
3964 * opencl-lang.c (opencl_language_data): Likewise.
3965 * p-lang.c (pascal_language_data): Likewise.
3966 * rust-lang.c (rust_language_data): Likewise.
3967 * value.h (default_read_var_value): Delete declaration.
3968
5bd40f2a
AB
39692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * ada-lang.c (ada_print_array_index): Delete function, move
3972 implementation to...
3973 (ada_language::print_array_index): ...here.
3974 (ada_language_data): Delete la_print_array_index initializer.
3975 * c-lang.c (c_language_data): Likewise.
3976 (cplus_language_data): Likewise.
3977 (minimal_language_data): Likewise.
3978 * d-lang.c (d_language_data): Likewise.
3979 * f-lang.c (f_language_data): Likewise.
3980 * go-lang.c (go_language_data): Likewise.
3981 * language.c (default_print_array_index): Delete function, move
3982 implementation to...
3983 (language_defn::print_array_index): ...here.
3984 (unknown_language_data): Delete la_print_array_index initializer.
3985 (auto_language_data): Likewise.
3986 * language.h (struct language_data): Delete la_print_array_index
3987 field.
3988 (language_defn::print_array_index): New member function.
3989 (LA_PRINT_ARRAY_INDEX): Update.
3990 (default_print_array_index): Delete declaration.
3991 * m2-lang.c (m2_language_data): Delete la_print_array_index
3992 initializer.
3993 * objc-lang.c (objc_language_data): Likewise.
3994 * opencl-lang.c (opencl_language_data): Likewise.
3995 * p-lang.c (pascal_language_data): Likewise.
3996 * rust-lang.c (rust_language_data): Likewise.
3997
0874fd07
AB
39982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * gdb/ada-lang.c (ada_language_defn): Convert to...
4001 (ada_language_data): ...this.
4002 (class ada_language): New class.
4003 (ada_language_defn): New static global.
4004 * gdb/c-lang.c (c_language_defn): Convert to...
4005 (c_language_data): ...this.
4006 (class c_language): New class.
4007 (c_language_defn): New static global.
4008 (cplus_language_defn): Convert to...
4009 (cplus_language_data): ...this.
4010 (class cplus_language): New class.
4011 (cplus_language_defn): New static global.
4012 (asm_language_defn): Convert to...
4013 (asm_language_data): ...this.
4014 (class asm_language): New class.
4015 (asm_language_defn): New static global.
4016 (minimal_language_defn): Convert to...
4017 (minimal_language_data): ...this.
4018 (class minimal_language): New class.
4019 (minimal_language_defn): New static global.
4020 * gdb/d-lang.c (d_language_defn): Convert to...
4021 (d_language_data): ...this.
4022 (class d_language): New class.
4023 (d_language_defn): New static global.
4024 * gdb/f-lang.c (f_language_defn): Convert to...
4025 (f_language_data): ...this.
4026 (class f_language): New class.
4027 (f_language_defn): New static global.
4028 * gdb/go-lang.c (go_language_defn): Convert to...
4029 (go_language_data): ...this.
4030 (class go_language): New class.
4031 (go_language_defn): New static global.
4032 * gdb/language.c (unknown_language_defn): Remove declaration.
4033 (current_language): Initialize to nullptr, real initialization is
4034 moved to _initialize_language.
4035 (languages): Delete global.
4036 (language_defn::languages): Define.
4037 (set_language_command): Use language_defn::languages.
4038 (set_language): Likewise.
4039 (range_error): Likewise.
4040 (language_enum): Likewise.
4041 (language_def): Likewise.
4042 (add_set_language_command): Use language_def::languages for the
4043 language list, and language_def to lookup language pointers.
4044 (skip_language_trampoline): Use language_defn::languages.
4045 (unknown_language_defn): Convert to...
4046 (unknown_language_data): ...this.
4047 (class unknown_language): New class.
4048 (unknown_language_defn): New static global.
4049 (auto_language_defn): Convert to...
4050 (auto_language_data): ...this.
4051 (class auto_language): New class.
4052 (auto_language_defn): New static global.
4053 (language_gdbarch_post_init): Use language_defn::languages.
4054 (_initialize_language): Initialize current_language.
4055 * gdb/language.h (struct language_defn): Rename to...
4056 (struct language_data): ...this.
4057 (struct language_defn): New.
4058 (auto_language_defn): Delete.
4059 (unknown_language_defn): Delete.
4060 (minimal_language_defn): Delete.
4061 (ada_language_defn): Delete.
4062 (asm_language_defn): Delete.
4063 (c_language_defn): Delete.
4064 (cplus_language_defn): Delete.
4065 (d_language_defn): Delete.
4066 (f_language_defn): Delete.
4067 (go_language_defn): Delete.
4068 (m2_language_defn): Delete.
4069 (objc_language_defn): Delete.
4070 (opencl_language_defn): Delete.
4071 (pascal_language_defn): Delete.
4072 (rust_language_defn): Delete.
4073 * gdb/m2-lang.c (m2_language_defn): Convert to...
4074 (m2_language_data): ...this.
4075 (class m2_language): New class.
4076 (m2_language_defn): New static global.
4077 * gdb/objc-lang.c (objc_language_defn): Convert to...
4078 (objc_language_data): ...this.
4079 (class objc_language): New class.
4080 (objc_language_defn): New static global.
4081 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4082 (opencl_language_data): ...this.
4083 (class opencl_language): New class.
4084 (opencl_language_defn): New static global.
4085 * gdb/p-lang.c (pascal_language_defn): Convert to...
4086 (pascal_language_data): ...this.
4087 (class pascal_language): New class.
4088 (pascal_language_defn): New static global.
4089 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4090 language pointer, update comment format.
4091 * gdb/rust-lang.c (rust_language_defn): Convert to...
4092 (rust_language_data): ...this.
4093 (class rust_language): New class.
4094 (rust_language_defn): New static global.
4095
1313c56e
AB
40962020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4097
4098 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4099 member variable.
4100 <m_stmt_at_address>: New member variable.
4101 (lnp_state_machine::record_line): Don't record some lines, update
4102 tracking of is_stmt at the same address.
4103 (lnp_state_machine::lnp_state_machine): Initialise new member
4104 variables.
4105
b7ed9f3d
ST
41062020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4107
4108 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4109 "-include gnu-nat-mig.h".
4110 * gnu-nat-mig.h: New file.
4111 * gnu-nat.c: Include "gnu-nat-mig.h".
4112 (exc_server, msg_reply_server, notify_server,
4113 process_reply_server): Remove declarations.
4114
14a8ad62
ST
41152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4116
4117 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4118 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4119 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4120 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4121 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4122 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4123 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4124 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4125 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4126 to gnu_nat_target class.
4127 * gnu-nat.c: Likewise.
4128 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4129 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4130 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4131 object.
4132 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4133 instead of `gnu_target'.
4134
0af5e106
ST
41352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4136
4137 * i386-gnu-tdep.c: Include "gdbcore.h"
4138 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4139 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4140 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4141 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4142 i386_gnu_sigcontext_addr): New functions
4143 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4144 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4145 tdep.
4146
078f2fc9
ST
41472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4148
4149 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4150 before fork_inferior call. Avoid calling it if target_is_pushed returns
4151 true.
4152
53dff92c
ST
41532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4154
4155 * gnu-nat.h (gnu_target): New variable declaration.
4156 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4157 gnu_target.
4158 * gnu-nat.c (gnu_target): New variable.
4159 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4160 add_thread_silent, and add_thread calls.
4161 (gnu_nat_target::create_inferior): Pass gnu_target to
4162 add_thread_silent, thread_change_ptid call.
4163 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4164 call.
4165
5a8b8627
ST
41662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4167
4168 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4169 (gnu_nat_target::find_memory_regions): Remove unused
4170 `old_address' variable.
4171
366f550a
ST
41722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4173
4174 * gnu-nat.c: Include "gdbarch.h".
4175
f14871bf
ST
41762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4177
4178 * reply_mig_hack.awk (Error return): Cast function through
4179 void *, to bypass compiler function call check.
4180
c6887cfb
ST
41812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4182
4183 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4184 $(srcdir)/reply_mig_hack.awk.
4185
6930bffe
ST
41862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4187
4188 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4189
112c22ed
JG
41902020-05-30 Jonny Grant <jg@jguk.org>
4191
4192 * configure.ac (ACX_BUGURL): change bug URL to https.
4193
f68f85b5
PA
41942020-05-30 Pedro Alves <palves@redhat.com>
4195
4196 * cp-support.c (replace_typedefs_template): New.
4197 (replace_typedefs_qualified_name): Handle
4198 DEMANGLE_COMPONENT_TEMPLATE.
4199
976ca316
SM
42002020-05-29 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4203 dwarf2/index-cache.h, dwarf2/index-write.c,
4204 dwarf2/index-write.h, dwarf2/line-header.c,
4205 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4206 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4207 variables and fields from `dwarf2_per_objfile` to just
4208 `per_objfile` throughout.
4209
989ade05
SM
42102020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4213 <push_dwarf_reg_entry_value>: Add comment.
4214
c47bae85
KB
42152020-05-28 Kevin Buettner <kevinb@redhat.com>
4216 Keith Seitz <keiths@redhat.com>
4217
4218 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4219 instead of PyEval_ReleaseLock.
4220 (class gdbpy_gil): Move to earlier in file.
4221 (finalize_python): Set gdb_python_initialized.
4222 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4223 when not initialized.
4224
44486dcf
SM
42252020-05-28 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4228 <push_dwarf_reg_entry_value>: Remove assert. Override
4229 per_objfile with caller_per_objfile.
4230
f030440d
TV
42312020-05-28 Tom de Vries <tdevries@suse.de>
4232
4233 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4234 PR gold/15646 workaround to symbol kind "type".
4235
f0fbb768
TT
42362020-05-27 Tom Tromey <tromey@adacore.com>
4237
4238 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4239
af0b2a3e
TT
42402020-05-27 Tom Tromey <tromey@adacore.com>
4241
4242 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4243 Use htab_find_with_hash.
4244 <add_abbrev>: Remove "abbrev_number" parameter.
4245 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4246 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4247 (hash_abbrev): Add comment.
4248 (abbrev_table::lookup_abbrev): Move to header file.
4249 (abbrev_table::read): Update.
4250
7d00ffec
TT
42512020-05-27 Tom Tromey <tromey@adacore.com>
4252
4253 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4254 method.
4255 <canonical_name>: New member.
4256 <raw_name>: Rename from "name".
4257 (partial_die_info): Initialize canonical_name.
4258 (scan_partial_symbols): Check raw_name.
4259 (partial_die_parent_scope, partial_die_full_name)
4260 (add_partial_symbol, add_partial_subprogram)
4261 (add_partial_enumeration, load_partial_dies): Use "name" method.
4262 (partial_die_info::name): New method.
4263 (partial_die_info::read, guess_partial_die_structure_name)
4264 (partial_die_info::fixup): Update.
4265
697bba18
TT
42662020-05-27 Tom Tromey <tromey@adacore.com>
4267
4268 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4269 <get_ref_die_offset>: Inline.
4270 <get_ref_die_offset_complaint>: New method.
4271 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4272 (attribute::get_ref_die_offset_complaint): Rename from
4273 get_ref_die_offset. Just issue complaint.
4274
c17ace43
HD
42752020-05-27 Hannes Domani <ssbssa@yahoo.de>
4276
4277 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4278
96445f0b
HD
42792020-05-27 Hannes Domani <ssbssa@yahoo.de>
4280
4281 * exec.c (exec_file_attach): Use errno value of first openp failure.
4282
ac637ec3
HD
42832020-05-27 Hannes Domani <ssbssa@yahoo.de>
4284
4285 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4286 Don't close thread handle.
4287
17ee85fc
TT
42882020-05-27 Tom Tromey <tom@tromey.com>
4289 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4292 shared_ptr.
4293 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4294 member.
4295 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4296 dwarf2_per_bfd_objfile_data_key>: New globals.
4297 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4298 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4299 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4300 shared.
4301 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4302 short-circuit when sharing.
4303 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4304 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4305
39b16f87
SM
43062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4309 to...
4310 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4311 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4312
fcf23d5b
SM
43132020-05-27 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4316 build_name_components, find_name_components_bounds>:
4317 Add per_objfile parameter.
4318 (struct mapped_index) <symbol_name_at>: Likewise.
4319 (struct mapped_debug_names): Remove constructor.
4320 <dwarf2_per_objfile>: Remove field.
4321 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4322 (mapped_index_base::find_name_components_bounds,
4323 mapped_index_base::build_name_components,
4324 dw2_expand_symtabs_matching_symbol): Likewise.
4325 (class mock_mapped_index) <symbol_name_at>: Likewise.
4326 (check_match): Likewise.
4327 (check_find_bounds_finds): Likewise.
4328 (test_mapped_index_find_name_component_bounds): Update.
4329 (CHECK_MATCH): Update.
4330 (dw2_expand_symtabs_matching): Update.
4331 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4332 per_objfile parameter.
4333 <find_vec_in_debug_names>: Likewise.
4334 <m_per_objfile>: New field.
4335 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4336 parameter.
4337 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4338 (dw2_debug_names_iterator::next): Update.
4339 (dw2_debug_names_lookup_symbol): Update.
4340 (dw2_debug_names_expand_symtabs_for_function): Update.
4341 (dw2_debug_names_map_matching_symbols): Update.
4342 (dw2_debug_names_expand_symtabs_matching): Update.
4343 (dwarf2_read_debug_names): Update.
4344
7188ed02
SM
43452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4348 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4349 move to dwarf2_per_objfile.
4350 <read_in_chain>: Remove.
4351 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4352 remove_all_cus, age_comp_units>: New methods.
4353 <m_dwarf2_cus>: New member.
4354 (struct dwarf2_per_cu_data) <cu>: Remove.
4355 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4356 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4357 moved to methods of dwarf2_per_objfile.
4358 (dwarf2_clear_marks): Remove.
4359 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4360 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4361 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4362 (dwarf2_per_objfile::remove_all_cus): New.
4363 (class free_cached_comp_units) <~free_cached_comp_units>:
4364 Update.
4365 (load_cu): Update.
4366 (dw2_do_instantiate_symtab): Adjust.
4367 (fill_in_sig_entry_from_dwo_entry): Adjust.
4368 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4369 (cutu_reader::cutu_reader): Likewise.
4370 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4371 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4372 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4373 and dwarf2_per_objfile::age_comp_units.
4374 (load_partial_comp_unit): Update.
4375 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4376 (process_queue): Likewise.
4377 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4378 backlink.
4379 (dwarf2_read_addr_index): Likewise.
4380 (follow_die_offset): Likewise.
4381 (dwarf2_fetch_die_loc_sect_off): Likewise.
4382 (dwarf2_fetch_constant_bytes): Likewise.
4383 (dwarf2_fetch_die_type_sect_off): Likewise.
4384 (follow_die_sig_1): Likewise.
4385 (load_full_type_unit): Likewise.
4386 (read_signatured_type): Likewise.
4387 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4388 (dwarf2_cu::~dwarf2_cu): Remove.
4389 (dwarf2_per_objfile::get_cu): New.
4390 (dwarf2_per_objfile::set_cu): New.
4391 (age_cached_comp_units): Rename to...
4392 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4393 to std::unordered_map.
4394 (free_one_cached_comp_unit): Rename to...
4395 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4396 to std::unordered_map.
4397 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4398 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4399 a dwarf2_per_objfile in data.
4400 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4401 (dwarf2_clear_marks): Remove.
4402
2e671100
SM
44032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4406 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4407 (init_tu_and_read_dwo_dies): Likewise.
4408 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4409 (cutu_reader::cutu_reader): Likewise.
4410 (load_partial_comp_unit): Likewise.
4411 (process_psymtab_comp_unit): Update.
4412 (build_type_psymtabs_1): Update.
4413 (process_skeletonless_type_unit): Update.
4414 (load_full_comp_unit): Update.
4415 (find_partial_die): Update.
4416 (dwarf2_read_addr_index): Update.
4417 (read_signatured_type): Update.
4418
2e6a9f79
SM
44192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4420
4421 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4422 m_header_read_in>: New fields.
4423 <get_header>: New method.
4424 * dwarf2/read.c (per_cu_header_read_in): Remove.
4425 (dwarf2_per_cu_data::get_header): New.
4426 (dwarf2_per_cu_data::addr_size): Update.
4427 (dwarf2_per_cu_data::offset_size): Update.
4428 (dwarf2_per_cu_data::ref_addr_size): Update.
4429
1b555f17
SM
44302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4433 (dw2_do_instantiate_symtab): Update.
4434 (queue_and_load_all_dwo_tus): Change parameter from
4435 dwarf2_per_cu_data to dwarf2_cu.
4436 (dwarf2_fetch_die_loc_sect_off): Update.
4437 (dwarf2_fetch_constant_bytes): Update.
4438 (dwarf2_fetch_die_type_sect_off): Update.
4439
8fc0b21d
SM
44402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4441
4442 * dwarf2/read.c (process_full_comp_unit,
4443 process_full_type_unit): Remove per_cu, per_objfile paramters.
4444 Add dwarf2_cu parameter.
4445 (process_queue): Update.
4446
168c9250
SM
44472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * dwarf2/read.c (create_cu_from_index_list): Replace
4450 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4451 (create_cus_from_index_list): Likewise.
4452 (create_cus_from_index): Likewise.
4453 (create_signatured_type_table_from_index): Likewise.
4454 (create_cus_from_debug_names_list): Likewise.
4455 (create_cus_from_debug_names): Likewise.
4456 (dwarf2_read_gdb_index): Update.
4457 (dwarf2_read_debug_names): Update.
4458
e286671b
TT
44592020-05-27 Tom Tromey <tom@tromey.com>
4460 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * dwarf2/read.h (struct dwarf2_per_objfile)
4463 <get_type_for_signatured_type, set_type_for_signatured_type>:
4464 New methods.
4465 <m_type_map>: New member.
4466 (struct signatured_type) <type>: Remove.
4467 * dwarf2/read.c
4468 (dwarf2_per_objfile::get_type_for_signatured_type,
4469 dwarf2_per_objfile::set_type_for_signatured_type): New.
4470 (get_signatured_type): Use new methods.
4471
8adb8487
TT
44722020-05-27 Tom Tromey <tom@tromey.com>
4473 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4476 (struct dwarf2_per_objfile) <type_units>: New member.
4477 <get_type_unit_group_unshareable>: New method.
4478 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4479 num_symtabs, symtabs>: Remove; move to
4480 type_unit_group_unshareable.
4481 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4482 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4483 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4484
127bbf4b
SM
44852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * dwarf2/read.h (struct dwarf2_per_cu_data):
4488 <dwarf2_per_objfile>: Remove.
4489 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4490 dwarf2_per_objfile.
4491 (create_signatured_type_table_from_index): Likewise.
4492 (create_signatured_type_table_from_debug_names): Likewise.
4493 (create_debug_type_hash_table): Likewise.
4494 (fill_in_sig_entry_from_dwo_entry): Likewise.
4495 (create_type_unit_group): Likewise.
4496 (read_comp_units_from_section): Likewise.
4497 (create_cus_hash_table): Likewise.
4498
f6e649dd
SM
44992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4500
4501 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4502 dwarf2_per_cu_data::dwarf2_per_objfile.
4503 (compute_compunit_symtab_includes): Likewise.
4504 (dwarf2_cu::start_symtab): Likewise.
4505
aa66c379
SM
45062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4507
4508 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4509 parameter.
4510 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4511 (read_namespace_alias): Update.
4512 (lookup_die_type): Update.
4513 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4514 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4515 Update.
4516 (disassemble_dwarf_expression): Update.
4517
120ce1b5
SM
45182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * dwarf2/read.h (struct dwarf2_queue_item): Add
4521 dwarf2_per_objfile parameter, assign new parameter.
4522 <per_objfile>: New field.
4523 * dwarf2/read.c (free_one_cached_comp_unit): Add
4524 dwarf2_per_objfile parameter.
4525 (queue_comp_unit): Likewise.
4526 (dw2_do_instantiate_symtab): Update.
4527 (process_psymtab_comp_unit): Update.
4528 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4529 (process_imported_unit_die): Update.
4530 (queue_and_load_dwo_tu): Update.
4531 (follow_die_offset): Update.
4532 (follow_die_sig_1): Update.
4533
9f47c707
SM
45342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4537 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4538 (read_call_site_scope): Assign per_objfile.
4539 (dwarf2_per_cu_data::objfile): Remove.
4540 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4541 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4542 dwarf2_per_objfile parameter.
4543 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4544 dwarf2_per_objfile parameter.
4545 (dwarf_expr_reg_to_entry_parameter): Add output
4546 dwarf2_per_objfile parameter.
4547 (locexpr_get_frame_base): Update.
4548 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4549 <push_dwarf_reg_entry_value>: Update.
4550 <call_site_to_target_addr>: Update.
4551 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4552 parameter.
4553 (value_of_dwarf_reg_entry): Update.
4554 (rw_pieced_value): Update.
4555 (indirect_synthetic_pointer): Update.
4556 (dwarf2_evaluate_property): Update.
4557 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4558 parameter.
4559 (locexpr_read_variable): Update.
4560 (locexpr_get_symbol_read_needs): Update.
4561 (loclist_read_variable): Update.
4562
14095eb3
SM
45632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4566 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4567 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4568 parameter.
4569 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4571 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4572 parameter.
4573 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4574 sect_variable_value): Add dwarf2_per_objfile parameter.
4575 (class dwarf_evaluate_loc_desc) <dwarf_call,
4576 dwarf_variable_value>: Update.
4577 (fetch_const_value_from_synthetic_pointer): Add
4578 dwarf2_per_objfile parameter.
4579 (fetch_const_value_from_synthetic_pointer): Update.
4580 (coerced_pieced_ref): Update.
4581 (class symbol_needs_eval_context) <dwarf_call,
4582 dwarf_variable_value>: Update.
4583 (dwarf2_compile_expr_to_ax): Update.
4584
3c3cd3d4
SM
45852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4588 parameter.
4589 (dwarf2_evaluate_loc_desc_full): Update.
4590
82ca3f51
SM
45912020-05-27 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4594 parameter.
4595 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4596 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4597 dwarf2_per_objfile parameter.
4598 (decode_debug_loc_dwo_addresses): Likewise.
4599 (dwarf2_find_location_expression): Update.
4600 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4601 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4602 parameter.
4603 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4604 parameter.
4605 (locexpr_describe_location_1): Likewise.
4606 (locexpr_describe_location): Update.
4607
4b167ea1
SM
46082020-05-27 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4611 Remove.
4612 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4613 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4614 (dwarf2_compile_property_to_c): Update.
4615 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4616 use text offset from objfile.
4617 (locexpr_tracepoint_var_ref): Update.
4618 (locexpr_generate_c_location): Update.
4619 (loclist_describe_location): Update.
4620 (loclist_tracepoint_var_ref): Update.
4621 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4622 dwarf2_per_objfile parameter.
4623 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4624 use text offset from objfile.
4625 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4626
89b07335
SM
46272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/expr.h (struct dwarf_expr_context)
4630 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4631 <offset>: Remove.
4632 <per_objfile>: New member.
4633 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4634 dwarf2_per_objfile parameter. Don't set offset, set
4635 per_objfile.
4636 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4637 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4638 a dwarf2_per_objfile object instead of an offset.
4639 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4640 constructor.
4641 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4642 to dwarf2_expr_executor constructor. Don't set offset.
4643 (dwarf2_fetch_cfa_info): Update.
4644 (struct dwarf2_frame_cache) <text_offset>: Remove.
4645 <per_objfile>: New field.
4646 (dwarf2_frame_cache): Update.
4647 (dwarf2_frame_prev_register): Update.
4648 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4649 <dwarf_evaluate_loc_desc>: Add constructor.
4650 (dwarf2_evaluate_loc_desc_full): Update.
4651 (dwarf2_locexpr_baton_eval): Update.
4652 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4653 Add constructor.
4654 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4655
293e7e51
SM
46562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4659 addr_sized_int_type>: Move to dwarf2_cu.
4660 <int_type>: Move to dwarf2_per_objfile.
4661 (struct dwarf2_per_objfile) <int_type>: Move here.
4662 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4663 addr_sized_int_type>: Move here.
4664 (read_func_scope): Update.
4665 (read_array_type): Update.
4666 (read_tag_string_type): Update.
4667 (attr_to_dynamic_prop): Update.
4668 (dwarf2_per_cu_data::int_type): Rename to...
4669 (dwarf2_per_objfile::int_type): ... this.
4670 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4671 (dwarf2_cu::addr_sized_int_type): ... this.
4672 (read_subrange_type): Update.
4673 (dwarf2_per_cu_data::addr_type): Rename to...
4674 (dwarf2_cu::addr_type): ... this.
4675 (set_die_type): Update.
4676
64874a40
SM
46772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4680 data through per_cu->cu.
4681
4ab09049
SM
46822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4685 dwarf2_per_cu_data parameter fo dwarf2_cu.
4686 (lookup_dwo_type_unit): Likewise.
4687 (read_cutu_die_from_dwo): Likewise.
4688 (lookup_dwo_unit): Likewise.
4689 (open_and_init_dwo_file): Likewise.
4690 (lookup_dwo_cutu): Likewise.
4691 (lookup_dwo_comp_unit): Likewise.
4692 (lookup_dwo_type_unit): Likewise.
4693 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4694 (cutu_reader::cutu_reader): Update.
4695
47b14e86
SM
46962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4699 parameter.
4700 (process_full_type_unit): Likewise.
4701 (process_queue): Update.
4702
43182c09
SM
47032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * dwarf2/read.c (recursively_compute_inclusions): Add
4706 dwarf2_per_objfile parameter.
4707 (compute_compunit_symtab_includes): Likewise.
4708 (process_cu_includes): Update.
4709
7aa104c4
SM
47102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4713 parameter.
4714 (create_type_unit_group): Update.
4715 (process_psymtab_comp_unit_reader): Update.
4716 (build_type_psymtabs_reader): Update.
4717
e3beb21d
SM
47182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4721 object through m_this_cu->cu.
4722
d460f660
SM
47232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4724
4725 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4726 the info parameter.
4727 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4728
ab432490
SM
47292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4732 per_objfile parameter.
4733 (load_full_type_unit): Add per_objfile parameter.
4734 (read_signatured_type): Likewise.
4735 (load_full_comp_unit): Likewise.
4736 (load_cu): Likewise.
4737 (dw2_do_instantiate_symtab): Likewise.
4738 (dw2_get_file_names): Likewise.
4739 (dw2_map_symtabs_matching_filename): Update.
4740 (dw_expand_symtabs_matching_file_matcher): Update.
4741 (dw2_map_symbol_filenames): Update.
4742 (process_psymtab_comp_unit): Add per_objfile parameter.
4743 (build_type_psymtabs_1): Update.
4744 (process_skeletonless_type_unit): Update.
4745 (dwarf2_build_psymtabs_hard): Update.
4746 (load_partial_comp_unit): Add per_objfile parameter.
4747 (scan_partial_symbols): Update.
4748 (load_full_comp_unit): Add per_objfile parameter.
4749 (process_imported_unit_die): Update.
4750 (create_cus_hash_table): Update.
4751 (find_partial_die): Update.
4752 (dwarf2_read_addr_index): Update.
4753 (follow_die_offset): Update.
4754 (dwarf2_fetch_die_loc_sect_off): Update.
4755 (dwarf2_fetch_constant_bytes): Update.
4756 (dwarf2_fetch_die_type_sect_off): Update.
4757 (follow_die_sig_1): Update.
4758 (load_full_type_unit): Add per_objfile parameter.
4759 (read_signatured_type): Likewise.
4760
313bad1b
SM
47612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4764 of objfile_name.
4765
c3699833
SM
47662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4767
4768 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4769 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4770 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4771 field.
4772 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4773 (create_cus_from_index): Update.
4774 (dwarf2_read_gdb_index): Update.
4775 (create_cus_from_debug_names): Update.
4776 (dwarf2_read_debug_names): Update.
4777 (get_abbrev_section_for_cu): Update.
4778 (create_all_comp_units): Update.
4779 (read_attribute_value): Update.
4780 (get_debug_line_section): Update.
4781 * dwarf2/index-cache.c (index_cache::store): Update.
4782 * dwarf2/index-write.c (save_gdb_index_command): Update.
4783 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4784
1859c670
SM
47852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4788 member.
4789 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4790 dwarf2_per_cu_data::per_bfd.
4791 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4792 (create_type_unit_group): Likewise.
4793 (queue_comp_unit): Remove reference to
4794 per_cu->dwarf2_per_objfile.
4795 (maybe_queue_comp_unit): Likewise.
4796 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4797 (create_cus_hash_table): Assign new field.
4798
5e22e966
SM
47992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4800
4801 * dwarf2/read.c: Replace
4802 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4803 dwarf2_cu->per_objfile throughout.
4804
97a1449a
SM
48052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4808 parameter, don't use per_cu->dwarf2_per_objfile.
4809 (dw2_instantiate_symtab): Likewise.
4810 (dw2_find_last_source_symtab): Update.
4811 (dw2_map_expand_apply): Update.
4812 (dw2_lookup_symbol): Update.
4813 (dw2_expand_symtabs_for_function): Update.
4814 (dw2_expand_all_symtabs): Update.
4815 (dw2_expand_symtabs_with_fullname): Update.
4816 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4817 don't use per_cu->dwarf2_per_objfile.
4818 (dw2_expand_marked_cus): Update.
4819 (dw2_find_pc_sect_compunit_symtab): Update.
4820 (dw2_debug_names_lookup_symbol): Update.
4821 (dw2_debug_names_expand_symtabs_for_function): Update.
4822 (dw2_debug_names_map_matching_symbols): Update.
4823 (dwarf2_psymtab::expand_psymtab): Update.
4824
9e021579
SM
48252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4828 <per_objfile>: New member.
4829 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4830 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4831 call to dwarf2_cu.
4832 (cutu_reader::cutu_reader): Update.
4833 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4834
ae090bdb
SM
48352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4838 struct dwarf2_per_objfile.
4839 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4840 dwarf2_per_bfd.
4841 * dwarf2/read.c (set_die_type): Update.
4842 (get_die_type_at_offset): Update.
4843
af758d11
SM
48442020-05-27 Tom Tromey <tom@tromey.com>
4845 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4848 method.
4849 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4850 get_symtab, set_symtab>: New methods.
4851 <m_symtabs>: New field.
4852 (struct dwarf2_psymtab): Derive from partial_symtab.
4853 <readin_p, get_compunit_symtab>: Declare methods.
4854 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4855 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4856 New methods.
4857 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4858 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4859 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4860 (dw2_symtab_iter_next, dw2_print_stats)
4861 (dw2_expand_symtabs_with_fullname)
4862 (dw2_expand_symtabs_matching_one)
4863 (dw_expand_symtabs_matching_file_matcher)
4864 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4865 (dw2_debug_names_iterator::next)
4866 (dw2_debug_names_map_matching_symbols)
4867 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4868 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4869 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4870 New methods.
4871 (get_compunit_symtab, process_full_comp_unit)
4872 (process_full_type_unit): Update.
4873 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4874
5989a64e
SM
48752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4878 then introduce a new dwarf2_per_objfile type.
4879 <read_line_string>: Move to the new dwarf2_per_objfile type.
4880 <objfile>: Likewise.
4881 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4882 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4883 dwarf2_per_objfile->per_bfd.
4884 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4885 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4886 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4887 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4888 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4889 (dwarf2_per_objfile::locate_sections): Rename to...
4890 (dwarf2_per_bfd::locate_sections): ... this.
4891 (dwarf2_per_objfile::get_cutu): Rename to...
4892 (dwarf2_per_bfd::get_cutu): ... this.
4893 (dwarf2_per_objfile::get_cu): Rename to...
4894 (dwarf2_per_bfd::get_cu): ... this.
4895 (dwarf2_per_objfile::get_tu): Rename to...
4896 (dwarf2_per_bfd::get_tu): ... this.
4897 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4898 (dwarf2_per_bfd::allocate_per_cu): ... this.
4899 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4900 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4901 (get_gdb_index_contents_ftype): Change parameter from
4902 dwarf2_per_objfile to dwarf2_per_bfd.
4903 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4904 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4905
a50264ba
TT
49062020-05-27 Tom Tromey <tom@tromey.com>
4907 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4910 (allocate_piece_closure): Set "per_objfile" member.
4911 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4912 (locexpr_describe_location, loclist_describe_location): Use new
4913 member.
4914 * dwarf2/read.c (read_call_site_scope)
4915 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4916 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4917 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4918 handle_data_member_location): Set per_objfile member.
4919 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4920 member.
4921 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4922
d3473f0c
TT
49232020-05-27 Tom Tromey <tom@tromey.com>
4924
4925 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4926 allocate_signatured_type>: Declare new methods.
4927 <m_num_psymtabs>: New member.
4928 (struct dwarf2_per_cu_data) <index>: New member.
4929 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4930 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4931 (create_cu_from_index_list): Use allocate_per_cu.
4932 (create_signatured_type_table_from_index)
4933 (create_signatured_type_table_from_debug_names)
4934 (create_debug_type_hash_table, add_type_unit)
4935 (read_comp_units_from_section): Use allocate_signatured_type.
4936
5717c425
TT
49372020-05-27 Tom Tromey <tom@tromey.com>
4938
4939 * psymtab.c (partial_map_expand_apply)
4940 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4941 (psym_lookup_global_symbol_language)
4942 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4943 (psym_print_stats, psym_expand_symtabs_for_function)
4944 (psym_map_symbol_filenames, psym_map_matching_symbols)
4945 (psym_expand_symtabs_matching)
4946 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4947 (maintenance_check_psymtabs): Update.
4948 * psympriv.h (struct partial_symtab) <readin_p,
4949 get_compunit_symtab>: Add objfile parameter.
4950 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4951 Likewise.
4952 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4953 get_compunit_symtab>: Likewise.
4954 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4955
45940949
TT
49562020-05-27 Tom Tromey <tom@tromey.com>
4957
4958 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4959 member.
4960 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4961 (create_cu_from_index_list)
4962 (create_signatured_type_table_from_index)
4963 (create_signatured_type_table_from_debug_names)
4964 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4965 (dwarf2_create_include_psymtab)
4966 (create_debug_type_hash_table, add_type_unit)
4967 (create_type_unit_group, read_comp_units_from_section)
4968 (dwarf2_compute_name, create_cus_hash_table)
4969 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4970 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4971 obstack.
4972 (dw2_get_real_path): Likewise. Change argument to
4973 dwarf2_per_objfile.
4974
f8c6d152
LM
49752020-05-27 Luis Machado <luis.machado@linaro.org>
4976
4977 PR tdep/26000
4978 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4979 for ldrd (immediate).
4980
e98d2e6d
PW
49812020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4982
4983 * command.h: Add comment giving the name of class_tui.
4984 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4985 create the fake command for the help for class_tui.
4986
53a47a3e
TT
49872020-05-26 Tom Tromey <tromey@adacore.com>
4988
4989 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4990 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4991 (val_atr): New function.
4992 (value_val_atr): Use it.
4993 * ada-valprint.c (print_optional_low_bound): Change low bound
4994 handling for enums.
4995 (val_print_packed_array_elements): Don't call discrete_position.
4996 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4997 discrete_position for enum types.
4998 * language.c (default_print_array_index): Change type.
4999 * language.h (struct language_defn) <la_print_array_index>: Add
5000 index_type parameter, change type of index_value.
5001 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5002 (default_print_array_index): Update.
5003 * valprint.c (maybe_print_array_index): Don't call
5004 value_from_longest. Update.
5005 (value_print_array_elements): Don't call discrete_position.
5006
0bc2354b
TT
50072020-05-26 Tom Tromey <tromey@adacore.com>
5008
5009 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5010 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5011
1218a4bf
CDA
50122020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5013
5014 PR gdb/13519
5015 * avr-tdep.c (avr_integer_to_address): Return data or code
5016 address accordingly to the second 'type' argument of the
5017 function.
5018
92651b1d
MW
50192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5020
5021 * infcmd.c, inferior.h: (construct_inferior_arguments):
5022 Moved function from here to gdbsupport/common-inferior.{h,cc}
5023
0a4f5f8c
TT
50242020-05-23 Tom Tromey <tom@tromey.com>
5025
5026 Revert commit eca1f90c:
5027 * NEWS: Remove entry for completion styling.
5028 * completer.c (_rl_completion_prefix_display_length): Move
5029 declaration later.
5030 (gdb_fnprint): Revert.
5031 (gdb_display_match_list_1): Likewise.
5032 * cli/cli-style.c (completion_prefix_style)
5033 (completion_difference_style, completion_suffix_style): Remove.
5034 (_initialize_cli_style): Revert.
5035 * cli/cli-style.h (completion_prefix_style)
5036 (completion_difference_style, completion_suffix_style): Don't
5037 declare.
5038
e08bd6c5
PA
50392020-05-24 Pedro Alves <palves@redhat.com>
5040
5041 * symtab.c (completion_list_add_name): Return boolean indication
5042 of whether the symbol matched.
5043 (completion_list_add_symbol): Don't try to remove C++ aliases if
5044 the symbol didn't match in the first place.
5045 * symtab.h (completion_list_add_name): Return bool.
5046
ceacbf6e
SM
50472020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5050 type::field.
5051
26f16254
JB
50522020-05-23 Joel Brobecker <brobecker@adacore.com>
5053
5054 GDB 9.2 released.
5055
eca1f90c
TT
50562020-05-23 Tom Tromey <tom@tromey.com>
5057
5058 * NEWS: Add entry for completion styling.
5059 * completer.c (_rl_completion_prefix_display_length): Move
5060 declaration earlier.
5061 (gdb_fnprint): Use completion_style.
5062 (gdb_display_match_list_1): Likewise.
5063 * cli/cli-style.c (completion_prefix_style)
5064 (completion_difference_style, completion_suffix_style): New
5065 globals.
5066 (_initialize_cli_style): Register new globals.
5067 * cli/cli-style.h (completion_prefix_style)
5068 (completion_difference_style, completion_suffix_style): Declare.
5069
51e2cfa2
PA
50702020-05-23 Pedro Alves <palves@redhat.com>
5071
5072 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5073 (parse_escape): Use ISDIGIT instead of isdigit.
5074 (puts_debug): Use gdb_isprint instead of isprint.
5075 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5076 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5077 ISSPACE instead of isspace.
5078 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5079 instead of isspace.
5080 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5081 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5082 instead of isxdigit and ISDIGIT instead of isdigit.
5083
80fc5e77
SM
50842020-05-22 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * gdbtypes.h (struct type) <field>: New method.
5087 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5088 or type::field.
5089
3cabb6b0
SM
50902020-05-22 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5093 (TYPE_FIELDS): Use type::fields. Change all call sites that
5094 modify the propery to use type::set_fields instead.
5095
1f704f76
SM
50962020-05-22 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5099 type::num_fields instead.
5100
5e33d5f4
SM
51012020-05-22 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5104 methods.
5105 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5106 that modify the number of fields to use type::set_num_fields
5107 instead.
5108
9392ebb3
TT
51092020-05-22 Tom Tromey <tromey@adacore.com>
5110
5111 * compile/compile-object-load.h (munmap_list_free): Don't
5112 declare.
5113
7c13f4e8
AB
51142020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5115
5116 * annotate.c (annotate_source_line): Update return type, add call
5117 to update current symtab and line.
5118 * annotate.h (annotate_source_line): Update return type, and
5119 extend header comment.
5120 * source.c (info_line_command): Check annotation_level before
5121 calling annotate_source_line.
5122 * stack.c (print_frame_info): If calling annotate_source_line
5123 returns true, then don't print any other source line information.
5124
aa370940
SM
51252020-05-21 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5128
84d53fa9
SM
51292020-05-21 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * coffread.c (patch_type): Remove NULL check before xfree.
5132 * corefile.c (set_gnutarget): Likewise.
5133 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5134 * exec.c (build_section_table): Likewise.
5135 * remote.c (remote_target::pass_signals): Likewise.
5136 * utils.c (n_spaces): Likewise.
5137 * cli/cli-script.c (document_command): Likewise.
5138 * i386-windows-tdep.c (core_process_module_section): Likewise.
5139 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5140
9d428aae
SM
51412020-05-20 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * symfile.c (reread_symbols): Clear objfile's section_offsets
5144 vector and section indices, re-compute them by calling
5145 sym_offsets.
5146
250106a7
TT
51472020-05-20 Tom Tromey <tromey@adacore.com>
5148
5149 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5150 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5151
9a0bacfb
TV
51522020-05-20 Tom de Vries <tdevries@suse.de>
5153
5154 PR symtab/25833
5155 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5156
7b958a48
AM
51572020-05-20 Alan Modra <amodra@gmail.com>
5158
5159 PR 25993
5160 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5161 bfd_set_filename.
5162 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5163 passed to bfd_set_filename.
5164 * symfile-mem.c (add_vsyscall_page): Likewise for string
5165 passed to symbol_file_add_from_memory.
5166 (symbol_file_add_from_memory): Make name param a const char* and
5167 don't strdup.
5168
c7e97679
AM
51692020-05-20 Alan Modra <amodra@gmail.com>
5170
5171 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5172 rather than accessing bfd->filename directly.
5173 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5174 and use bfd_section_name.
5175 * dwarf2/frame.c (decode_frame_entry): Likewise.
5176 * exec.c (exec_set_section_address): Likewise.
5177 * solib-aix.c (solib_aix_bfd_open): Likewise.
5178 * stap-probe.c (get_stap_base_address): Likewise.
5179 * symfile.c (reread_symbols): Likewise.
5180
563c591b
TT
51812020-05-19 Tom Tromey <tromey@adacore.com>
5182
5183 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5184
f408d82c
SM
51852020-05-19 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5188
98c59b52
PA
51892020-05-19 Pedro Alves <palves@redhat.com>
5190
5191 * NEWS (set exec-file-mismatch): Adjust entry.
5192 * exec.c: Include "build-id.h".
5193 (validate_exec_file): Try to match build IDs instead of filenames.
5194 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5195 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5196 and pass down 'warn_if_slow'.
5197 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5198 gdb_bfd_open_closure to pass it down.
5199 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5200
4111f652
PA
52012020-05-19 Pedro Alves <palves@redhat.com>
5202
5203 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5204 * target.c (target_fileio_open_1): Rename to target_fileio_open
5205 and make extern. Use bool.
5206 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5207 (target_fileio_read_alloc_1): Adjust.
5208 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5209 (target_fileio_open_warn_if_slow): Delete declaration.
5210
ad80db5b
PA
52112020-05-19 Pedro Alves <palves@redhat.com>
5212
5213 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5214 Adjust all callers.
5215
1d6ce4d3
YS
52162020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5217
5218 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5219 whether disp is negative.
5220
9005fbbb
SM
52212020-05-19 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * symfile.h (struct symfile_segment_data)
5224 <~symfile_segment_data>: Remove.
5225 <segment_info>: Change to std::vector.
5226 * symfile.c (default_symfile_segments): Update.
5227 * elfread.c (elf_symfile_segments): Update.
5228
68b888ff
SM
52292020-05-19 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5232 <segments>: New.
5233 <segment_bases, segment_sizes>: Remove.
5234 * symfile.c (default_symfile_segments): Update.
5235 * elfread.c (elf_symfile_segments): Update.
5236 * remote.c (remote_target::get_offsets): Update.
5237 * solib-target.c (solib_target_relocate_section_addresses):
5238 Update.
5239
62982abd
SM
52402020-05-19 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * symfile.h (struct symfile_segment_data): Initialize fields.
5243 <~symfile_segment_data>: Add.
5244 (symfile_segment_data_up): New.
5245 (struct sym_fns) <sym_segments>: Return a
5246 symfile_segment_data_up.
5247 (default_symfile_segments): Return a symfile_segment_data_up.
5248 (free_symfile_segment_data): Remove.
5249 (get_symfile_segment_data): Return a symfile_segment_data_up.
5250 * symfile.c (default_symfile_segments): Likewise.
5251 (get_symfile_segment_data): Likewise.
5252 (free_symfile_segment_data): Remove.
5253 (symfile_find_segment_sections): Update.
5254 * elfread.c (elf_symfile_segments): Return a
5255 symfile_segment_data_up.
5256 * remote.c (remote_target::get_offsets): Update.
5257 * solib-target.c (solib_target_relocate_section_addresses):
5258 Update.
5259 * symfile-debug.c (debug_sym_segments): Return a
5260 symfile_segment_data_up.
5261
7f204339
RO
52622020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5263
e52a0f1b
RO
5264 PR build/25981
5265 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5266 Hardcode register numbers.
5267
7f204339
RO
5268 PR build/25981
5269 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5270 procfs_find_LDT_entry): Remove.
5271 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5272 procfs_find_LDT_entry): Remove.
5273 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5274 Remove.
5275
7f32a4d5
PA
52762020-05-17 Pedro Alves <palves@redhat.com>
5277 Andrew Burgess <andrew.burgess@embecosm.com>
5278 Keno Fischer <keno@juliacomputing.com>
5279
5280 PR gdb/25741
5281 * breakpoint.c (build_target_condition_list): Update comments.
5282 (build_target_command_list): Update comments and skip matching
5283 locations.
5284 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5285 a separate function. Simplify "set breakpoint auto-hw off"
5286 handling.
5287 (insert_breakpoints): Update comment.
5288 (tracepoint_locations_match): New parameter. For breakpoints,
5289 compare location types too, if the caller wants to.
5290 (handle_automatic_hardware_breakpoints): New functions.
5291 (bp_location_is_less_than): Also sort by location type and
5292 hardware breakpoint length.
5293 (update_global_location_list): Handle "set breakpoint auto-hw on"
5294 here.
5295 (update_breakpoint_locations): Ask breakpoint_locations_match to
5296 ignore location types.
5297
7d93a1e0
SM
52982020-05-16 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5301 type::name instead.
5302
d0e39ea2
SM
53032020-05-16 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (struct type) <name, set_name>: New methods.
5306 (TYPE_CODE): Use type::name. Change all call sites used to set
5307 the name to use type::set_name instead.
5308
2dab0c7b
TT
53092020-05-16 Tom Tromey <tom@tromey.com>
5310
5311 * top.c (quit_force): Update.
5312 * infrun.c (handle_no_resumed): Update.
5313 * top.h (all_uis): New function.
5314 (ALL_UIS): Remove.
5315
59f7bd8d
SM
53162020-05-16 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5319
9bf058f0
PA
53202020-05-16 Pedro Alves <palves@redhat.com>
5321
5322 * ia64-linux-nat.c
5323 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5324 Declare method.
5325 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5326
8f86ae1a
SM
53272020-05-15 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5330 (sparc64_adi_info): Likewise.
5331
d6bc0792
TT
53322020-05-15 Tom Tromey <tom@tromey.com>
5333
5334 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5335 block_objfile.
5336 (lookup_objfile_from_block): Remove.
5337 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5338 (lookup_global_symbol): Use block_objfile.
5339 * symtab.h (lookup_objfile_from_block): Don't declare.
5340 * printcmd.c (clear_dangling_display_expressions): Use
5341 block_objfile.
5342 * parse.c (operator_check_standard): Use block_objfile.
5343
8c14c3a3
TT
53442020-05-15 Tom Tromey <tom@tromey.com>
5345
5346 * language.c (language_alloc_type_symbol): Set
5347 SYMBOL_SECTION.
5348 * symtab.c (initialize_objfile_symbol): Remove.
5349 (allocate_symbol): Remove.
5350 (allocate_template_symbol): Remove.
5351 * dwarf2/read.c (fixup_go_packaging): Use "new".
5352 (new_symbol): Use "new".
5353 (read_variable): Don't call initialize_objfile_symbol. Use
5354 "new".
5355 (read_func_scope): Use "new".
5356 * xcoffread.c (process_xcoff_symbol): Don't call
5357 initialize_objfile_symbol.
5358 (SYMBOL_DUP): Remove.
5359 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5360 "new".
5361 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5362 (allocate_template_symbol): Don't declare.
5363 (struct symbol): Add copy constructor. Change defaults.
5364 * jit.c (finalize_symtab): Use "new".
5365 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5366 Use "new".
5367 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5368 (common_block_end): Use "new".
5369 * mdebugread.c (parse_symbol): Use "new".
5370 (new_symbol): Likewise.
5371
5b4a1a8d
PW
53722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5373
5374 * NEWS: Mention changes to help and apropos.
5375
57b4f16e
PW
53762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5377
5378 * command.h (enum command_class): Improve comments, document
5379 that class_alias is for user-defined aliases, give the class
5380 name for each class, remove unused class_xdb.
5381 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5382 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5383 by a precise class.
5384 * infcmd.c (_initialize_infcmd): Likewise.
5385 * reverse.c (_initialize_reverse): Likewise.
5386 * stack.c (_initialize_stack): Likewise.
5387 * symfile.c (_initialize_symfile): Likewise.
5388 * tracepoint.c (_initialize_tracepoint): Likewise.
5389
7c05caf7
PW
53902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5391
5392 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5393 when their aliased command is traversed.
5394 (help_cmd): Add fput_command_names_styled call to
5395 output command name and aliases when command has an alias.
5396
3b3aaacb
PW
53972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5398
5399 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5400 * cli/cli-decode.c (help_cmd_list): Declare as static,
5401 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5402 a command together with the command.
5403 (fput_command_name_styled, fput_command_names_styled): New functions.
5404 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5405 fput_command_name_styled.
5406 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5407 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5408
7aa1b46f
PW
54092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5410
5411 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5412 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5413 * command.h (cmd_show_list): Likewise.
5414 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5415 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5416
89bcba74
PW
54172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5418
5419 * unittests/command-def-selftests.c (traverse_command_structure):
5420 Verify all commands of a list have the same prefix command and
5421 that only the top cmdlist commands have a null prefix.
5422
3f4d92eb
PW
54232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5424
5425 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5426 as prefix, not one of its aliases.
5427 (set_cmd_prefix): Remove.
5428 (do_add_cmd): Centralize the setting of the prefix of a command, when
5429 command is defined after its full chain of prefix commands.
5430 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5431 (add_setshow_cmd_full): Likewise.
5432 (update_prefix_field_of_prefixed_commands): New function.
5433 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5434 update_prefix_field_of_prefixed_commands.
5435 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5436 addresses of remote_set_cmdlist and remote_show_cmdlist given
5437 as argument, not the address of an argument.
5438 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5439 * gdb/remote.c (_initialize_remote): Likewise.
5440
0605465f
PW
54412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5442
5443 * cli/cli-cmds.c (alias_command): Check for an existing alias
5444 using lookup_cmd_composition, as valid_command_p is too strict
5445 and forbids aliases that are the prefix of an existing alias
5446 or command.
5447 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5448 command is properly recognised as a valid command.
5449
58e6ac70
PW
54502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5451
5452 * unittests/help-doc-selftests.c: Rename to
5453 unittests/command-def-selftests.c
5454 * unittests/command-def-selftests.c (help_doc_tests): Update some
5455 comments.
5456 (command_structure_tests, traverse_command_structure): New namespace
5457 and function.
5458 (command_structure_invariants_tests): New function.
5459 (_initialize_command_def_selftests) Renamed from
5460 _initialize_help_doc_selftests, register command_structure_invariants
5461 selftest.
5462
a7b9ceb8
PW
54632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5464
5465 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5466 an alias of 'show'.
5467
b2188a06
JB
54682020-05-15 Joel Brobecker <brobecker@adacore.com>
5469
5470 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5471 ada_is_fixed_point_type. Update all callers.
5472 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5473 all callers.
5474 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5475 Update all callers.
5476 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5477 print_fixed_point_type. Update all callers.
5478 * ada-valprint.c (ada_value_print_num): Replace call to
5479 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5480
a51951c2
KB
54812020-05-14 Kevin Buettner <kevinb@redhat.com>
5482
5483 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5484 processors.
5485 (cpu_supports_bts): Add CV_AMD case.
5486
29d6859f
LM
54872020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5488 Simon Marchi <simon.marchi@efficios.com>
5489
5490 * infrun.c (stop_all_threads): Collect multiple wait events at
5491 each pass.
5492
78134374
SM
54932020-05-14 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5496 type::code instead.
5497
67607e24
SM
54982020-05-14 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * gdbtypes.h (struct type) <code, set_code>: New methods.
5501 (TYPE_CODE): Use type::code. Change all call sites used to set
5502 the code to use type::set_code instead.
5503
a05575d3
TBA
55042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5505 Tom de Vries <tdevries@suse.de>
5506 Pedro Alves <palves@redhat.com>
5507
5508 PR threads/25478
5509 * infrun.c (stop_all_threads): Do NOT ignore
5510 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5511 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5512 received.
5513 (handle_no_resumed): Remove code handling a live inferior with no
5514 threads.
5515 * remote.c (has_single_non_exited_thread): New.
5516 (remote_target::update_thread_list): Do not delete a thread if is
5517 the last thread of the process.
5518 * thread.c (thread_select): Call delete_exited_threads instead of
5519 prune_threads.
5520
6ad82919
TBA
55212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5522
5523 * infrun.c (stop_all_threads): Enable/disable thread events of all
5524 targets. Move a debug message denoting the end of the function
5525 into the SCOPED_EXIT block.
5526
d890404b
TBA
55272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5528
5529 * process-stratum-target.h: Include <set>.
5530 (all_non_exited_process_targets, switch_to_target_no_thread): New
5531 function declarations.
5532 * process-stratum-target.c (all_non_exited_process_targets)
5533 (switch_to_target_no_thread): New function implementations.
5534
293b3ebc
TBA
55352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5536
5537 * infrun.c (handle_inferior_event): Extract out a piece of code
5538 into...
5539 (mark_non_executing_threads): ...this new function.
5540
7ca9b62a
TBA
55412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5542
5543 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5544 use.
5545
fc75c28b
TBA
55462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5547
5548 * regcache.c (regcache_read_pc_protected): New function
5549 implementation that returns 0 if the PC cannot read via
5550 'regcache_read_pc'.
5551 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5552 instead of 'regcache_read_pc'.
5553 (keep_going_pass_signal): Ditto.
5554
a89febbd
TT
55552020-05-13 Tom Tromey <tromey@adacore.com>
5556
5557 * ada-lang.c (align_value): Remove.
5558 (ada_template_to_fixed_record_type_1): Use align_up.
5559
f7e23710
TBA
55602020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5561
5562 * async-event.c: Update the copyright year.
5563 * async-event.h: Update the copyright year.
5564
02ff80c2
SM
55652020-05-12 Simon Marchi <simon.marchi@efficios.com>
5566
5567 * objfiles.h (is_addr_in_objfile,
5568 shared_objfile_contains_address_p): Return bool.
5569 * objfile.c (is_addr_in_objfile,
5570 shared_objfile_contains_address_p): Return bool.
5571
4fd6c7e8
TT
55722020-05-11 Tom Tromey <tromey@adacore.com>
5573
5574 * cli/cli-cmds.c (info_command): Restore.
5575 (_initialize_cli_cmds): Use add_prefix_command for "info".
5576 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5577
5eb68a39
TT
55782020-05-11 Tom Tromey <tromey@adacore.com>
5579
5580 * ada-lang.c (ada_value_primitive_field): Now public.
5581 * ada-lang.h (ada_value_primitive_field): Declare.
5582 * ada-valprint.c (print_field_values): Use
5583 ada_value_primitive_field for wrapper fields.
5584
7666722f
TV
55852020-05-11 Tom de Vries <tdevries@suse.de>
5586
5587 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5588 MODULE_DOMAIN.
5589
3ee6bb11
TV
55902020-05-11 Tom de Vries <tdevries@suse.de>
5591
5592 PR symtab/25941
5593 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5594 with length 0, if not gdb-produced.
5595 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5596
43434996
TV
55972020-05-09 Tom de Vries <tdevries@suse.de>
5598
5599 PR gdb/25955
5600 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5601 calculation.
5602
2f78cffc
TT
56032020-05-09 Tom Tromey <tom@tromey.com>
5604
5605 * top.c (server_command): Now bool.
5606 * top.h (server_command): Now bool.
5607
4f7bc5ed
TT
56082020-05-08 Tom Tromey <tromey@adacore.com>
5609
5610 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5611 already being processed.
5612
8be4b118
TT
56132020-05-08 Tom Tromey <tom@tromey.com>
5614
5615 * printcmd.c (struct display) <next>: Remove.
5616 <display>: New constructor.
5617 <exp_string>: Now a std::string.
5618 <enabled_p>: Now a bool.
5619 (display_number): Move definition earlier.
5620 (displays): Rename from display_chain. Now a std::vector.
5621 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5622 (display_command): Update.
5623 (do_one_display, disable_display)
5624 (enable_disable_display_command, do_enable_disable_display):
5625 Update.
5626 (free_display): Remove.
5627 (clear_displays): Rewrite.
5628 (delete_display): Update.
5629 (map_display_numbers): Use function_view. Remove "data"
5630 parameter. Update.
5631 (do_delete_display): Remove.
5632 (undisplay_command): Update.
5633 (do_one_display, do_displays, disable_display)
5634 (info_display_command): Update.
5635 (do_enable_disable_display): Remove.
5636 (enable_disable_display_command)
5637 (clear_dangling_display_expressions): Update.
5638
94c93c35
TT
56392020-05-08 Tom Tromey <tom@tromey.com>
5640
5641 * symtab.c (set_symbol_cache_size)
5642 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5643 (maintenance_print_symbol_cache_statistics): Update.
5644 * symmisc.c (print_symbol_bcache_statistics)
5645 (print_objfile_statistics, maintenance_print_objfiles)
5646 (maintenance_info_symtabs, maintenance_check_symtabs)
5647 (maintenance_expand_symtabs, maintenance_info_line_tables):
5648 Update.
5649 * symfile-debug.c (set_debug_symfile): Update.
5650 * source.c (forget_cached_source_info): Update.
5651 * python/python.c (gdbpy_progspaces): Update.
5652 * psymtab.c (maintenance_info_psymtabs): Update.
5653 * probe.c (parse_probes): Update.
5654 * linespec.c (iterate_over_all_matching_symtabs)
5655 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5656 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5657 * exec.c (exec_target::close): Update.
5658 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5659 * breakpoint.c (print_one_breakpoint_location)
5660 (create_longjmp_master_breakpoint)
5661 (create_std_terminate_master_breakpoint): Update.
5662 * progspace.c (program_spaces): Now a std::vector.
5663 (maybe_new_address_space): Update.
5664 (add_program_space): Remove.
5665 (program_space::program_space): Update.
5666 (remove_program_space): Update.
5667 (number_of_program_spaces): Remove.
5668 (print_program_space, update_address_spaces): Update.
5669 * progspace.h (program_spaces): Change type.
5670 (ALL_PSPACES): Remove.
5671 (number_of_program_spaces): Don't declare.
5672 (struct program_space) <next>: Remove.
5673
a1fd1ac9
TT
56742020-05-08 Tom Tromey <tom@tromey.com>
5675
5676 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5677 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5678 (enable_break): Update.
5679 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5680 (frv_fdpic_find_canonical_descriptor): Update.
5681 (frv_fetch_objfile_link_map): Update.
5682 * progspace.c (program_space::free_all_objfiles): Update.
5683 (program_space::solibs): New method.
5684 * progspace.h (struct program_space) <solibs>: New method.
5685 * solist.h (master_so_list): Don't declare.
5686 (ALL_SO_LIBS): Remove.
5687 * solib.h (so_list_head): Remove.
5688 (update_solib_list): Update comment.
5689 * solib.c (master_so_list): Remove.
5690 (solib_used, update_solib_list, solib_add)
5691 (info_sharedlibrary_command, clear_solib)
5692 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5693
38eae084
TT
56942020-05-08 Tom Tromey <tom@tromey.com>
5695
5696 * extension.c (extension_languages): Now a std::array.
5697 (ALL_EXTENSION_LANGUAGES): Remove.
5698 (get_ext_lang_defn, get_ext_lang_of_file)
5699 (eval_ext_lang_from_control_command): Update.
5700 (finish_ext_lang_initialization)
5701 (auto_load_ext_lang_scripts_for_objfile)
5702 (ext_lang_type_printers::ext_lang_type_printers)
5703 (apply_ext_lang_type_printers)
5704 (ext_lang_type_printers::~ext_lang_type_printers)
5705 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5706 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5707 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5708 (get_matching_xmethod_workers, ext_lang_colorize)
5709 (ext_lang_before_prompt): Update.
5710 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5711
596dc4ad
TT
57122020-05-08 Tom Tromey <tom@tromey.com>
5713
5714 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5715 overload.
5716 <swap_string, m_string>: Remove.
5717 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5718 Update.
5719 * stabsread.c (define_symbol, read_type): Update.
5720 * linespec.c (find_linespec_symbols): Update.
5721 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5722 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5723 * dbxread.c (read_dbx_symtab): Update.
5724 * cp-support.h (cp_canonicalize_string_full)
5725 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5726 Return unique_xmalloc_ptr.
5727 * cp-support.c (inspect_type): Update.
5728 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5729 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5730 Likewise.
5731 * c-typeprint.c (print_name_maybe_canonical): Update.
5732 * break-catch-throw.c (check_status_exception_catchpoint):
5733 Update.
5734
bf4cb9be
TV
57352020-05-08 Tom de Vries <tdevries@suse.de>
5736
5737 * infrun.c (follow_fork): Copy current_line and current_symtab to
5738 child thread.
5739
a1b68f28
SM
57402020-05-07 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * async-event.c (struct async_signal_handler, struct
5743 async_event_handler): Reformat, remove typedef.
5744
98d48915
SM
57452020-05-07 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5748 access thistype->main_type->dyn_prop_list directly.
5749
7aa91313
SM
57502020-05-07 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5753 (remove_dyn_prop): Remove. Update all users to use
5754 type::remove_dyn_prop.
5755 * gdbtypes.c (remove_dyn_prop): Rename to...
5756 (type::remove_dyn_prop): ... this.
5757
5c54719c
SM
57582020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5759
5760 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5761 (add_dyn_prop): Remove. Update all users to use
5762 type::add_dyn_prop.
5763 * gdbtypes.c (add_dyn_prop): Rename to...
5764 (type::add_dyn_prop): ... this.
5765
24e99c6c
SM
57662020-05-07 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5769 (get_dyn_prop): Remove. Update all users to use
5770 type::dyn_prop.
5771 * gdbtypes.c (get_dyn_prop): Rename to...
5772 (type::dyn_prop): ... this.
5773
0d4bf016
SM
57742020-05-06 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5777
ac4a4f1c
SM
57782020-05-06 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5781 instruction, skip it if it's there.
5782
a3bbacc1
SM
57832020-05-05 Simon Marchi <simon.marchi@efficios.com>
5784
5785 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5786
c3236f84
SM
57872020-05-04 Simon Marchi <simon.marchi@efficios.com>
5788
5789 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5790 * gdbtypes.c (recursive_dump_type): Remove use of
5791 TYPE_INCOMPLETE.
5792
3b6acaee
TT
57932020-05-03 Tom Tromey <tom@tromey.com>
5794
5795 * breakpoint.c (catch_command, tcatch_command): Remove.
5796 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5797 add_show_prefix_cmd.
5798 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5799 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5800 Remove.
5801 (add_internal_problem_command): Use add_basic_prefix_cmd,
5802 add_show_prefix_cmd.
5803 * mips-tdep.c (set_mipsfpu_command): Remove.
5804 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5805 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5806 (_initialize_index_cache): Use add_basic_prefix_cmd.
5807 * memattr.c (dummy_cmd): Remove.
5808 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5809 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5810 (_initialize_tui_win): Use add_basic_prefix_cmd,
5811 add_show_prefix_cmd.
5812 * cli/cli-logging.c (set_logging_command): Remove.
5813 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5814 add_show_prefix_cmd.
5815 (show_logging_command): Remove.
5816 * target.c (target_command): Remove.
5817 (add_target): Use add_basic_prefix_cmd.
5818
a51119cd
HD
58192020-05-02 Hannes Domani <ssbssa@yahoo.de>
5820
5821 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5822
652fc23a 58232020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5824
652fc23a
PW
5825 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5826 info_command.
5827
117539e6
KR
58282020-04-30 Kamil Rytarowski <n54@gmx.com>
5829
5830 * nbsd-nat.c (nbsd_enable_proc_events)
5831 (nbsd_nat_target::post_startup_inferior): Add.
5832 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5833 (nbsd_nat_target::update_thread_list): Rewrite.
5834 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5835 "PTRACE_LWP_CREATE".
5836 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5837
102e38eb 58382020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5839
102e38eb
PW
5840 * stack.c (_initialize_stack): Remove duplicated creation
5841 of "frame" command and "f" alias.
5842
ee9d1e5f
HD
58432020-04-30 Hannes Domani <ssbssa@yahoo.de>
5844
5845 PR gdb/18706
5846 * gdbtypes.c (check_typedef): Calculate size of array of
5847 stubbed type.
5848
627c7fb8
HD
58492020-04-30 Hannes Domani <ssbssa@yahoo.de>
5850
5851 PR gdb/15559
5852 * i386-tdep.c (i386_push_dummy_call): Call
5853 i386_thiscall_push_dummy_call.
5854 (i386_thiscall_push_dummy_call): New function.
5855 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5856 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5857 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5858
ffc2844e
SM
58592020-04-29 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * gdbarch.sh (do_read): Add shellcheck disable directive for
5862 warning SC2162.
5863
1207375d
SM
58642020-04-29 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5867 "referenced but not assigned" warning.
5868
9fdb2916
SM
58692020-04-29 Simon Marchi <simon.marchi@efficios.com>
5870
5871 * gdbarch.sh: Remove code that sets fallbackdefault.
5872
759cea5e
SM
58732020-04-29 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * gdbarch.sh: Use shell operators && and || instead of
5876 -a and -o.
5877
cb02ab24
SM
58782020-04-29 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbarch.sh: Use $(...) instead of `...`.
5881
a6fc5ffc
SM
58822020-04-29 Simon Marchi <simon.marchi@efficios.com>
5883
5884 * gdbarch.sh: Use double quotes around variables.
5885
8d113d13
SM
58862020-04-29 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * gdbarch.sh: Use %s with printf, instead of variables in the
5889 format string.
5890
ed6acedd
TT
58912020-04-29 Tom Tromey <tromey@adacore.com>
5892
5893 PR ada/25875:
5894 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5895 type fields here.
5896 (read_enumeration_type): Call
5897 update_enumeration_type_from_children later. Update comments.
5898 (process_enumeration_scope): Don't create type fields.
5899
b68b1b58
KR
59002020-04-29 Kamil Rytarowski <n54@gmx.com>
5901
5902 * nbsd-tdep.c: Include "xml-syscall.h".
5903 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5904
f94b2e03
KR
59052020-04-29 Kamil Rytarowski <n54@gmx.com>
5906
5907 * nbsd-nat.c: Include "sys/wait.h".
5908 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5909 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5910 (nbsd_nat_target::remove_exec_catchpoint)
5911 (nbsd_nat_target::set_syscall_catchpoint): Add.
5912 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5913 (nbsd_nat_target::insert_exec_catchpoint)
5914 (nbsd_nat_target::remove_exec_catchpoint)
5915 (nbsd_nat_target::set_syscall_catchpoint): Add.
5916 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5917 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5918 `nbsd_get_syscall_number'.
5919
fc49bc72
TT
59202020-04-29 Tom Tromey <tom@tromey.com>
5921
5922 * stack.c (print_block_frame_labels): Remove.
5923
d642b692
HD
59242020-04-29 Hannes Domani <ssbssa@yahoo.de>
5925
5926 PR gdb/17320
5927 * ada-valprint.c (val_print_packed_array_elements): Move array
5928 end bracket to new line.
5929 (ada_val_print_string): Remove extra spaces before first array
5930 element.
5931 * c-valprint.c (c_value_print_array): Likewise.
5932 * m2-valprint.c (m2_print_array_contents): Likewise.
5933 (m2_value_print_inner): Likewise.
5934 * p-valprint.c (pascal_value_print_inner): Likewise.
5935 * valprint.c (generic_val_print_array): Likewise.
5936 (value_print_array_elements): Move first array element and array
5937 end bracket to new line.
5938
ea90f227
TV
59392020-04-29 Tom de Vries <tdevries@suse.de>
5940
5941 PR symtab/25889
5942 * linespec.c (find_method): Fix ix calculation.
5943
4498ef4f
KR
59442020-04-28 Kamil Rytarowski <n54@gmx.com>
5945
5946 * syscalls/update-netbsd.sh: New file.
5947 * syscalls/netbsd.xml: Regenerate.
5948 * data-directory/Makefile.in: Register `netbsd.xml' in
5949 `SYSCALLS_FILES'.
5950
a55e30b5
SM
59512020-04-28 Simon Marchi <simon.marchi@efficios.com>
5952
5953 * syscalls/update-freebsd.sh: Add double quotes.
5954
2b2fbab8
TT
59552020-04-28 Tom Tromey <tom@tromey.com>
5956
5957 * NEWS: Update.
5958 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5959 (cmdpy_init): Allow class_tui.
5960
a65189c9
TV
59612020-04-28 Mark Williams <mark@myosotissp.com>
5962
5963 PR gdb/24480
5964 * dwarf2read.c: Add missing assingments to list_in_scope when
5965 start_symtab was already called.
5966
1b95cdb7
SM
59672020-04-28 Simon Marchi <simon.marchi@efficios.com>
5968
5969 PR gdb/25881
5970 * dwarf2/read.c (offset_map_type): Use
5971 gdb:hash_enum<sect_offset> as hash function.
5972
15cd93d0
TV
59732020-04-28 Tom de Vries <tdevries@suse.de>
5974
5975 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5976 with DW_AT_signature.
5977
1eb39914
SM
59782020-04-27 Simon Marchi <simon.marchi@efficios.com>
5979
5980 * configure.ac: Remove check for fs_base/gs_base in
5981 user_regs_struct.
5982 * configure: Re-generate.
5983 * config.in: Re-generate.
5984 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5985 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5986 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5987
991a3e2e
LM
59882020-04-27 Luis Machado <luis.machado@linaro.org>
5989
5990 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5991 problematic inline frame unwinding situation.
5992 * frame.c (frame_id_computed_p): New function.
5993 * frame.h (frame_id_computed_p): New prototype.
5994
361ba0e8
TT
59952020-04-26 Tom Tromey <tom@tromey.com>
5996
5997 * command.h (enum command_class) <class_pseudo>: Remove.
5998
bc3609fd
PW
59992020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6000
6001 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6002 and whitespace.
6003
b9771db7
KR
60042020-04-25 Kamil Rytarowski <n54@gmx.com>
6005
ec16513e
SM
6006 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6007 `PT_GET_PROCESS_STATE' block.
b9771db7 6008
7151c1af
TT
60092020-04-24 Tom Tromey <tom@tromey.com>
6010
6011 * symtab.h (symbol_get_demangled_name): Don't declare.
6012 * symtab.c (symbol_get_demangled_name): Remove.
6013 (general_symbol_info::natural_name)
6014 (general_symbol_info::demangled_name): Update.
6015
906bb4c5
TT
60162020-04-24 Tom Tromey <tom@tromey.com>
6017
6018 PR rust/25025:
6019 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6020
bcfe6157
TT
60212020-04-24 Tom Tromey <tom@tromey.com>
6022
6023 PR symtab/12707:
6024 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6025 exists.
6026 (new_symbol): Likewise.
6027 * compile/compile-object-load.c (get_out_value_type): Use
6028 symbol_matches_search_name.
6029
f049a313
TT
60302020-04-24 Tom Tromey <tom@tromey.com>
6031
6032 * dwarf2/read.c (add_partial_symbol): Do not call
6033 compute_and_set_names.
6034
76e288d1
TT
60352020-04-24 Tom Tromey <tom@tromey.com>
6036
6037 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6038 overload.
6039
2467f4f6
TT
60402020-04-24 Tom Tromey <tom@tromey.com>
6041
6042 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6043 (add_psymbol_to_list): New overload. Make old overload call new
6044 one.
6045 * psympriv.h (add_psymbol_to_list): New overload.
6046
e61108c9
TT
60472020-04-24 Tom Tromey <tom@tromey.com>
6048
6049 * dwarf2/read.c (partial_die_info::read) <case
6050 DW_AT_linkage_name>: Use value_as_string.
6051 (dwarf2_string_attr): Use value_as_string.
6052 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6053 method.
6054 * dwarf2/attribute.c (attribute::value_as_string): New method.
6055
8c87a452
TT
60562020-04-24 Tom Tromey <tom@tromey.com>
6057
6058 * symtab.c (general_symbol_info::natural_name)
6059 (general_symbol_info::demangled_name): Check for language_rust.
6060
787de330
TT
60612020-04-24 Tom Tromey <tom@tromey.com>
6062
6063 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6064 (dwarf2_physname): ... from here.
6065 (partial_die_info::read): Add Rust "{" hack.
6066
ff985671
TT
60672020-04-24 Tom Tromey <tom@tromey.com>
6068
6069 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6070 method.
6071 (symbol_set_demangled_name): Don't declare.
6072 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6073 symbol_set_demangled_name.
6074 (general_symbol_info::set_language)
6075 (general_symbol_info::compute_and_set_names): Update.
6076 * minsyms.c (minimal_symbol_reader::install): Update.
6077 * dwarf2/read.c (new_symbol): Update.
6078
1acda803
TT
60792020-04-24 Tom Tromey <tromey@adacore.com>
6080
6081 PR python/23662:
6082 * python/py-type.c (convert_field): Handle
6083 FIELD_LOC_KIND_DWARF_BLOCK.
6084 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6085 (typy_get_dynamic): Nw function.
6086 (type_object_getset): Add "dynamic".
6087 * NEWS: Add entry.
6088
d656f129
TT
60892020-04-24 Tom Tromey <tromey@adacore.com>
6090
6091 * ada-typeprint.c (print_choices, print_variant_part)
6092 (print_record_field_types_dynamic): New functions.
6093 (print_record_field_types): Use print_record_field_types_dynamic.
6094
7d79de9a
TT
60952020-04-24 Tom Tromey <tromey@adacore.com>
6096
6097 * dwarf2/read.c (handle_data_member_location): New overload.
6098 (dwarf2_add_field): Use it.
6099 (decode_locdesc): Add "computed" parameter. Update comment.
6100 * gdbtypes.c (is_dynamic_type_internal): Also look for
6101 FIELD_LOC_KIND_DWARF_BLOCK.
6102 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6103 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6104 virtual base classes.
6105 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6106 FIELD_LOC_KIND_DWARF_BLOCK.
6107
f8e89861
TT
61082020-04-24 Tom Tromey <tromey@adacore.com>
6109
6110 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6111 * gdbtypes.c (is_dynamic_type_internal): Check
6112 TYPE_HAS_DYNAMIC_LENGTH.
6113 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6114 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6115 New macros.
6116 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6117 constant.
6118
9c6a1327
TT
61192020-04-24 Tom Tromey <tromey@adacore.com>
6120
6121 * dwarf2/read.c (struct variant_field): Rewrite.
6122 (struct variant_part_builder): New.
6123 (struct nextfield): Remove "variant" field. Add "offset".
6124 (struct field_info): Add "current_variant_part" and
6125 "variant_parts".
6126 (alloc_discriminant_info): Remove.
6127 (alloc_rust_variant): New function.
6128 (quirk_rust_enum): Update.
6129 (dwarf2_add_field): Set "offset" member. Don't handle
6130 DW_TAG_variant_part.
6131 (offset_map_type): New typedef.
6132 (convert_variant_range, create_one_variant)
6133 (create_one_variant_part, create_variant_parts)
6134 (add_variant_property): New functions.
6135 (dwarf2_attach_fields_to_type): Call add_variant_property.
6136 (read_structure_type): Don't handle DW_TAG_variant_part.
6137 (handle_variant_part, handle_variant): New functions.
6138 (handle_struct_member_die): Use them.
6139 (process_structure_scope): Don't handle variant parts.
6140 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6141 (struct discriminant_info): Remove.
6142 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6143 (struct main_type) <flag_discriminated_union>: Remove.
6144 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6145 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6146 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6147 Update.
6148 * valops.c (value_union_variant): Remove.
6149 * value.h (value_union_variant): Don't declare.
6150
b249d2c2
TT
61512020-04-24 Tom Tromey <tromey@adacore.com>
6152
6153 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6154 (ada_value_primitive_packed_val): Update.
6155 * ada-valprint.c (ada_value_print_1): Update.
6156 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6157 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6158 just an address. Use evaluate_for_locexpr_baton.
6159 (dwarf2_evaluate_property): Update.
6160 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6161 array_view.
6162 * findvar.c (default_read_var_value): Update.
6163 * gdbtypes.c (compute_variant_fields_inner)
6164 (resolve_dynamic_type_internal): Update.
6165 (resolve_dynamic_type): Change type of valaddr parameter.
6166 * gdbtypes.h (resolve_dynamic_type): Update.
6167 * valarith.c (value_subscripted_rvalue): Update.
6168 * value.c (value_from_contents_and_address): Update.
6169
61122aa9
TT
61702020-04-24 Tom Tromey <tromey@adacore.com>
6171
6172 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6173 "push_initial_value" parameter.
6174 (dwarf2_evaluate_property): Likewise.
6175 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6176
ef83a141
TT
61772020-04-24 Tom Tromey <tromey@adacore.com>
6178
6179 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6180 (variant::matches, compute_variant_fields_recurse)
6181 (compute_variant_fields_inner, compute_variant_fields): New
6182 functions.
6183 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6184 Use resolved_type after type is made.
6185 (operator==): Add new cases.
6186 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6187 (struct discriminant_range, struct variant, struct variant_part):
6188 New.
6189 (union dynamic_prop_data) <variant_parts, original_type>: New
6190 members.
6191 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6192 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6193 constants.
6194 * value.c (unpack_bits_as_long): Now public.
6195 * value.h (unpack_bits_as_long): Declare.
6196
675127ec
TT
61972020-04-24 Tom Tromey <tromey@adacore.com>
6198
6199 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6200 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6201
9852ceef
HD
62022020-04-24 Hannes Domani <ssbssa@yahoo.de>
6203
6204 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6205
7632c6ce
KR
62062020-04-24 Kamil Rytarowski <n54@gmx.com>
6207
6208 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6209 (remove_fork_catchpoint, post_startup_inferior)
6210 (post_attach): Move...
6211 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6212 (remove_fork_catchpoint, post_startup_inferior)
6213 (post_attach): ...here.
6214 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6215 (remove_fork_catchpoint, post_startup_inferior)
6216 (post_attach): Move...
6217 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6218 (remove_fork_catchpoint, post_startup_inferior)
6219 (post_attach): ...here.
6220
7be2bb4f
TT
62212020-04-24 Tom Tromey <tromey@adacore.com>
6222
6223 * nat/windows-nat.h (struct windows_thread_info)
6224 <pc_adjusted>: New member.
6225 * windows-nat.c (windows_fetch_one_register): Check
6226 pc_adjusted.
6227 (windows_nat_target::get_windows_debug_event)
6228 (windows_nat_target::wait): Set pc_adjusted.
6229
f80cb3b4
TV
62302020-04-24 Tom de Vries <tdevries@suse.de>
6231
6232 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6233 Run gdb-add-index inside temp dir.
6234
29514b87
TT
62352020-04-23 Tom Tromey <tromey@adacore.com>
6236
6237 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6238 in loop.
6239
5939967b
LM
62402020-04-23 Luis Machado <luis.machado@linaro.org>
6241
6242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6243 get_frame_register instead of gdbarch_unwind_pc.
6244
70bc38f5
TV
62452020-04-23 Tom de Vries <tdevries@suse.de>
6246
6247 * symtab.c (lookup_global_symbol): Prefer def over decl.
6248
de82891c
TV
62492020-04-23 Tom de Vries <tdevries@suse.de>
6250
6251 PR symtab/25807
6252 * block.c (best_symbol, better_symbol): Promote to external.
6253 * block.h (best_symbol, better_symbol): Declare.
6254 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6255 decl.
6256
ecc6c606
TT
62572020-04-23 Tom Tromey <tromey@adacore.com>
6258
6259 PR ada/25837:
6260 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6261 "const char *", not a "const std::string &".
6262 <name_and_matcher::operator==>: Update.
6263 * unittests/lookup_name_info-selftests.c: Change type of
6264 "result".
6265
740480b8
TT
62662020-04-23 Tom Tromey <tom@tromey.com>
6267
6268 * inferior.h (iterate_over_inferiors): Don't declare.
6269 * inferior.c (iterate_over_inferiors): Remove.
6270 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6271 Remove.
6272 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6273 use iterate_over_inferiors.
6274 (darwin_resume_inferior_it)
6275 (struct resume_inferior_threads_param)
6276 (darwin_resume_inferior_threads_it): Remove.
6277 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6278
ae3ab1f0
TV
62792020-04-23 Tom de Vries <tdevries@suse.de>
6280
6281 * blockframe.c (find_pc_partial_function): Use
6282 find_pc_sect_compunit_symtab rather than
6283 objfile->sf->qf->find_pc_sect_compunit_symtab.
6284
317d2668
TV
62852020-04-22 Tom de Vries <tdevries@suse.de>
6286
6287 PR symtab/25764
6288 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6289 in psymtabs.
6290
eea9e357
TV
62912020-04-22 Tom de Vries <tdevries@suse.de>
6292
6293 PR symtab/25801
6294 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6295 symtabs.
6296
3d5afab3
TV
62972020-04-22 Tom de Vries <tdevries@suse.de>
6298
6299 PR symtab/25700
6300 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6301 CU if already created.
6302
d43b7a2d
TBA
63032020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6304
6305 * infrun.c (displaced_step_fixup): Switch to the event_thread
6306 before calling displaced_step_restore, not after.
6307
d89edf9b
MM
63082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6309
6310 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6311 its inferior is not recorded by us.
6312 (record_btrace_target_open): Replace call to
6313 all_non_exited_threads () with call to current_inferior
6314 ()->non_exited_threads ().
6315 (record_btrace_target::stop_recording): Likewise.
6316 (record_btrace_target::close): Likewise.
6317 (record_btrace_target::wait): Likewise.
6318 (record_btrace_target::record_stop_replaying): Likewise.
6319
5897fd49
MM
63202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6321
6322 * btrace.c (btrace_enable): Throw an error on double enables and
6323 when enabling recording fails.
6324 (btrace_disable): Throw an error if the thread is not recorded.
6325
1a476b6d
MM
63262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6327
6328 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6329 request if we do not have a thread_info.
6330
4778a5f8
TV
63312020-04-21 Tom de Vries <tdevries@suse.de>
6332
6333 PR gdb/25471
6334 * thread.c
6335 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6336 exception in get_frame_id.
6337
0fa7617d
TT
63382020-04-20 Tom Tromey <tromey@adacore.com>
6339
6340 * python/python.c (struct gdbpy_event): Mark move constructor as
6341 noexcept.
6342 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6343 constructor as noexcept.
6344 * completer.h (struct completion_result): Mark move constructor as
6345 noexcept.
6346 * completer.c (completion_result::completion_result): Use
6347 initialization style. Don't call reset_match_list.
6348
ad23bda0
MS
63492020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6350
6351 * MAINTAINERS (Write After Approval): Add myself.
6352
45e1f031
TT
63532020-04-18 Tom Tromey <tom@tromey.com>
6354
6355 * windows-tdep.c (init_w32_command_list)
6356 (w32_prefix_command_valid): Restore.
6357 (_initialize_windows_tdep): Call init_w32_command_list.
6358
08feed99
TT
63592020-04-18 Tom Tromey <tom@tromey.com>
6360
6361 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6362 * value.c (value_fn_field): Update.
6363 * valops.c (find_function_in_inferior)
6364 (value_allocate_space_in_inferior): Update.
6365 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6366 Update.
6367 * tui/tui-source.c (tui_source_window::set_contents): Update.
6368 * symtab.c (lookup_global_or_static_symbol)
6369 (find_function_start_sal_1, skip_prologue_sal)
6370 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6371 * symmisc.c (dump_msymbols, dump_symtab_1)
6372 (maintenance_print_one_line_table): Update.
6373 * symfile.c (init_entry_point_info, section_is_mapped)
6374 (list_overlays_command, simple_read_overlay_table)
6375 (simple_overlay_update_1): Update.
6376 * stap-probe.c (handle_stap_probe): Update.
6377 * stabsread.c (dbx_init_float_type, define_symbol)
6378 (read_one_struct_field, read_enum_type, read_range_type): Update.
6379 * source.c (info_line_command): Update.
6380 * python/python.c (gdbpy_source_objfile_script)
6381 (gdbpy_execute_objfile_script): Update.
6382 * python/py-type.c (save_objfile_types): Update.
6383 * python/py-objfile.c (py_free_objfile): Update.
6384 * python/py-inferior.c (python_new_objfile): Update.
6385 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6386 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6387 (maintenance_check_psymtabs): Update.
6388 * printcmd.c (info_address_command): Update.
6389 * objfiles.h (struct objfile) <arch>: New method, from
6390 get_objfile_arch.
6391 (get_objfile_arch): Don't declare.
6392 * objfiles.c (get_objfile_arch): Remove.
6393 (filter_overlapping_sections): Update.
6394 * minsyms.c (msymbol_is_function): Update.
6395 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6396 (output_nondebug_symbol): Update.
6397 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6398 (mdebug_expand_psymtab): Update.
6399 * machoread.c (macho_add_oso_symfile): Update.
6400 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6401 Update.
6402 * linux-fork.c (checkpoint_command): Update.
6403 * linespec.c (convert_linespec_to_sals): Update.
6404 * jit.c (finalize_symtab): Update.
6405 * infrun.c (insert_exception_resume_from_probe): Update.
6406 * ia64-tdep.c (ia64_find_unwind_table): Update.
6407 * hppa-tdep.c (internalize_unwinds): Update.
6408 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6409 Update.
6410 * gcore.c (call_target_sbrk): Update.
6411 * elfread.c (record_minimal_symbol, elf_symtab_read)
6412 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6413 (elf_gnu_ifunc_resolve_by_got): Update.
6414 * dwarf2/read.c (create_addrmap_from_index)
6415 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6416 (read_debug_names_from_section)
6417 (process_psymtab_comp_unit_reader, add_partial_symbol)
6418 (add_partial_subprogram, process_full_comp_unit)
6419 (read_file_scope, read_func_scope, read_lexical_block_scope)
6420 (read_call_site_scope, dwarf2_ranges_read)
6421 (dwarf2_record_block_ranges, dwarf2_add_field)
6422 (mark_common_block_symbol_computed, read_tag_pointer_type)
6423 (read_tag_string_type, dwarf2_init_float_type)
6424 (dwarf2_init_complex_target_type, read_base_type)
6425 (partial_die_info::read, partial_die_info::read)
6426 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6427 (dwarf2_fetch_die_loc_sect_off): Update.
6428 * dwarf2/loc.c (dwarf2_find_location_expression)
6429 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6430 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6431 (dwarf2_loc_desc_get_symbol_read_needs)
6432 (locexpr_describe_location_piece, locexpr_describe_location_1)
6433 (loclist_describe_location): Update.
6434 * dwarf2/index-write.c (write_debug_names): Update.
6435 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6436 * dtrace-probe.c (dtrace_process_dof): Update.
6437 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6438 (process_one_symbol): Update.
6439 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6440 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6441 (coff_read_enum_type): Update.
6442 * cli/cli-cmds.c (edit_command, list_command): Update.
6443 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6444 * breakpoint.c (create_overlay_event_breakpoint)
6445 (create_longjmp_master_breakpoint)
6446 (create_std_terminate_master_breakpoint)
6447 (create_exception_master_breakpoint, get_sal_arch): Update.
6448 * block.c (block_gdbarch): Update.
6449 * annotate.c (annotate_source_line): Update.
6450
0743fc83
TT
64512020-04-17 Tom Tromey <tromey@adacore.com>
6452
6453 * auto-load.c (show_auto_load_cmd): Remove.
6454 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6455 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6456 (maintenance_print_arc_command): Remove.
6457 * tui/tui-win.c (tui_command): Remove.
6458 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6459 * tui/tui-layout.c (tui_layout_command): Remove.
6460 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6461 * python/python.c (user_set_python, user_show_python): Remove.
6462 (_initialize_python): Use add_basic_prefix_cmd,
6463 add_show_prefix_cmd.
6464 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6465 (install_gdb_commands): Use add_basic_prefix_cmd,
6466 add_show_prefix_cmd.
6467 (info_guile_command): Remove.
6468 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6469 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6470 add_show_prefix_cmd.
6471 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6472 Remove do_set and do_show parameters.
6473 * cli/cli-style.c (set_style, show_style): Remove.
6474 (_initialize_cli_style): Use add_basic_prefix_cmd,
6475 add_show_prefix_cmd.
6476 (cli_style_option::add_setshow_commands): Remove do_set and
6477 do_show parameters.
6478 (cli_style_option::add_setshow_commands): Use
6479 add_basic_prefix_cmd, add_show_prefix_cmd.
6480 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6481 (set_style_name): Remove.
6482 * cli/cli-dump.c (dump_command, append_command): Remove.
6483 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6484 (tekhex_dump_command, binary_dump_command)
6485 (binary_append_command): Remove.
6486 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6487 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6488 (init_w32_command_list): Remove; move into ...
6489 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6490 * valprint.c (set_print, show_print, set_print_raw)
6491 (show_print_raw): Remove.
6492 (_initialize_valprint): Use add_basic_prefix_cmd,
6493 add_show_prefix_cmd.
6494 * typeprint.c (set_print_type, show_print_type): Remove.
6495 (_initialize_typeprint): Use add_basic_prefix_cmd,
6496 add_show_prefix_cmd.
6497 * record.c (set_record_command, show_record_command): Remove.
6498 (_initialize_record): Use add_basic_prefix_cmd,
6499 add_show_prefix_cmd.
6500 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6501 add_show_prefix_cmd.
6502 (info_command, show_command, set_debug, show_debug): Remove.
6503 * top.h (set_history, show_history): Don't declare.
6504 * top.c (set_history, show_history): Remove.
6505 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6506 (unset_tdesc_cmd): Remove.
6507 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6508 add_show_prefix_cmd.
6509 * symtab.c (info_module_command): Remove.
6510 (_initialize_symtab): Use add_basic_prefix_cmd.
6511 * symfile.c (overlay_command): Remove.
6512 (_initialize_symfile): Use add_basic_prefix_cmd.
6513 * sparc64-tdep.c (info_adi_command): Remove.
6514 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6515 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6516 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6517 add_show_prefix_cmd.
6518 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6519 (_initialize_serial): Use add_basic_prefix_cmd,
6520 add_show_prefix_cmd.
6521 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6522 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6523 add_show_prefix_cmd.
6524 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6525 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6526 add_show_prefix_cmd.
6527 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6528 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6529 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6530 add_show_prefix_cmd.
6531 * remote.c (remote_command, set_remote_cmd): Remove.
6532 (_initialize_remote): Use add_basic_prefix_cmd.
6533 * record-full.c (set_record_full_command)
6534 (show_record_full_command): Remove.
6535 (_initialize_record_full): Use add_basic_prefix_cmd,
6536 add_show_prefix_cmd.
6537 * record-btrace.c (cmd_set_record_btrace)
6538 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6539 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6540 (cmd_show_record_btrace_pt): Remove.
6541 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6542 add_show_prefix_cmd.
6543 * ravenscar-thread.c (set_ravenscar_command)
6544 (show_ravenscar_command): Remove.
6545 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6546 add_show_prefix_cmd.
6547 * mips-tdep.c (show_mips_command, set_mips_command)
6548 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6549 add_show_prefix_cmd.
6550 * maint.c (maintenance_command, maintenance_info_command)
6551 (maintenance_check_command, maintenance_print_command)
6552 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6553 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6554 add_show_prefix_cmd.
6555 (show_per_command_cmd): Remove.
6556 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6557 Remove.
6558 (maintenance_show_test_settings_cmd): Remove.
6559 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6560 add_show_prefix_cmd.
6561 * maint-test-options.c (maintenance_test_options_command):
6562 Remove.
6563 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6564 * macrocmd.c (macro_command): Remove
6565 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6566 * language.c (set_check, show_check): Remove.
6567 (_initialize_language): Use add_basic_prefix_cmd,
6568 add_show_prefix_cmd.
6569 * infcmd.c (unset_command): Remove.
6570 (_initialize_infcmd): Use add_basic_prefix_cmd.
6571 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6572 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6573 add_show_prefix_cmd.
6574 * go32-nat.c (go32_info_dos_command): Remove.
6575 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6576 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6577 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6578 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6579 (_initialize_frame): Use add_basic_prefix_cmd,
6580 add_show_prefix_cmd.
6581 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6582 (_initialize_dcache): Use add_basic_prefix_cmd,
6583 add_show_prefix_cmd.
6584 * cp-support.c (maint_cplus_command): Remove.
6585 (_initialize_cp_support): Use add_basic_prefix_cmd.
6586 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6587 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6588 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6589 add_basic_prefix_cmd, add_show_prefix_cmd.
6590 * breakpoint.c (save_command): Remove.
6591 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6592 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6593 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6594 add_show_prefix_cmd.
6595 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6596 (set_ada_command, show_ada_command): Remove.
6597 (_initialize_ada_language): Use add_basic_prefix_cmd,
6598 add_show_prefix_cmd.
6599 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6600
3557f442
KR
66012020-04-16 Kamil Rytarowski <n54@gmx.com>
6602
6603 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6604 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6605
16197208
SM
66062020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6607
6608 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6609 warning messages.
6610
00ac85d3
SM
66112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6612
6613 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6614 import table is not at beginning of .idata section.
6615
381ce63f
PA
66162020-04-16 Pedro Alves <palves@redhat.com>
6617
6618 * inferior.c (delete_inferior): Use delete operator directly
6619 instead of delete_program_space.
6620 * progspace.c (add_program_space): New, factored out from
6621 program_space::program_space.
6622 (remove_program_space): New, factored out from
6623 delete_program_space.
6624 (program_space::program_space): Remove intro comment. Rewrite.
6625 (program_space::~program_space): Remove intro comment. Call
6626 remove_program_space.
6627 (delete_program_space): Delete.
6628 * progspace.h (program_space::program_space): Make explicit. Move
6629 intro comment here, adjusted.
6630 (program_space::~program_space): Move intro comment here,
6631 adjusted.
6632 (delete_program_space): Remove.
6633
a010605f
TT
66342020-04-16 Tom Tromey <tromey@adacore.com>
6635
6636 * windows-nat.c (windows_nat::handle_access_violation): New
6637 function.
6638 * nat/windows-nat.h (handle_access_violation): Declare.
6639 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6640 windows-nat.c. Call handle_access_violation.
6641
efba5c23
TV
66422020-04-16 Tom de Vries <tdevries@suse.de>
6643
6644 PR symtab/25791
6645 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6646 CUs without psymtab.
6647
97ed802d
KB
66482020-04-16 Kevin Buettner <kevinb@redhat.com>
6649
6650 * python/python.c (do_start_initialization): Don't call
6651 PyEval_InitThreads for Python 3.9 and beyond.
6652
c7d64809
KR
66532020-04-15 Kamil Rytarowski <n54@gmx.com>
6654
6655 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6656 thread functions.
6657 (obsd_nat_target::wait): Likewise.
6658
ce127a96
TT
66592020-04-15 Tom Tromey <tromey@adacore.com>
6660
6661 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6662 (DEBUG_EXCEPT): Use debug_printf.
6663
99f1bc6a
AB
66642020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * completer.c (class completion_tracker::completion_hash_entry)
6667 <hash_name>: New member function.
6668 (completion_tracker::discard_completions): New callback to hash a
6669 completion_hash_entry, pass this to htab_create_alloc.
6670
a0e9b532
JT
66712016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6672
6673 * windows-nat.c (windows_make_so): Warn rather than stopping with
6674 an error if realpath() fails.
6675
06ca5dd4
KR
66762020-04-14 Kamil Rytarowski <n54@gmx.com>
6677
6678 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6679 (nbsd_nat_target::info_proc): Add do_status.
6680
194d088f
TV
66812020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6682 Tom de Vries <tdevries@suse.de>
6683
6684 PR symtab/25718
6685 * psympriv.h (struct partial_symtab::read_symtab)
6686 (struct partial_symtab::expand_psymtab)
6687 (struct partial_symtab::read_dependencies): Update comments.
6688 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6689 read_symtab for includer.
6690 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6691 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6692 (struct dwarf2_include_psymtab::m_readin): Remove.
6693 (struct dwarf2_include_psymtab::includer): New member function.
6694 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6695
c1a66c06
TV
66962020-04-14 Tom de Vries <tdevries@suse.de>
6697
6698 PR symtab/25720
6699 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6700 with NULL symbol_matcher and lookup_name.
6701 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6702 and lookup_name.
6703 * dwarf2/read.c (dw2_expand_symtabs_matching)
6704 (dw2_debug_names_expand_symtabs_matching): Same.
6705 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6706 Make lookup_name a pointer. Update comment.
6707 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6708 lookup_name being a pointer.
6709 * symfile.c (expand_symtabs_matching): Same.
6710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6711 * linespec.c (iterate_over_all_matching_symtabs): Same.
6712
400b5eca
TT
67132020-04-13 Tom Tromey <tom@tromey.com>
6714
6715 * run-on-main-thread.c: Update include.
6716 * unittests/main-thread-selftests.c: Update include.
6717 * tui/tui-win.c: Update include.
6718 * tui/tui-io.c: Update include.
6719 * tui/tui-interp.c: Update include.
6720 * tui/tui-hooks.c: Update include.
6721 * top.h: Update include.
6722 * top.c: Update include.
6723 * ser-base.c: Update include.
6724 * remote.c: Update include.
6725 * remote-notif.c: Update include.
6726 * remote-fileio.c: Update include.
6727 * record-full.c: Update include.
6728 * record-btrace.c: Update include.
6729 * python/python.c: Update include.
6730 * posix-hdep.c: Update include.
6731 * mingw-hdep.c: Update include.
6732 * mi/mi-main.c: Update include.
6733 * mi/mi-interp.c: Update include.
6734 * main.c: Update include.
6735 * linux-nat.c: Update include.
6736 * interps.c: Update include.
6737 * infrun.c: Update include.
6738 * inf-loop.c: Update include.
6739 * event-top.c: Update include.
6740 * event-loop.c: Move to ../gdbsupport/.
6741 * event-loop.h: Move to ../gdbsupport/.
6742 * async-event.h: Update include.
6743 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6744
93b54c8e
TT
67452020-04-13 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-win.c: Include async-event.h.
6748 * remote.c: Include async-event.h.
6749 * remote-notif.c: Include async-event.h.
6750 * record-full.c: Include async-event.h.
6751 * record-btrace.c: Include async-event.h.
6752 * infrun.c: Include async-event.h.
6753 * event-top.c: Include async-event.h.
6754 * event-loop.h: Move some declarations to async-event.h.
6755 * event-loop.c: Don't include ser-event.h or top.h. Move some
6756 code to async-event.c.
6757 * async-event.h: New file.
6758 * async-event.c: New file.
6759 * Makefile.in (COMMON_SFILES): Add async-event.c.
6760 (HFILES_NO_SRCDIR): Add async-event.h.
6761
c1cd3163
TT
67622020-04-13 Tom Tromey <tom@tromey.com>
6763
6764 * utils.c (flush_streams): New function.
6765 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6766
29f2bf4f
TT
67672020-04-13 Tom Tromey <tom@tromey.com>
6768
6769 * event-loop.c (handle_file_event): Use warning, not
6770 printf_unfiltered.
6771
98029d02
TT
67722020-04-13 Tom Tromey <tom@tromey.com>
6773
6774 * event-loop.c: Include <chrono>.
6775
06cc9596
TT
67762020-04-13 Tom Tromey <tom@tromey.com>
6777
6778 * gdb_select.h: Move to ../gdbsupport/.
6779 * event-loop.c: Update include path.
6780 * top.c: Update include path.
6781 * ser-base.c: Update include path.
6782 * ui-file.c: Update include path.
6783 * ser-tcp.c: Update include path.
6784 * guile/scm-ports.c: Update include path.
6785 * posix-hdep.c: Update include path.
6786 * ser-unix.c: Update include path.
6787 * gdb_usleep.c: Update include path.
6788 * mingw-hdep.c: Update include path.
6789 * inflow.c: Update include path.
6790 * infrun.c: Update include path.
6791 * event-top.c: Update include path.
6792
8ae8e197
TT
67932020-04-13 Tom Tromey <tom@tromey.com>
6794
6795 * configure: Rebuild.
6796 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6797
58cf28e8
TT
67982020-04-13 Tom Tromey <tom@tromey.com>
6799
6800 * event-loop.h (start_event_loop): Don't declare.
6801 * event-loop.c (start_event_loop): Move...
6802 * main.c (start_event_loop): ...here. Now static.
6803
b7f999ae
SDJ
68042020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6805
6806 * MAINTAINERS: Update my email address.
6807
1085dfd4
KR
68082020-04-12 Kamil Rytarowski <n54@gmx.com>
6809
6810 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6811 IP_ALL.
6812
49d1d1f5
KR
68132020-04-12 Kamil Rytarowski <n54@gmx.com>
6814
6815 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6816 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6817
b4848d2a
KR
68182020-04-12 Kamil Rytarowski <n54@gmx.com>
6819
6820 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6821 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6822
51c133d5
KR
68232020-04-12 Kamil Rytarowski <n54@gmx.com>
6824
6825 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6826
54b8cbd0
KR
68272020-04-11 Kamil Rytarowski <n54@gmx.com>
6828
6829 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6830 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6831 (nbsd_nat_target::info_proc): New functions.
6832 * nbsd-nat.c (kinfo_get_vmmap): New function.
6833 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6834 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6835 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6836 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6837 functions.
6838 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6839 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6840 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6841 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6842 (KINFO_VME_FLAG_GROWS_DOWN): New.
6843
cf83625d
AS
68442020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6845
6846 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6847 bit shift.
6848
0c4311ab
TT
68492020-04-10 Tom Tromey <tromey@adacore.com>
6850
6851 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6852
3e65b3e9
TT
68532020-04-10 Tom Tromey <tromey@adacore.com>
6854
6855 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6856 separate debug files.
6857
13302e95
HD
68582020-04-10 Hannes Domani <ssbssa@yahoo.de>
6859
6860 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6861 Move to...
6862 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6863 ... here.
6864 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6865 Check for STATUS_WX86_BREAKPOINT.
6866 (windows_nat_target::wait): Same.
6867
bdfc1e8a
TV
68682020-04-10 Tom de Vries <tdevries@suse.de>
6869
6870 PR cli/25808
6871 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6872
f4460aec
SM
68732020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6874
6875 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6876 (Write After Approval): Remove Tom de Vries.
6877
a25198bb
BE
68782020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6879
6880 revert partially:
6881 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6882
aac66a4c
SM
6883 * buildsym.c (record_line): Fix undefined behavior and preserve
6884 lines at eof.
a25198bb 6885
206c98a6
KR
68862020-04-09 Kamil Rytarowski <n54@gmx.com>
6887
6888 * auxv.h (svr4_auxv_parse): New.
6889 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6890 and generic_auxv_parse.
6891 (svr4_auxv_parse): Add.
6892 * obsd-tdep.c: Include "auxv.h".
6893 (obsd_auxv_parse): Remove.
6894 (obsd_init_abi): Remove comment.
6895 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6896 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6897 * nbsd-tdep.c: Include "auxv.h".
6898 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6899
71fbdbaf
TT
69002020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * nat/windows-nat.h (last_wait_event): Don't declare.
6903 (wait_for_debug_event): Update comment.
6904 * nat/windows-nat.c (last_wait_event): Now static.
6905
2c1d95e8
TT
69062020-04-08 Tom Tromey <tromey@adacore.com>
6907
6908 * windows-nat.c (wait_for_debug_event): Move to
6909 nat/windows-nat.c.
6910 * nat/windows-nat.h (wait_for_debug_event): Declare.
6911 * nat/windows-nat.c (wait_for_debug_event): Move from
6912 windows-nat.c. No longer static.
6913
d2977bc4
TT
69142020-04-08 Tom Tromey <tromey@adacore.com>
6915
6916 * windows-nat.c (get_windows_debug_event): Use
6917 fetch_pending_stop.
6918 * nat/windows-nat.h (fetch_pending_stop): Declare.
6919 * nat/windows-nat.c (fetch_pending_stop): New function.
6920
e758e19c
TT
69212020-04-08 Tom Tromey <tromey@adacore.com>
6922
6923 * windows-nat.c (windows_continue): Use matching_pending_stop and
6924 continue_last_debug_event.
6925 * nat/windows-nat.h (matching_pending_stop)
6926 (continue_last_debug_event): Declare.
6927 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6928 (matching_pending_stop, continue_last_debug_event): New
6929 functions.
6930
8d30e395
TT
69312020-04-08 Tom Tromey <tromey@adacore.com>
6932
6933 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6934 (handle_exception_result): Move to nat/windows-nat.h.
6935 (DEBUG_EXCEPTION_SIMPLE): Remove.
6936 (windows_nat::handle_ms_vc_exception): New function.
6937 (handle_exception): Move to nat/windows-nat.c.
6938 (get_windows_debug_event): Update.
6939 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6940 nat/windows-nat.c.
6941 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6942 (handle_exception_result): Move from windows-nat.c.
6943 (handle_exception): Declare.
6944 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6945 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6946 windows-nat.c.
6947
29de418d
TT
69482020-04-08 Tom Tromey <tromey@adacore.com>
6949
6950 * windows-nat.c (exception_count, event_count): Remove.
6951 (handle_exception, get_windows_debug_event)
6952 (do_initial_windows_stuff): Update.
6953
a816ba18
TT
69542020-04-08 Tom Tromey <tromey@adacore.com>
6955
6956 * windows-nat.c (windows_nat::handle_load_dll)
6957 (windows_nat::handle_unload_dll): Rename. No longer static.
6958 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6959 Declare.
6960
a00caa12
TT
69612020-04-08 Tom Tromey <tromey@adacore.com>
6962
6963 * complaints.h (stop_whining): Declare at top-level.
6964 (complaint): Don't declare stop_whining.
6965
d41b524f
TT
69662020-04-08 Tom Tromey <tromey@adacore.com>
6967
6968 * windows-nat.c (windows_nat::handle_output_debug_string):
6969 Rename. No longer static.
6970 * nat/windows-nat.h (handle_output_debug_string): Declare.
6971
3c76026d
TT
69722020-04-08 Tom Tromey <tromey@adacore.com>
6973
6974 * windows-nat.c (current_process_handle, current_process_id)
6975 (main_thread_id, last_sig, current_event, last_wait_event)
6976 (current_windows_thread, desired_stop_thread_id, pending_stops)
6977 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6978 (display_selectors, fake_create_process)
6979 (get_windows_debug_event): Update.
6980 * nat/windows-nat.h (current_process_handle, current_process_id)
6981 (main_thread_id, last_sig, current_event, last_wait_event)
6982 (current_windows_thread, desired_stop_thread_id, pending_stops)
6983 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6984 * nat/windows-nat.c (current_process_handle, current_process_id)
6985 (main_thread_id, last_sig, current_event, last_wait_event)
6986 (current_windows_thread, desired_stop_thread_id, pending_stops)
6987 (siginfo_er): New globals. Move from windows-nat.c.
6988
9d8679cc
TT
69892020-04-08 Tom Tromey <tromey@adacore.com>
6990
6991 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6992 (handle_load_dll): Update.
6993 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6994
28688adf
TT
69952020-04-08 Tom Tromey <tromey@adacore.com>
6996
6997 * windows-nat.c (enum thread_disposition_type): Move to
6998 nat/windows-nat.h.
6999 (windows_nat::thread_rec): Rename from thread_rec. No longer
7000 static.
7001 (windows_add_thread, windows_nat_target::fetch_registers)
7002 (windows_nat_target::store_registers, handle_exception)
7003 (windows_nat_target::resume, get_windows_debug_event)
7004 (windows_nat_target::get_tib_address)
7005 (windows_nat_target::thread_name)
7006 (windows_nat_target::thread_alive): Update.
7007 * nat/windows-nat.h (enum thread_disposition_type): Move from
7008 windows-nat.c.
7009 (thread_rec): Declare.
7010
4834dad0
TT
70112020-04-08 Tom Tromey <tromey@adacore.com>
7012
7013 * windows-nat.c: Add "using namespace".
7014 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7015 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7016
65bafd5b
TT
70172020-04-08 Tom Tromey <tromey@adacore.com>
7018
7019 * nat/windows-nat.h (struct windows_thread_info): Declare
7020 destructor.
7021 * nat/windows-nat.c (~windows_thread_info): New.
7022
0a4afda3
TT
70232020-04-08 Tom Tromey <tromey@adacore.com>
7024
7025 PR gdb/22992
7026 * windows-nat.c (current_event): Update comment.
7027 (last_wait_event, desired_stop_thread_id): New globals.
7028 (struct pending_stop): New.
7029 (pending_stops): New global.
7030 (windows_nat_target) <stopped_by_sw_breakpoint>
7031 <supports_stopped_by_sw_breakpoint>: New methods.
7032 (windows_fetch_one_register): Add assertions. Adjust PC.
7033 (windows_continue): Handle pending stops. Suspend other threads
7034 when stepping. Use last_wait_event
7035 (wait_for_debug_event): New function.
7036 (get_windows_debug_event): Use wait_for_debug_event. Handle
7037 pending stops. Queue spurious stops.
7038 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7039 (windows_nat_target::kill): Use wait_for_debug_event.
7040 * nat/windows-nat.h (struct windows_thread_info)
7041 <stopped_at_software_breakpoint>: New field.
7042 * nat/windows-nat.c (windows_thread_info::resume): Clear
7043 stopped_at_software_breakpoint.
7044
8e61ebec
TT
70452020-04-08 Tom Tromey <tromey@adacore.com>
7046
7047 * windows-nat.c (enum thread_disposition_type): New.
7048 (thread_rec): Replace "get_context" parameter with "disposition";
7049 change type.
7050 (windows_add_thread, windows_nat_target::fetch_registers)
7051 (windows_nat_target::store_registers, handle_exception)
7052 (windows_nat_target::resume, get_windows_debug_event)
7053 (windows_nat_target::get_tib_address)
7054 (windows_nat_target::thread_name)
7055 (windows_nat_target::thread_alive): Update.
7056
98a03287
TT
70572020-04-08 Tom Tromey <tromey@adacore.com>
7058
7059 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7060 (windows_continue): Use windows_continue::resume.
7061 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7062 resume>: Declare new methods.
7063 * nat/windows-nat.c: New file.
7064 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7065
7c7411bc
TT
70662020-04-08 Tom Tromey <tromey@adacore.com>
7067
7068 * windows-nat.c (windows_add_thread, windows_delete_thread)
7069 (windows_nat_target::fetch_registers)
7070 (windows_nat_target::store_registers, fake_create_process)
7071 (windows_nat_target::resume, windows_nat_target::resume)
7072 (get_windows_debug_event, windows_nat_target::wait)
7073 (windows_nat_target::pid_to_str)
7074 (windows_nat_target::get_tib_address)
7075 (windows_nat_target::get_ada_task_ptid)
7076 (windows_nat_target::thread_name)
7077 (windows_nat_target::thread_alive): Use lwp, not tid.
7078
2950fdf7
TT
70792020-04-08 Tom Tromey <tromey@adacore.com>
7080
7081 * windows-nat.c (handle_exception)
7082 (windows_nat_target::thread_name): Update.
7083 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7084 <name>: Now unique_xmalloc_ptr.
7085
62fe396b
TT
70862020-04-08 Tom Tromey <tromey@adacore.com>
7087
7088 * windows-nat.c (thread_rec)
7089 (windows_nat_target::fetch_registers): Update.
7090 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7091 Update comment.
7092 <debug_registers_changed, reload_context>: Now bool.
7093
e9534bd2
TT
70942020-04-08 Tom Tromey <tromey@adacore.com>
7095
7096 * windows-nat.c (windows_add_thread): Use new.
7097 (windows_init_thread_list, windows_delete_thread): Use delete.
7098 (get_windows_debug_event): Update.
7099 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7100 destructor, and initializers.
7101
ae1f8880
TT
71022020-04-08 Tom Tromey <tromey@adacore.com>
7103
7104 * windows-nat.c (struct windows_thread_info): Remove.
7105 * nat/windows-nat.h: New file.
7106
55a1e039
TT
71072020-04-08 Tom Tromey <tromey@adacore.com>
7108
7109 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7110 (thread_rec, windows_add_thread, windows_delete_thread)
7111 (windows_continue): Update.
7112
93366324
TT
71132020-04-08 Tom Tromey <tromey@adacore.com>
7114
7115 * windows-nat.c (struct windows_thread_info): Remove typedef.
7116 (thread_head): Remove.
7117 (thread_list): New global.
7118 (thread_rec, windows_add_thread, windows_init_thread_list)
7119 (windows_delete_thread, windows_continue): Update.
7120
0f2265e2
SM
71212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7122
7123 * windows-tdep.h (windows_init_abi): Add comment.
7124 (cygwin_init_abi): New declaration.
7125 * windows-tdep.c: Split signal enumeration in two, one for
7126 Windows and one for Cygwin.
7127 (windows_gdb_signal_to_target): Only deal with signal of the
7128 Windows OS ABI.
7129 (cygwin_gdb_signal_to_target): New function.
7130 (windows_init_abi): Rename to windows_init_abi_common, don't set
7131 gdb_signal_to_target gdbarch method. Add new new function with
7132 this name.
7133 (cygwin_init_abi): New function.
7134 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7135 comment. Don't call windows_init_abi.
7136 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7137 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7138 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7139 i386_windows_init_abi_common, don't call windows_init_abi. Add
7140 a new function of this name.
7141 (i386_cygwin_init_abi): New function.
7142 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7143 OS ABI Cygwin.
7144
3810f182
SM
71452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7146
7147 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7148 parameter.c.
7149 (dwarf2_read_gdb_index): Update.
7150
063f8e80
KR
71512020-04-07 Kamil Rytarowski <n54@gmx.com>
7152
7153 * nbsd-tdep.c: Include "objfiles.h".
7154 (nbsd_skip_solib_resolver): New.
7155 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7156
85a9510c 71572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7158
7159 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7160 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7161 with DW_LLE_base_addressx are being emitted in DWARFv5.
7162 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7163 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7164 unsigned integer.
7165
9fc3eaae 71662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7167
7168 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7169 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7170 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7171 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7172 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7173 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7174 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7175
7176
41144253 71772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7178
7179 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7180 (read_loclist_index): New function definition.
7181 (lookup_loclist_base): New function definition.
7182 (read_loclist_header): New function definition.
7183 (dwarf2_cu): Add loclist_base and loclist_header field.
7184 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7185 (read_full_die_1): Read the value of DW_AT_loclists_base.
7186 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7187 (read_attribute_value): Handle DW_FORM_loclistx.
7188 (skip_one_die): Handle DW_FORM_loclistx.
7189 (loclist_header): New structure declaration.
7190 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7191
9f4e76a4
SM
71922020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7195 constructor. Remove `addr` parameter from other constructor and
7196 add `per_cu` parameter.
7197 * dwarf2/read.c (create_partial_symtab): Update.
7198
25c11aca
TV
71992020-04-07 Tom de Vries <tdevries@suse.de>
7200
7201 PR symtab/25796
7202 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7203 (partial_die_info::fixup): Inherit has_const_value.
7204
5707e24b
TV
72052020-04-07 Tom de Vries <tdevries@suse.de>
7206
7207 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7208 symbols without address.
7209
05f00e22
KR
72102020-04-06 Kamil Rytarowski <n54@gmx.com>
7211
7212 * nbsd-nat.h (struct thread_info): Add forward declaration.
7213 (nbsd_nat_target::thread_alive): Add.
7214 (nbsd_nat_target::thread_name): Likewise.
7215 (nbsd_nat_target::update_thread_list): Likewise.
7216 (update_thread_list::post_attach): Likewise.
7217 (post_attach::pid_to_str): Likewise.
7218 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7219 (nbsd_thread_lister): Add.
7220 (nbsd_nat_target::thread_alive): Likewise.
7221 (nbsd_nat_target::thread_name): Likewise.
7222 (nbsd_add_threads): Likewise.
7223 (update_thread_list::post_attach): Likewise.
7224 (nbsd_nat_target::update_thread_list): Likewise.
7225 (post_attach::pid_to_str): Likewise.
7226
6ee448cc
TT
72272020-04-06 Tom Tromey <tromey@adacore.com>
7228
7229 * ada-valprint.c (print_variant_part): Extract the variant field.
7230 (print_field_values): Use the field as the outer value when
7231 recursing.
7232
dea34e8c
TT
72332020-04-06 Tom Tromey <tromey@adacore.com>
7234
7235 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7236 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7237 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7238 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7239 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7240
93689ce9
TT
72412020-04-06 Tom Tromey <tromey@adacore.com>
7242
7243 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7244 TYPE_CODE_ERROR.
7245
79743962
KR
72462020-04-06 Kamil Rytarowski <n54@gmx.com>
7247
7248 * nbsd-tdep.c: Include "gdbarch.h".
7249 Define enum with NetBSD signal numbers.
7250 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7251 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7252 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7253 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7254 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7255 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7256 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7257 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7258 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7259 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7260 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7261 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7262
9e7c9a03
HD
72632020-04-03 Hannes Domani <ssbssa@yahoo.de>
7264
7265 PR gdb/25325
7266 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7267
d9e49b61
TT
72682020-04-03 Tom Tromey <tromey@adacore.com>
7269
7270 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7271 Read constant block.
7272
e0fc5c3f
SM
72732020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7274
7275 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7276 (gdb_bfd_get_full_section_contents): New declaration.
7277 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7278 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7279 gdb_bfd_get_full_section_contents.
7280
e2ff18a0
SM
72812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7282
7283 * exec.c (build_section_table): Replace internal_error with
7284 gdb_assert.
7285 (section_table_xfer_memory_partial): Likewise.
7286 * mdebugread.c (parse_partial_symbols): Likewise.
7287 * psymtab.c (lookup_partial_symbol): Likewise.
7288 * utils.c (wrap_here): Likewise.
7289
0830d301
TT
72902020-04-02 Tom Tromey <tromey@adacore.com>
7291
7292 * f-lang.c (build_fortran_types): Use arch_type to initialize
7293 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7294
e7da7f8f
TT
72952020-04-02 Tom Tromey <tromey@adacore.com>
7296
7297 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7298 of attributes.
7299
c90d28ac
AB
73002020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7301 Bernd Edlinger <bernd.edlinger@hotmail.de>
7302 Tom Tromey <tromey@adacore.com>
7303
7304 * buildsym.c (buildsym_compunit::record_line): Remove
7305 deduplication code.
7306
1aa98955
TV
73072020-04-02 Tom de Vries <tdevries@suse.de>
7308
7309 PR ada/24671
7310 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7311
d3214198
TV
73122020-04-02 Tom de Vries <tdevries@suse.de>
7313
7314 * dwarf2/read.c (dwarf2_gdb_index_functions,
7315 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7316 NULL.
7317 * psymtab.c (psym_lookup_global_symbol_language): New function.
7318 (psym_functions): Init psym_lookup_global_symbol_language with
7319 psym_lookup_global_symbol_language.
7320 * symfile-debug.c (debug_sym_quick_functions): Init
7321 lookup_global_symbol_language with NULL.
7322 * symfile.c (set_initial_language): Remove fixme comment.
7323 * symfile.h (struct quick_symbol_functions): Add
7324 lookup_global_symbol_language.
7325 * symtab.c (find_quick_global_symbol_language): New function.
7326 (find_main_name): Use find_quick_global_symbol_language.
7327
2836752f
SM
73282020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7329
7330 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7331
64dc2d4b
BE
73322020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7333
7334 * buildsym.c (record_line): Fix undefined behavior and preserve
7335 lines at eof.
7336
bbe3dc41
BE
73372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7338
7339 * buildsym.c (record_line): Fix the resizing condition.
7340
6b4a335b
TT
73412020-04-01 Tom Tromey <tom@tromey.com>
7342
7343 * value.h (value_literal_complex): Add comment.
7344 * valops.c (value_literal_complex): Refer to value.h.
7345
3638a098
TT
73462020-04-01 Tom Tromey <tom@tromey.com>
7347
7348 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7349 (scalar_type): New rule, from typebase.
7350 (typebase): Use scalar_type. Recognize complex types.
7351 (field_name): Handle FLOAT_KEYWORD.
7352 (ident_tokens): Add _Complex and __complex__.
7353
c34e8714
TT
73542020-04-01 Tom Tromey <tom@tromey.com>
7355
7356 PR exp/25299:
7357 * valarith.c (promotion_type, complex_binop): New functions.
7358 (scalar_binop): Handle complex numbers. Use promotion_type.
7359 (value_pos, value_neg, value_complement): Handle complex numbers.
7360
fa649bb7
TT
73612020-04-01 Tom Tromey <tom@tromey.com>
7362
7363 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7364 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7365 (parse_number): Handle complex numbers.
7366
981c08ce
TT
73672020-04-01 Tom Tromey <tom@tromey.com>
7368
7369 * c-valprint.c (c_decorations): Change complex suffix to "i".
7370
4c99290d
TT
73712020-04-01 Tom Tromey <tom@tromey.com>
7372
7373 * valprint.c (generic_value_print_complex): Use accessors.
7374 * value.h (value_real_part, value_imaginary_part): Declare.
7375 * valops.c (value_real_part, value_imaginary_part): New
7376 functions.
7377 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7378
5b930b45
TT
73792020-04-01 Tom Tromey <tom@tromey.com>
7380
7381 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7382 (read_range_type): Update.
7383 * mdebugread.c (basic_type): Update.
7384 * go-lang.c (build_go_types): Use init_complex_type.
7385 * gdbtypes.h (struct main_type) <complex_type>: New member.
7386 (init_complex_type): Update.
7387 (arch_complex_type): Don't declare.
7388 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7389 Make name if none given. Use alloc_type_copy. Look for cached
7390 complex type.
7391 (arch_complex_type): Remove.
7392 (gdbtypes_post_init): Use init_complex_type.
7393 * f-lang.c (build_fortran_types): Use init_complex_type.
7394 * dwarf2/read.c (read_base_type): Update.
7395 * d-lang.c (build_d_types): Use init_complex_type.
7396 * ctfread.c (read_base_type): Update.
7397
53cccef1
TBA
73982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7399
7400 * infrun.c (stop_all_threads): Update assertion, plus when
7401 stopping threads, take into account that we might be trying
7402 to stop an all-stop target.
7403 (stop_waiting): Call 'stop_all_threads' if there exists a
7404 non-stop target.
7405
a0714d30
TBA
74062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7407
7408 * target.h (exists_non_stop_target): New function declaration.
7409 * target.c (exists_non_stop_target): New function.
7410
60e22c1e
HD
74112020-04-01 Hannes Domani <ssbssa@yahoo.de>
7412
7413 PR gdb/24789
7414 * eval.c (is_integral_or_integral_reference): New function.
7415 (evaluate_subexp_standard): Allow integer references in
7416 pointer arithmetic.
7417
e139a727
TBA
74182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7419
7420 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7421 check for no ptid in the stop reply when the target is non-stop.
7422
e0802d59
TT
74232020-04-01 Tom Tromey <tromey@adacore.com>
7424
7425 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7426 "name" parameter to rvalue reference. Initialize m_name_holder.
7427 <lookup_name_info>: New overloads.
7428 <name>: Return gdb::string_view.
7429 <c_str>: New method.
7430 <make_ignore_params>: Update.
7431 <search_name_hash>: Update.
7432 <language_lookup_name>: Return const char *.
7433 <m_name>: Change type.
7434 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7435 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7436 (lookup_name_info::match_any): Update.
7437 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7438 Update.
7439 * minsyms.c (linkage_name_str): Update.
7440 * language.c (default_symbol_name_matcher): Update.
7441 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7442 Update.
7443 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7444 (ada_lookup_name_info::ada_lookup_name_info): Update.
7445 (literal_symbol_name_matcher): Update.
7446
8c072cb6
TT
74472020-04-01 Tom Tromey <tromey@adacore.com>
7448
7449 * psymtab.c (psymtab_search_name): Remove function.
7450 (psym_lookup_symbol): Create search name and lookup name here.
7451 (lookup_partial_symbol): Remove "name" parameter; add
7452 lookup_name.
7453 (psym_expand_symtabs_for_function): Update.
7454
6f29a534
TT
74552020-03-31 Joel Jones <joelkevinjones@gmail.com>
7456
7457 PR tui/25597:
7458 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7459
af62665e
TT
74602020-03-31 Tom Tromey <tromey@adacore.com>
7461
7462 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7463 memcpy.
7464
d1a89da5
NC
74652020-03-30 Nelson Chu <nelson.chu@sifive.com>
7466
7467 * features/riscv/32bit-csr.xml: Regenerated.
7468 * features/riscv/64bit-csr.xml: Regenerated.
7469
d8af9068
TT
74702020-03-30 Tom Tromey <tromey@adacore.com>
7471
7472 * ada-valprint.c (print_variant_part): Update.
7473 * ada-lang.h (ada_which_variant_applies): Update.
7474 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7475 outer_valaddr parameters; replace with "outer" value parameter.
7476 (to_fixed_variant_branch_type): Update.
7477
227c0bf4
PFC
74782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7479
7480 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7481 <list>. Remove inclusion of observable.h.
7482 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7483 (struct arch_lwp_info): New struct.
7484 (class ppc_linux_dreg_interface): New class.
7485 (struct ppc_linux_process_info): New struct.
7486 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7487 <low_new_clone, low_forget_process, low_prepare_to_resume>
7488 <copy_thread_dreg_state, mark_thread_stale>
7489 <mark_debug_registers_changed, register_hw_breakpoint>
7490 <clear_hw_breakpoint, register_wp, clear_wp>
7491 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7492 <num_memory_accesses, get_trigger_type>
7493 <create_watchpoint_request, hwdebug_point_cmp>
7494 <init_arch_lwp_info, get_arch_lwp_info>
7495 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7496 methods.
7497 <struct ptid_hash>: New inner struct.
7498 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7499 members.
7500 (saved_dabr_value, hwdebug_info, max_slots_number)
7501 (struct hw_break_tuple, struct thread_points, ppc_threads)
7502 (have_ptrace_hwdebug_interface)
7503 (hwdebug_find_thread_points_by_tid)
7504 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7505 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7506 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7507 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7508 use m_dreg_interface.
7509 (hwdebug_point_cmp): Change to...
7510 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7511 reference arguments instead of pointers.
7512 (ppc_linux_nat_target::ranged_break_num_registers): Use
7513 m_dreg_interface.
7514 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7515 m_dreg_interface. Call register_hw_breakpoint.
7516 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7517 m_dreg_interface. Call clear_hw_breakpoint.
7518 (get_trigger_type): Change to...
7519 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7520 comment.
7521 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7522 use m_dreg_interface. Call register_hw_breakpoint.
7523 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7524 use m_dreg_interface. Call clear_hw_breakpoint.
7525 (can_use_watchpoint_cond_accel): Change to...
7526 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7527 method. Update comment, use m_dreg_interface and
7528 m_process_info.
7529 (calculate_dvc): Change to...
7530 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7531 m_dreg_interface.
7532 (num_memory_accesses): Change to...
7533 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7534 (check_condition): Change to...
7535 (ppc_linux_nat_target::check_condition): ...this method.
7536 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7537 comment, use m_dreg_interface.
7538 (create_watchpoint_request): Change to...
7539 (ppc_linux_nat_target::create_watchpoint_request): ...this
7540 method. Use m_dreg_interface.
7541 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7542 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7543 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7544 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7545 (ppc_linux_nat_target::low_forget_process)
7546 (ppc_linux_nat_target::low_new_fork)
7547 (ppc_linux_nat_target::low_new_clone)
7548 (ppc_linux_nat_target::low_delete_thread)
7549 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7550 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7551 only call mark_thread_stale.
7552 (ppc_linux_thread_exit): Remove.
7553 (ppc_linux_nat_target::stopped_data_address): Change to...
7554 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7555 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7556 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7557 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7558 comment. Call low_stopped_data_address.
7559 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7560 m_dreg_interface.
7561 (ppc_linux_nat_target::masked_watch_num_registers): Use
7562 m_dreg_interface.
7563 (ppc_linux_nat_target::copy_thread_dreg_state)
7564 (ppc_linux_nat_target::mark_thread_stale)
7565 (ppc_linux_nat_target::mark_debug_registers_changed)
7566 (ppc_linux_nat_target::register_hw_breakpoint)
7567 (ppc_linux_nat_target::clear_hw_breakpoint)
7568 (ppc_linux_nat_target::register_wp)
7569 (ppc_linux_nat_target::clear_wp)
7570 (ppc_linux_nat_target::init_arch_lwp_info)
7571 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7572 (_initialize_ppc_linux_nat): Remove observer callback.
7573
4db10d8f
PFC
75742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7575
7576 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7577 (ppc_linux_nat_target::auxv_parse)
7578 (ppc_linux_nat_target::read_description)
7579 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7580 Move up.
7581
1310c1b0
PFC
75822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7583
7584 * linux-nat.h (low_new_clone): New method.
7585 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7586
69b037c3
SM
75872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7588
7589 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7590 (dbx_expand_psymtab): ... this.
7591 (start_psymtab): Update.
7592 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7593 (mdebug_expand_psymtab): ... this.
7594 (parse_partial_symbols): Update.
7595 (new_psymtab): Update.
7596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7597 (xcoff_expand_psymtab): ... this.
7598 (xcoff_start_psymtab): Update.
7599
48993951
SM
76002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7603 <expand_dependencies>: ... this.
7604 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7605 (partial_symtab::expand_dependencies): ... this.
7606 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7607 Update.
7608 (dwarf2_psymtab::expand_psymtab): Update.
7609 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7610 * mdebugread.c (psymtab_to_symtab_1): Update.
7611 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7612
3ad83046
SM
76132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7614
7615 * psympriv.h (discard_psymtab): Remove.
7616 * dbxread.c (dbx_end_psymtab): Update.
7617 * xcoffread.c (xcoff_end_psymtab): Update.
7618
4d1b9ab6
TT
76192020-03-28 Tom Tromey <tom@tromey.com>
7620
7621 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7622 comment.
7623
f1749218
TT
76242020-03-28 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7627
ebea7626
HD
76282020-03-27 Hannes Domani <ssbssa@yahoo.de>
7629
7630 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7631
a879b4d5
JB
76322020-03-26 John Baldwin <jhb@FreeBSD.org>
7633
7634 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7635
0826b30a
TT
76362020-03-26 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7639 (mark_common_block_symbol_computed, read_tag_string_type)
7640 (attr_to_dynamic_prop, read_subrange_type): Update.
7641 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7642 to be methods on struct attribute.
7643 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7644 (read_call_site_scope, partial_die_info::read)
7645 (partial_die_info::read, lookup_die_type, follow_die_ref):
7646 Update.
7647 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7648 from dwarf2_get_ref_die_offset.
7649 (attribute::constant_value): New method, from
7650 dwarf2_get_attr_constant_value.
7651 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7652 Declare method.
7653 <constant_value>: New method.
7654
2b2558bf
TT
76552020-03-26 Tom Tromey <tom@tromey.com>
7656
7657 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7658 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7659 (dwarf_type_encoding_name): Move to stringify.c.
7660 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7661 * dwarf2/stringify.c: New file.
7662 * dwarf2/stringify.h: New file.
7663
eeb64781
TT
76642020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7667 Rewrite.
7668
a39fdb41
TT
76692020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7672 methods.
7673 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7674 (lookup_ranges_base): Likewise.
7675 (read_cutu_die_from_dwo, read_full_die_1): Update.
7676
436c571c
TT
76772020-03-26 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/read.c (read_import_statement, read_file_scope)
7680 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7681 (read_lexical_block_scope, read_call_site_scope)
7682 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7683 (handle_struct_member_die, process_structure_scope)
7684 (update_enumeration_type_from_children)
7685 (process_enumeration_scope, read_array_type, read_common_block)
7686 (read_namespace, read_module, read_subroutine_type): Update.
7687 (sibling_die): Remove.
7688
052c8bb8
TT
76892020-03-26 Tom Tromey <tom@tromey.com>
7690
7691 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7692 (build_type_psymtabs_reader, read_structure_type)
7693 (read_enumeration_type, read_full_die_1): Update.
7694 (dwarf2_attr_no_follow): Move to die.h.
7695 * dwarf2/die.h (struct die_info) <attr>: New method.
7696
2b24b6e4
TT
76972020-03-26 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7700 <base_address>: Now an optional.
7701 (dwarf2_find_base_address, dwarf2_rnglists_process)
7702 (dwarf2_ranges_process, fill_in_loclist_baton)
7703 (dwarf2_symbol_mark_computed): Update.
7704
c2d50fd0
TT
77052020-03-26 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.c (struct die_info): Move to die.h.
7708 * dwarf2/die.h: New file.
7709
0df7ad3a
TT
77102020-03-26 Tom Tromey <tom@tromey.com>
7711
7712 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7713 * dwarf2/read.c
7714 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7715 Move to line-header.c.
7716 (read_checked_initial_length_and_offset, read_formatted_entries):
7717 Likewise.
7718 (dwarf_decode_line_header): Split into two.
7719 * dwarf2/line-header.c
7720 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7721 Move from read.c.
7722 (read_checked_initial_length_and_offset, read_formatted_entries):
7723 Likewise.
7724 (dwarf_decode_line_header): New function, split from read.c.
7725
86c0bb4c
TT
77262020-03-26 Tom Tromey <tom@tromey.com>
7727
7728 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7729 Declare method.
7730 * dwarf2/read.c (read_attribute_value): Update.
7731 (dwarf2_per_objfile::read_line_string): Rename from
7732 read_indirect_line_string.
7733 (read_formatted_entries): Update.
7734
2ef46c2f
TT
77352020-03-26 Tom Tromey <tom@tromey.com>
7736
7737 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7738 variable.
7739
4f9c1eda
TT
77402020-03-26 Tom Tromey <tom@tromey.com>
7741
7742 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7743 const.
7744 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7745 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7746 parameter const.
7747
5a0e026f
TT
77482020-03-26 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7751 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7752 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7754
8844c11b
TT
77552020-03-26 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7758 file_names_size, file_full_name, file_file_name>: Use const.
7759 <file_name_at, file_names>: Add const overload.
7760 * dwarf2/line-header.c (line_header::file_file_name)
7761 (line_header::file_full_name): Update.
7762
c90ec28a
TT
77632020-03-26 Tom Tromey <tom@tromey.com>
7764
7765 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7766 (macro_start_file, consume_improper_spaces)
7767 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7768 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7769 (dwarf_decode_macros): Move to macro.c.
7770 * dwarf2/macro.c: New file.
7771 * dwarf2/macro.h: New file.
7772 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7773
4f44ae6c
TT
77742020-03-26 Tom Tromey <tom@tromey.com>
7775
7776 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7777 method.
7778 * dwarf2/section.c: New method. From
7779 read_indirect_string_at_offset_from.
7780 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7781 (read_indirect_string_at_offset_from): Move to section.c.
7782 (read_indirect_string_at_offset): Rewrite.
7783 (read_indirect_line_string_at_offset): Remove.
7784 (read_indirect_string, read_indirect_line_string)
7785 (dwarf_decode_macro_bytes): Update.
7786
a0194fa8
TT
77872020-03-26 Tom Tromey <tom@tromey.com>
7788
7789 * dwarf2/section.h (struct dwarf2_section_info)
7790 <overload_complaint>: Declare.
7791 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7792 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7793 Rename from dwarf2_section_buffer_overflow_complaint.
7794 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7795 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7796
3d27bbdb
TT
77972020-03-26 Tom Tromey <tom@tromey.com>
7798
7799 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7800 Declare.
7801 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7802 Move from read.c.
7803 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7804 to section.c.
7805
9eac9650
TT
78062020-03-26 Tom Tromey <tom@tromey.com>
7807
7808 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7809
bf80d710
TT
78102020-03-26 Tom Tromey <tom@tromey.com>
7811
7812 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7813 "builder".
7814 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7815 parameter.
7816 (dwarf_decode_macros): Update.
7817
0314b390
TT
78182020-03-26 Tom Tromey <tom@tromey.com>
7819
7820 * dwarf2/read.c (read_attribute_value): Update.
7821 (read_indirect_string_from_dwz): Move to dwz.c; change into
7822 method.
7823 (dwarf_decode_macro_bytes): Update.
7824 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7825 * dwarf2/dwz.c: New file.
7826 * Makefile.in (COMMON_SFILES): Add dwz.c.
7827
9fda78b6
TT
78282020-03-26 Tom Tromey <tom@tromey.com>
7829
7830 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7831 * dwarf2/read.c: Add include.
7832 * dwarf2/index-write.c: Add include.
7833 * dwarf2/index-cache.c: Add include.
7834 * dwarf2/dwz.h: New file.
7835
33aa3c10
TT
78362020-03-25 Tom Tromey <tom@tromey.com>
7837
7838 * compile/compile-object-load.c (get_out_value_type): Mention
7839 correct symbol name in error message.
7840
d503b685
HD
78412020-03-25 Hannes Domani <ssbssa@yahoo.de>
7842
7843 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7844
7b1eff95
TV
78452020-03-25 Tom de Vries <tdevries@suse.de>
7846
7847 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7848 * symmisc.c (dump_symtab_1): Print user and includes fields.
7849 (maintenance_info_symtabs): Same.
7850
dd895392
AB
78512020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 PR gdb/25534
7854 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7855 (riscv_regcache_cooked_write): New function.
7856 (riscv_push_dummy_call): Use new function.
7857 (riscv_return_value): Likewise.
7858
5ab2fbf1
SM
78592020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7860
7861 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7862 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7863 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7864 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7865 * infrun.c (follow_fork): Likewise.
7866 (follow_fork_inferior): Likewise.
7867 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7868 * linux-nat.h (class linux_nat_target): Likewise.
7869 * remote.c (class remote_target) <follow_fork>: Likewise.
7870 (remote_target::follow_fork): Likewise.
7871 * target-delegates.c: Re-generate.
7872 * target.c (default_follow_fork): Likewise.
7873 (target_follow_fork): Likewise.
7874 * target.h (struct target_ops) <follow_fork>: Likewise.
7875 (target_follow_fork): Likewise.
7876
a64fafb5
TV
78772020-03-24 Tom de Vries <tdevries@suse.de>
7878
7879 * psymtab.c (maintenance_info_psymtabs): Print user field.
7880
fe26d3a3
TT
78812020-03-20 Tom Tromey <tromey@adacore.com>
7882
7883 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7884 const.
7885 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7886 const.
7887
c884cc46
SM
78882020-03-20 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * ptrace.m4: Don't check for ptrace declaration.
7891 * config.in: Re-generate.
7892 * configure: Re-generate.
7893 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7894 not defined.
7895
1ff700c2
KR
78962020-03-20 Kamil Rytarowski <n54@gmx.com>
7897
7898 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7899 `PTRACE_TYPE_RET'.
7900 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7901 * sparc-nat.c (gdb_ptrace): Likewise.
7902 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7903
f7d4f0b1
TT
79042020-03-20 Tom Tromey <tromey@adacore.com>
7905
7906 * c-exp.y (lex_one_token): Fix assert.
7907
f67210ff
TT
79082020-03-20 Tom Tromey <tromey@adacore.com>
7909
7910 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7911 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7912 strncpy call.
7913
1773be9e
TT
79142020-03-20 Tom Tromey <tromey@adacore.com>
7915
7916 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7917
70304be9
TT
79182020-03-20 Tom Tromey <tromey@adacore.com>
7919
7920 * ada-valprint.c (print_variant_part): Remove parameters; switch
7921 to value-based API.
7922 (print_field_values): Likewise.
7923 (ada_val_print_struct_union): Likewise.
7924 (ada_value_print_1): Update.
7925
9faa006d
KR
79262020-03-20 Kamil Rytarowski <n54@gmx.com>
7927
7928 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7929 nbsd_nat_target instead of inf_ptrace_target.
7930 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7931 nbsd_nat_target.
7932
4a90f062
KR
79332020-03-20 Kamil Rytarowski <n54@gmx.com>
7934
7935 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7936 it to the ptrace call.
7937 * (store_registers): Likewise.
7938
79392020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7940
7941 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7942 it to the ptrace call.
7943 * (store_registers): Likewise.
7944
2d07da27
LM
79452020-03-19 Luis Machado <luis.machado@linaro.org>
7946
7947 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7948 valid, fetch vg value from ptrace.
7949
f09db380
KR
79502020-03-19 Kamil Rytarowski <n54@gmx.com>
7951 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7952 * inf-ptrace.c: Likewise.
7953 * (gdb_ptrace): Add.
7954 * (inf_ptrace_target::resume): Update.
7955 * (inf_ptrace_target::xfer_partial): Likewise.
7956 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7957 * (inf_ptrace_peek_poke): Update.
7958
fcc7376e
KR
79592020-03-19 Kamil Rytarowski <n54@gmx.com>
7960
7961 * x86-bsd-nat.c (gdb_ptrace): New.
7962 * (x86bsd_dr_set): Add new argument `ptid'.
7963 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7964 x86bsd_dr_set_addr): Update.
7965
cada5fc9
AB
79662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * remote.c (remote_target::process_stop_reply): Handle events for
7969 all threads differently.
7970
19a2740f
AB
79712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * completer.c (completion_tracker::remove_completion): Define new
7974 function.
7975 * completer.h (completion_tracker::remove_completion): Declare new
7976 function.
7977 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7978 when adding a C++ function symbol.
7979
724fd9ba
AB
79802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * completer.c (completion_tracker::completion_hash_entry): Define
7983 new class.
7984 (advance_to_filename_complete_word_point): Call
7985 recompute_lowest_common_denominator.
7986 (completion_tracker::completion_tracker): Call discard_completions
7987 to setup the hash table.
7988 (completion_tracker::discard_completions): Allow for being called
7989 from the constructor, pass new equal function, and element deleter
7990 when constructing the hash table. Initialise new class member
7991 variables.
7992 (completion_tracker::maybe_add_completion): Remove use of
7993 m_entries_vec, and store more information into m_entries_hash.
7994 (completion_tracker::recompute_lcd_visitor): New function, most
7995 content taken from...
7996 (completion_tracker::recompute_lowest_common_denominator):
7997 ...here, this now just visits each item in the hash calling the
7998 above visitor.
7999 (completion_tracker::build_completion_result): Remove use of
8000 m_entries_vec, call recompute_lowest_common_denominator.
8001 * completer.h (completion_tracker::have_completions): Remove use
8002 of m_entries_vec.
8003 (completion_tracker::completion_hash_entry): Declare new class.
8004 (completion_tracker::recompute_lowest_common_denominator): Change
8005 function signature.
8006 (completion_tracker::recompute_lcd_visitor): Declare new function.
8007 (completion_tracker::m_entries_vec): Delete.
8008 (completion_tracker::m_entries_hash): Initialize to NULL.
8009 (completion_tracker::m_lowest_common_denominator_valid): New
8010 member variable.
8011 (completion_tracker::m_lowest_common_denominator_max_length): New
8012 member variable.
8013
5a82b8a1
KR
80142020-03-17 Kamil Rytarowski <n54@gmx.com>
8015
8016 * regformats/regdef.h: Put reg in gdb namespace.
8017
fb516a69
KR
80182020-03-17 Kamil Rytarowski <n54@gmx.com>
8019
8020 * i386-bsd-nat.c (gdb_ptrace): New.
8021 * (i386bsd_fetch_inferior_registers,
8022 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8023 * (i386bsd_fetch_inferior_registers,
8024 i386bsd_store_inferior_registers) Use gdb_ptrace.
8025
1c0aa1fb
KR
80262020-03-17 Kamil Rytarowski <n54@gmx.com>
8027
8028 * amd64-bsd-nat.c (gdb_ptrace): New.
8029 * (amd64bsd_fetch_inferior_registers,
8030 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8031 * (amd64bsd_fetch_inferior_registers,
8032 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8033
5ccd2fb7
KR
80342020-03-17 Kamil Rytarowski <n54@gmx.com>
8035
8036 * user-regs.c (user_reg::read): Rename to...
8037 (user_reg::xread): ...this.
8038 * (append_user_reg): Rename argument `read' to `xread'.
8039 * (user_reg_add_builtin): Likewise.
8040 * (user_reg_add): Likewise.
8041 * (value_of_user_reg): Likewise.
8042
2108a63a
KR
80432020-03-17 Kamil Rytarowski <n54@gmx.com>
8044
8045 * sparc-nat.c (gdb_ptrace): New.
8046 * sparc-nat.c (sparc_fetch_inferior_registers)
8047 (sparc_store_inferior_registers) Remove obsolete comment.
8048 * sparc-nat.c (sparc_fetch_inferior_registers)
8049 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8050 * sparc-nat.c (sparc_fetch_inferior_registers)
8051 (sparc_store_inferior_registers) Use gdb_ptrace.
8052
a225c9a8
KR
80532020-03-17 Kamil Rytarowski <n54@gmx.com>
8054
8055 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8056 it to the ptrace call.
8057 * sh-nbsd-nat.c (store_registers): Likewise.
8058
98097623
KR
80592020-03-17 Kamil Rytarowski <n54@gmx.com>
8060
8061 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8062 nbsd_nat_target instead of inf_ptrace_target.
8063 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8064 nbsd_nat_target.
8065
9e38d619
KR
80662020-03-17 Kamil Rytarowski <n54@gmx.com>
8067
8068 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8069
a2ecbe9f
KR
80702020-03-17 Kamil Rytarowski <n54@gmx.com>
8071
8072 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8073 <sys/sysctl.h>.
8074 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8075
58990295
TV
80762020-03-17 Tom de Vries <tdevries@suse.de>
8077
8078 PR gdb/23710
8079 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8080 fields.
8081 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8082 fields.
8083 (process_imported_unit_die): Skip import of c++ CUs.
8084
771dd3a8
TT
80852020-03-16 Tom Tromey <tom@tromey.com>
8086
8087 * p-valprint.c (pascal_object_print_value): Initialize
8088 base_value.
8089
817a7585
AK
80902020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8091 Shahab Vahedi <shahab@synopsys.com>
8092
8093 * Makefile.in: Add arch/arc.o
8094 * configure.tgt: Likewise.
8095 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8096 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8097 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8098 * arc-tdep.h (arc_read_description): Add proto type.
8099 * arch/arc.c: New file.
8100 * arch/arc.h: Likewise.
8101 * features/Makefile: Replace old target descriptions with new.
8102 * features/arc-arcompact.c: Remove.
8103 * features/arc-arcompact.xml: Likewise.
8104 * features/arc-v2.c: Likewise
8105 * features/arc-v2.xml: Likewise
8106 * features/arc/aux-arcompact.xml: New file.
8107 * features/arc/aux-v2.xml: Likewise.
8108 * features/arc/core-arcompact.xml: Likewise.
8109 * features/arc/core-v2.xml: Likewise.
8110 * features/arc/aux-arcompact.c: Generate.
8111 * features/arc/aux-v2.c: Likewise.
8112 * features/arc/core-arcompact.c: Likewise.
8113 * features/arc/core-v2.c: Likewise.
8114 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8115
67430cd0
TT
81162020-03-16 Tom Tromey <tromey@adacore.com>
8117
8118 PR gdb/25663:
8119 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8120 putting value into bcache.
8121
30efb6c7
SM
81222020-03-16 Simon Marchi <simon.marchi@efficios.com>
8123
8124 PR gdb/21500
8125 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8126 to...
8127 (amd64_windows_init_abi_common): ... this. Don't set size of
8128 long type.
8129 (amd64_windows_init_abi): New function.
8130 (amd64_cygwin_init_abi): New function.
8131 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8132 the Cygwin OS ABI.
8133 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8134 comment.
8135
8db52437
SM
81362020-03-16 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8139 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8140 (pe_import_directory_entry): New struct type.
8141 (is_linked_with_cygwin_dll): New function.
8142 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8143 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8144 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8145
5982a56a
SM
81462020-03-16 Simon Marchi <simon.marchi@efficios.com>
8147
8148 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8149 i386_cygwin_core_osabi_sniffer.
8150
7a1998df
SM
81512020-03-16 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * i386-cygwin-tdep.c: Rename to...
8154 * i386-windows-tdep.c: ... this.
8155 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8156 i386-windows-tdep.c.
8157 * configure.tgt: Likewise.
8158
053205cc
SM
81592020-03-16 Simon Marchi <simon.marchi@efficios.com>
8160
8161 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8162 * osabi.c (gdb_osabi_names): Add "Windows".
8163 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8164 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8165 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8166 i386_cygwin_osabi_sniffer.
8167 (_initialize_i386_cygwin_tdep): Register OS ABI
8168 GDB_OSABI_WINDOWS for i386.
8169 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8170 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8171 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8172 for x86-64.
8173 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8174 when the target matches '*-*-mingw*'.
8175
fe4b2ee6
SM
81762020-03-16 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * defs.h (enum gdb_osabi): Move to...
8179 * osabi.h (enum gdb_osabi): ... here.
8180 * gdbarch.sh: Include osabi.h in gdbarch.h.
8181 * gdbarch.h: Re-generate.
8182
cb9b645d
SM
81832020-03-16 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8186 function.
8187 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8188
3293bbaf
TT
81892020-03-14 Tom Tromey <tom@tromey.com>
8190
8191 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8192 for C++.
8193 (c_type_print_modifier): Likewise. Add "language" parameter.
8194 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8195 (c_type_print_base_1): Update.
8196 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8197 constants.
8198 * type-stack.c (type_stack::insert): Handle tp_atomic and
8199 tp_restrict.
8200 (type_stack::follow_type_instance_flags): Likewise.
8201 (type_stack::follow_types): Likewise. Merge type-following code.
8202 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8203 (space_identifier, cv_with_space_id)
8204 (const_or_volatile_or_space_identifier_noopt)
8205 (const_or_volatile_or_space_identifier): Remove.
8206 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8207 rules.
8208 (ptr_operator, typebase): Update.
8209 (enum token_flag) <FLAG_C>: New constant.
8210 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8211 "_Atomic".
8212 (lex_one_token): Handle FLAG_C.
8213
154151a6
KR
82142020-03-14 Kamil Rytarowski <n54@gmx.com>
8215
8216 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8217 it to the ptrace call.
8218 * m68k-bsd-nat.c (store_registers): Likewise.
8219
bc107784
KR
82202020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8223 gdb_byte *.
8224 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8225 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8226 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8227
01a80117
KR
82282020-03-14 Kamil Rytarowski <n54@gmx.com>
8229
8230 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8231 nbsd_nat_target instead of inf_ptrace_target.
8232 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8233 nbsd_nat_target.
8234
f90280ca
KR
82352020-03-14 Kamil Rytarowski <n54@gmx.com>
8236
8237 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8238 register_t.
8239
6def66f1
KR
82402020-03-14 Kamil Rytarowski <n54@gmx.com>
8241
8242 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8243 it to the ptrace call.
8244 * alpha-bsd-nat.c (store_registers): Likewise.
8245
66eaca97
KR
82462020-03-14 Kamil Rytarowski <n54@gmx.com>
8247
8248 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8249 includes.
8250 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8251 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8252 fill_fpregset): Likewise.
8253
4fed520b
KR
82542020-03-14 Kamil Rytarowski <n54@gmx.com>
8255
8256 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8257 nbsd_nat_target instead of inf_ptrace_target.
8258 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8259 nbsd_nat_target.
8260
2190cf06
KR
82612020-03-14 Kamil Rytarowski <n54@gmx.com>
8262
8263 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8264 register_t.
8265
75c56d3d
KR
82662020-03-14 Kamil Rytarowski <n54@gmx.com>
8267
8268 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8269 it to the ptrace call.
8270 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8271 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8272 * arm-nbsd-nat.c (store_register): Likewise.
8273 * arm-nbsd-nat.c (store_regs): Likewise.
8274 * arm-nbsd-nat.c (store_fp_register): Likewise.
8275 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8276
6018d381
KR
82772020-03-14 Kamil Rytarowski <n54@gmx.com>
8278
8279 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8280 nbsd_nat_target instead of inf_ptrace_target.
8281 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8282 nbsd_nat_target.
8283
013f99f0
KR
82842020-03-14 Kamil Rytarowski <n54@gmx.com>
8285
8286 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8287 it to the ptrace call.
8288 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8289
12753073
KR
82902020-03-14 Kamil Rytarowski <n54@gmx.com>
8291
6227b330
KR
8292 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8293 it to the ptrace call.
8294 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8295
82962020-03-14 Kamil Rytarowski <n54@gmx.com>
8297
8298 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8299 gdb_byte *.
12753073
KR
8300 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8301
d5be5fa4
KR
83022020-03-14 Kamil Rytarowski <n54@gmx.com>
8303
8304 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8305 instead of inf_ptrace_target.
8306 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8307 nbsd_nat_target.
8308
8110f842
KR
83092020-03-14 Kamil Rytarowski <n54@gmx.com>
8310
8311 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8312 register_t.
8313
52feded7
KR
83142020-03-14 Kamil Rytarowski <n54@gmx.com>
8315
8316 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8317 register_t.
8318
25567eee
KR
83192020-03-14 Kamil Rytarowski <n54@gmx.com>
8320
8321 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8322 register_t.
8323
426a9c18
TT
83242020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * value.h (val_print): Don't declare.
8327 * valprint.h (val_print_array_elements)
8328 (val_print_scalar_formatted, generic_val_print): Don't declare.
8329 * valprint.c (generic_val_print_array): Take a struct value.
8330 (generic_val_print_ptr, generic_val_print_memberptr)
8331 (generic_val_print_bool, generic_val_print_int)
8332 (generic_val_print_char, generic_val_print_complex)
8333 (generic_val_print): Remove.
8334 (generic_value_print): Update.
8335 (do_val_print): Remove unused parameters. Don't call
8336 la_val_print.
8337 (val_print): Remove.
8338 (common_val_print): Update. Don't call value_check_printable.
8339 (val_print_scalar_formatted, val_print_array_elements): Remove.
8340 * rust-lang.c (rust_val_print): Remove.
8341 (rust_language_defn): Update.
8342 * p-valprint.c (pascal_val_print): Remove.
8343 (pascal_value_print_inner): Update.
8344 (pascal_object_print_val_fields, pascal_object_print_val):
8345 Remove.
8346 (pascal_object_print_static_field): Update.
8347 * p-lang.h (pascal_val_print): Don't declare.
8348 * p-lang.c (pascal_language_defn): Update.
8349 * opencl-lang.c (opencl_language_defn): Update.
8350 * objc-lang.c (objc_language_defn): Update.
8351 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8352 * m2-lang.h (m2_val_print): Don't declare.
8353 * m2-lang.c (m2_language_defn): Update.
8354 * language.h (struct language_defn) <la_val_print>: Remove.
8355 * language.c (unk_lang_value_print_inner): Rename. Change
8356 argument types.
8357 (unknown_language_defn, auto_language_defn): Update.
8358 * go-valprint.c (go_val_print): Remove.
8359 * go-lang.h (go_val_print): Don't declare.
8360 * go-lang.c (go_language_defn): Update.
8361 * f-valprint.c (f_val_print): Remove.
8362 * f-lang.h (f_value_print): Don't declare.
8363 * f-lang.c (f_language_defn): Update.
8364 * d-valprint.c (d_val_print): Remove.
8365 * d-lang.h (d_value_print): Don't declare.
8366 * d-lang.c (d_language_defn): Update.
8367 * cp-valprint.c (cp_print_value_fields)
8368 (cp_print_value_fields_rtti, cp_print_value): Remove.
8369 (cp_print_static_field): Update.
8370 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8371 (c_val_print_struct, c_val_print_union, c_val_print_int)
8372 (c_val_print_memberptr, c_val_print): Remove.
8373 * c-lang.h (c_val_print_array, cp_print_value_fields)
8374 (cp_print_value_fields_rtti): Don't declare.
8375 * c-lang.c (c_language_defn, cplus_language_defn)
8376 (asm_language_defn, minimal_language_defn): Update.
8377 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8378 (ada_val_print_enum): Take a struct value.
8379 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8380 (ada_val_print): Remove.
8381 (ada_value_print_1): Update.
8382 (printable_val_type): Remove.
8383 * ada-lang.h (ada_val_print): Don't declare.
8384 * ada-lang.c (ada_language_defn): Update.
8385
42331a1e
TT
83862020-03-13 Tom Tromey <tom@tromey.com>
8387
8388 * valprint.c (do_val_print): Update.
8389 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8390 a struct value.
8391 (value_to_value_object_no_release): Declare.
8392 * python/py-value.c (value_to_value_object_no_release): New
8393 function.
8394 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8395 struct value.
8396 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8397 function.
8398 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8399 a struct value.
8400 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8401 Declare.
8402 (gdbscm_apply_val_pretty_printer): Take a struct value.
8403 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8404 value.
8405 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8406 value.
8407 * extension-priv.h (struct extension_language_ops)
8408 <apply_val_pretty_printer>: Take a struct value.
8409 * cp-valprint.c (cp_print_value): Create a struct value.
8410 (cp_print_value): Update.
8411
3a916a97
TT
84122020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * ada-valprint.c (print_field_values): Call common_val_print.
8415
b59eac37
TT
84162020-03-13 Tom Tromey <tom@tromey.com>
8417
8418 * ada-valprint.c (val_print_packed_array_elements): Remove
8419 bitoffset and val parameters. Call common_val_print.
8420 (ada_val_print_string): Remove offset, address, and original_value
8421 parameters.
8422 (ada_val_print_array): Update.
8423 (ada_value_print_array): New function.
8424 (ada_value_print_1): Call it.
8425
03371129
TT
84262020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * ada-valprint.c (ada_value_print): Use common_val_print.
8429
2e088f8b
TT
84302020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8433
39ef85a8
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * ada-valprint.c (ada_value_print_num): New function.
8437 (ada_value_print_1): Use it.
8438
b9fa6e07
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8442
416595d6
TT
84432020-03-13 Tom Tromey <tom@tromey.com>
8444
8445 * ada-valprint.c (ada_value_print_ptr): New function.
8446 (ada_value_print_1): Use it.
8447
5b5e15ec
TT
84482020-03-13 Tom Tromey <tom@tromey.com>
8449
8450 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8451 call common_val_print.
8452 (ada_val_print_1): Update.
8453 (ada_value_print_1): New function.
8454 (ada_value_print_inner): Rewrite.
8455
fbf54e75
TT
84562020-03-13 Tom Tromey <tom@tromey.com>
8457
8458 * cp-valprint.c (cp_print_value_fields): Update.
8459 (cp_print_value): New function.
8460
64b653ca
TT
84612020-03-13 Tom Tromey <tom@tromey.com>
8462
8463 * m2-valprint.c (m2_value_print_inner): Use
8464 cp_print_value_fields.
8465 * cp-valprint.c (cp_print_value_fields): New function.
8466 * c-valprint.c (c_value_print_struct): New function.
8467 (c_value_print_inner): Use c_value_print_struct.
8468 * c-lang.h (cp_print_value_fields): Declare.
8469
6999f067
TT
84702020-03-13 Tom Tromey <tom@tromey.com>
8471
8472 * c-valprint.c (c_value_print_array): New function.
8473 (c_value_print_inner): Use it.
8474
ce80b8bd
TT
84752020-03-13 Tom Tromey <tom@tromey.com>
8476
8477 * c-valprint.c (c_value_print_memberptr): New function.
8478 (c_value_print_inner): Use it.
8479
2faac269
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * c-valprint.c (c_value_print_int): New function.
8483 (c_value_print_inner): Use it.
8484
da3e2c29
TT
84852020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * c-valprint.c (c_value_print_ptr): New function.
8488 (c_value_print_inner): Use it.
8489
50836231
TT
84902020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * c-valprint.c (c_value_print_inner): Rewrite.
8493
4f412b6e
TT
84942020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * valprint.c (generic_value_print_complex): New function.
8497 (generic_value_print): Use it.
8498
f5354008
TT
84992020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * valprint.c (generic_val_print_float): Don't call
8502 val_print_scalar_formatted.
8503 (generic_val_print, generic_value_print): Update.
8504
3eec3b05
TT
85052020-03-13 Tom Tromey <tom@tromey.com>
8506
8507 * valprint.c (generic_value_print_char): New function
8508 (generic_value_print): Use it.
8509
fdddfccb
TT
85102020-03-13 Tom Tromey <tom@tromey.com>
8511
8512 * valprint.c (generic_value_print_int): New function.
8513 (generic_value_print): Use it.
8514
6dde7521
TT
85152020-03-13 Tom Tromey <tom@tromey.com>
8516
8517 * valprint.c (generic_value_print_bool): New function.
8518 (generic_value_print): Use it.
8519
4112d2e6
TT
85202020-03-13 Tom Tromey <tom@tromey.com>
8521
8522 * valprint.c (generic_val_print_func): Simplify.
8523 (generic_val_print, generic_value_print): Update.
8524
65786af6
TT
85252020-03-13 Tom Tromey <tom@tromey.com>
8526
8527 * valprint.c (generic_val_print_flags): Remove.
8528 (generic_val_print, generic_value_print): Update.
8529 (val_print_type_code_flags): Add original_value parameter.
8530
40f3ce18
TT
85312020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * valprint.c (generic_val_print): Update.
8534 (generic_value_print): Update.
8535 * valprint.c (generic_val_print_enum): Don't call
8536 val_print_scalar_formatted.
8537
2a5b130b
TT
85382020-03-13 Tom Tromey <tom@tromey.com>
8539
8540 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8541 * valprint.c (generic_value_print_ptr): New function.
8542
abc66ce9
TT
85432020-03-13 Tom Tromey <tom@tromey.com>
8544
8545 * valprint.c (generic_value_print): Rewrite.
8546
07a32858
TT
85472020-03-13 Tom Tromey <tom@tromey.com>
8548
8549 * p-valprint.c (pascal_object_print_value_fields)
8550 (pascal_object_print_value): New functions.
8551
64d64d3a
TT
85522020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * p-valprint.c (pascal_value_print_inner): Rewrite.
8555
6a95a1f5
TT
85562020-03-13 Tom Tromey <tom@tromey.com>
8557
8558 * f-valprint.c (f_value_print_innner): Rewrite.
8559
59fcdac6
TT
85602020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * m2-valprint.c (m2_print_unbounded_array): New overload.
8563 (m2_print_unbounded_array): Update.
8564 (m2_print_array_contents): Take a struct value.
8565 (m2_value_print_inner): Rewrite.
8566
d133c3e1
TT
85672020-03-13 Tom Tromey <tom@tromey.com>
8568
8569 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8570 (d_value_print_inner): New function.
8571 * d-lang.h (d_value_print_inner): Declare.
8572 * d-lang.c (d_language_defn): Use d_value_print_inner.
8573
23b0f06b
TT
85742020-03-13 Tom Tromey <tom@tromey.com>
8575
8576 * go-valprint.c (go_value_print_inner): New function.
8577 * go-lang.h (go_value_print_inner): Declare.
8578 * go-lang.c (go_language_defn): Use go_value_print_inner.
8579
5f56f7cb
TT
85802020-03-13 Tom Tromey <tom@tromey.com>
8581
8582 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8583 API.
8584 (rust_val_print): Rewrite.
8585 (rust_value_print_inner): New function, from rust_val_print.
8586 (rust_language_defn): Use rust_value_print_inner.
8587
26792ee0
TT
85882020-03-13 Tom Tromey <tom@tromey.com>
8589
8590 * ada-valprint.c (ada_value_print_inner): New function.
8591 * ada-lang.h (ada_value_print_inner): Declare.
8592 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8593
24051bbe
TT
85942020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * f-valprint.c (f_value_print_innner): New function.
8597 * f-lang.h (f_value_print_innner): Declare.
8598 * f-lang.c (f_language_defn): Use f_value_print_innner.
8599
c0941be6
TT
86002020-03-13 Tom Tromey <tom@tromey.com>
8601
8602 * p-valprint.c (pascal_value_print_inner): New function.
8603 * p-lang.h (pascal_value_print_inner): Declare.
8604 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8605
62c4663d
TT
86062020-03-13 Tom Tromey <tom@tromey.com>
8607
8608 * m2-valprint.c (m2_value_print_inner): New function.
8609 * m2-lang.h (m2_value_print_inner): Declare.
8610 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8611
62182190
TT
86122020-03-13 Tom Tromey <tom@tromey.com>
8613
8614 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8615 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8616 * c-valprint.c (c_value_print_inner): New function.
8617 * c-lang.h (c_value_print_inner): Declare.
8618 * c-lang.c (c_language_defn, cplus_language_defn)
8619 (asm_language_defn, minimal_language_defn): Use
8620 c_value_print_inner.
8621
1e592a8a
TT
86222020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * p-valprint.c (pascal_object_print_value_fields): Now static.
8625 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8626
7fe471e9
TT
86272020-03-13 Tom Tromey <tom@tromey.com>
8628
8629 * c-valprint.c (c_val_print_array): Simplify.
8630
d121c6ce
TT
86312020-03-13 Tom Tromey <tom@tromey.com>
8632
8633 * valprint.c (value_print_array_elements): New function.
8634 * valprint.h (value_print_array_elements): Declare.
8635
4dba70ee
TT
86362020-03-13 Tom Tromey <tom@tromey.com>
8637
8638 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8639 * mips-tdep.c (mips_print_register): Use
8640 value_print_scalar_formatted.
8641
4f9ae810
TT
86422020-03-13 Tom Tromey <tom@tromey.com>
8643
8644 * valprint.h (value_print_scalar_formatted): Declare.
8645 * valprint.c (value_print_scalar_formatted): New function.
8646
156bfec9
TT
86472020-03-13 Tom Tromey <tom@tromey.com>
8648
8649 * valprint.h (generic_value_print): Declare.
8650 * valprint.c (generic_value_print): New function.
8651
2b4e573d
TT
86522020-03-13 Tom Tromey <tom@tromey.com>
8653
8654 * valprint.c (do_val_print): Call la_value_print_inner, if
8655 available.
8656 * rust-lang.c (rust_language_defn): Update.
8657 * p-lang.c (pascal_language_defn): Update.
8658 * opencl-lang.c (opencl_language_defn): Update.
8659 * objc-lang.c (objc_language_defn): Update.
8660 * m2-lang.c (m2_language_defn): Update.
8661 * language.h (struct language_defn) <la_value_print_inner>: New
8662 member.
8663 * language.c (unknown_language_defn, auto_language_defn): Update.
8664 * go-lang.c (go_language_defn): Update.
8665 * f-lang.c (f_language_defn): Update.
8666 * d-lang.c (d_language_defn): Update.
8667 * c-lang.c (c_language_defn, cplus_language_defn)
8668 (asm_language_defn, minimal_language_defn): Update.
8669 * ada-lang.c (ada_language_defn): Update.
8670
a1f6a07c
TT
86712020-03-13 Tom Tromey <tom@tromey.com>
8672
8673 * c-valprint.c (c_value_print): Use common_val_print.
8674
410cf315
TT
86752020-03-13 Tom Tromey <tom@tromey.com>
8676
8677 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8678
72a45c93
TT
86792020-03-13 Tom Tromey <tom@tromey.com>
8680
8681 * f-valprint.c (f77_print_array_1, f_val_print): Use
8682 common_val_print.
8683
040f66bd
TT
86842020-03-13 Tom Tromey <tom@tromey.com>
8685
8686 * riscv-tdep.c (riscv_print_one_register_info): Use
8687 common_val_print.
8688
a6e05a6c
TT
86892020-03-13 Tom Tromey <tom@tromey.com>
8690
8691 * mi/mi-main.c (output_register): Use common_val_print.
8692
3444c526
TT
86932020-03-13 Tom Tromey <tom@tromey.com>
8694
8695 * infcmd.c (default_print_one_register_info): Use
8696 common_val_print.
8697
c2a44efe
TT
86982020-03-13 Tom Tromey <tom@tromey.com>
8699
8700 * valprint.h (common_val_print_checked): Declare.
8701 * valprint.c (common_val_print_checked): New function.
8702 * stack.c (print_frame_arg): Use common_val_print_checked.
8703
b0c26e99
TT
87042020-03-13 Tom Tromey <tom@tromey.com>
8705
8706 * valprint.c (do_val_print): New function, from val_print.
8707 (val_print): Use do_val_print.
8708 (common_val_print): Use do_val_print.
8709
ce3acbe9
TT
87102020-03-13 Tom Tromey <tom@tromey.com>
8711
8712 * valprint.c (value_print): Use scoped_value_mark.
8713
96c7f873
TV
87142020-03-13 Tom de Vries <tdevries@suse.de>
8715
8716 PR symtab/25646
8717 * psymtab.c (partial_symtab::partial_symtab): Don't set
8718 globals_offset and statics_offset. Push element onto
8719 current_global_psymbols and current_static_psymbols stacks.
8720 (concat): New function.
8721 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8722 element from current_global_psymbols and current_static_psymbols
8723 stacks. Concat popped elements to global_psymbols and
8724 static_symbols.
8725 (add_psymbol_to_list): Use current_global_psymbols and
8726 current_static_psymbols stacks.
8727 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8728 current_static_psymbols fields.
8729
6ba0a321
CB
87302020-03-12 Christian Biesinger <cbiesinger@google.com>
8731
8732 * corelow.c (sniff_core_bfd): Remove.
8733 (class core_target) <m_core_vec>: Remove.
8734 (core_target::core_target): Update.
8735 (core_file_fns): Remove.
8736 (deprecated_add_core_fns): Remove.
8737 (default_core_sniffer): Remove.
8738 (sniff_core_bfd): Remove.
8739 (default_check_format): Remove.
8740 (gdb_check_format): Remove.
8741 (core_target_open): Update.
8742 (core_target::get_core_register_section): Update.
8743 (get_core_registers_cb): Update.
8744 (core_target::fetch_registers): Update.
8745 * gdbcore.h (struct core_fns): Remove.
8746 (deprecated_add_core_fns): Remove.
8747 (default_core_sniffer): Remove.
8748 (default_check_format): Remove.
8749
227031b2
TT
87502020-03-12 Tom Tromey <tom@tromey.com>
8751
8752 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8753 CORE_ADDR.
8754 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8755
53807e9f
TT
87562020-03-12 Tom Tromey <tom@tromey.com>
8757
8758 * remote.c (remote_target::download_tracepoint)
8759 (remote_target::enable_tracepoint)
8760 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8761 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8762 sprintf_vma.
8763
64f25102
TT
87642020-03-12 Tom Tromey <tom@tromey.com>
8765
8766 * symfile-mem.c: Update CORE_ADDR size assert.
8767
272cd5a3
SM
87682020-03-12 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * selftest.m4: Move to gdbsupport/.
8771 * acinclude.m4: Update path to selftest.m4.
8772
74cd3f9d
SM
87732020-03-12 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8776 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8777 gdbarch-selfselftests.c and selftest-arch.c.
8778 (SUBDIR_UNITTESTS_OBS): Rename to...
8779 (SELFTESTS_OBS): ... this.
8780 (COMMON_SFILES): Remove disasm-selftests.c and
8781 gdbarch-selftests.c.
8782 * configure.ac: Don't add selftest-arch.{c,o} to
8783 CONFIG_{SRCS,OBS}.
8784 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8785 preprocessor conditions.
8786
db6878ac
SM
87872020-03-12 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * configure.ac: Don't source bfd/development.sh.
8790 * selftest.m4: Modify comment.
8791 * configure: Re-generate.
8792
4d696a5c
SM
87932020-03-12 Simon Marchi <simon.marchi@efficios.com>
8794
8795 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8796 not "true" or "false".
8797 * configure: Re-generate.
8798
8dd8e1c7
CB
87992020-03-12 Christian Biesinger <cbiesinger@google.com>
8800
8801 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8802 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8803 renamed to arm_nbsd_supply_gregset.
8804 (fetch_register): Update to call arm_nbsd_supply_gregset.
8805 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8806 (arm_netbsd_nat_target::fetch_registers): Update.
8807 (fetch_elfcore_registers): Removed.
8808 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8809 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8810 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8811 not require NetBSD system headers.
8812 (arm_nbsd_regset): New struct.
8813 (arm_nbsd_iterate_over_regset_sections): New function.
8814 (arm_netbsd_init_abi_common): Updated to call
8815 set_gdbarch_iterate_over_regset_sections.
8816 * arm-nbsd-tdep.h: New file.
8817
dd69bf7a
KB
88182020-03-11 Kevin Buettner <kevinb@redhat.com>
8819
8820 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8821 recursion.
8822
a0761e34
SM
88232020-03-11 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * configure: Re-generate.
8826
e7a82140
TT
88272020-03-11 Tom Tromey <tromey@adacore.com>
8828
8829 * ada-typeprint.c (print_choices): Fix comment.
8830
dcc050c8
AB
88312020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8834 previous item in the list, when the list has no items.
8835
1c33af77
TV
88362020-03-11 Tom de Vries <tdevries@suse.de>
8837
8838 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8839 PROP_LOCLIST handling code.
8840
8c95582d
AB
88412020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * buildsym-legacy.c (record_line): Pass extra parameter to
8844 record_line.
8845 * buildsym.c (buildsym_compunit::record_line): Take an extra
8846 parameter, reduce duplication in the line table, and record the
8847 is_stmt flag in the line table.
8848 * buildsym.h (buildsym_compunit::record_line): Add extra
8849 parameter.
8850 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8851 non-statement lines.
8852 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8853 this to the symtab builder.
8854 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8855 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8856 through to dwarf_record_line_1.
8857 * infrun.c (process_event_stop_test): When stepping, don't stop at
8858 a non-statement instruction, and only refresh the step info when
8859 we land in the middle of a line's range. Also add an extra
8860 comment.
8861 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8862 field.
8863 * record-btrace.c (btrace_find_line_range): Only record lines
8864 marked as is-statement.
8865 * stack.c (frame_show_address): Show the frame address if we are
8866 in a non-statement sal.
8867 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8868 (maintenance_print_one_line_table): Print a header for the is_stmt
8869 column, and include is_stmt information in the output.
8870 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8871 preference to non-statements.
8872 (find_pcs_for_symtab_line): Prefer is-statement entries.
8873 (find_line_common): Likewise.
8874 * symtab.h (struct linetable_entry): Add is_stmt field.
8875 (struct symtab_and_line): Likewise.
8876 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8877 arranging the line table.
8878
e4003a34
TV
88792020-03-07 Tom de Vries <tdevries@suse.de>
8880
8881 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8882 DIE.
8883
e8932576
TT
88842020-03-07 Tom Tromey <tom@tromey.com>
8885
8886 * valops.c (value_literal_complex): Remove obsolete comment.
8887 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8888 comment.
8889
29734269
SM
88902020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8891
8892 * infrun.h: Forward-declare thread_info.
8893 (set_step_info): Add thread_info parameter, add doc.
8894 * infrun.c (set_step_info): Add thread_info parameter, move doc
8895 to header.
8896 * infrun.c (process_event_stop_test): Pass thread to
8897 set_step_info call.
8898 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8899 set_step_info.
8900 (prepare_one_step): Add thread_info parameter, pass it to
8901 set_step_frame and prepare_one_step (recursive) call.
8902 (step_1): Pass thread to prepare_one_step call.
8903 (step_command_fsm::should_stop): Pass thread to
8904 prepare_one_step.
8905 (until_next_fsm): Pass thread to set_step_frame call.
8906 (finish_command): Pass thread to set_step_info call.
8907
b7d64b29
HD
89082020-03-06 Hannes Domani <ssbssa@yahoo.de>
8909
8910 * windows-tdep.c (windows_solib_create_inferior_hook):
8911 Check if inferior is running.
8912
09f2921c
TV
89132020-03-06 Tom de Vries <tdevries@suse.de>
8914
8915 * NEWS: Fix "the the".
8916 * ctfread.c: Same.
8917
fd760e79
TV
89182020-03-06 Tom de Vries <tdevries@suse.de>
8919
8920 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8921
20ea4a60
AB
89222020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8923
8924 * .dir-locals.el: Add a comment referencing the other copies of
8925 this file.
8926
0afbabf0
JB
89272020-03-05 John Baldwin <jhb@FreeBSD.org>
8928
8929 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8930 psargs.
8931
842806cb
TBA
89322020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8933
8934 * .gitattributes: New file.
8935
be1e3d3e
TT
89362020-03-04 Tom Tromey <tom@tromey.com>
8937
8938 * symmisc.c (print_symbol_bcache_statistics)
8939 (print_objfile_statistics): Update.
8940 * symfile.c (allocate_symtab): Use intern.
8941 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8942 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8943 macro_cache>: Remove.
8944 <string_cache>: New member.
8945 (struct objfile) <intern>: New methods.
8946 * elfread.c (elf_symtab_read): Use intern.
8947 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8948 (dwarf2_compute_name, dwarf2_physname)
8949 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8950 names.
8951 (guess_partial_die_structure_name): Update.
8952 (partial_die_info::fixup): Intern name.
8953 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8954 name.
8955 (dwarf2_name): Intern name. Update.
8956 * buildsym.c (buildsym_compunit::get_macro_table): Use
8957 string_cache.
8958
4e7625fd
TT
89592020-03-04 Tom Tromey <tom@tromey.com>
8960
8961 * jit.c (bfd_open_from_target_memory): Make "target" const.
8962 * corefile.c (gnutarget): Now const.
8963 * gdbcore.h (gnutarget): Now const.
8964
46f9f931
HD
89652020-03-04 Hannes Domani <ssbssa@yahoo.de>
8966
8967 * NEWS: Mention support for WOW64 processes.
8968 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8969 (amd64_windows_segment_register_p): Remove static.
8970 (_initialize_amd64_windows_nat): Update.
8971 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8972 * i386-windows-nat.c (context_offset): Update.
8973 (i386_mappings): Rename and remove static.
8974 (i386_windows_segment_register_p): Remove static.
8975 (_initialize_i386_windows_nat): Update.
8976 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8977 (STATUS_WX86_SINGLE_STEP): New macro.
8978 (EnumProcessModulesEx): New macro.
8979 (Wow64SuspendThread): New macro.
8980 (Wow64GetThreadContext): New macro.
8981 (Wow64SetThreadContext): New macro.
8982 (Wow64GetThreadSelectorEntry): New macro.
8983 (windows_set_context_register_offsets): Add static.
8984 (windows_set_segment_register_p): Likewise.
8985 (windows_add_thread): Adapt for WOW64 processes.
8986 (windows_fetch_one_register): Likewise.
8987 (windows_nat_target::fetch_registers): Likewise.
8988 (windows_store_one_register): Likewise.
8989 (display_selector): Likewise.
8990 (display_selectors): Likewise.
8991 (handle_exception): Likewise.
8992 (windows_continue): Likewise.
8993 (windows_nat_target::resume): Likewise.
8994 (windows_add_all_dlls): Likewise.
8995 (do_initial_windows_stuff): Likewise.
8996 (windows_nat_target::attach): Likewise.
8997 (windows_get_exec_module_filename): Likewise.
8998 (windows_nat_target::create_inferior): Likewise.
8999 (windows_xfer_siginfo): Likewise.
9000 (_initialize_loadable): Initialize Wow64SuspendThread,
9001 Wow64GetThreadContext, Wow64SetThreadContext,
9002 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9003 * windows-nat.h (windows_set_context_register_offsets):
9004 Remove declaration.
9005 (windows_set_segment_register_p): Likewise.
9006 (i386_windows_segment_register_p): Add declaration.
9007 (amd64_windows_segment_register_p): Likewise.
9008
440cf44e
LM
90092020-03-04 Luis Machado <luis.machado@linaro.org>
9010
9011 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9012 in "info registers" for AArch64/ARM.
9013
9014 The change caused "info registers" to not print GPR's.
9015
9016 gdb/ChangeLog:
9017
9018 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9019
9020 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9021 when reg->group is empty and reggroup is not.
9022
1009d92f
TT
90232020-03-03 Tom Tromey <tromey@adacore.com>
9024
9025 * dwarf2/frame.c (struct dwarf2_frame_cache)
9026 <checked_tailcall_bottom, entry_cfa_sp_offset,
9027 entry_cfa_sp_offset_p>: Remove members.
9028 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9029 (dwarf2_frame_prev_register): Don't call
9030 dwarf2_tailcall_sniffer_first.
9031 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9032 * frame-unwind.c (add_unwinder): New fuction.
9033 (frame_unwind_init): Use it. Add tailcall unwinder.
9034
5e5d66b6
AB
90352020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9036 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9037
9038 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9039 value should be printed as true.
9040
584cf46d
HD
90412020-03-03 Hannes Domani <ssbssa@yahoo.de>
9042
9043 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9044 (windows_init_abi): Set and use windows_so_ops.
9045
7b973adc
SDJ
90462020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9047
9048 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9049 when verifying if dealing with a convenience variable.
9050
bb7b70ab
LM
90512020-03-03 Luis Machado <luis.machado@linaro.org>
9052
9053 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9054
9822cb57
SM
90552020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9056
9057 * infrun.c (gdbarch_supports_displaced_stepping): New.
9058 (use_displaced_stepping): Break up conditions in smaller pieces.
9059 Use gdbarch_supports_displaced_stepping.
9060 (displaced_step_prepare_throw): Use
9061 gdbarch_supports_displaced_stepping.
9062
63e163f2
AB
90632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9064
9065 * NEWS: Mention new behaviour of the history filename.
9066 * top.c (write_history_p): Add comment.
9067 (show_write_history_p): Add header comment, give a different
9068 message when history writing is on, but the history filename is
9069 empty.
9070 (history_filename): Add comment.
9071 (history_filename_empty): New function.
9072 (show_history_filename): Add header comment, give a different
9073 message when the filename is empty.
9074 (init_history): Compare history_filename against nullptr, and only
9075 read history if the filename is not empty.
9076 (set_history_filename): Add header comment, and only make
9077 non-empty filenames absolute.
9078 (init_main): Make the filename argument to 'set history filename'
9079 optional.
9080
81b86b97
CB
90812020-03-02 Christian Biesinger <cbiesinger@google.com>
9082
9083 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9084 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9085 (fetch_fp_register): Update.
9086 (fetch_fp_regs): Update.
9087 (store_fp_register): Update.
9088 (store_fp_regs): Update.
9089 (arm_netbsd_nat_target::read_description): New function.
9090 (fetch_elfcore_registers): Update.
9091
24ed6739
AB
90922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9095 general_thread if the stop reply is missing a thread-id.
9096 (remote_target::process_stop_reply): Use the first non-exited
9097 thread if the target didn't pass a thread-id.
9098 * infrun.c (do_target_wait): Move call to
9099 switch_to_inferior_no_thread to ....
9100 (do_target_wait_1): ... here.
9101
a84bb2a0
JT
91022020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9103
9104 * debuginfod-support.c: Include defs.h first.
9105
658dadf0
TV
91062020-02-28 Tom de Vries <tdevries@suse.de>
9107
9108 * symfile.c (set_initial_language): Use default language for lookup.
9109
4ebe4877
SM
91102020-02-28 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9113 reader variable, pass `this` to read_cutu_die_from_dwo.
9114
e5da1139
AM
91152020-02-27 Aaron Merey <amerey@redhat.com>
9116
9117 * source.c (open_source_file): Check for nullptr when computing
9118 srcpath.
9119
317f7127
TT
91202020-02-27 Tom Tromey <tromey@adacore.com>
9121
9122 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9123 member.
9124 (dwarf2_add_field): Don't update nfields.
9125 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9126
3104d9ee
AB
91272020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9130 abs.
9131
b83470bf
TT
91322020-02-26 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9135 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9136 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9137 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9138 per_cu_data.
9139
edfe0a0c
TT
91402020-02-26 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/index-write.c (psym_index_map): Change type.
9143 (add_address_entry_worker, write_one_signatured_type)
9144 (recursively_count_psymbols, recursively_write_psymbols)
9145 (class debug_names, psyms_seen_size, write_gdbindex)
9146 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9147
0d79cdc4
AM
91482020-02-26 Aaron Merey <amerey@redhat.com>
9149
9150 * Makefile.in: Handle optional debuginfod support.
9151 * NEWS: Update.
9152 * README: Add --with-debuginfod summary.
9153 * config.in: Regenerate.
9154 * configure: Regenerate.
9155 * configure.ac: Handle optional debuginfod support.
9156 * debuginfod-support.c: debuginfod helper functions.
9157 * debuginfod-support.h: Ditto.
9158 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9159 summary.
9160 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9161 when a dwz file cannot be found.
9162 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9163 debuginfo file cannot be found.
9164 * source.c (open_source_file): Query debuginfod servers when a
9165 source file cannot be found.
9166 * top.c (print_gdb_configuration): Include
9167 --{with,without}-debuginfod in the output.
9168
b65ce565
JG
91692020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9170
9171 * thread.c (thr_try_catch_cmd): Print thread name.
9172
d4c9a4f8
SM
91732020-02-26 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9176 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9177 dwarf2_fetch_die_type_sect_off): Move to...
9178 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9180 dwarf2_fetch_die_type_sect_off): ... here.
9181 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9183 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9184
0dce4280
TV
91852020-02-26 Tom de Vries <tdevries@suse.de>
9186
9187 PR gdb/25603
9188 * symfile.c (set_initial_language): Exit-early if
9189 language_mode == language_mode_manual.
9190
450a1bfc
SM
91912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9192
9193 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9194 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9195 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9196
9e80cfa1
AB
91972020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9198
9199 * gdbtypes.c (create_array_type_with_stride): Handle negative
9200 array strides.
9201 * valarith.c (value_subscripted_rvalue): Likewise.
9202
09624f1f
LM
92032020-02-25 Luis Machado <luis.machado@linaro.org>
9204
9205 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9206
8cb5117c
SM
92072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9208
9209 * loc.h (dwarf2_get_die_type): Move to...
9210 * read.h (dwarf2_get_die_type): ... here.
9211 * read.c (dwarf2_get_die_type): Move doc to header.
9212
c325c44e
JB
92132020-02-25 Joel Brobecker <brobecker@adacore.com>
9214
9215 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9216 'gnulib/Makefile.in' to the list.
9217
4ac93832
TT
92182020-02-24 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9221 Remove.
9222 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9223 XOBNEWVEC.
9224
197400e8
TT
92252020-02-24 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9228 New method.
9229 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9230 (dw2_do_instantiate_symtab, dw2_get_file_names)
9231 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9232
76935768
TT
92332020-02-24 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9236 make_scoped_restore.
9237 (dwarf2_psymtab::read_symtab): Don't clear
9238 reading_partial_symbols.
9239
a88ef40d
TV
92402020-02-24 Tom de Vries <tdevries@suse.de>
9241
9242 PR gdb/25592
9243 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9244
c9af6521
TV
92452020-02-24 Tom de Vries <tdevries@suse.de>
9246
9247 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9248 commands layout next/prev/regs.
9249
5707a07a
TT
92502020-02-22 Tom Tromey <tom@tromey.com>
9251
9252 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9253 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9254
3b0fb49e
TT
92552020-02-22 Tom Tromey <tom@tromey.com>
9256
9257 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9258
283be8bf
TT
92592020-02-22 Tom Tromey <tom@tromey.com>
9260
9261 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9262 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9263 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9264 * tui/tui.c (_initialize_tui): Add usage text.
9265
ca793b96
TT
92662020-02-22 Tom Tromey <tom@tromey.com>
9267
9268 * tui/tui-win.c (tui_set_focus_command)
9269 (tui_set_win_height_command): Use error_no_arg.
9270 (_initialize_tui_win): Update help text.
9271 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9272
432b5c40
TT
92732020-02-22 Tom Tromey <tom@tromey.com>
9274
9275 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9276 * tui/tui-disasm.h (struct tui_disasm_window)
9277 <display_start_addr>: Declare.
9278 * tui/tui-source.h (struct tui_source_window)
9279 <display_start_addr>: Declare.
9280 * tui/tui-winsource.h (struct tui_source_window_base)
9281 <show_source_line, display_start_addr>: New methods.
9282 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9283 Rename and move to protected section.
9284 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9285 (tui_source_window_base::do_erase_source_content): Update.
9286 (tui_source_window_base::show_source_line): Now a method.
9287 (tui_source_window_base::show_source_content)
9288 (tui_source_window_base::tui_source_window_base)
9289 (tui_source_window_base::rerender)
9290 (tui_source_window_base::refill)
9291 (tui_source_window_base::do_scroll_horizontal)
9292 (tui_source_window_base::set_is_exec_point_at)
9293 (tui_source_window_base::update_breakpoint_info)
9294 (tui_source_window_base::update_exec_info): Update.
9295 * tui/tui-source.c (tui_source_window::set_contents)
9296 (tui_source_window::showing_source_p)
9297 (tui_source_window::do_scroll_vertical)
9298 (tui_source_window::location_matches_p)
9299 (tui_source_window::line_is_displayed): Update.
9300 (tui_source_window::display_start_addr): New method.
9301 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9302 (tui_disasm_window::do_scroll_vertical)
9303 (tui_disasm_window::location_matches_p): Update.
9304 (tui_disasm_window::display_start_addr): New method.
9305
01b1af32
TT
93062020-02-22 Tom Tromey <tom@tromey.com>
9307
9308 * NEWS: Add entry for gdb.register_window_type.
9309 * tui/tui-layout.h (window_factory): New typedef.
9310 (tui_register_window): Declare.
9311 * tui/tui-layout.c (saved_tui_windows): New global.
9312 (tui_apply_current_layout): Use it.
9313 (tui_register_window): New function.
9314 * python/python.c (do_start_initialization): Call
9315 gdbpy_initialize_tui.
9316 (python_GdbMethods): Add "register_window_type" function.
9317 * python/python-internal.h (gdbpy_register_tui_window)
9318 (gdbpy_initialize_tui): Declare.
9319 * python/py-tui.c: New file.
9320 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9321
fc96d20b
TT
93222020-02-22 Tom Tromey <tom@tromey.com>
9323
9324 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9325
935c78c0
TT
93262020-02-22 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9329 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9330 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9331 (tui_set_win_focus_to): Move from tui-win.c.
9332
0240c8f1
TT
93332020-02-22 Tom Tromey <tom@tromey.com>
9334
9335 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9336 functions.
9337 (known_window_types): New global.
9338 (tui_get_window_by_name): Reimplement.
9339 (initialize_known_windows): New function.
9340 (validate_window_name): Rewrite.
9341 (_initialize_tui_layout): Call initialize_known_windows.
9342
fdb01f0c
TT
93432020-02-22 Tom Tromey <tom@tromey.com>
9344
9345 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9346 Remove constants.
9347 * tui/tui-winsource.h (struct tui_source_window_base)
9348 <tui_source_window_base>: Remove parameter.
9349 * tui/tui-winsource.c
9350 (tui_source_window_base::tui_source_window_base): Remove
9351 parameter.
9352 (tui_source_window_base::refill): Update.
9353 * tui/tui-stack.h (struct tui_locator_window)
9354 <tui_locator_window>: Update.
9355 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9356 Default the constructor.
9357 * tui/tui-regs.h (struct tui_data_item_window)
9358 <tui_data_item_window>: Default the constructor.
9359 (struct tui_data_window) <tui_data_window>: Likewise.
9360 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9361 Default the constructor.
9362 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9363 Default the constructor.
9364 <type>: Remove.
9365 (struct tui_win_info) <tui_win_info>: Default the constructor.
9366 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9367 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9368 Default the constructor.
9369
865a5aec
TT
93702020-02-22 Tom Tromey <tom@tromey.com>
9371
9372 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9373 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9374 * tui/tui-win.c (tui_resize_all): Don't call
9375 tui_delete_invisible_windows.
9376 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9377 done.
9378 (tui_set_layout): Update.
9379 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9380 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9381 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9382
e098d18c
TT
93832020-02-22 Tom Tromey <tom@tromey.com>
9384
9385 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9386 correctly.
9387
eb9c8874
TT
93882020-02-22 Tom Tromey <tom@tromey.com>
9389
9390 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9391
7eed1a8e
TT
93922020-02-22 Tom Tromey <tom@tromey.com>
9393
9394 * tui/tui-winsource.h (struct tui_source_window_iterator)
9395 <inner_iterator>: New etytypedef.
9396 <tui_source_window_iterator>: Take "end" parameter.
9397 <tui_source_window_iterator>: Take iterator.
9398 <operator*, advance>: Update.
9399 <m_iter>: Change type.
9400 <m_end>: New field.
9401 (struct tui_source_windows) <begin, end>: Update.
9402 * tui/tui-layout.c (tui_windows): New global.
9403 (tui_apply_current_layout): Clear tui_windows.
9404 (tui_layout_window::apply): Update tui_windows.
9405 * tui/tui-data.h (tui_windows): Declare.
9406 (all_tui_windows): Now inline function.
9407 (class tui_window_iterator, struct all_tui_windows): Remove.
9408
7c043ba6
TT
94092020-02-22 Tom Tromey <tom@tromey.com>
9410
9411 PR tui/17850:
9412 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9413 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9414 "height" argument.
9415 (class tui_layout_window) <get_sizes>: Likewise.
9416 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9417 argument.
9418 <get_sizes>: Add "height" argument.
9419 <m_vertical>: New field.
9420 * tui/tui-layout.c (tui_layout_split::clone): Update.
9421 (tui_layout_split::get_sizes): Add "height" argument.
9422 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9423 (tui_new_layout_command): Parse "-horizontal".
9424 (_initialize_tui_layout): Update help string.
9425 (tui_layout_split::specification): Add "-horizontal" when needed.
9426 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9427 argument.
9428 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9429 New methods.
9430
6bc56648
TT
94312020-02-22 Tom Tromey <tom@tromey.com>
9432
9433 * tui/tui-layout.h (enum tui_adjust_result): New.
9434 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9435 (class tui_layout_window) <adjust_size>: Return
9436 tui_adjust_result. Rewrite.
9437 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9438 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9439
c22fef7e
TT
94402020-02-22 Tom Tromey <tom@tromey.com>
9441
9442 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9443 parameter and return types.
9444 (class tui_layout_base) <specification>: Add "depth".
9445 (class tui_layout_window) <specification>: Add "depth".
9446 (class tui_layout_split) <specification>: Add "depth".
9447 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9448 and return types.
9449 (tui_new_layout_command): Parse sub-layouts.
9450 (_initialize_tui_layout): Update help string.
9451 (tui_layout_window::specification): Add "depth".
9452 (add_layout_command): Update.
9453
ee325b61
TT
94542020-02-22 Tom Tromey <tom@tromey.com>
9455
9456 * NEWS: Add "tui new-layout" item.
9457 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9458 Add new-layout command to help text.
9459 (validate_window_name): New function.
9460 (tui_new_layout_command): New function.
9461 (_initialize_tui_layout): Register "new-layout".
9462 (tui_layout_window::specification): New method.
9463 (tui_layout_window::specification): New method.
9464 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9465 method.
9466 (class tui_layout_window) <specification>: New method.
9467 (class tui_layout_split) <specification>: New method.
9468
416eb92d
TT
94692020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9472 * tui/tui-win.c (window_name_completer): Update comment.
9473 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9474 Declare method.
9475 (class tui_layout_window) <replace_window>: Likewise.
9476 (class tui_layout_split) <replace_window>: Likewise.
9477 (tui_set_layout): Don't declare.
9478 (tui_set_initial_layout): Declare function.
9479 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9480 (asm_regs_layout): New globals.
9481 (tui_current_layout, show_layout): Remove.
9482 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9483 (find_layout, tui_apply_layout): New function.
9484 (layout_completer): Remove.
9485 (tui_next_layout): Reimplement.
9486 (tui_next_layout_command): New function.
9487 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9488 (tui_regs_layout): Reimplement.
9489 (tui_regs_layout_command): New function.
9490 (extract_display_start_addr): Rewrite.
9491 (next_layout, prev_layout): Remove.
9492 (tui_layout_window::replace_window): New method.
9493 (tui_layout_split::replace_window): New method.
9494 (destroy_layout): New function.
9495 (layout_list): New global.
9496 (add_layout_command): New function.
9497 (initialize_layouts): Update.
9498 (tui_layout_command): New function.
9499 (_initialize_tui_layout): Install "layout" commands.
9500 * tui/tui-data.h (enum tui_layout_type): Remove.
9501 (tui_current_layout): Don't declare.
9502
0dbc2fc7
TT
95032020-02-22 Tom Tromey <tom@tromey.com>
9504
9505 * tui/tui-regs.c (tui_reg_layout): Remove.
9506 (tui_reg_command): Use tui_regs_layout.
9507 * tui/tui-layout.h (tui_reg_command): Declare.
9508 * tui/tui-layout.c (tui_reg_command): New function.
9509
5afe342e
TT
95102020-02-22 Tom Tromey <tom@tromey.com>
9511
9512 * tui/tui.c (tui_rl_delete_other_windows): Call
9513 tui_remove_some_windows.
9514 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9515 Declare method.
9516 (class tui_layout_window) <remove_windows>: New method.
9517 (class tui_layout_split) <remove_windows>: Declare.
9518 (tui_remove_some_windows): Declare.
9519 * tui/tui-layout.c (tui_remove_some_windows): New function.
9520 (tui_layout_split::remove_windows): New method.
9521
427326a8
TT
95222020-02-22 Tom Tromey <tom@tromey.com>
9523
9524 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9525 * tui/tui-layout.h (tui_next_layout): Declare.
9526 * tui/tui-layout.c (tui_next_layout): New function.
9527
3fe12b6d
TT
95282020-02-22 Tom Tromey <tom@tromey.com>
9529
9530 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9531 correct coordinates.
9532
59b8b5d2
TT
95332020-02-22 Tom Tromey <tom@tromey.com>
9534
9535 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9536 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9537 DATA_WIN case.
9538
2a3d458b
TT
95392020-02-22 Tom Tromey <tom@tromey.com>
9540
9541 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9542 TUI_DISASM_WIN, not tui_win_list.
9543
3f0cbb04
TT
95442020-02-22 Tom Tromey <tom@tromey.com>
9545
9546 * valprint.c (generic_val_print_enum_1)
9547 (val_print_type_code_flags): Style member names.
9548 * rust-lang.c (val_print_struct, rust_print_enum)
9549 (rust_print_struct_def, rust_internal_print_type): Style member
9550 names.
9551 * p-valprint.c (pascal_object_print_value_fields): Style member
9552 names. Only call fprintf_symbol_filtered for static members.
9553 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9554 * f-valprint.c (f_val_print): Style member names.
9555 * f-typeprint.c (f_type_print_base): Style member names.
9556 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9557 call fprintf_symbol_filtered for static members.
9558 (cp_print_class_member): Style member names.
9559 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9560 member names.
9561 * ada-valprint.c (ada_print_scalar): Style enum names.
9562 (ada_val_print_enum): Likewise.
9563 * ada-typeprint.c (print_enum_type): Style enum names.
9564
d4d947ae
TT
95652020-02-21 Tom Tromey <tom@tromey.com>
9566
9567 * psympriv.h (struct partial_symtab): Update comment.
9568
e94e944b
TT
95692020-02-21 Tom Tromey <tromey@adacore.com>
9570
9571 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9572 type is CORE_ADDR.
9573
1eb73179
TV
95742020-02-21 Tom de Vries <tdevries@suse.de>
9575
9576 PR gdb/25534
9577 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9578 if dependencies[i]->user != NULL.
9579
4f180d53
AT
95802020-02-21 Ali Tamur <tamur@google.com>
9581
9582 * dwarf2/read.c (dwarf2_name): Add null check.
9583
22b6cd70
TT
95842020-02-20 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9587 ">=", in binary search.
9588 (dwarf2_find_containing_comp_unit): New overload.
9589 (run_test): New self-test.
9590 (_initialize_dwarf2_read): Register new test.
9591
bd0cf5a6
NC
95922020-02-20 Nelson Chu <nelson.chu@sifive.com>
9593
9594 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9595 * riscv-tdep.h: Likewise.
9596 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9597 rv32-only CSR.
9598 * features/riscv/64bit-csr.xml: Regenerated.
9599
3f702acd
SDJ
96002020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9601 Tom Tromey <tom@tromey.com>
9602
9603 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9604 of 'fputc_unfiltered'.
9605 (putchar_unfiltered): Call 'fputc_unfiltered'.
9606 (fputc_unfiltered): Call 'fputs_unfiltered'.
9607
d13c7322
AB
96082020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9609
9610 * config.in: Regenerate.
9611 * configure: Regenerate.
9612 * configure.ac: Add --with-python-libdir option.
9613 * main.c: Use WITH_PYTHON_LIBDIR.
9614
869d8950
TT
96152020-02-19 Tom Tromey <tom@tromey.com>
9616
9617 * symtab.c (general_symbol_info::compute_and_set_names): Use
9618 obstack_strndup. Simplify call to symbol_set_demangled_name.
9619
298e9637
SM
96202020-02-19 Simon Marchi <simon.marchi@efficios.com>
9621
9622 * dwarf2/read.c (allocate_signatured_type_table,
9623 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9624 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9625 Remove objfile parameter, update all callers.
9626
08410482
DE
96272020-02-19 Doug Evans <dje@google.com>
9628
9629 PR rust/25535
9630 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9631 rust_enum_variant calculation.
9632
dfdeeca1
TT
96332020-02-19 Tom Tromey <tromey@adacore.com>
9634
9635 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9636
2ef5453b
TT
96372020-02-19 Tom Tromey <tromey@adacore.com>
9638
9639 * ada-lang.c (cache_symbol): Use obstack_strdup.
9640
9f1528a1
AB
96412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9642
9643 * configure: Regenerate.
9644
d3c22fa8
TT
96452020-02-19 Tom Tromey <tromey@adacore.com>
9646
9647 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9648 NULL check.
9649
bf84f706
MR
96502020-02-19 Maciej W. Rozycki <macro@wdc.com>
9651
9652 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9653
d1c9b20f
AB
96542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9655
9656 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9657 if GDBSERVER is not defined.
9658 (riscv_tdesc_cache): Likewise, also store const target_desc.
9659 (STATIC_IN_GDB): Define.
9660 (riscv_create_target_description): Update declaration with
9661 STATIC_IN_GDB.
9662 (riscv_lookup_target_description): New function, only define if
9663 GDBSERVER is not defined.
9664 * arch/riscv.h (riscv_create_target_description): Declare only
9665 when GDBSERVER is defined.
9666 (riscv_lookup_target_description): New declaration when GDBSERVER
9667 is not defined.
9668 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9669 (riscv_linux_read_features): ...this, and return
9670 riscv_gdbarch_features instead of target_desc.
9671 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9672 (riscv_linux_read_description): Rename to...
9673 (riscv_linux_read_features): ...this.
9674 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9675 Update to use riscv_gdbarch_features and
9676 riscv_lookup_target_description.
9677 * riscv-tdep.c (riscv_find_default_target_description): Use
9678 riscv_lookup_target_description instead of
9679 riscv_create_target_description.
9680
373d7ac0
SM
96812020-02-18 Simon Marchi <simon.marchi@efficios.com>
9682
9683 * valprint.c (generic_val_print_enum_1): When printing a flag
9684 enum with value 0 and there is no enumerator with value 0, print
9685 just "0" instead of "(unknown: 0x0)".
9686
b29a2df0
SM
96872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * valprint.c (generic_val_print_enum_1): Print unknown part of
9690 flag enum in hex.
9691
6740f0cc
SM
96922020-02-18 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9695 flag enums to contain duplicate enumerators.
9696 * valprint.c (generic_val_print_enum_1): Update comment.
9697
edd45eb0
SM
96982020-02-18 Simon Marchi <simon.marchi@efficios.com>
9699
9700 * dwarf2/read.c: Include "count-one-bits.h".
9701 (update_enumeration_type_from_children): If an enumerator has
9702 multiple bits set, don't treat the enumeration as a "flag enum".
9703 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9704 of flag enums have 0 or 1 bit set.
9705
6d0cf446
BE
97062020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9707
9708 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9709 conversion.
9710 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9711 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9712 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9713 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9714 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9715
7001c1b7
SM
97162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9719
fdb61c6c
SM
97202020-02-14 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9723 displaced_step_closure_up.
9724 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9725 (struct displaced_step_closure_up):
9726 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9727 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9728 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9729 Likewise.
9730 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9731 * gdbarch.c, gdbarch.h: Re-generate.
9732 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9733 displaced_step_closure_up.
9734 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9735 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9736 * infrun.h (displaced_step_closure_up): New type alias.
9737 (struct displaced_step_inferior_state) <step_closure>: Change
9738 type to displaced_step_closure_up.
9739 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9740 displaced_step_closure_up.
9741 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9742
a4a38eb4
TT
97432020-02-14 Tom Tromey <tom@tromey.com>
9744
9745 * minidebug.c (gnu_debug_key): New global.
9746 (find_separate_debug_file_in_section): Use it.
9747
e8217e61
SM
97482020-02-14 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9751 std::unique_ptr.
9752 * gdbarch.c: Re-generate.
9753 * gdbarch.h: Re-generate.
9754 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9755 change.
9756 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9757 type to std::unique_ptr.
9758 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9759 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9760 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9761 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9762 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9763 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9764 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9765 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9766 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9767
d8d83535
SM
97682020-02-14 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9771 std::unique_ptr.
9772 (displaced_step_clear): Rename to...
9773 (displaced_step_reset): ... this. Just call displaced->reset ().
9774 (displaced_step_clear_cleanup): Rename to...
9775 (displaced_step_reset_cleanup): ... this.
9776 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9777 (displaced_step_fixup): Likewise.
9778 (resume_1): Likewise.
9779 (handle_inferior_event): Restore child's memory before calling
9780 displaced_step_fixup on the parent.
9781 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9782 to std::unique_ptr.
9783 <step_closure>: Change type to std::unique_ptr.
9784
5f661e03
SM
97852020-02-14 Simon Marchi <simon.marchi@efficios.com>
9786
9787 * arm-tdep.c: Include count-one-bits.h.
9788 (cleanup_block_store_pc): Use count_one_bits.
9789 (cleanup_block_load_pc): Use count_one_bits.
9790 (arm_copy_block_xfer): Use count_one_bits.
9791 (thumb2_copy_block_xfer): Use count_one_bits.
9792 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9793 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9794 (thumb_get_next_pcs_raw): Use count_one_bits.
9795 (arm_get_next_pcs_raw): Use count_one_bits_l.
9796 * arch/arm.c (bitcount): Remove.
9797 * arch/arm.h (bitcount): Remove.
9798
8084e579
TT
97992020-02-14 Tom Tromey <tromey@adacore.com>
9800
9801 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9802 Update.
9803 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9804 * dwarf2/loc.c (call_site_find_chain_1): Return
9805 unique_xmalloc_ptr.
9806 (call_site_find_chain): Likewise.
9807
258bf0ee
RB
98082020-02-14 Richard Biener <rguenther@suse.de>
9809
9810 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9811 on expression with division operators.
9812
f98a8458
AKS
98132020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9814
9815 * MAINTAINERS (Write After Approval): Adding myself.
9816
d1437c0e
TT
98172020-02-12 Tom Tromey <tom@tromey.com>
9818
9819 * event-loop.c (event_data, gdb_event, event_handler_func):
9820 Remove.
9821
3d4560f7
TT
98222020-02-12 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9825 (dwarf2_frame_objfile_data): Add comment.
9826 (find_comp_unit, set_comp_unit): New functions.
9827 (dwarf2_frame_find_fde): Use find_comp_unit.
9828 (dwarf2_build_frame_info): Use set_comp_unit.
9829
21982304
TT
98302020-02-12 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9833 (comp_unit): Don't initialize objfile.
9834 (execute_cfa_program): Add text_offset parameter.
9835 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9836 (dwarf2_frame_cache): Update.
9837 (dwarf2_build_frame_info): Don't set "objfile" member.
9838
4debb237
TT
98392020-02-12 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9842 (decode_frame_entry): Likewise.
9843 (dwarf2_build_frame_info): Update.
9844
0d404d44
TT
98452020-02-12 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9848 (decode_frame_entry_1): Use the comp_unit obstack.
9849
a7a3ae5c
TT
98502020-02-12 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2/frame.c (struct comp_unit): Add initializers and
9853 constructor.
9854 (dwarf2_frame_objfile_data): Store a comp_unit.
9855 (dwarf2_frame_find_fde): Update.
9856 (dwarf2_build_frame_info): Use "new".
9857
a9d65418
TT
98582020-02-12 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9861 (dwarf2_fde_table): Typedef for std::vector.
9862 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9863 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9864 (decode_frame_entry): Update.
9865 (dwarf2_build_frame_info): Use "new".
9866
7559c217
CB
98672020-02-12 Christian Biesinger <cbiesinger@google.com>
9868
9869 * arm-tdep.c (arm_gdbarch_init): Update.
9870 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9871 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9872 have_neon, is_m>: Change to bool.
9873
aeefc73c
CB
98742020-02-12 Christian Biesinger <cbiesinger@google.com>
9875
9876 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9877
d27b8e5f
TT
98782020-02-12 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9881
cd5900f3
HD
98822020-02-12 Hannes Domani <ssbssa@yahoo.de>
9883
9884 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9885 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9886
f056b22b
TT
98872020-02-11 Tom Tromey <tom@tromey.com>
9888
9889 * psymtab.h: Update comment.
9890
f92ff6b5
TT
98912020-02-11 Tom Tromey <tom@tromey.com>
9892
9893 * gdb_obstack.h (struct auto_obstack): Use
9894 DISABLE_COPY_AND_ASSIGN.
9895
3fd6912b
TT
98962020-02-11 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2/frame.h (struct objfile): Don't forward declare.
9899
69ed9b74
CB
99002020-02-11 Christian Biesinger <cbiesinger@google.com>
9901
9902 * cris-tdep.c (cris_supply_gregset): Change signature to match
9903 what struct regset expects.
9904 (cris_regset): New struct.
9905 (fetch_core_registers): Remove.
9906 (cris_iterate_over_regset_sections): New function.
9907 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9908 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9909
bda874f6
CB
99102020-02-11 Christian Biesinger <cbiesinger@google.com>
9911
9912 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9913 registers.
9914
754e1564
CB
99152020-02-11 Christian Biesinger <cbiesinger@google.com>
9916
9917 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9918
8ddd8e0e
SM
99192020-02-11 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * configure: Re-generate.
9922
898e7f60
SM
99232020-02-11 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * configure: Re-generate.
9926
58df732b
SM
99272020-02-11 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * acinclude: Update warning.m4 path.
9930 * warning.m4: Move to gdbsupport.
9931
da5bd37e
TT
99322020-02-11 Tom Tromey <tromey@adacore.com>
9933
9934 * remote.c (remote_console_output): Update.
9935 * printcmd.c (printf_command): Update.
9936 * event-loop.c (gdb_wait_for_event): Update.
9937 * linux-nat.c (sigchld_handler): Update.
9938 * remote-sim.c (gdb_os_write_stdout): Update.
9939 (gdb_os_flush_stdout): Update.
9940 (gdb_os_flush_stderr): Update.
9941 (gdb_os_write_stderr): Update.
9942 * exceptions.c (print_exception): Update.
9943 * remote-fileio.c (remote_fileio_func_read): Update.
9944 (remote_fileio_func_write): Update.
9945 * tui/tui.c (tui_enable): Update.
9946 * tui/tui-interp.c (tui_interp::init): Update.
9947 * utils.c (init_page_info): Update.
9948 (putchar_unfiltered, fputc_unfiltered): Update.
9949 (gdb_flush): Update.
9950 (emit_style_escape): Update.
9951 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9952 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9953 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9954 (stderr_file::write): Update.
9955 (stderr_file::puts): Update.
9956 * ui-file.h (ui_file_isatty, ui_file_write)
9957 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9958 (ui_file_puts): Don't declare.
9959
85f0dd3c
TV
99602020-02-10 Tom de Vries <tdevries@suse.de>
9961
9962 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9963 sentinel to char *.
9964
2e927613
TV
99652020-02-09 Tom de Vries <tdevries@suse.de>
9966
9967 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9968 filename if it matches "<artificial>".
9969
6bafc845
HD
99702020-02-09 Hannes Domani <ssbssa@yahoo.de>
9971
9972 * windows-tdep.c (struct enum_value_name): New struct.
9973 (create_enum): New function.
9974 (windows_get_siginfo_type): Create and use enum types.
9975
7928d571
HD
99762020-02-09 Hannes Domani <ssbssa@yahoo.de>
9977
9978 * NEWS: Mention $_siginfo support for Windows.
9979 * windows-nat.c (handle_exception): Set siginfo_er.
9980 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9981 (windows_xfer_siginfo): New function.
9982 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9983 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9984 (init_windows_gdbarch_data): New function.
9985 (get_windows_gdbarch_data): New function.
9986 (windows_get_siginfo_type): New function.
9987 (windows_init_abi): Register windows_get_siginfo_type.
9988 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9989
6751ebae
TT
99902020-02-08 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9993 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9994 <keep>: Declare method.
9995 <m_keep>: Remove member.
9996 <~cutu_reader>: Remove.
9997 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9998 (cutu_reader::cutu_reader): Update.
9999 (cutu_reader::keep): Rename from ~cutu_reader.
10000 (process_psymtab_comp_unit, build_type_psymtabs_1)
10001 (process_skeletonless_type_unit, load_partial_comp_unit)
10002 (load_full_comp_unit, dwarf2_read_addr_index)
10003 (read_signatured_type): Update.
10004
135f5437
TT
100052020-02-08 Tom Tromey <tom@tromey.com>
10006
10007 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10008 "want_partial_unit" parameter.
10009 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10010 Inline check for DW_TAG_partial_unit.
10011 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10012
9f66ff1c
TT
100132020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10016 read.c.
10017 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10018 read.c.
10019
c8a7a66f
TT
100202020-02-08 Tom Tromey <tom@tromey.com>
10021
10022 * dwarf2/read.c (read_address): Move to comp-unit.c.
10023 (dwarf2_rnglists_process, dwarf2_ranges_process)
10024 (read_attribute_value, dwarf_decode_lines_1)
10025 (var_decode_location, decode_locdesc): Update.
10026 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10027 read.c. Remove "cu" parameter.
10028 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10029 method.
10030
8266302d
TT
100312020-02-08 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10034 (read_indirect_line_string): Update.
10035 * dwarf2/comp-unit.c (read_offset): Remove.
10036 (read_comp_unit_head): Update.
10037 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10038 method.
10039 (read_offset): Don't declare.
10040
4057dfde
TT
100412020-02-08 Tom Tromey <tom@tromey.com>
10042
10043 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10044 * dwarf2/read.c (struct comp_unit_head): Move to
10045 dwarf2/comp-unit.h.
10046 (enum class rcuh_kind): Move to comp-unit.h.
10047 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10048 (read_comp_unit_head, error_check_comp_unit_head)
10049 (read_and_check_comp_unit_head): Move to comp-unit.c.
10050 (read_offset, dwarf_unit_type_name): Likewise.
10051 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10052 (cutu_reader::cutu_reader, read_call_site_scope)
10053 (find_partial_die, follow_die_offset): Update.
10054 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10055
24aa364d
TT
100562020-02-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/read.c (read_offset_1): Move to leb.c.
10059 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10060 (dwarf_decode_macro_bytes): Update.
10061 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10062 * dwarf2/leb.h (read_offset): Declare.
10063
2c7d5afc
TT
100642020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2/read.c (dwarf2_section_size): Remove.
10067 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10068 Update.
10069 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10070
4075cb26
TT
100712020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (read_initial_length): Move to leb.c.
10074 * dwarf2/leb.h (read_initial_length): Declare.
10075 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10076 handle_nonstd parameter.
10077 * dwarf2/frame.c (read_initial_length): Remove.
10078 (decode_frame_entry_1): Update.
10079
09ba997f
TT
100802020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/loc.c (dwarf2_find_location_expression)
10083 (dwarf_evaluate_loc_desc::get_tls_address)
10084 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10085 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10086 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10087 (dwarf2_compile_property_to_c)
10088 (dwarf2_loc_desc_get_symbol_read_needs)
10089 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10090 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10091 (loclist_describe_location, loclist_tracepoint_var_ref)
10092 (loclist_generate_c_location): Update.
10093 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10094 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10095 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10096 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10097 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10098 (dwarf2_per_cu_data::addr_size)
10099 (dwarf2_per_cu_data::ref_addr_size)
10100 (dwarf2_per_cu_data::text_offset)
10101 (dwarf2_per_cu_data::addr_type): Now methods.
10102 (per_cu_header_read_in): Make per_cu "const".
10103 (dwarf2_version): Remove.
10104 (dwarf2_per_cu_data::int_type): Now a method.
10105 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10106 (set_die_type, read_array_type, read_subrange_index_type)
10107 (read_tag_string_type, read_subrange_type): Update.
10108 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10109 offset_size, ref_addr_size, text_offset, addr_type, version,
10110 objfile, int_type, addr_sized_int_type>: Declare methods.
10111
96c738c0
TT
101122020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10115 Move earlier.
10116
8fdd972c
TT
101172020-02-08 Tom Tromey <tom@tromey.com>
10118
10119 * dwarf2/read.h (dwarf_line_debug): Declare.
10120 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10121 * dwarf2/read.c: Move line_header code to new files.
10122 (dwarf_line_debug): No longer static.
10123 * dwarf2/line-header.c: New file.
10124 * dwarf2/line-header.h: New file.
10125
03075812
TT
101262020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2/read.c (struct line_header) <file_full_name,
10129 file_file_name>: Return unique_xmalloc_ptr.
10130 (line_header::file_file_name): Update.
10131 (line_header::file_full_name): Update.
10132 (dw2_get_file_names_reader): Update.
10133 (macro_start_file): Update.
10134
bb822404
TT
101352020-02-08 Tom Tromey <tom@tromey.com>
10136
10137 * dwarf2/read.c (struct line_header) <file_full_name,
10138 file_file_name>: Declare methods.
10139 (dw2_get_file_names_reader): Update.
10140 (file_file_name): Now a method.
10141 (file_full_name): Likewise.
10142 (macro_start_file): Update.
10143
009b64fc
TT
101442020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/read.c (dwarf_always_disassemble)
10147 (show_dwarf_always_disassemble): Move to loc.c.
10148 (_initialize_dwarf2_read): Move "always-disassemble" registration
10149 to loc.c.
10150 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10151 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10152 static.
10153 (show_dwarf_always_disassemble): Move from read.c.
10154 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10155
5895093f
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10159 (create_quick_file_names_table): Return htab_up.
10160 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10161 Update.
10162 * dwarf2/read.h (struct dwarf2_per_objfile)
10163 <quick_file_names_table>: Now htab_up.
10164
b3b32279
TT
101652020-02-08 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10168
1d33d811
TT
101692020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10172 Rewrite.
10173 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10174 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10175 (abbrev_table::abbrev_table): No longer inline.
10176 (ABBREV_HASH_SIZE): Remove.
10177 (abbrev_table::m_abbrevs): Now an htab_up.
10178
86de1d91
TT
101792020-02-08 Tom Tromey <tom@tromey.com>
10180
10181 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10182 (cutu_reader): Update.
10183 (build_type_psymtabs_1): Update.
10184 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10185 (abbrev_table::alloc_abbrev): Update.
10186 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10187 (abbrev_table::read): New static method, renamed from
10188 abbrev_table_read_table.
10189 (abbrev_table::alloc_abbrev)
10190 (abbrev_table::add_abbrev): Now private.
10191 (abbrev_table::abbrev_table): Now private.
10192 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10193
0335378b
TT
101942020-02-08 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10197 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10198 htab_up.
10199
48b490f2
TT
102002020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10203 htab_up.
10204 (lookup_dwo_unit_in_dwp): Update.
10205 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10206 on obstack.
10207
bc68fb19
TT
102082020-02-08 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10211 obstack.
10212
d15acc42
TT
102132020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10216 line_header_hash.
10217 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10218 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10219 Change type to htab_up.
10220
eaa5fa8b
TT
102212020-02-08 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10224 htab_up. Don't allocate on obstack.
10225 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10226 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10227 Change type to htab_up.
10228
b0b6a987
TT
102292020-02-08 Tom Tromey <tom@tromey.com>
10230
10231 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10232 Change type to htab_up.
10233 * dwarf2/read.c (create_signatured_type_table_from_index)
10234 (create_signatured_type_table_from_debug_names)
10235 (create_all_type_units, add_type_unit)
10236 (lookup_dwo_signatured_type, lookup_signatured_type)
10237 (process_skeletonless_type_unit): Update.
10238 (create_debug_type_hash_table, create_debug_types_hash_table):
10239 Change type of types_htab.
10240 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10241 htab_up. Don't allocate on obstack.
10242 (create_cus_hash_table): Change type of cus_htab parameter.
10243 (struct dwo_file) <cus, tus>: Now htab_up.
10244 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10245 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10246 (queue_and_load_all_dwo_tus): Update.
10247 * dwarf2/index-write.c (write_gdbindex): Update.
10248 (write_debug_names): Update.
10249
39856def
TT
102502020-02-08 Tom Tromey <tom@tromey.com>
10251
10252 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10253 dwarf2/read.c. Remove "next" member. Add constructor ntad
10254 destructor.
10255 (struct dwarf2_per_objfile) <queue>: New member.
10256 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10257 dwarf2/read.h.
10258 (dwarf2_queue, dwarf2_queue_tail): Remove.
10259 (class dwarf2_queue_guard): Add parameter to constructor. Use
10260 DISABLE_COPY_AND_ASSIGN.
10261 <m_per_objfile>: New member.
10262 <~dwarf2_queue_guard>: Rewrite.
10263 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10264 Update.
10265 (~dwarf2_queue_item): New.
10266
3e225074
TT
102672020-02-08 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2/read.c (struct die_info) <has_children>: New member.
10270 (dw2_get_file_names_reader): Remove has_children.
10271 (dw2_get_file_names): Update.
10272 (read_cutu_die_from_dwo): Remove has_children.
10273 (cutu_reader::init_tu_and_read_dwo_dies)
10274 (cutu_reader::cutu_reader): Update.
10275 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10276 Remove has_children.
10277 (build_type_psymtabs_1, process_skeletonless_type_unit)
10278 (load_partial_comp_unit, load_full_comp_unit): Update.
10279 (create_dwo_cu_reader): Remove has_children.
10280 (create_cus_hash_table, read_die_and_children): Update.
10281 (read_full_die_1,read_full_die): Remove has_children.
10282 (read_signatured_type): Update.
10283 (class cutu_reader) <has_children>: Remove.
10284
82ca8957
TT
102852020-02-08 Tom Tromey <tom@tromey.com>
10286
10287 * dwarf2/expr.c: Rename from dwarf2expr.c.
10288 * dwarf2/expr.h: Rename from dwarf2expr.h.
10289 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10290 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10291 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10292 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10293 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10294 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10295 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10296 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10297 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10298 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10299 * dwarf2/loc.c: Rename from dwarf2loc.c.
10300 * dwarf2/loc.h: Rename from dwarf2loc.h.
10301 * dwarf2/read.c: Rename from dwarf2read.c.
10302 * dwarf2/read.h: Rename from dwarf2read.h.
10303 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10304 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10305 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10306 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10307 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10308 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10309 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10310 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10311 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10312 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10313 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10314 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10315 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10316 Update.
10317 * Makefile.in (COMMON_SFILES): Update.
10318 (HFILES_NO_SRCDIR): Update.
10319
9e35d499
TT
103202020-02-08 Tom Tromey <tom@tromey.com>
10321
10322 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10323 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10324
1eba2311
TT
103252020-02-08 Tom Tromey <tom@tromey.com>
10326
10327 * dwarf2read.h (struct die_info): Don't declare.
10328
e41c2da2
TT
103292020-02-08 Tom Tromey <tom@tromey.com>
10330
10331 * dwarf2read.h (die_info_ptr): Remove typedef.
10332
4fc6c0d5
TT
103332020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2read.c (read_call_site_scope)
10336 (handle_data_member_location, dwarf2_add_member_fn)
10337 (mark_common_block_symbol_computed, read_common_block)
10338 (attr_to_dynamic_prop, partial_die_info::read)
10339 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10340 (dwarf2_symbol_mark_computed, set_die_type): Update.
10341 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10342 method.
10343 (attr_form_is_block): Don't declare.
10344 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10345
cd6c91b4
TT
103462020-02-08 Tom Tromey <tom@tromey.com>
10347
10348 * dwarf2read.c (dwarf2_find_base_address, )
10349 (read_call_site_scope, rust_containing_type)
10350 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10351 (handle_data_member_location, dwarf2_add_member_fn)
10352 (get_alignment, read_structure_type, process_structure_scope)
10353 (mark_common_block_symbol_computed, read_common_block)
10354 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10355 (partial_die_info::read, read_attribute_value, new_symbol)
10356 (lookup_die_type, dwarf2_get_ref_die_offset)
10357 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10358 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10359 (dwarf2_symbol_mark_computed): Update.
10360 * dwarf2/attribute.h (struct attribute) <value_as_address,
10361 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10362 methods.
10363 (value_as_address, attr_form_is_section_offset)
10364 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10365 * dwarf2/attribute.c (attribute::value_as_address)
10366 (attribute::form_is_section_offset, attribute::form_is_constant)
10367 (attribute::form_is_ref): Now methods.
10368
162dce55
TT
103692020-02-08 Tom Tromey <tom@tromey.com>
10370
10371 * dwarf2read.c (struct attribute, DW_STRING)
10372 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10373 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10374 (attr_form_is_block, attr_form_is_section_offset)
10375 (attr_form_is_constant, attr_form_is_ref): Move.
10376 * dwarf2/attribute.h: New file.
10377 * dwarf2/attribute.c: New file, from dwarf2read.c.
10378 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10379
3054dd54
TT
103802020-02-08 Tom Tromey <tom@tromey.com>
10381
10382 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10383 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10384 Move.
10385 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10386 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10387 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10388 abbrev.c.
10389 * dwarf2/abbrev.h: New file.
10390 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10391 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10392
96b79293
TT
103932020-02-08 Tom Tromey <tom@tromey.com>
10394
10395 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10396 (dwarf2_section_size, dwarf2_get_section_info)
10397 (create_signatured_type_table_from_debug_names)
10398 (create_addrmap_from_aranges, read_debug_names_from_section)
10399 (get_gdb_index_contents_from_section, read_comp_unit_head)
10400 (error_check_comp_unit_head, read_abbrev_offset)
10401 (create_debug_type_hash_table, init_cu_die_reader)
10402 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10403 (read_comp_units_from_section, create_cus_hash_table)
10404 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10405 (create_dwp_v2_section, dwarf2_rnglists_process)
10406 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10407 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10408 (read_indirect_string_from_dwz, read_addr_index_1)
10409 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10410 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10411 (fill_in_loclist_baton): Update.
10412 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10413 get_containing_section, get_bfd_owner, get_bfd_section,
10414 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10415 (dwarf2_read_section, get_section_name, get_section_file_name)
10416 (get_containing_section, get_section_bfd_owner)
10417 (get_section_bfd_section, get_section_name, get_section_file_name)
10418 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10419 declare.
10420 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10421 (dwarf2_section_info::get_bfd_owner)
10422 (dwarf2_section_info::get_bfd_section)
10423 (dwarf2_section_info::get_name)
10424 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10425 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10426 (dwarf2_section_info::read): Now methods.
10427 * dwarf-index-write.c (class debug_names): Update.
10428
2c86cff9
TT
104292020-02-08 Tom Tromey <tom@tromey.com>
10430
10431 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10432 Move to dwarf2/section.h.
10433 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10434 (get_section_bfd_section, get_section_name)
10435 (get_section_file_name, get_section_id, get_section_flags)
10436 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10437 dwarf2/section.c.
10438 * dwarf2/section.h: New file.
10439 * dwarf2/section.c: New file, from dwarf2read.c.
10440 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10441
f4382c45
TT
104422020-02-08 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10445 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10446 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10447 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10448 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10449 * dwarf2/leb.h: New file, from dwarf2read.c.
10450 * dwarf2/leb.c: New file, from dwarf2read.c.
10451 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10452 Remove.
10453 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10454 (COMMON_SFILES): Add dwarf2/leb.c.
10455
01840b7a
JB
104562020-02-08 Joel Brobecker <brobecker@adacore.com>
10457
10458 GDB 9.1 released.
10459
dfcb27e4
IB
104602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10461
10462 PR gdb/25190:
aac66a4c
SM
10463 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10464 * gdb/remote.c (remote_console_output): Update.
10465 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10466 (ui_file_puts): ...this.
10467 * gdb/ui-file.h (ui_file_puts): Add declaration.
10468 * gdb/utils.c (emit_style_escape): Update.
10469 (flush_wrap_buffer): Update.
10470 (fputs_maybe_filtered): Update.
10471 (fputs_unfiltered): Add function.
dfcb27e4 10472
faa17681
IB
104732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10474
aac66a4c
SM
10475 * gdb/event-loop.c (gdb_wait_for_event): Update.
10476 * gdb/printcmd.c (printf_command): Update.
10477 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10478 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10479 (gdb_os_flush_stderr): Update.
10480 * gdb/remote.c (remote_console_output): Update.
10481 * gdb/ui-file.c (gdb_flush): Rename to...
10482 (ui_file_flush): ...this.
10483 (stderr_file::write): Update.
10484 (stderr_file::puts): Update.
10485 * gdb/ui-file.h (gdb_flush): Rename to...
10486 (ui_file_flush): ...this.
10487 * gdb/utils.c (gdb_flush): Add function.
10488 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10489
5abbbe1d
TT
104902020-02-07 Tom Tromey <tromey@adacore.com>
10491
10492 PR breakpoints/24915:
10493 * source.c (find_and_open_source): Do not check basenames_may_differ.
10494
919adfe8
TT
104952020-02-07 Tom Tromey <tom@tromey.com>
10496
10497 * README: Update gdbserver documentation.
10498 * gdbserver: Move to top level.
10499 * configure.tgt (build_gdbserver): Remove.
10500 * configure.ac: Remove --enable-gdbserver.
10501 * configure: Rebuild.
10502 * Makefile.in (distclean): Don't mention gdbserver.
10503
1d5d29e7
SV
105042020-02-06 Shahab Vahedi <shahab@synopsys.com>
10505
10506 * source-cache.c (source_cache::ensure): Surround
10507 get_plain_source_lines with a try/catch.
10508 (source_cache::get_line_charpos): Get rid of try/catch
10509 and only check for the return value of "ensure".
10510 * tui/tui-source.c (tui_source_window::set_contents):
10511 Simplify "nlines" calculation.
10512
6eb1129c
SV
105132020-02-06 Shahab Vahedi <shahab@synopsys.com>
10514
10515 * MAINTAINERS (Write After Approval): Add myself.
10516
c6a42d11
CB
105172020-02-05 Christian Biesinger <cbiesinger@google.com>
10518
10519 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10520 function call.
10521
c8ecdda6
CB
105222020-02-05 Christian Biesinger <cbiesinger@google.com>
10523
10524 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10525
f6480e70
MR
105262020-02-05 Maciej W. Rozycki <macro@wdc.com>
10527
10528 * nat/riscv-linux-tdesc.h: New file.
10529 * nat/riscv-linux-tdesc.c: New file, taking code from...
10530 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10531 ... here.
10532 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10533 NATDEPFILES.
10534
dcc9fbc6
AB
105352020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10536
10537 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10538 we don't set the fake simulator ptid to the null_ptid.
10539
719546c4
SM
105402020-02-03 Simon Marchi <simon.marchi@efficios.com>
10541
10542 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10543 * gdbthread.h (class thread_info) <resumed>: Likewise.
10544 * infrun.c (resume_1): Likewise.
10545 (proceed): Likewise.
10546 (infrun_thread_stop_requested): Likewise.
10547 (stop_all_threads): Likewise.
10548 (handle_inferior_event): Likewise.
10549 (restart_threads): Likewise.
10550 (finish_step_over): Likewise.
10551 (keep_going_stepped_thread): Likewise.
10552 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10553 (linux_handle_extended_wait): Likewise.
10554 * record-btrace.c (get_thread_current_frame_id): Likewise.
10555 * record-full.c (record_full_wait_1): Likewise.
10556 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10557 * target.c (target_resume): Likewise.
10558 * thread.c (set_running_thread): Likewise.
10559
e409c542
AKS
105602020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10561
10562 * f-valprint.c (f77_print_array_1): Changed datatype of index
10563 variable to LONGEST from int to enable it to contain bound
10564 values correctly.
10565
ee98c0da
MR
105662020-02-03 Maciej W. Rozycki <macro@wdc.com>
10567
10568 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10569 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10570 offsets according to FLEN determined.
10571 (riscv_linux_nat_target::read_description): Determine FLEN
10572 dynamically.
10573 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10574 according to FLEN determined.
10575 (riscv_linux_nat_target::store_registers): Likewise.
10576
aa66aac4
SV
105772020-02-01 Shahab Vahedi <shahab@synopsys.com>
10578
10579 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10580 when reg->group is empty and reggroup is not.
10581
fd9faca8
TT
105822020-01-31 Tom Tromey <tromey@adacore.com>
10583
10584 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10585 Call beneath target's mourn_inferior after unpushing.
10586
42330a68
AB
105872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10588
10589 PR tui/9765
10590 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10591 have enough lines to fill the screen, still return the lowest
10592 address we found.
10593
7a27a45b
AB
105942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10597 '-', '<', and '>' commands.
10598
c47f70e2
PA
105992020-01-29 Pedro Alves <palves@redhat.com>
10600 Sergio Durigan Junior <sergiodj@redhat.com>
10601
10602 * infcmd.c (construct_inferior_arguments): Assert that
10603 'argc' is greater than 0.
10604
5133a315
LM
106052020-01-29 Luis Machado <luis.machado@linaro.org>
10606
10607 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10608 (BRK_INSN_MASK): Define to 0xd4200000.
10609 (aarch64_program_breakpoint_here_p): New function.
10610 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10611 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10612 breakpoint.c.
10613 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10614 breakpoint.h
10615 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10616 call gdbarch_program_breakpoint_here_p.
10617 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10618 default_program_breakpoint_here_p, changed return type to bool and
10619 simplified.
10620 * breakpoint.h (program_breakpoint_here): Moved prototype to
10621 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10622 return type to bool.
10623 * gdbarch.c: Regenerate.
10624 * gdbarch.h: Regenerate.
10625 * gdbarch.sh (program_breakpoint_here_p): New method.
10626 * infrun.c (handle_signal_stop): Call
10627 gdbarch_program_breakpoint_here_p.
10628
168f8c6b
TT
106292020-01-26 Tom Tromey <tom@tromey.com>
10630
10631 * ctfread.c (struct ctf_fp_info): Reindent.
10632 (_initialize_ctfread): Remove.
10633
128a391f
TT
106342020-01-26 Tom Tromey <tom@tromey.com>
10635
10636 * psymtab.c (partial_map_expand_apply)
10637 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10638 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10639 (psym_print_stats, psym_expand_symtabs_for_function)
10640 (psym_map_symbol_filenames, psym_map_matching_symbols)
10641 (psym_expand_symtabs_matching)
10642 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10643 (maintenance_check_psymtabs): Use new methods.
10644 * psympriv.h (struct partial_symtab) <readin_p,
10645 get_compunit_symtab>: New methods.
10646 <readin, compunit_symtab>: Remove members.
10647 (struct standard_psymtab): New.
10648 (struct legacy_psymtab): Derive from standard_psymtab.
10649 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10650 standard_psymtab.
10651 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10652
0494dbec
TT
106532020-01-26 Tom Tromey <tom@tromey.com>
10654
10655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10656 read_dependencies. Add assert.
10657 * psymtab.c (partial_symtab::read_dependencies): New method.
10658 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10659 method.
10660 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10661 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10662 read_dependencies.
10663 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10664 Add assert.
10665
8566b89b
TT
106662020-01-26 Tom Tromey <tom@tromey.com>
10667
10668 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10669 Call expand_psymtab.
10670 (xcoff_read_symtab): Call expand_psymtab.
10671 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10672 legacy_expand_psymtab.
10673 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10674 method.
10675 (struct legacy_psymtab) <expand_psymtab>: Implement.
10676 <legacy_expand_psymtab>: New member.
10677 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10678 (parse_partial_symbols): Set legacy_expand_psymtab.
10679 (psymtab_to_symtab_1): Change argument order. Call
10680 expand_psymtab.
10681 (new_psymtab): Set legacy_expand_psymtab.
10682 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10683 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10684 expand_psymtab.
10685 (dwarf2_psymtab::expand_psymtab): Rename from
10686 psymtab_to_symtab_1. Call expand_psymtab.
10687 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10688 (dbx_end_psymtab): Likewise.
10689 (dbx_psymtab_to_symtab_1): Change argument order. Call
10690 expand_psymtab.
10691 (dbx_read_symtab): Call expand_psymtab.
10692 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10693 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10694 (ctf_psymtab::read_symtab): Call expand_psymtab.
10695
077cbab2
TT
106962020-01-26 Tom Tromey <tom@tromey.com>
10697
10698 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10699 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10700 messages.
10701 * mdebugread.c (mdebug_read_symtab): Remove prints.
10702 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10703 assert.
10704 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10705
891813be
TT
107062020-01-26 Tom Tromey <tom@tromey.com>
10707
10708 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10709 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10710 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10711 legacy_symtab.
10712 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10713 * psymtab.c (psymtab_to_symtab): Call method.
10714 (dump_psymtab): Update.
10715 * psympriv.h (struct partial_symtab): Add virtual destructor.
10716 <read_symtab>: New method.
10717 (struct legacy_symtab): New.
10718 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10719 (struct pst_map) <pst>: Now a legacy_psymtab.
10720 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10721 (new_psymtab): Use legacy_psymtab.
10722 * dwarf2read.h (struct dwarf2_psymtab): New.
10723 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10724 * dwarf2read.c (dwarf2_create_include_psymtab)
10725 (dwarf2_build_include_psymtabs, create_type_unit_group)
10726 (create_partial_symtab, process_psymtab_comp_unit_reader)
10727 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10728 (set_partial_user): Use dwarf2_psymtab.
10729 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10730 (psymtab_to_symtab_1, process_full_comp_unit)
10731 (process_full_type_unit, dwarf2_ranges_read)
10732 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10733 (dwarf_decode_lines): Use dwarf2_psymtab.
10734 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10735 (add_address_entry_worker, write_one_signatured_type)
10736 (recursively_count_psymbols, recursively_write_psymbols)
10737 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10738 (write_debug_names): Likewise.
10739 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10740 <pst>: Now a legacy_psymtab.
10741 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10742 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10743 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10744 * ctfread.c (struct ctf_psymtab): New.
10745 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10746 ctf_psymtab.
10747 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10748 (create_partial_symtab): Return a ctf_psymtab.
10749 (scan_partial_symbols): Update.
10750
c3693a1d
TT
107512020-01-26 Tom Tromey <tom@tromey.com>
10752
10753 * xcoffread.c (xcoff_start_psymtab): Use new.
10754 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10755 renamed from start_psymtab_common.
10756 * psympriv.h (struct partial_symtab): Add new constructor.
10757 (start_psymtab_common): Don't declare.
10758 * mdebugread.c (parse_partial_symbols): Use new.
10759 * dwarf2read.c (create_partial_symtab): Use new.
10760 * dbxread.c (start_psymtab): Use new.
10761 * ctfread.c (create_partial_symtab): Use new.
10762
32caafd0
TT
107632020-01-26 Tom Tromey <tom@tromey.com>
10764
10765 * xcoffread.c (xcoff_end_psymtab): Use new.
10766 * psymtab.c (start_psymtab_common): Use new.
10767 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10768 Update.
10769 * psympriv.h (struct partial_symtab): Add parameters to
10770 constructor. Don't inline.
10771 (allocate_psymtab): Don't declare.
10772 * mdebugread.c (new_psymtab): Use new.
10773 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10774 * dbxread.c (dbx_end_psymtab): Use new.
10775
abaa2f23
TT
107762020-01-26 Tom Tromey <tom@tromey.com>
10777
10778 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10779 allocate_psymtab. Update documentation.
10780 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10781 allocate_psymtab. Do not use new.
10782 (allocate_psymtab): Use new. Update.
10783
6d94535f
TT
107842020-01-26 Tom Tromey <tom@tromey.com>
10785
10786 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10787 * psymtab.c (psym_print_stats): Update.
10788 * psympriv.h (struct partial_symtab) <readin,
10789 psymtabs_addrmap_supported, anonymous>: Now bool.
10790 * mdebugread.c (psymtab_to_symtab_1): Update.
10791 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10792 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10793 (process_full_comp_unit, process_full_type_unit): Update.
10794 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10795 * ctfread.c (psymtab_to_symtab): Update.
10796
6f17252b
TT
107972020-01-26 Tom Tromey <tom@tromey.com>
10798
10799 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10800 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10801 * psymtab.c (psymtab_storage): Delete psymtabs.
10802 (psymtab_storage::allocate_psymtab): Use new.
10803 (psymtab_storage::discard_psymtab): Use delete.
10804 * psympriv.h (struct partial_symtab): Add constructor and
10805 initializers.
10806
f6f1cebc
TT
108072020-01-26 Tom Tromey <tom@tromey.com>
10808
10809 * machoread.c: Do not include psympriv.h.
10810
e47e48f6
PW
108112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10812
10813 * NEWS: Mention the new option and the set/show commands.
10814
a2fedca9
PW
108152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10816
10817 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10818 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10819 (validate_exec_file): New variables, enums, functions.
10820 (exec_file_locate_attach, print_section_info): Style the filenames.
10821 (_initialize_exec): Install show_exec_file_mismatch_command and
10822 set_exec_file_mismatch_command.
10823 * gdbcore.h (validate_exec_file): Declare.
10824 * infcmd.c (attach_command): Call validate_exec_file.
10825 * remote.c ( remote_target::remote_add_inferior): Likewise.
10826
7ffa82e1
AB
108272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10828
10829 * frame.c (find_frame_sal): Move call to get_next_frame into more
10830 inner scope.
10831 * inline-frame.c (inilne_state) <inline_state>: Update argument
10832 types.
10833 (inilne_state) <skipped_symbol>: Rename to...
10834 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10835 (skip_inline_frames): Build vector of skipped symbols and use this
10836 to reate the inline_state.
10837 (inline_skipped_symbol): Add a comment and some assertions, fetch
10838 skipped symbol from the list.
10839
3d92a3e3
AB
108402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 * buildsym.c (lte_is_less_than): Delete.
10843 (buildsym_compunit::end_symtab_with_blockvector): Create local
10844 lambda function to sort line table entries, and use
10845 std::stable_sort instead of std::sort.
10846 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10847 markers when looking for a previous line.
10848
94a72be7
AB
108492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 * dwarf2read.c (lnp_state_machine::record_line): Include
10852 end_sequence parameter in debug print out. Record the line if we
10853 are at an end_sequence marker even if it's not the start of a
10854 statement.
10855 * symmisc.c (maintenance_print_one_line_table): Print end of
10856 sequence markers with 'END' not '0'.
10857
53af73bf
PA
108582020-01-24 Pedro Alves <palves@redhat.com>
10859
10860 PR gdb/25410
10861 * thread.c (scoped_restore_current_thread::restore): Use
10862 switch_to_inferior_no_thread.
10863 * exec.c: Include "progspace-and-thread.h".
10864 (add_target_sections, remove_target_sections):
10865 scoped_restore_current_pspace_and_thread instead of
10866 scoped_restore_current_thread.
10867 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10868 and aspace to the inferior before calling clone_program_space.
10869 Remove stale comment.
10870
3050c6f4
CB
108712020-01-24 Christian Biesinger <cbiesinger@google.com>
10872
10873 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10874 (arm_netbsd_nat_target::fetch_registers): ...this.
10875 (arm_nbsd_nat_target::store_registers): Rename to...
10876 (arm_netbsd_nat_target::store_registers): ...this.
10877
73685c7e
CB
108782020-01-24 Christian Biesinger <cbiesinger@google.com>
10879
10880 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10881 register_t.
10882
89203d40
CB
108832020-01-24 Christian Biesinger <cbiesinger@google.com>
10884
10885 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10886 Update comment.
10887 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10888 Likewise.
10889 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10890 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10891 the correct replacement (iterate_over_regset_sections).
10892 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10893 Update comment.
10894
1ba1ac88
AB
108952020-01-24 Graham Markall <graham.markall@embecosm.com>
10896
10897 PR gdb/23718
10898 * gdb/python/python.c (execute_gdb_command): Call
10899 async_enable_stdin in catch block.
10900
f3364a6d
AB
109012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10902
10903 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10904 SWITCH_THRU_ALL_UIS.
10905
733d0a67
AB
109062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10907
10908 PR tui/9765
10909 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10910 comment, add extra parameter, and update to store previous symbol
10911 when appropriate.
10912 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10913 add extra parameter.
10914 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10915 remove unneeded parameter, add try/catch around gdb_print_insn,
10916 rewrite to add items to asm_lines vector.
10917 (tui_find_backward_disassembly_start_address): New function.
10918 (tui_find_disassembly_address): Updated throughout.
10919 (tui_disasm_window::set_contents): Update for changes to
10920 tui_disassemble.
10921 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10922 number of lines to scroll.
10923
b3b3bada
SM
109242020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10925
10926 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10927 (SECT_OFF_DATA): Likewise.
10928 (SECT_OFF_RODATA): Likewise.
10929 (SECT_OFF_TEXT): Likewise.
10930 (SECT_OFF_BSS): Likewise.
10931 (struct objfile) <text_section_offset, data_section_offset>: New
10932 methods.
10933 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10934 objfile::text_section_offset.
10935 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10936 * coffread.c (coff_symtab_read): Likewise.
10937 (enter_linenos): Likewise.
10938 (process_coff_symbol): Likewise.
10939 * ctfread.c (get_objfile_text_range): Likewise.
10940 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10941 Use objfile::data_section_offset.
10942 * dwarf2-frame.c (execute_cfa_program): Use
10943 objfile::text_section_offset.
10944 (dwarf2_frame_find_fde): Likewise.
10945 * dwarf2read.c (create_addrmap_from_index): Likewise.
10946 (create_addrmap_from_aranges): Likewise.
10947 (dw2_find_pc_sect_compunit_symtab): Likewise.
10948 (process_psymtab_comp_unit_reader): Likewise.
10949 (add_partial_symbol): Likewise.
10950 (add_partial_subprogram): Likewise.
10951 (process_full_comp_unit): Likewise.
10952 (read_file_scope): Likewise.
10953 (read_func_scope): Likewise.
10954 (read_lexical_block_scope): Likewise.
10955 (read_call_site_scope): Likewise.
10956 (dwarf2_rnglists_process): Likewise.
10957 (dwarf2_ranges_process): Likewise.
10958 (dwarf2_ranges_read): Likewise.
10959 (dwarf_decode_lines_1): Likewise.
10960 (new_symbol): Likewise.
10961 (dwarf2_fetch_die_loc_sect_off): Likewise.
10962 (dwarf2_per_cu_text_offset): Likewise.
10963 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10964 * hppa-tdep.c (read_unwind_info): Likewise.
10965 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10966 * psympriv.h (struct partial_symtab): Likewise.
10967 * psymtab.c (find_pc_sect_psymtab): Likewise.
10968 * solib-svr4.c (enable_break): Likewise.
10969 * stap-probe.c (relocate_address): Use
10970 objfile::data_section_offset.
10971 * xcoffread.c (enter_line_range): Use
10972 objfile::text_section_offset.
10973 (read_xcoff_symtab): Likewise.
10974
ab53f382
SM
109752020-01-23 Simon Marchi <simon.marchi@efficios.com>
10976
10977 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10978 declaration to narrower scopes.
10979
e7eee665
SM
109802020-01-23 Simon Marchi <simon.marchi@efficios.com>
10981
10982 * darwin-nat.h (struct darwin_exception_msg, enum
10983 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10984 Move up.
10985 (class darwin_nat_target) <wait_1, check_new_threads,
10986 decode_exception_message, decode_message, stop_inferior,
10987 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10988 * darwin-nat.c (darwin_check_new_threads): Rename to...
10989 (darwin_nat_target::check_new_threads): ... this.
10990 (darwin_suspend_inferior_it): Remove.
10991 (darwin_decode_exception_message): Rename to...
10992 (darwin_nat_target::decode_exception_message): ... this.
10993 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10994 (darwin_decode_message): Rename to...
10995 (darwin_nat_target::decode_message): ... this.
10996 (cancel_breakpoint): Rename to...
10997 (darwin_nat_target::cancel_breakpoint): ... this.
10998 (darwin_wait): Rename to...
10999 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11000 instead of iterate_over_inferiors.
11001 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11002 (darwin_stop_inferior): Rename to...
11003 (darwin_nat_target::stop_inferior): ... this.
11004 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11005 (darwin_init_thread_list): Rename to...
11006 (darwin_nat_target::init_thread_list): ... this.
11007 (darwin_ptrace_him): Rename to...
11008 (darwin_nat_target::ptrace_him): ... this.
11009 (darwin_nat_target::create_inferior): Pass lambda function to
11010 fork_inferior.
11011 (darwin_nat_target::detach): Call stop_inferior instead of
11012 darwin_stop_inferior.
11013 * fork-inferior.h (fork_inferior): Change init_trace_fun
11014 parameter to gdb::function_view.
11015 * fork-inferior.c (fork_inferior): Likewise.
11016
c162ed3e
HD
110172020-01-23 Hannes Domani <ssbssa@yahoo.de>
11018
11019 * i386-cygwin-tdep.c (core_process_module_section): Update.
11020 * windows-nat.c (struct lm_info_windows): Add text_offset.
11021 (windows_xfer_shared_libraries): Update.
11022 * windows-tdep.c (windows_xfer_shared_library):
11023 Add text_offset_cached argument.
11024 * windows-tdep.h (windows_xfer_shared_library): Update.
11025
a1237872
SM
110262020-01-21 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11029
b3ee6dd9
SM
110302020-01-21 Simon Marchi <simon.marchi@efficios.com>
11031
11032 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11033 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11034 replace with range-based for.
11035 (gdbsim_interrupt_inferior): Remove.
11036 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11037 with a range-based for. Inline code from
11038 gdbsim_interrupt_inferior.
11039
f9fac3c8
SM
110402020-01-21 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * infrun.c (proceed): Fix indentation.
11043
f6474de9
TT
110442020-01-21 Tom Tromey <tromey@adacore.com>
11045
11046 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11047 * python/python.c (python_extension_ops): Update.
11048 (gdbpy_colorize): New function.
11049 * python/lib/gdb/__init__.py (colorize): New function.
11050 * extension.h (ext_lang_colorize): Declare.
11051 * extension.c (ext_lang_colorize): New function.
11052 * extension-priv.h (struct extension_language_ops) <colorize>: New
11053 member.
11054 * cli/cli-style.c (_initialize_cli_style): Update help text.
11055
f0c702d4
LM
110562020-01-21 Luis Machado <luis.machado@linaro.org>
11057
11058 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11059 <cond>: Change type to bool.
11060 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11061 (aarch64_displaced_step_cb): Likewise.
11062 (aarch64_displaced_step_tb): Likewise.
11063
1ab139e5
LM
110642020-01-21 Luis Machado <luis.machado@linaro.org>
11065
11066 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11067 output.
11068
0c271889
LM
110692020-01-21 Luis Machado <luis.machado@linaro.org>
11070
11071 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11072 <pc_adjust>: Adjust the documentation.
11073 (aarch64_displaced_step_fixup): Check if PC really moved before
11074 adjusting it.
11075
4d89c1c7
TT
110762020-01-19 Tom Tromey <tom@tromey.com>
11077
11078 * disasm.c (~gdb_disassembler): New destructor.
11079 (gdb_buffered_insn_length): Call disassemble_free_target.
11080 * disasm.h (class gdb_disassembler): Declare destructor. Use
11081 DISABLE_COPY_AND_ASSIGN.
11082
c0ab21c2
TT
110832020-01-19 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11086 (die_reader_func_ftype): Remove.
11087 (cutu_reader): New class.
11088 (dw2_get_file_names_reader): Remove "data" parameter.
11089 (dw2_get_file_names): Use cutu_reader.
11090 (create_debug_type_hash_table): Update.
11091 (read_cutu_die_from_dwo): Update comment.
11092 (lookup_dwo_unit): Add dwo_name parameter.
11093 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11094 die_reader_func_ftype and data parameters.
11095 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11096 Remove die_reader_func_ftype and data parameters.
11097 (~cutu_reader): New; from init_cutu_and_read_dies.
11098 (cutu_reader::cutu_reader): Rename from
11099 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11100 and data parameters.
11101 (init_cutu_and_read_dies_simple): Remove.
11102 (struct process_psymtab_comp_unit_data): Remove.
11103 (process_psymtab_comp_unit_reader): Remove data parameter; add
11104 want_partial_unit and pretend_language parameters.
11105 (process_psymtab_comp_unit): Use cutu_reader.
11106 (build_type_psymtabs_reader): Remove data parameter.
11107 (build_type_psymtabs_1): Use cutu_reader.
11108 (process_skeletonless_type_unit): Likewise.
11109 (load_partial_comp_unit_reader): Remove.
11110 (load_partial_comp_unit): Use cutu_reader.
11111 (load_full_comp_unit_reader): Remove.
11112 (load_full_comp_unit): Use cutu_reader.
11113 (struct create_dwo_cu_data): Remove.
11114 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11115 dwo_unit parameters.
11116 (create_cus_hash_table): Use cutu_reader.
11117 (struct dwarf2_read_addr_index_data): Remove.
11118 (dwarf2_read_addr_index_reader): Remove.
11119 (dwarf2_read_addr_index): Use cutu_reader.
11120 (read_signatured_type_reader): Remove.
11121 (read_signatured_type): Use cutu_reader.
11122
45bbae5c
TT
111232020-01-19 Tom Tromey <tom@tromey.com>
11124
11125 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11126 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11127 (tui_wrefresh): Declare.
11128 * tui/tui-wingeneral.c (suppress_output): New global.
11129 (tui_suppress_output, ~tui_suppress_output): New constructor and
11130 destructor.
11131 (tui_wrefresh): New function.
11132 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11133 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11134 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11135 method.
11136 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11137 tui_wrefresh.
11138 (tui_data_window::no_refresh): New method.
11139 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11140 (tui_reg_command): Use tui_suppress_output
11141 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11142 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11143 method.
11144 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11145
4f13c1c0
TT
111462020-01-19 Tom Tromey <tom@tromey.com>
11147
11148 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11149 Handle case where symtab is null.
11150
fa47e446
SM
111512020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11152
11153 * linux-fork.c (one_fork_p): Simplify.
11154
26f42329
SM
111552020-01-17 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * top.c (struct qt_args): Remove.
11158 (kill_or_detach): Change return type to void, replace `void *`
11159 parameter with a proper one.
11160 (print_inferior_quit_action): Likewise.
11161 (quit_confirm): Use range-based for loop to iterate over inferiors.
11162 (quit_force): Likewise.
11163
a9ac81b1
SM
111642020-01-17 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11167 `void *` parameter with proper parameters.
11168 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11169 (print_one_inferior): Change return type to void, replace `void *`
11170 parameter with proper parameters.
11171 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11172 inferiors.
11173 (get_other_inferior): Remove.
11174 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11175 inferiors.
11176
788eca49
SM
111772020-01-17 Simon Marchi <simon.marchi@efficios.com>
11178
11179 * mi/mi-interp.c (report_initial_inferior): Remove.
11180 (mi_interp::init): Use range-based for to iterate over inferiors.
11181
d9bc85b6
SM
111822020-01-17 Simon Marchi <simon.marchi@efficios.com>
11183
11184 * python/py-inferior.c (build_inferior_list): Remove.
11185 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11186
40c94099
CB
111872020-01-16 Christian Biesinger <cbiesinger@google.com>
11188
11189 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11190 (btrace_stitch_trace): Likewise.
11191 * charset.c (intermediate_encoding): Likewise (vaild).
11192 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11193 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11194 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11195
e0cdfe3c
HD
111962020-01-16 Hannes Domani <ssbssa@yahoo.de>
11197
11198 * windows-tdep.c (windows_get_tlb_type):
11199 Add rtl_user_process_parameters type.
11200
790f1718 112012020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11202 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11203
11204 PR build/24805
11205 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11206 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11207 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11208 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11209 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11210 (ps_plog): Redeclare exported functions with default visibility.
11211
3112ed97
NA
112122020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11213
11214 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11215 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11216
8dc3273e
SM
112172020-01-15 Simon Marchi <simon.marchi@efficios.com>
11218
11219 * infcmd.c (post_create_inferior): Use get_thread_regcache
11220 instead of get_current_regcache.
11221
ff47f4f0
TT
112222020-01-14 Tom Tromey <tom@tromey.com>
11223
11224 PR symtab/12535:
11225 * python/python.c (gdbpy_decode_line): Treat empty string the same
11226 as no argument.
11227
975f45b7
TT
112282020-01-14 Tom Tromey <tom@tromey.com>
11229
11230 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11231
25e57356
TT
112322020-01-14 Tom Tromey <tom@tromey.com>
11233
11234 * nat/linux-btrace.c: Don't include <config.h>.
11235 * nat/linux-ptrace.c: Don't include <config.h>.
11236 * nat/x86-linux-dregs.c: Don't include <config.h>.
11237
05ea2a05
TT
112382020-01-14 Tom Tromey <tom@tromey.com>
11239
11240 * configure: Rebuild.
11241 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11242
01027315
TT
112432020-01-14 Tom Tromey <tom@tromey.com>
11244
11245 * nat/x86-linux-dregs.c: Include configh.h.
11246 * nat/linux-ptrace.c: Include configh.h.
11247 * nat/linux-btrace.c: Include configh.h.
11248 * defs.h: Include config.h, bfd.h.
11249 * configure.ac: Don't source common.host.
11250 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11251 * configure: Rebuild.
11252 * acinclude.m4: Update path.
11253 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11254 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11255 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11256 (CLIBS): Add LIBSUPPORT.
11257 (CDEPS): Likewise.
11258 (COMMON_SFILES): Remove gdbsupport files.
11259 (HFILES_NO_SRCDIR): Likewise.
11260 (stamp-version): Update path to create-version.sh.
11261 (ALLDEPFILES): Remove gdbsupport files.
11262
b2ceabe8
TT
112632020-01-14 Tom Tromey <tom@tromey.com>
11264
11265 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11266 USE_WIN32API when needed.
11267 * configure.ac (USE_WIN32API): Don't define.
11268 (WIN32LIBS): Use WIN32APILIBS.
11269 * configure: Rebuild.
11270
25c51f71
TT
112712020-01-14 Tom Tromey <tom@tromey.com>
11272
11273 * configure: Rebuild.
11274 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11275
717c684d
BE
112762020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11277
11278 * skip.c (skip_function_command): Make skip w/o arguments use the
11279 name of the inlined function if pc is inside any inlined function.
11280
7da6a5b9
LM
112812020-01-14 Luis Machado <luis.machado@linaro.org>
11282
11283 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11284 * infrun.c (resume_1): Likewise.
11285 (handle_inferior_event): Remove stale comment.
11286 * linux-nat.c (linux_nat_target::resume): Update comments.
11287 (save_stop_reason): Likewise.
11288 (linux_nat_filter_event): Likewise.
11289 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11290
44e4c775
AB
112912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11292
11293 * elfread.c (record_minimal_symbol): Set section index to 0 for
11294 non-allocatable sections.
11295
18a8505e
AT
11296
112972020-01-13 Ali Tamur <tamur@google.com>
11298
11299 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11300 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11301 to gdb::optional. Update comments.
11302 (dwo_file): Update comments.
11303 (read_attribute): Update API to take an additional out parameter,
11304 need_reprocess. This is used to mark attributes that need other
11305 attributes (e.g. str_offsets_base) for correct computation which may not
11306 have been read yet.
11307 (read_attribute_reprocess): New function declaration.
11308 (read_addr_index): Likewise.
11309 (read_dwo_str_index): Likewise.
11310 (read_stub_str_index): Likewise.
11311 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11312 (lookup_addr_base): New function definition.
11313 (lookup_ranges_base): Likewise.
11314 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11315 lookup_ranges_base.
11316 (init_cutu_and_read_dies): Update comments.
11317 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11318 unit. This is used to inherit parent's str_offsets_base and addr_base.
11319 Update comments.
11320 (init_cutu_and_read_dies_simple): Reflect API changes.
11321 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11322 (create_cus_hash_table): Change API to take parent compile unit.
11323 Reflect API changes.
11324 (open_and_init_dwo_file): Reflect API changes.
11325 (dwarf2_get_pc_bounds): Update comments.
11326 (dwarf2_record_block_ranges): Likewise.
11327 (read_full_die_1): Change implementation to reprocess attributes that
11328 need str_offsets_base and addr_base.
11329 (partial_die_info::read): Likewise.
11330 (read_attribute_reprocess): New function definition.
11331 (read_attribute_value): Change API to take an additional out parameter,
11332 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11333 when a non-dwo compile unit has index based attributes.
11334 (read_attribute): Reflect API changes.
11335 (read_addr_index_1): Reflect API changes. Update comments.
11336 (dwarf2_read_addr_index_data): Reflect API changes.
11337 (dwarf2_read_addr_index): Likewise.
11338 (read_str_index): Change API and implementation. This becomes a helper
11339 to be used by the new string index related methods. Update error
11340 message and comments.
11341 (read_dwo_str_index): New function definition.
11342 (read_stub_str_index): Likewise.
11343 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11344 * symfile.h (dwarf2_debug_sections): Likewise.
11345 * xcoffread.c (dwarf2_debug_sections): Likewise.
11346
0cac9354
SM
113472020-01-13 Simon Marchi <simon.marchi@efficios.com>
11348
11349 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11350 core_reg_sect type to gdb_byte *.
11351 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11352 * cris-tdep.c (fetch_core_registers): Likewise.
11353 * corelow.c (core_target::get_core_register_section): Change
11354 type of `contents` to gdb::byte_vector.
11355
9a6d629c
AB
113562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11357
11358 * tui/tui-wingeneral.c (box_win): Position the title in the center
11359 of the border.
11360
d8b2f9e3
SM
113612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11362
11363 * corelow.c (core_target::get_core_register_section): Use
11364 std::vector instead of alloca.
11365
bb564c58
SM
113662020-01-13 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * warning.m4: Add -Wmissing-declarations to build_warnings.
11369 * configure: Re-generate.
11370
6b366111
SM
113712020-01-13 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * python/python.c (init__gdb_module): Add declaration.
11374
6c265988
SM
113752020-01-13 Simon Marchi <simon.marchi@efficios.com>
11376
11377 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11378 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11379 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11380 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11381 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11382 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11383 * ada-exp.y (_initialize_ada_exp): Add declaration.
11384 * ada-lang.c (_initialize_ada_language): Add declaration.
11385 * ada-tasks.c (_initialize_tasks): Add declaration.
11386 * agent.c (_initialize_agent): Add declaration.
11387 * aix-thread.c (_initialize_aix_thread): Add declaration.
11388 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11389 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11390 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11391 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11392 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11393 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11394 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11395 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11396 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11397 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11398 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11399 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11400 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11401 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11402 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11403 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11404 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11405 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11406 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11407 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11408 * annotate.c (_initialize_annotate): Add declaration.
11409 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11410 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11411 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11412 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11413 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11414 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11415 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11416 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11417 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11418 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11419 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11420 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11421 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11422 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11423 * auto-load.c (_initialize_auto_load): Add declaration.
11424 * auxv.c (_initialize_auxv): Add declaration.
11425 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11426 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11427 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11428 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11429 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11430 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11431 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11432 * breakpoint.c (_initialize_breakpoint): Add declaration.
11433 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11434 * btrace.c (_initialize_btrace): Add declaration.
11435 * charset.c (_initialize_charset): Add declaration.
11436 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11437 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11438 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11439 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11440 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11441 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11442 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11443 * coffread.c (_initialize_coffread): Add declaration.
11444 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11445 * compile/compile.c (_initialize_compile): Add declaration.
11446 * complaints.c (_initialize_complaints): Add declaration.
11447 * completer.c (_initialize_completer): Add declaration.
11448 * copying.c (_initialize_copying): Add declaration.
11449 * corefile.c (_initialize_core): Add declaration.
11450 * corelow.c (_initialize_corelow): Add declaration.
11451 * cp-abi.c (_initialize_cp_abi): Add declaration.
11452 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11453 * cp-support.c (_initialize_cp_support): Add declaration.
11454 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11455 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11456 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11457 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11458 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11459 * ctfread.c (_initialize_ctfread): Add declaration.
11460 * d-lang.c (_initialize_d_language): Add declaration.
11461 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11462 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11463 * dbxread.c (_initialize_dbxread): Add declaration.
11464 * dcache.c (_initialize_dcache): Add declaration.
11465 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11466 * disasm.c (_initialize_disasm): Add declaration.
11467 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11468 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11469 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11470 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11471 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11472 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11473 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11474 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11475 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11476 * elfread.c (_initialize_elfread): Add declaration.
11477 * exec.c (_initialize_exec): Add declaration.
11478 * extension.c (_initialize_extension): Add declaration.
11479 * f-lang.c (_initialize_f_language): Add declaration.
11480 * f-valprint.c (_initialize_f_valprint): Add declaration.
11481 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11482 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11483 * filesystem.c (_initialize_filesystem): Add declaration.
11484 * findcmd.c (_initialize_mem_search): Add declaration.
11485 * findvar.c (_initialize_findvar): Add declaration.
11486 * fork-child.c (_initialize_fork_child): Add declaration.
11487 * frame-base.c (_initialize_frame_base): Add declaration.
11488 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11489 * frame.c (_initialize_frame): Add declaration.
11490 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11491 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11492 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11493 * gcore.c (_initialize_gcore): Add declaration.
11494 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11495 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11496 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11497 * gdbarch.c (_initialize_gdbarch): Add declaration.
11498 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11499 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11500 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11501 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11502 * go-lang.c (_initialize_go_language): Add declaration.
11503 * go32-nat.c (_initialize_go32_nat): Add declaration.
11504 * guile/guile.c (_initialize_guile): Add declaration.
11505 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11506 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11507 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11508 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11509 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11510 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11511 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11512 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11513 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11514 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11515 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11516 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11517 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11518 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11519 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11520 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11521 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11522 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11523 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11524 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11525 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11526 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11527 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11528 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11529 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11530 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11531 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11532 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11533 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11534 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11535 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11536 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11537 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11538 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11539 * infcall.c (_initialize_infcall): Add declaration.
11540 * infcmd.c (_initialize_infcmd): Add declaration.
11541 * inflow.c (_initialize_inflow): Add declaration.
11542 * infrun.c (_initialize_infrun): Add declaration.
11543 * interps.c (_initialize_interpreter): Add declaration.
11544 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11545 * jit.c (_initialize_jit): Add declaration.
11546 * language.c (_initialize_language): Add declaration.
11547 * linux-fork.c (_initialize_linux_fork): Add declaration.
11548 * linux-nat.c (_initialize_linux_nat): Add declaration.
11549 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11550 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11551 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11552 * m2-lang.c (_initialize_m2_language): Add declaration.
11553 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11554 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11555 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11556 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11557 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11558 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11559 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11560 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11561 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11562 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11563 * machoread.c (_initialize_machoread): Add declaration.
11564 * macrocmd.c (_initialize_macrocmd): Add declaration.
11565 * macroscope.c (_initialize_macroscope): Add declaration.
11566 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11567 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11568 * maint.c (_initialize_maint_cmds): Add declaration.
11569 * mdebugread.c (_initialize_mdebugread): Add declaration.
11570 * memattr.c (_initialize_mem): Add declaration.
11571 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11572 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11573 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11574 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11575 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11576 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11577 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11578 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11579 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11580 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11581 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11582 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11583 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11584 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11585 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11586 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11587 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11588 * mipsread.c (_initialize_mipsread): Add declaration.
11589 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11590 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11591 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11592 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11593 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11594 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11595 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11596 * nto-procfs.c (_initialize_procfs): Add declaration.
11597 * objc-lang.c (_initialize_objc_language): Add declaration.
11598 * observable.c (_initialize_observer): Add declaration.
11599 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11600 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11601 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11602 * osabi.c (_initialize_gdb_osabi): Add declaration.
11603 * osdata.c (_initialize_osdata): Add declaration.
11604 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11605 * parse.c (_initialize_parse): Add declaration.
11606 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11607 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11608 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11609 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11610 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11611 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11612 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11613 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11614 * printcmd.c (_initialize_printcmd): Add declaration.
11615 * probe.c (_initialize_probe): Add declaration.
11616 * proc-api.c (_initialize_proc_api): Add declaration.
11617 * proc-events.c (_initialize_proc_events): Add declaration.
11618 * proc-service.c (_initialize_proc_service): Add declaration.
11619 * procfs.c (_initialize_procfs): Add declaration.
11620 * producer.c (_initialize_producer): Add declaration.
11621 * psymtab.c (_initialize_psymtab): Add declaration.
11622 * python/python.c (_initialize_python): Add declaration.
11623 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11624 * record-btrace.c (_initialize_record_btrace): Add declaration.
11625 * record-full.c (_initialize_record_full): Add declaration.
11626 * record.c (_initialize_record): Add declaration.
11627 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11628 * regcache.c (_initialize_regcache): Add declaration.
11629 * reggroups.c (_initialize_reggroup): Add declaration.
11630 * remote-notif.c (_initialize_notif): Add declaration.
11631 * remote-sim.c (_initialize_remote_sim): Add declaration.
11632 * remote.c (_initialize_remote): Add declaration.
11633 * reverse.c (_initialize_reverse): Add declaration.
11634 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11635 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11636 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11637 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11638 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11639 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11640 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11641 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11642 Add declaration.
11643 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11644 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11645 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11646 * rust-exp.y (_initialize_rust_exp): Add declaration.
11647 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11648 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11649 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11650 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11651 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11652 * score-tdep.c (_initialize_score_tdep): Add declaration.
11653 * ser-go32.c (_initialize_ser_dos): Add declaration.
11654 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11655 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11656 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11657 * ser-uds.c (_initialize_ser_socket): Add declaration.
11658 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11659 * serial.c (_initialize_serial): Add declaration.
11660 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11661 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11662 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11663 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11664 * skip.c (_initialize_step_skip): Add declaration.
11665 * sol-thread.c (_initialize_sol_thread): Add declaration.
11666 * solib-aix.c (_initialize_solib_aix): Add declaration.
11667 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11668 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11669 * solib-frv.c (_initialize_frv_solib): Add declaration.
11670 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11671 * solib-target.c (_initialize_solib_target): Add declaration.
11672 * solib.c (_initialize_solib): Add declaration.
11673 * source-cache.c (_initialize_source_cache): Add declaration.
11674 * source.c (_initialize_source): Add declaration.
11675 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11676 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11677 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11678 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11679 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11680 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11681 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11682 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11683 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11684 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11685 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11686 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11687 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11688 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11689 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11690 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11691 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11692 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11693 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11694 * stabsread.c (_initialize_stabsread): Add declaration.
11695 * stack.c (_initialize_stack): Add declaration.
11696 * stap-probe.c (_initialize_stap_probe): Add declaration.
11697 * std-regs.c (_initialize_frame_reg): Add declaration.
11698 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11699 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11700 * symfile.c (_initialize_symfile): Add declaration.
11701 * symmisc.c (_initialize_symmisc): Add declaration.
11702 * symtab.c (_initialize_symtab): Add declaration.
11703 * target.c (_initialize_target): Add declaration.
11704 * target-connection.c (_initialize_target_connection): Add
11705 declaration.
11706 * target-dcache.c (_initialize_target_dcache): Add declaration.
11707 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11708 * thread.c (_initialize_thread): Add declaration.
11709 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11710 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11711 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11712 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11713 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11714 * tracectf.c (_initialize_ctf): Add declaration.
11715 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11716 * tracefile.c (_initialize_tracefile): Add declaration.
11717 * tracepoint.c (_initialize_tracepoint): Add declaration.
11718 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11719 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11720 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11721 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11722 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11723 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11724 * tui/tui.c (_initialize_tui): Add declaration.
11725 * typeprint.c (_initialize_typeprint): Add declaration.
11726 * ui-style.c (_initialize_ui_style): Add declaration.
11727 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11728 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11729 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11730 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11731 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11732 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11733 * unittests/filtered_iterator-selftests.c
11734 (_initialize_filtered_iterator_selftests): Add declaration.
11735 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11736 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11737 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11738 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11739 * unittests/main-thread-selftests.c
11740 (_initialize_main_thread_selftests): Add declaration.
11741 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11742 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11743 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11744 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11745 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11746 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11747 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11748 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11749 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11750 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11751 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11752 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11753 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11754 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11755 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11756 declaration.
11757 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11758 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11759 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11760 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11761 * user-regs.c (_initialize_user_regs): Add declaration.
11762 * utils.c (_initialize_utils): Add declaration.
11763 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11764 * valops.c (_initialize_valops): Add declaration.
11765 * valprint.c (_initialize_valprint): Add declaration.
11766 * value.c (_initialize_values): Add declaration.
11767 * varobj.c (_initialize_varobj): Add declaration.
11768 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11769 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11770 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11771 * windows-nat.c (_initialize_windows_nat): Add declaration.
11772 (_initialize_check_for_gdb_ini): Add declaration.
11773 (_initialize_loadable): Add declaration.
11774 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11775 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11776 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11777 * xcoffread.c (_initialize_xcoffread): Add declaration.
11778 * xml-support.c (_initialize_xml_support): Add declaration.
11779 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11780 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11781 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11782 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11783
e2de1eec
SM
117842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11785
11786 * regformats/regdat.sh: Generate declaration for init function.
11787
e0037b4c
SM
117882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11791 up.
11792 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11793 close_one_inferior>: New methods.
11794 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11795 pass down target to find_inferior_pid.
11796 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11797 Pass down target to find_inferior_ptid.
11798 (gdbsim_target::create_inferior): Pass down target to
11799 add_thread_silent.
11800 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11801 target down to find_inferior_ptid and switch_to_thread.
11802 (gdbsim_target::close): Update to call close_one_inferior.
11803 (struct resume_data): Remove.
11804 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11805 directly, rather than through a void pointer.
11806 (gdbsim_target::resume): Update to call resume_one_inferior.
11807
58920b5b
SM
118082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11809
11810 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11811
4ec89149
PA
118122020-01-12 Pedro Alves <palves@redhat.com>
11813
11814 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11815 directly for the current inferior instead of
11816 discard_all_inferiors.
11817 (discard_all_inferiors): Delete.
11818
7c392d1d
TT
118192020-01-11 Tom Tromey <tom@tromey.com>
11820
11821 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11822 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11823 deprecated_safe_get_selected_frame.
11824
d9ebdab7
TBA
118252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11826
11827 * inferior.c (print_inferior): Switch inferior before printing it.
11828
f3c469b9
PA
118292020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11830 Pedro Alves <palves@redhat.com>
11831
11832 * progspace-and-thread.c (switch_to_program_space_and_thread):
11833 Assert there's an inferior for PSPACE. Use
11834 switch_to_inferior_no_thread to switch the inferior too.
11835 * progspace.c (program_space::~program_space): Call
11836 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11837 (program_space::free_all_objfiles): Don't call clear_symtab_users
11838 here.
11839 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11840
65c574f6
PA
118412020-01-10 Pedro Alves <palves@redhat.com>
11842
11843 * NEWS: Mention multi-target debugging, "info connections", and
11844 "add-inferior -no-connection".
11845
2f4fcf00
PA
118462020-01-10 Pedro Alves <palves@redhat.com>
11847
11848 * infrun.c: Include "target-connection.h".
11849 (check_multi_target_resumption): New.
11850 (proceed): Call it.
11851 * target-connection.c (make_target_connection_string): Make
11852 extern.
11853 * target-connection.h (make_target_connection_string): Declare.
11854
121b3efd
PA
118552020-01-10 Pedro Alves <palves@redhat.com>
11856
11857 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11858 * inferior.c (uiout_field_connection): New function.
11859 (print_inferior): Add new "connection-id" column.
11860 (add_inferior_command): Show connection number/string of added
11861 inferior.
11862 * process-stratum-target.h
11863 (process_stratum_target::connection_string): New virtual method.
11864 (process_stratum_target::connection_number): New field.
11865 * remote.c (remote_target::connection_string): New override.
11866 * target-connection.c: New file.
11867 * target-connection.h: New file.
11868 * target.c (decref_target): Remove process_stratum targets from
11869 the connection list.
11870 (target_stack::push): Add process_stratum targets to the
11871 connection list.
11872
4f837581
PA
118732020-01-10 Pedro Alves <palves@redhat.com>
11874
11875 Revert:
11876 2016-04-12 Pedro Alves <palves@redhat.com>
11877 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11878 Remove references to name.
11879 * serial.h (struct serial) <name>: Delete.
11880
f4ec508e
PA
118812020-01-10 Pedro Alves <palves@redhat.com>
11882
11883 * gdbarch-selftests.c (register_to_value_test): Remove "target
11884 already pushed" check.
11885
5b6d1e4f
PA
118862020-01-10 Pedro Alves <palves@redhat.com>
11887 John Baldwin <jhb@FreeBSD.org>
11888
11889 * aarch64-linux-nat.c
11890 (aarch64_linux_nat_target::thread_architecture): Adjust.
11891 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11892 (task_command_1): Likewise.
11893 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11894 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11895 (aix_thread_target::store_registers)
11896 (aix_thread_target::thread_alive): Adjust.
11897 * amd64-fbsd-tdep.c: Include "inferior.h".
11898 (amd64fbsd_get_thread_local_address): Pass down target.
11899 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11900 thread's gdbarch instead of target_gdbarch.
11901 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11902 get_last_target_status.
11903 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11904 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11905 inferiors.
11906 (update_inserted_breakpoint_locations): Skip if inferiors with no
11907 execution.
11908 (update_global_location_list): When handling moribund locations,
11909 find representative inferior for location's pspace, and use thread
11910 count of its process_stratum target.
11911 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11912 * bsd-uthread.c (bsd_uthread_target::wait): Use
11913 as_process_stratum_target and adjust thread_change_ptid and
11914 add_thread calls.
11915 (bsd_uthread_target::update_thread_list): Use
11916 as_process_stratum_target and adjust find_thread_ptid,
11917 thread_change_ptid and add_thread calls.
11918 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11919 find_thread_ptid call.
11920 * corelow.c (add_to_thread_list): Adjust add_thread call.
11921 (core_target_open): Adjust add_thread_silent and thread_count
11922 calls.
11923 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11924 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11925 * event-top.c (async_disconnect): Pop targets from all inferiors.
11926 * exec.c (add_target_sections): Push exec target on all inferiors
11927 sharing the program space.
11928 (remove_target_sections): Remove the exec target from all
11929 inferiors sharing the program space.
11930 (exec_on_vfork): New.
11931 * exec.h (exec_on_vfork): Declare.
11932 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11933 Pass it down.
11934 (fbsd_nat_target::update_thread_list): Adjust.
11935 (fbsd_nat_target::resume): Adjust.
11936 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11937 down.
11938 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11939 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11940 get_thread_arch_regcache call.
11941 * fork-child.c (gdb_startup_inferior): Pass target down to
11942 startup_inferior and set_executing.
11943 * gdbthread.h (struct process_stratum_target): Forward declare.
11944 (add_thread, add_thread_silent, add_thread_with_info)
11945 (in_thread_list): Add process_stratum_target parameter.
11946 (find_thread_ptid(inferior*, ptid_t)): New overload.
11947 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11948 parameter.
11949 (all_threads()): Delete overload.
11950 (all_threads, all_non_exited_threads): Add process_stratum_target
11951 parameter.
11952 (all_threads_safe): Use brace initialization.
11953 (thread_count): Add process_stratum_target parameter.
11954 (set_resumed, set_running, set_stop_requested, set_executing)
11955 (threads_are_executing, finish_thread_state): Add
11956 process_stratum_target parameter.
11957 (switch_to_thread): Use is_current_thread.
11958 * i386-fbsd-tdep.c: Include "inferior.h".
11959 (i386fbsd_get_thread_local_address): Pass down target.
11960 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11961 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11962 have_inferiors check.
11963 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11964 (inf_ptrace_target::attach): Adjust.
11965 * infcall.c (run_inferior_call): Adjust.
11966 * infcmd.c (run_command_1): Pass target to
11967 scoped_finish_thread_state.
11968 (proceed_thread_callback): Skip inferiors with no execution.
11969 (continue_command): Rename 'all_threads' local to avoid hiding
11970 'all_threads' function. Adjust get_last_target_status call.
11971 (prepare_one_step): Adjust set_running call.
11972 (signal_command): Use user_visible_resume_target. Compare thread
11973 pointers instead of inferior_ptid.
11974 (info_program_command): Adjust to pass down target.
11975 (attach_command): Mark target's 'thread_executing' flag.
11976 (stop_current_target_threads_ns): New, factored out from ...
11977 (interrupt_target_1): ... this. Switch inferior before making
11978 target calls.
11979 * inferior-iter.h
11980 (struct all_inferiors_iterator, struct all_inferiors_range)
11981 (struct all_inferiors_safe_range)
11982 (struct all_non_exited_inferiors_range): Filter on
11983 process_stratum_target too. Remove explicit.
11984 * inferior.c (inferior::inferior): Push dummy target on target
11985 stack.
11986 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11987 Add process_stratum_target parameter, and pass it down.
11988 (have_live_inferiors): Adjust.
11989 (switch_to_inferior_and_push_target): New.
11990 (add_inferior_command, clone_inferior_command): Handle
11991 "-no-connection" parameter. Use
11992 switch_to_inferior_and_push_target.
11993 (_initialize_inferior): Mention "-no-connection" option in
11994 the help of "add-inferior" and "clone-inferior" commands.
11995 * inferior.h: Include "process-stratum-target.h".
11996 (interrupt_target_1): Use bool.
11997 (struct inferior) <push_target, unpush_target, target_is_pushed,
11998 find_target_beneath, top_target, process_target, target_at,
11999 m_stack>: New.
12000 (discard_all_inferiors): Delete.
12001 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12002 (all_inferiors, all_non_exited_inferiors): Add
12003 process_stratum_target parameter.
12004 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12005 (target_last_proc_target): New global.
12006 (follow_fork_inferior): Push target on new inferior. Pass target
12007 to add_thread_silent. Call exec_on_vfork. Handle target's
12008 reference count.
12009 (follow_fork): Adjust get_last_target_status call. Also consider
12010 target.
12011 (follow_exec): Push target on new inferior.
12012 (struct execution_control_state) <target>: New field.
12013 (user_visible_resume_target): New.
12014 (do_target_resume): Call target_async.
12015 (resume_1): Set target's threads_executing flag. Consider resume
12016 target.
12017 (commit_resume_all_targets): New.
12018 (proceed): Also consider resume target. Skip threads of inferiors
12019 with no execution. Commit resumtion in all targets.
12020 (start_remote): Pass current inferior to wait_for_inferior.
12021 (infrun_thread_stop_requested): Consider target as well. Pass
12022 thread_info pointer to clear_inline_frame_state instead of ptid.
12023 (infrun_thread_thread_exit): Consider target as well.
12024 (random_pending_event_thread): New inferior parameter. Use it.
12025 (do_target_wait): Rename to ...
12026 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12027 down.
12028 (threads_are_resumed_pending_p, do_target_wait): New.
12029 (prepare_for_detach): Adjust calls.
12030 (wait_for_inferior): New inferior parameter. Handle it. Use
12031 do_target_wait_1 instead of do_target_wait.
12032 (fetch_inferior_event): Adjust. Switch to representative
12033 inferior. Pass target down.
12034 (set_last_target_status): Add process_stratum_target parameter.
12035 Save target in global.
12036 (get_last_target_status): Add process_stratum_target parameter and
12037 handle it.
12038 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12039 (context_switch): Check inferior_ptid == null_ptid before calling
12040 inferior_thread().
12041 (get_inferior_stop_soon): Pass down target.
12042 (wait_one): Rename to ...
12043 (poll_one_curr_target): ... this.
12044 (struct wait_one_event): New.
12045 (wait_one): New.
12046 (stop_all_threads): Adjust.
12047 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12048 event's target.
12049 (switch_back_to_stepped_thread): Also consider target.
12050 (print_stop_event): Update.
12051 (normal_stop): Update. Also consider the resume target.
12052 * infrun.h (wait_for_inferior): Remove declaration.
12053 (user_visible_resume_target): New declaration.
12054 (get_last_target_status, set_last_target_status): New
12055 process_stratum_target parameter.
12056 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12057 process_stratum_target parameter, and use it.
12058 (clear_inline_frame_state (thread_info*)): New.
12059 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12060 process_stratum_target parameter.
12061 (clear_inline_frame_state (thread_info*)): Declare.
12062 * linux-fork.c (delete_checkpoint_command): Pass target down to
12063 find_thread_ptid.
12064 (checkpoint_command): Adjust.
12065 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12066 instead of just tweaking inferior_ptid.
12067 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12068 (exit_lwp): Pass target down to find_thread_ptid.
12069 (attach_proc_task_lwp_callback): Pass target down to
12070 add_thread/set_running/set_executing.
12071 (linux_nat_target::attach): Pass target down to
12072 thread_change_ptid.
12073 (get_detach_signal): Pass target down to find_thread_ptid.
12074 Consider last target status's target.
12075 (linux_resume_one_lwp_throw, resume_lwp)
12076 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12077 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12078 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12079 (linux_nat_target::async_wait_fd): New.
12080 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12081 target down.
12082 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12083 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12084 * linux-thread-db.c (struct thread_db_info::process_target): New
12085 field.
12086 (add_thread_db_info): Save target.
12087 (get_thread_db_info): New process_stratum_target parameter. Also
12088 match target.
12089 (delete_thread_db_info): New process_stratum_target parameter.
12090 Also match target.
12091 (thread_from_lwp): Adjust to pass down target.
12092 (thread_db_notice_clone): Pass down target.
12093 (check_thread_db_callback): Pass down target.
12094 (try_thread_db_load_1): Always push the thread_db target.
12095 (try_thread_db_load, record_thread): Pass target down.
12096 (thread_db_target::detach): Pass target down. Always unpush the
12097 thread_db target.
12098 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12099 target down. Always unpush the thread_db target.
12100 (find_new_threads_callback, thread_db_find_new_threads_2)
12101 (thread_db_target::update_thread_list): Pass target down.
12102 (thread_db_target::pid_to_str): Pass current inferior down.
12103 (thread_db_target::get_thread_local_address): Pass target down.
12104 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12105 target down.
12106 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12107 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12108 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12109 (procfs_init_inferior): Rename to ...
12110 (procfs_target::procfs_init_inferior): ... this and adjust.
12111 (procfs_target::create_inferior, procfs_notice_thread)
12112 (procfs_do_thread_registers): Adjust.
12113 * ppc-fbsd-tdep.c: Include "inferior.h".
12114 (ppcfbsd_get_thread_local_address): Pass down target.
12115 * proc-service.c (ps_xfer_memory): Switch current inferior and
12116 program space as well.
12117 (get_ps_regcache): Pass target down.
12118 * process-stratum-target.c
12119 (process_stratum_target::thread_address_space)
12120 (process_stratum_target::thread_architecture): Pass target down.
12121 * process-stratum-target.h
12122 (process_stratum_target::threads_executing): New field.
12123 (as_process_stratum_target): New.
12124 * ravenscar-thread.c
12125 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12126 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12127 down.
12128 * record-btrace.c (record_btrace_target::info_record): Adjust.
12129 (record_btrace_target::record_method)
12130 (record_btrace_target::record_is_replaying)
12131 (record_btrace_target::fetch_registers)
12132 (get_thread_current_frame_id, record_btrace_target::resume)
12133 (record_btrace_target::wait, record_btrace_target::stop): Pass
12134 target down.
12135 * record-full.c (record_full_wait_1): Switch to event thread.
12136 Pass target down.
12137 * regcache.c (regcache::regcache)
12138 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12139 process_stratum_target parameter and handle it.
12140 (current_thread_target): New global.
12141 (get_thread_regcache): Add process_stratum_target parameter and
12142 handle it. Switch inferior before calling target method.
12143 (get_thread_regcache): Pass target down.
12144 (get_thread_regcache_for_ptid): Pass target down.
12145 (registers_changed_ptid): Add process_stratum_target parameter and
12146 handle it.
12147 (registers_changed_thread, registers_changed): Pass target down.
12148 (test_get_thread_arch_aspace_regcache): New.
12149 (current_regcache_test): Define a couple local test_target_ops
12150 instances and use them for testing.
12151 (readwrite_regcache): Pass process_stratum_target parameter.
12152 (cooked_read_test, cooked_write_test): Pass mock_target down.
12153 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12154 (get_thread_arch_aspace_regcache): Add process_stratum_target
12155 parameter.
12156 (regcache::target): New method.
12157 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12158 (regcache::registers_changed_ptid): Add process_stratum_target
12159 parameter.
12160 (regcache::m_target): New field.
12161 (registers_changed_ptid): Add process_stratum_target parameter.
12162 * remote.c (remote_state::supports_vCont_probed): New field.
12163 (remote_target::async_wait_fd): New method.
12164 (remote_unpush_and_throw): Add remote_target parameter.
12165 (get_current_remote_target): Adjust.
12166 (remote_target::remote_add_inferior): Push target.
12167 (remote_target::remote_add_thread)
12168 (remote_target::remote_notice_new_inferior)
12169 (get_remote_thread_info): Pass target down.
12170 (remote_target::update_thread_list): Skip threads of inferiors
12171 bound to other targets. (remote_target::close): Don't discard
12172 inferiors. (remote_target::add_current_inferior_and_thread)
12173 (remote_target::process_initial_stop_replies)
12174 (remote_target::start_remote)
12175 (remote_target::remote_serial_quit_handler): Pass down target.
12176 (remote_target::remote_unpush_target): New remote_target
12177 parameter. Unpush the target from all inferiors.
12178 (remote_target::remote_unpush_and_throw): New remote_target
12179 parameter. Pass it down.
12180 (remote_target::open_1): Check whether the current inferior has
12181 execution instead of checking whether any inferior is live. Pass
12182 target down.
12183 (remote_target::remote_detach_1): Pass down target. Use
12184 remote_unpush_target.
12185 (extended_remote_target::attach): Pass down target.
12186 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12187 (remote_target::append_resumption): Pass down target.
12188 (remote_target::append_pending_thread_resumptions)
12189 (remote_target::remote_resume_with_hc, remote_target::resume)
12190 (remote_target::commit_resume): Pass down target.
12191 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12192 (remote_target::interrupt_query)
12193 (remote_target::remove_new_fork_children)
12194 (remote_target::check_pending_events_prevent_wildcard_vcont)
12195 (remote_target::remote_parse_stop_reply)
12196 (remote_target::process_stop_reply): Pass down target.
12197 (first_remote_resumed_thread): New remote_target parameter. Pass
12198 it down.
12199 (remote_target::wait_as): Pass down target.
12200 (unpush_and_perror): New remote_target parameter. Pass it down.
12201 (remote_target::readchar, remote_target::remote_serial_write)
12202 (remote_target::getpkt_or_notif_sane_1)
12203 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12204 down target.
12205 (remote_target::mourn_inferior): Pass down target. Use
12206 remote_unpush_target.
12207 (remote_target::core_of_thread)
12208 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12209 (remote_target::pid_to_exec_file)
12210 (remote_target::thread_handle_to_thread_info): Pass down target.
12211 (remote_target::async_wait_fd): New.
12212 * riscv-fbsd-tdep.c: Include "inferior.h".
12213 (riscv_fbsd_get_thread_local_address): Pass down target.
12214 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12215 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12216 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12217 Adjust.
12218 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12219 * solib-svr4.c (enable_break): Pass down target.
12220 * spu-multiarch.c (parse_spufs_run): Pass down target.
12221 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12222 * target-delegates.c: Regenerate.
12223 * target.c (g_target_stack): Delete.
12224 (current_top_target): Return the current inferior's top target.
12225 (target_has_execution_1): Refer to the passed-in inferior's top
12226 target.
12227 (target_supports_terminal_ours): Check whether the initial
12228 inferior was already created.
12229 (decref_target): New.
12230 (target_stack::push): Incref/decref the target.
12231 (push_target, push_target, unpush_target): Adjust.
12232 (target_stack::unpush): Defref target.
12233 (target_is_pushed): Return bool. Adjust to refer to the current
12234 inferior's target stack.
12235 (dispose_inferior): Delete, and inline parts ...
12236 (target_preopen): ... here. Only dispose of the current inferior.
12237 (target_detach): Hold strong target reference while detaching.
12238 Pass target down.
12239 (target_thread_name): Add assertion.
12240 (target_resume): Pass down target.
12241 (target_ops::beneath, find_target_at): Adjust to refer to the
12242 current inferior's target stack.
12243 (get_dummy_target): New.
12244 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12245 has a thread running.
12246 (initialize_targets): Rename to ...
12247 (_initialize_target): ... this.
12248 * target.h: Include "gdbsupport/refcounted-object.h".
12249 (struct target_ops): Inherit refcounted_object.
12250 (target_ops::shortname, target_ops::longname): Make const.
12251 (target_ops::async_wait_fd): New method.
12252 (decref_target): Declare.
12253 (struct target_ops_ref_policy): New.
12254 (target_ops_ref): New typedef.
12255 (get_dummy_target): Declare function.
12256 (target_is_pushed): Return bool.
12257 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12258 (all_matching_threads_iterator::all_matching_threads_iterator):
12259 Handle filter target.
12260 * thread-iter.h (struct all_matching_threads_iterator, struct
12261 all_matching_threads_range, class all_non_exited_threads_range):
12262 Filter by target too. Remove explicit.
12263 * thread.c (threads_executing): Delete.
12264 (inferior_thread): Pass down current inferior.
12265 (clear_thread_inferior_resources): Pass down thread pointer
12266 instead of ptid_t.
12267 (add_thread_silent, add_thread_with_info, add_thread): Add
12268 process_stratum_target parameter. Use it for thread and inferior
12269 searches.
12270 (is_current_thread): New.
12271 (thread_info::deletable): Use it.
12272 (find_thread_ptid, thread_count, in_thread_list)
12273 (thread_change_ptid, set_resumed, set_running): New
12274 process_stratum_target parameter. Pass it down.
12275 (set_executing): New process_stratum_target parameter. Pass it
12276 down. Adjust reference to 'threads_executing'.
12277 (threads_are_executing): New process_stratum_target parameter.
12278 Adjust reference to 'threads_executing'.
12279 (set_stop_requested, finish_thread_state): New
12280 process_stratum_target parameter. Pass it down.
12281 (switch_to_thread): Also match inferior.
12282 (switch_to_thread): New process_stratum_target parameter. Pass it
12283 down.
12284 (update_threads_executing): Reimplement.
12285 * top.c (quit_force): Pop targets from all inferior.
12286 (gdb_init): Don't call initialize_targets.
12287 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12288 Declare.
12289 (windows_add_thread, windows_delete_thread): Adjust.
12290 (get_windows_debug_event): Rename to ...
12291 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12292 * tracefile-tfile.c (tfile_target_open): Pass down target.
12293 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12294 Forward declare.
12295 (switch_to_thread): Add process_stratum_target parameter.
12296 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12297 parameter. Use it.
12298 (mi_on_resume): Pass target down.
12299 * nat/fork-inferior.c (startup_inferior): Add
12300 process_stratum_target parameter. Pass it down.
12301 * nat/fork-inferior.h (startup_inferior): Add
12302 process_stratum_target parameter.
12303 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12304
75c6c844
PA
123052020-01-10 Pedro Alves <palves@redhat.com>
12306
12307 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12308 directly. Instead find the first thread in the thread list and
12309 use switch_to_thread.
12310
78f2c40a
PA
123112020-01-10 Pedro Alves <palves@redhat.com>
12312
12313 * remote.c (remote_target::remote_add_inferior): Don't bind a
12314 process to the current inferior if the current inferior is already
12315 bound to a process.
12316
e7af6c70
TBA
123172020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12318 Pedro Alves <palves@redhat.com>
12319
12320 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12321 If no process is specified, return null_ptid instead of
12322 inferior_ptid.
12323 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12324 TARGET_WAITKIND_SIGNALLED with no pid.
12325
31ba933e
PA
123262020-01-10 Pedro Alves <palves@redhat.com>
12327
12328 * remote.c (first_remote_resumed_thread): New.
12329 (remote_target::wait_as): Use it as default event_ptid instead of
12330 inferior_ptid.
12331
735fc2ca
PA
123322020-01-10 Pedro Alves <palves@redhat.com>
12333
12334 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12335
c17e02e1
PA
123362020-01-10 Pedro Alves <palves@redhat.com>
12337
12338 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12339 not -1.
12340
ab1ddbcf
PA
123412020-01-10 Pedro Alves <palves@redhat.com>
12342
12343 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12344 ptid to get_last_target_status.
12345 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12346 ptid to get_last_target_status.
12347 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12348 get_last_target_status.
12349 (info_program_command): Don't pass a target_waitstatus to
12350 get_last_target_status.
12351 * infrun.c (init_wait_for_inferior): Use
12352 nullify_last_target_wait_ptid.
12353 (get_last_target_status): Handle nullptr arguments.
12354 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12355 (print_stop_event): Don't pass a ptid to get_last_target_status.
12356 (normal_stop): Don't pass a ptid to get_last_target_status.
12357 * infrun.h (get_last_target_status, set_last_target_status): Move
12358 comments here and update.
12359 (nullify_last_target_wait_ptid): Declare.
12360 * linux-fork.c (fork_load_infrun_state): Remove local extern
12361 declaration of nullify_last_target_wait_ptid.
12362 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12363 to get_last_target_status.
12364
f3f8ece4
PA
123652020-01-10 Pedro Alves <palves@redhat.com>
12366
12367 * gdbthread.h (scoped_restore_current_thread)
12368 <dont_restore, restore, m_dont_restore>: Declare.
12369 * thread.c (thread_alive): Add assertion. Return bool.
12370 (switch_to_thread_if_alive): New.
12371 (prune_threads): Switch inferior/thread.
12372 (print_thread_info_1): Switch thread before calling target methods.
12373 (scoped_restore_current_thread::restore): New, factored out from
12374 ...
12375 (scoped_restore_current_thread::~scoped_restore_current_thread):
12376 ... this.
12377 (scoped_restore_current_thread::scoped_restore_current_thread):
12378 Add assertion.
12379 (thread_apply_all_command, thread_select): Use
12380 switch_to_thread_if_alive.
12381 * infrun.c (proceed, restart_threads, handle_signal_stop)
12382 (switch_back_to_stepped_thread): Switch current thread before
12383 calling target methods.
12384
db2d40f7
PA
123852020-01-10 Pedro Alves <palves@redhat.com>
12386
12387 * inferior.c (switch_to_inferior_no_thread): New function,
12388 factored out from ...
12389 (inferior_command): ... here.
12390 * inferior.h (switch_to_inferior_no_thread): Declare.
12391 * mi/mi-main.c (run_one_inferior): Use
12392 switch_to_inferior_no_thread.
12393
bd420a2d
PA
123942020-01-10 Pedro Alves <palves@redhat.com>
12395
12396 * infcmd.c (kill_command): Remove dead code.
12397
ddf5db90
PA
123982020-01-10 Pedro Alves <palves@redhat.com>
12399
12400 * remote.c (remote_target::mourn_inferior): No longer check
12401 whether the target is running.
12402
5018ce90
PA
124032020-01-10 Pedro Alves <palves@redhat.com>
12404
12405 * corelow.c (core_target::has_execution): Change parameter type to
12406 inferior pointer.
12407 * inferior.c (number_of_live_inferiors): Use
12408 inferior::has_execution instead of target_has_execution_1.
12409 * inferior.h (inferior::has_execution): New.
12410 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12411 inferior::has_execution instead of target_has_execution_1.
12412 * process-stratum-target.c
12413 (process_stratum_target::has_execution): Change parameter type to
12414 inferior pointer. Check the inferior's PID instead of
12415 inferior_ptid.
12416 * process-stratum-target.h
12417 (process_stratum_target::has_execution): Change parameter type to
12418 inferior pointer.
12419 * record-full.c (record_full_core_target::has_execution): Change
12420 parameter type to inferior pointer.
12421 * target.c (target_has_execution_1): Change parameter type to
12422 inferior pointer.
12423 (target_has_execution_current): Adjust.
12424 * target.h (target_ops::has_execution): Change parameter type to
12425 inferior pointer.
12426 (target_has_execution_1): Change parameter type to inferior
12427 pointer. Change return type to bool.
12428 * tracefile.h (tracefile_target::has_execution): Change parameter
12429 type to inferior pointer.
12430
74375d18
PA
124312020-01-10 Pedro Alves <palves@redhat.com>
12432
12433 * exceptions.c (print_flush): Remove current_top_target() check.
12434
acdf84a6
PA
124352020-01-10 Pedro Alves <palves@redhat.com>
12436
12437 * remote.c (show_remote_exec_file): Show the current inferior's
12438 exec-file instead of the command variable's value.
12439
ec506636
PA
124402020-01-10 Pedro Alves <palves@redhat.com>
12441
12442 * record-full.c (record_full_resume_ptid): New global.
12443 (record_full_target::resume): Set it.
12444 (record_full_wait_1): Use record_full_resume_ptid instead of
12445 inferior_ptid.
12446
873657b9
PA
124472020-01-10 Pedro Alves <palves@redhat.com>
12448
12449 * gdbthread.h (scoped_restore_current_thread)
12450 <dont_restore, restore, m_dont_restore>: Declare.
12451 * thread.c (thread_alive): Add assertion. Return bool.
12452 (switch_to_thread_if_alive): New.
12453 (prune_threads): Switch inferior/thread.
12454 (print_thread_info_1): Switch thread before calling target methods.
12455 (scoped_restore_current_thread::restore): New, factored out from
12456 ...
12457 (scoped_restore_current_thread::~scoped_restore_current_thread):
12458 ... this.
12459 (scoped_restore_current_thread::scoped_restore_current_thread):
12460 Add assertion.
12461 (thread_apply_all_command, thread_select): Use
12462 switch_to_thread_if_alive.
12463
7f0ae84c
GB
124642020-01-10 George Barrett <bob@bob131.so>
12465
12466 * stap-probe.c (stap_modify_semaphore): Don't check for null
12467 semaphores.
12468 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12469 for null semaphores.
12470
f5a7c406
AB
124712020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12472
12473 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12474 all source windows, and maintain horizontal scroll status while
12475 doing so.
12476
9ae6bf64
TT
124772020-01-09 Tom Tromey <tom@tromey.com>
12478
12479 PR tui/18932:
12480 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12481 update_source_window, not print_source_lines.
12482
b2efe70c
AB
124832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12484
12485 * tui/tui.c (tui_enable): Register tui hooks after calling
12486 tui_display_main.
12487
5f23a082
CB
124882020-01-09 Christian Biesinger <cbiesinger@google.com>
12489
12490 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12491
3061113b
SM
124922020-01-08 Simon Marchi <simon.marchi@efficios.com>
12493
12494 * thread.c (print_thread_info_1): Fix indentation.
12495
57d75002
CB
124962020-01-09 Christian Biesinger <cbiesinger@google.com>
12497
12498 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12499 unique_xmalloc_ptr outside the if to always free the demangled name.
12500
6a053cb1
TT
125012020-01-08 Tom Tromey <tromey@adacore.com>
12502
12503 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12504 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12505 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12506 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12507 Remove.
12508 (section_offsets): New typedef.
12509 * symtab.c (fixup_section, get_msymbol_address): Update.
12510 * symmisc.c (dump_msymbols): Update.
12511 * symfile.h (relative_addr_info_to_section_offsets)
12512 (symfile_map_offsets_to_segments): Update.
12513 * symfile.c (build_section_addr_info_from_objfile)
12514 (init_objfile_sect_indices): Update.
12515 (struct place_section_arg): Change type of "offsets".
12516 (place_section): Update.
12517 (relative_addr_info_to_section_offsets): Change type of
12518 "section_offsets". Remove "num_sections" parameter.
12519 (default_symfile_offsets, syms_from_objfile_1)
12520 (set_objfile_default_section_offset): Update.
12521 (reread_symbols): No need to preserve section offsets by hand.
12522 (symfile_map_offsets_to_segments): Change type of "offsets".
12523 * stap-probe.c (relocate_address): Update.
12524 * stabsread.h (process_one_symbol): Update.
12525 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12526 (solib_target_relocate_section_addresses): Update.
12527 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12528 Update.
12529 * solib-frv.c (frv_relocate_main_executable): Update.
12530 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12531 * solib-aix.c (solib_aix_get_section_offsets): Change return
12532 type.
12533 (solib_aix_solib_create_inferior_hook): Update.
12534 * remote.c (remote_target::get_offsets): Update.
12535 * psymtab.c (find_pc_sect_psymtab): Update.
12536 * psympriv.h (struct partial_symbol) <address, text_low,
12537 text_high>: Update.
12538 * objfiles.h (obj_section_offset): Update.
12539 (struct objfile) <section_offsets>: Change type.
12540 <num_sections>: Remove.
12541 (objfile_relocate): Update.
12542 * objfiles.c (entry_point_address_query): Update
12543 (relocate_one_symbol): Change type of "section_offsets".
12544 (objfile_relocate1, objfile_relocate1): Change type of
12545 "new_offsets".
12546 (objfile_rebase1): Update.
12547 * mipsread.c (mipscoff_symfile_read): Update.
12548 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12549 parameter.
12550 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12551 (parse_external, psymtab_to_symtab_1): Update.
12552 * machoread.c (macho_symfile_offsets): Update.
12553 * ia64-tdep.c (ia64_find_unwind_table): Update.
12554 * hppa-tdep.c (read_unwind_info): Update.
12555 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12556 * dwarf2read.c (create_addrmap_from_index)
12557 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12558 (process_psymtab_comp_unit_reader, add_partial_symbol)
12559 (add_partial_subprogram, process_full_comp_unit)
12560 (read_file_scope, read_func_scope, read_lexical_block_scope)
12561 (read_call_site_scope, dwarf2_rnglists_process)
12562 (dwarf2_ranges_process, dwarf2_ranges_read)
12563 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12564 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12565 Update.
12566 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12567 Update.
12568 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12569 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12570 (process_one_symbol): Change type of "section_offsets".
12571 * ctfread.c (get_objfile_text_range): Update.
12572 * coffread.c (coff_symtab_read, enter_linenos)
12573 (process_coff_symbol): Update.
12574 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12575 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12576
456e800a
TT
125772020-01-08 Tom Tromey <tromey@adacore.com>
12578
12579 * dwarf2read.c (parse_macro_definition): Use std::string.
12580 (parse_macro_definition): Likewise.
12581
6dfa2fc2
TT
125822020-01-08 Tom Tromey <tromey@adacore.com>
12583
12584 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12585 (ATTR_ALLOC_CHUNK): Remove.
12586
421d1616
TT
125872020-01-08 Tom Tromey <tromey@adacore.com>
12588
12589 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12590
43816ebc
TT
125912020-01-08 Tom Tromey <tromey@adacore.com>
12592
12593 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12594 (dwarf2_compute_name, open_dwo_file): Likewise.
12595 (process_enumeration_scope): Use std::vector.
12596 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12597 (partial_die_info::fixup, dwarf2_start_subfile)
12598 (guess_full_die_structure_name, dwarf2_name): Likewise.
12599 (determine_prefix): Update.
12600 (guess_full_die_structure_name): Make return type const.
12601 (partial_die_full_name): Return unique_xmalloc_ptr.
12602 (DW_FIELD_ALLOC_CHUNK): Remove.
12603
4212d509
TT
126042020-01-07 Tom Tromey <tromey@adacore.com>
12605
12606 PR build/24937:
12607 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12608
06a6207a
JT
126092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12610
12611 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12612
153d79c4
AB
126132020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12614
12615 * stack.c (print_frame_info): Move disassemble_next_line code
12616 inside source_print block.
12617
66182876
EZ
126182020-01-06 Eli Zaretskii <eliz@gnu.org>
12619
12620 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12621 gdb/signals.h, as we are now using native signal symbols.
12622
cbfa8581
SV
126232020-01-06 Shahab Vahedi <shahab@synopsys.com>
12624
12625 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12626 overflow by an early check of content vs threshold.
aac66a4c 12627 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12628 Likewise.
12629
3f602821
EZ
126302020-01-06 Eli Zaretskii <eliz@gnu.org>
12631
12632 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12633
a08c904d
JT
126342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12635
12636 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12637 export table if no section contains it's RVA.
12638
89a65580
EZ
126392020-01-06 Eli Zaretskii <eliz@gnu.org>
12640
12641 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12642
8b7fcda2
HD
126432020-01-06 Hannes Domani <ssbssa@yahoo.de>
12644
12645 * source.c (print_source_lines_base): Set last_line_listed.
12646
a61b4f69
SV
126472020-01-06 Shahab Vahedi <shahab@synopsys.com>
12648
12649 * tui/tui-disasm.c: Remove trailing spaces.
12650
559e7e50
EZ
126512020-01-06 Eli Zaretskii <eliz@gnu.org>
12652 Pedro Alves <palves@redhat.com>
12653
12654 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12655 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12656 (windows_gdb_signal_to_target): New function, uses the above
12657 enumeration to convert GDB internal signal codes to equivalent
12658 Windows codes.
12659 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12660 * windows-nat.c: Include "gdb_wait.h".
12661 (get_windows_debug_event): Extract the fatal exception from the
12662 exit status and convert to the equivalent Posix signal number.
12663 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12664 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12665 * gdbsupport/gdb_wait.c: New file, implements
12666 windows_status_to_termsig.
12667 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12668 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12669
f2302a34
AB
126702020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12671
12672 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12673 show_layout.
12674
6a5206eb
LM
126752020-01-05 Luis Machado <luis.machado@linaro.org>
12676
12677 * aarch64-linux-nat.c
12678 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12679 and bfd_mach_aarch64.
12680
6ec1d75e
PW
126812020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12682
12683 * ui-file.c (stdio_file::can_emit_style_escape)
12684 (tee_file::can_emit_style_escape): Ensure style is used also on
12685 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12686 to gdb_stdout.
12687 * main.c (set_gdb_data_directory): Use file style to output the
12688 warning that the given pathname is not a directory.
12689 * top.c (show_history_filename, gdb_safe_append_history)
12690 (show_gdb_datadir): Use file style.
12691
44f81a76
HD
126922020-01-03 Hannes Domani <ssbssa@yahoo.de>
12693
12694 * solib-target.c (struct lm_info_target):
12695 Change offsets to be a unique_xmalloc_ptr.
12696 (solib_target_relocate_section_addresses): Update.
12697
25057eb0
HD
126982020-01-03 Hannes Domani <ssbssa@yahoo.de>
12699
12700 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12701
6e2118f5
BE
127022020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12703
12704 * MAINTAINERS (Write After Approval): Add myself.
12705
8133c7dc
LM
127062020-01-02 Luis Machado <luis.machado@linaro.org>
12707
12708 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12709 Cell BE architecture.
12710 * target.h (struct target_ops) <thread_architecture>: Likewise.
12711
48189bec
HD
127122020-01-01 Hannes Domani <ssbssa@yahoo.de>
12713
12714 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12715
ead1063b
HD
127162020-01-01 Hannes Domani <ssbssa@yahoo.de>
12717
12718 * MAINTAINERS (Write After Approval): Add myself.
12719
e5d78223
JB
127202020-01-01 Joel Brobecker <brobecker@adacore.com>
12721
12722 * gdbarch.sh: Update copyright year range of generated files.
12723
b811d2c2
JB
127242020-01-01 Joel Brobecker <brobecker@adacore.com>
12725
12726 Update copyright year range in all GDB files.
12727
5f4def5c
JB
127282020-01-01 Joel Brobecker <brobecker@adacore.com>
12729
12730 * copyright.py: Convert to Python 3.
12731
51fd4002
JB
127322020-01-01 Joel Brobecker <brobecker@adacore.com>
12733
12734 * copyright.py: Adapt after move of gnulib directory from gdb
12735 directory to toplevel directory.
12736
5fb651f2
JB
127372020-01-01 Joel Brobecker <brobecker@adacore.com>
12738
12739 * copyright.py (main): Exit if run from the wrong directory.
12740
5dd8bf88
JB
127412020-01-01 Joel Brobecker <brobecker@adacore.com>
12742
12743 * top.c (print_gdb_version): Change copyright year to 2020.
12744
9f71dacb 127452020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12746
9f71dacb 12747 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12748
9f71dacb 12749For older changes see ChangeLog-2019.
c906108c
SS
12750\f
12751Local Variables:
12752mode: change-log
12753left-margin: 8
12754fill-column: 74
12755version-control: never
57da7796 12756coding: utf-8
c906108c 12757End: