]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add type::stub_is_supported / type::set_stub_is_supported
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9baccff6
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5 use type::set_stub_is_supported.
6
bd63c870
SM
72020-09-14 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
10 uses with type::is_vector.
11
2062087b
SM
122020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
15 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
16 use type::set_is_vector.
17
a409645d
SM
182020-09-14 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
21 uses with type::has_varargs.
22
1d6286ed
SM
232020-09-14 Simon Marchi <simon.marchi@efficios.com>
24
25 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
26 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
27 use type::set_has_varargs.
28
7f9f399b
SM
292020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
32 uses with type::is_prototyped.
33
27e69b7a
SM
342020-09-14 Simon Marchi <simon.marchi@efficios.com>
35
36 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
37 New methods.
38 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
39 call sites to use type::set_is_prototyped.
40
d2183968
SM
412020-09-14 Simon Marchi <simon.marchi@efficios.com>
42
43 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
44 uses with type::target_is_stub.
45
8f53807e
SM
462020-09-14 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
49 New methods.
50 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
51 sites to use type::set_target_is_stub.
52
e46d3488
SM
532020-09-14 Simon Marchi <simon.marchi@efficios.com>
54
55 * gdbtypes.h (TYPE_STUB): Remove, replace all
56 uses with type::is_stub.
57
b4b73759
SM
582020-09-14 Simon Marchi <simon.marchi@efficios.com>
59
60 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
61 (TYPE_STUB): Use type::is_stub, change all write call sites to
62 use type::set_is_stub.
63
20ce4123
SM
642020-09-14 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
67 type::has_no_signedness.
68
15152a54
SM
692020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (struct type) <has_no_signedness,
72 set_has_no_signedness>: New methods.
73 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
74 call sites to use type::set_has_no_signedness.
75
c6d940a9
SM
762020-09-14 Simon Marchi <simon.marchi@efficios.com>
77
78 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
79 type::is_unsigned.
80
653223d3
SM
812020-09-14 Simon Marchi <simon.marchi@efficios.com>
82
83 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
84 methods.
85 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
86 sites to use type::set_is_unsigned.
87
55ea94da
FH
882020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
89 Adam Renquinha <arenquinha@cimeq.qc.ca>
90
91 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
92 pointer and stack frame offset when unwinding.
93
6791b117
PA
942020-09-13 Pedro Alves <pedro@palves.net>
95
96 * NEWS: Document "-break-insert --qualified".
97 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
98
77f2120b
PA
992020-09-13 Pedro Alves <pedro@palves.net>
100
101 * linespec.c (classify_mtype, compare_msyms): Delete.
102 (search_minsyms_for_name): Remove classification logic. Instead
103 filter out trampoline symbols if we also found an external
104 function of the same name.
105
ed6a896c
JB
1062020-09-13 Joel Brobecker <brobecker@adacore.com>
107
108 * NEWS: Create a new section for the next release branch.
109 Rename the section of the current branch, now that it has
110 been cut.
111
32aea73e
JB
1122020-09-13 Joel Brobecker <brobecker@adacore.com>
113
114 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
115 * version.in: Bump version to 11.0.50.DATE-git.
116
8087c3fa
JB
1172020-09-12 Joel Brobecker <brobecker@adacore.com>
118
119 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
120
2a67f09d
FW
1212020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
122 Felix Willgerodt <Felix.Willgerodt@intel.com>
123
124 * gdbarch.sh: Added bfloat16 type.
125 * gdbarch.c: Regenerated.
126 * gdbarch.h: Regenerated.
127 * gdbtypes.c (floatformats_bfloat16): New struct.
128 (gdbtypes_post_init): Add builtin_bfloat16.
129 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
130 (floatformats_bfloat16): New struct.
131 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
132 (i386_ymm_type): Add field "v16_bfloat16"
133 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
134 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
135 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
136 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
137 * features/i386/64bit-avx512.xml: Add bfloat16 type.
138 * features/i386/64bit-avx512.c: Regenerated.
139 * features/i386/64bit-sse.xml: Add bfloat16 type.
140 * features/i386/64bit-sse.c: Regenerated.
141
1347d111
FW
1422020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
143
144 * i386-tdep.c (i386_zmm_type): Fix field names.
145 (i386_ymm_type): Fix field names.
146
7a4e8e7d
TBA
1472020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
148
149 * breakpoint.c: Fix typo in the help message of the
150 "set breakpoint condition-evaluation" command.
151
cf4ac4be
KR
1522020-09-10 Kamil Rytarowski <n54@gmx.com>
153
154 * nbsd-nat.c: Include "nat/netbsd-nat.h".
155 * (nbsd_nat_target::pid_to_exec_file)
156 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
157 (nbsd_nat_target::post_startup_inferior)
158 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
159 (nbsd_add_threads): Switch local code to common gdb/nat functions.
160 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
161 * (nbsd_thread_lister): Remove.
162
f404573e
KR
1632020-09-10 Kamil Rytarowski <n54@gmx.com>
164
165 * fork-inferior.c (startup_inferior): Avoid double free.
166
1ccb2c17
KR
1672020-09-10 Kamil Rytarowski <n54@gmx.com>
168
169 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
170 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
171
feedfcc7
KR
1722020-09-10 Kamil Rytarowski <n54@gmx.com>
173
174 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
175 * netbsd-nat.c: Include <sys/ptrace.h>.
176 * (netbsd_nat::enable_proc_events): Add.
177
c489f8c6
KR
1782020-09-10 Kamil Rytarowski <n54@gmx.com>
179
180 * netbsd-nat.h: Include "gdbsupport/function-view.h".
181 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
182 (netbsd_nat::for_each_thread): Add.
183 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
184 "gdbsupport/common-debug.h".
185 * (netbsd_nat::netbsd_thread_lister)
186 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
187 (netbsd_nat::for_each_thread): Add.
188
330662f6
KR
1892020-09-10 Kamil Rytarowski <n54@gmx.com>
190
191 * netbsd-nat.h: Include <unistd.h>.
192 * (netbsd_nat::pid_to_exec_file): Add.
193 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
194 * (netbsd_nat::pid_to_exec_file) Add.
195
70b67307
KR
1962020-09-10 Kamil Rytarowski <n54@gmx.com>
197
198 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
199
99cf6da6
KR
2002020-09-10 Kamil Rytarowski <n54@gmx.com>
201
202 * netbsd-nat.h: New file.
203 * netbsd-nat.c: Likewise.
204
1b788fb6
TT
2052020-09-09 Tom Tromey <tromey@adacore.com>
206
207 * ada-lang.c (remove_extra_symbols): Do not increment when
208 removing an element
209
03b0a45f
TT
2102020-09-08 Tom Tromey <tromey@adacore.com>
211
212 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
213
3cae4447
TT
2142020-09-08 Tom Tromey <tromey@adacore.com>
215
216 PR win32/25302:
217 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
218 (gdb_bfd_init_data): New function.
219 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
220
7f08fd51
TBA
2212020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
222
223 * infrun.c (fetch_inferior_event): Use
224 `switch_to_target_no_thread` to switch the target.
225
3e6ff933
TT
2262020-09-06 Tom Tromey <tom@tromey.com>
227
228 * symfile.h (dwarf2_free_objfile): Don't declare.
229
e56798df
AKS
2302020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
231
232 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
233 to match 16 byte real/complex type generated by Flang compiler.
234
8f5c6526
TV
2352020-09-03 Tom de Vries <tdevries@suse.de>
236
237 PR breakpoint/26546
238 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
239 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
240
c5065df0
SM
2412020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * maint.c (index_digits): New function.
244 (struct maint_print_section_data): Remove.
245 (print_bfd_section_info): Remove print_data parameter, add arg
246 and index_digits.
247 (print_objfile_section_info): Likewise.
248 (print_bfd_section_info_maybe_relocated): Likewise (plus
249 objfile).
250 (maintenance_info_sections): Adjust calls.
251
02c6f3f1
TT
2522020-09-02 Tom Tromey <tromey@adacore.com>
253
254 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
255 for null pointers.
256 (ada_varobj_adjust_for_child_access): Special-case null pointers.
257
ef5e5b0b
SM
2582020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * bcache.h (struct bcache) <insert>: Change type of `added` to
261 pointer to bool.
262 * bcache.c (bcache::insert): Likewise.
263 * gdbtypes.c (check_types_worklist): Adjust.
264 * psymtab.c (add_psymbol_to_bcache): Adjust.
265
973695d6
KB
2662020-08-31 Kevin Buettner <kevinb@redhat.com>
267
268 * corelow.c (unordered_set): Include.
269 (class core_target): Add field 'm_core_unavailable_mappings'.
270 (core_target::build_file_mappings): Print only one warning
271 per inaccessible file. Add unavailable/broken mappings
272 to m_core_unavailable_mappings.
273 (core_target::xfer_partial): Call...
274 (core_target::xfer_memory_via_mappings): New method.
275
264fc0e2
SM
2762020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
279 type to bool.
280
2de01bdb
SM
2812020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * dwarf2/read.c (struct field_info): Fix indentation.
284
f3bd50f1
SM
2852020-08-31 Simon Marchi <simon.marchi@efficios.com>
286
287 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
288 ordering in comment.
289 * frame.c (frame_id_eq): Fix indentation.
290
22b9b4b0
SL
2912020-08-31 Scott Linder <scott@scottlinder.com>
292 Simon Marchi <simon.marchi@efficios.com>
293
294 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
295 inline frame ids in outer frame.
296
84154d16
SM
2972020-08-31 Simon Marchi <simon.marchi@efficios.com>
298
299 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
300 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
301 (outer_frame_id): Use FID_STACK_OUTER instead of
302 FID_STACK_INVALID.
303 (frame_id_p): Don't check for outer_frame_id.
304
8efaf6b3
SM
3052020-08-31 Simon Marchi <simon.marchi@efficios.com>
306
307 * frame-unwind.c (frame_unwind_got_optimized): Don't set
308 regnum/frame in value. Call allocate_value_lazy.
309 * frame.c (frame_unwind_register_value): Use
310 val_print_not_saved.
311
fe1fe7ea
SM
3122020-08-31 Simon Marchi <simon.marchi@efficios.com>
313
314 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
315
f7c7700d
PA
3162020-08-29 Pedro Alves <pedro@palves.net>
317
318 * progspace.c (print_program_space): Use all_inferiors. Switch to
319 the inferior before calling target_pid_to_str.
320
e0814aae
TT
3212020-08-28 Tom Tromey <tom@tromey.com>
322
323 * xcoffread.c (xcoff_end_psymtab): Update comment.
324 * dbxread.c (dbx_end_psymtab): Update comment.
325
626d2320
TV
3262020-08-28 Tom de Vries <tdevries@suse.de>
327
328 PR breakpoint/26544
329 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
330 event_location.
331 (create_breakpoint): Same.
332 (base_breakpoint_decode_location): Same.
333 (bkpt_create_sals_from_location): Same.
334 (bkpt_decode_location): Same.
335 (bkpt_probe_create_sals_from_location): Same.
336 (bkpt_probe_decode_location): Same.
337 (tracepoint_create_sals_from_location): Same.
338 (tracepoint_decode_location): Same.
339 (tracepoint_probe_decode_location): Same.
340 (strace_marker_create_sals_from_location): Same.
341 (strace_marker_decode_location): Same.
342 (create_sals_from_location_default): Same.
343 (decode_location_default): Same.
344 * breakpoint.h (struct breakpoint_ops): Same.
345 (create_breakpoint): Same.
346 * linespec.h (decode_line_full): Same.
347 * linespec.c (decode_line_full): Same. Throw error if
348 result.size () == 0.
349
df631783
PA
3502020-08-27 Pedro Alves <pedro@palves.net>
351
352 PR gdb/26524
353 * breakpoint.c (until_break_fsm) <location_breakpoint,
354 caller_breakpoint>: Delete fields.
355 <breakpoints>: New field.
356 <until_break_fsm>: Adjust to save a breakpoint vector instead of
357 two individual breakpoints.
358 (until_break_fsm::should_stop): Loop over breakpoints in the
359 breakpoint vector.
360 (until_break_fsm::clean_up): Adjust to clear the breakpoints
361 vector.
362 (until_break_command): Handle location expanding into multiple
363 sals.
364
b2b38aa4
PA
3652020-08-27 Pedro Alves <pedro@palves.net>
366
367 PR gdb/26523
368 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
369 bp_until breakpoints user-specified locations. Update intro
370 comment.
371
b886559f
SM
3722020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
375 gdb_bfd_sections): New.
376 * maint.c (print_bfd_section_info): Change param type to
377 maint_print_section_data.
378 (print_objfile_section_info): Likewise.
379 (print_bfd_section_info_maybe_relocated): Likewise.
380 (maintenance_info_sections): Use gdb_bfd_sections.
381
4c6e63bf
SV
3822020-08-25 Shahab Vahedi <shahab@synopsys.com>
383
384 * MAINTAINERS: Add ARC target and maintainer.
385
8d7f0635
AK
3862020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
387
388 * configure.tgt: ARC support for GNU/Linux.
389 * Makefile.in (ALL_TARGET_OBJS): Likewise.
390 * arc-linux-tdep.c: New file.
391 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
392 * arc-tdep.c (arc_write_pc): Use it.
393
fdd8731b
SV
3942020-08-25 Shahab Vahedi <shahab@synopsys.com>
395
396 * arc-tdep.c (arc_check_for_hardware_loop): New.
397 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
398
22459524
SV
3992020-08-25 Shahab Vahedi <shahab@synopsys.com>
400
401 * arc-tdep.h: Include "gdbarch.h".
402
995d3a19
SV
4032020-08-25 Shahab Vahedi <shahab@synopsys.com>
404
405 * arch/arc.h
406 (arc_gdbarch_features): New class to stir the selection of target XML.
407 (arc_create_target_description): Use FEATURES to choose XML target.
408 (arc_lookup_target_description): Use arc_create_target_description
409 to create _new_ target descriptions or return the already created
410 ones if the FEATURES is the same.
411 * arch/arc.c: Implementation of prototypes described above.
412 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
413 (arc_gdbarch_features_init): Initialize the FEATURES struct.
414 * arc-tdep.c (*_feature_name): Make feature names consistent.
415 (arc_register_feature): A new struct to hold information about
416 registers of a particular target/feature.
417 (arc_check_tdesc_feature): Check if XML provides registers in
418 compliance with ARC_REGISTER_FEATURE structs.
419 (arc_update_acc_reg_names): Add aliases for r58 and r59.
420 (determine_*_reg_feature_set): Which feature name to look for.
421 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
422 (mach_type_to_arc_isa): Convert from a set of binutils machine types
423 to expected ISA enums to be used in arc_gdbarch_features structs.
424 * features/Makefile (FEATURE_XMLFILES): Add new files.
425 * gdb/features/arc/v1-aux.c: New file.
426 * gdb/features/arc/v1-aux.xml: Likewise.
427 * gdb/features/arc/v1-core.c: Likewise.
428 * gdb/features/arc/v1-core.xml: Likewise.
429 * gdb/features/arc/v2-aux.c: Likewise.
430 * gdb/features/arc/v2-aux.xml: Likewise.
431 * gdb/features/arc/v2-core.c: Likewise.
432 * gdb/features/arc/v2-core.xml: Likewise.
433 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
434
3945d2d7
GM
4352020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
436 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 PR m2/26372
fc5d6901 439 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
440 an assert. Remove single element array indexing pattern as the
441 MULTI_SUBSCRIPT support will handle this case too.
442
2677f2d3
SM
4432020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
444
445 * value.h (valprint_check_validity): Move declaration from
446 here...
447 * valprint.h (valprint_check_validity): ... to here.
448
c426fddb
SM
4492020-08-24 Simon Marchi <simon.marchi@efficios.com>
450
451 * debug.h: New file.
452 * debug.c (debug_prefixed_vprintf): New function.
453 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
454 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
455
1eb8556f
SM
4562020-08-24 Simon Marchi <simon.marchi@efficios.com>
457
458 * infrun.h (infrun_debug_printf_1): New function declaration.
459 (infrun_debug_printf): New macro.
460 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
461 throughout.
462 (infrun_debug_printf): New function.
463 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
464 (handle_jit_event): Likewise.
465
b8fff44e
MW
4662020-08-21 Mark Wielaard <mark@klomp.org>
467
468 * ada-lex.l: Extend register warnings diagnostics comment for g++.
469
d19c3068
SM
4702020-08-22 Simon Marchi <simon.marchi@efficios.com>
471
472 * frame.c (enum class frame_id_status): New.
473 (struct frame_info) <this_id::p>: Change type to frame_id_status.
474 (fprintf_frame): Update.
475 (compute_frame_id): Set frame id status to "computing" on entry.
476 Set it back to "not_computed" on failure and to "computed" on
477 success.
478 (get_frame_id): Assert the frame id is not being computed.
479 (create_sentinel_frame): Use frame_id_status::COMPUTED.
480 (create_new_frame): Likewise.
481 (frame_cleanup_after_sniffer): Update assert.
482
b70e516e
SM
4832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * regcache.c (pid_ptid_regcache_map): New type.
486 (target_ptid_regcache_map): Remove.
487 (target_pid_ptid_regcache_map): New type.
488 (regcaches): Change type to target_pid_ptid_regcache_map.
489 (get_thread_arch_aspace_regcache): Update.
490 (regcache_thread_ptid_changed): Update, handle pid-like ptid
491 case.
492 (regcaches_size): Update.
493 (regcache_count): Update.
494 (registers_changed_ptid_target_pid_test): New.
495 (_initialize_regcache): Register new test.
496
cdd9148a
SM
4972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * regcache.c (regcache_count): New.
500 (struct regcache_test_data): New.
501 (regcache_test_data_up): New.
502 (populate_regcaches_for_test): New.
503 (regcaches_test): Remove.
504 (get_thread_arch_aspace_regcache_test): New.
505 (registers_changed_ptid_all_test): New.
506 (registers_changed_ptid_target_test): New.
507 (registers_changed_ptid_target_ptid_test): New.
508 (regcache_thread_ptid_changed): Remove regcache_count lambda.
509 (_initialize_regcache): Register new tests.
510
dd125343
SM
5112020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
514 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
515 gdbarch and aspace parameter. Use current inferior's aspace.
516 Validate regcache's arch value.
517 (regcaches_test): Update.
518
3ee93972
SM
5192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * regcache.c (regcaches_test): Call registers_changed.
522
33bf4c5c
TBA
5232020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
524
525 * infrun.c (process_event_stop_test): Fix typo "breapoint".
526
c2fd7fae
AKS
5272020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
528
529 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
530 to find the end of prologue for flang compiled binaries.
531 * arm-tdep.c (arm_skip_prologue): Likewise.
532 * i386-tdep.c (i386_skip_prologue): Likewise.
533 * producer.c (producer_is_llvm): New function.
534 (producer_parsing_tests): Added new tests for clang/flang.
535 * producer.h (producer_is_llvm): New declaration.
536
9327494e
SM
5372020-08-18 Simon Marchi <simon.marchi@efficios.com>
538
539 * linux-nat.c (linux_nat_debug_printf): New function.
540 (linux_nat_debug_printf_1): New macro. Use throughout the file.
541
d138725a
AM
5422020-08-18 Aaron Merey <amerey@redhat.com>
543
544 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
545 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
546 (CLIBS): Add DEBUGINFOD_LIBS.
547
f9b11e6b
ST
5482020-08-17 Sergei Trofimovich <siarheit@google.com>
549
550 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
551 'gdbarch_num_regs'.
552
3ae7ab99
TT
5532020-08-17 Tom Tromey <tromey@adacore.com>
554
555 * ada-varobj.c (ada_varobj_decode_var): Handle case where
556 ada_get_decoded_value returns NULL.
557
b017825f
TT
5582020-08-17 Tom Tromey <tromey@adacore.com>
559
560 * python/py-inferior.c (infpy_search_memory): Use
561 gdb_py_object_from_ulongest.
562 * python/py-infevents.c (create_inferior_call_event_object)
563 (create_memory_changed_event_object): Use
564 gdb_py_object_from_ulongest.
565 * python/py-linetable.c (ltpy_entry_get_pc): Use
566 gdb_py_object_from_ulongest.
567
7635cf79
SM
5682020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
569
570 * loc.c (class symbol_needs_eval_context): Fix indentation.
571
f54be24b
SM
5722020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
575 bool.
576
53d5a2a5
TV
5772020-08-17 Tom de Vries <tdevries@suse.de>
578
579 PR gdb/26393
580 * gdbtypes.c (dump_dynamic_prop): New function.
581 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
582
547ce8f0
TV
5832020-08-15 Tom de Vries <tdevries@suse.de>
584
585 PR backtrace/26390
586 * stack.c (print_frame_args): Temporarily set the selected
587 frame to FRAME while printing the frame's arguments.
588
6ea815e7
PFC
5892020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
590
591 PR breakpoints/26385
592 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
593 Always clear watchpoint with PTRACE_SET_DEBUGREG.
594
6e562fa3
PFC
5952020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
596
597 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
598 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
599 and >= to check return value instead of == -1 and != -1.
600
d369b608
SM
6012020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * utils.h (class gdb_argv) <as_array_view>: New method.
604 * utils.c (gdb_argv_as_array_view_test): New.
605 (_initialize_utils): Register selftest.
606 * maint.c (maintenance_selftest): Use the new method.
607
b31488a3
KR
6082020-08-13 Kamil Rytarowski <n54@gmx.com>
609
610 * target.h (supports_dumpcore, dumpcore): New
611 function declarations.
612 * target.c (supports_dumpcore, dumpcore): New
613 functions.
614 * target-delegates.c: Rebuild.
615 * gcore.c (gcore_command): Use target_supports_dumpcore ()
616 and target_dumpcore ().
617
002a3166
AM
6182020-08-13 Aaron Merey <amerey@redhat.com>
619
620 * debuginfod-support.c: Replace global variables with user_data.
621
ece5bc8a
SM
6222020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * maint.c (maintenance_selftest): Split args and pass array_view
625 to run_tests.
626
6d8a0a5e
LM
6272020-08-12 Luis Machado <luis.machado@linaro.org>
628
629 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
630 type's length.
631 Use %s and pulongest to print the length.
632
7cf663a9
PA
6332020-08-12 Pedro Alves <palves@redhat.com>
634
635 * NEWS: Move "Multi-target debugging support" item to the
636 "Changes since GDB 9" section.
637
27c7b875
PA
6382020-08-12 Pedro Alves <palves@redhat.com>
639
640 PR gdb/26336
641 * progspace.c (program_space::remove_objfile): Invalidate the
642 frame cache.
643
1796a2a1
TV
6442020-08-11 Tom de Vries <tdevries@suse.de>
645
646 * MAINTAINERS: Mark ms1 as deleted.
647
f8e3fe0d
LM
6482020-08-10 Luis Machado <luis.machado@linaro.org>
649
650 PR gdb/26310
651
652 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
653 act accordingly.
654 (aarch64_analyze_prologue_test): Add more unit tests to exercise
655 movz/str/stur/stp skipping behavior.
656
cc308722
LM
6572020-08-10 Luis Machado <luis.machado@linaro.org>
658
659 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
660 struct user_sve_header instead of struct sve_context.
661
041d9819
SM
6622020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * read.h (dwarf2_fetch_die_loc_sect_off,
665 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
666 `void *` parameter with function_view.
667 * read.c (dwarf2_fetch_die_loc_sect_off,
668 dwarf2_fetch_die_loc_cu_off): Likewise.
669 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
670 (per_cu_dwarf_call): Adjust.
671 (get_frame_address_in_block_wrapper): Remove.
672 (indirect_synthetic_pointer): Adjust.
673 (get_ax_pc): Remove.
674 (dwarf2_compile_expr_to_ax): Adjust.
675
38f8aa06
TV
6762020-08-08 Tom de Vries <tdevries@suse.de>
677
678 PR build/26344
679 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
680 constructor.
681 * regcache.c (get_thread_arch_aspace_regcache): Same.
682
a52b3ae2
TT
6832020-08-07 Tom Tromey <tromey@adacore.com>
684
685 * ravenscar-thread.c
686 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
687 New method.
688 (ravenscar_thread_target::wait): Check
689 runtime_initialized.
690 (ravenscar_thread_target::prepare_to_store)
691 (ravenscar_thread_target::stopped_by_sw_breakpoint)
692 (ravenscar_thread_target::stopped_by_hw_breakpoint)
693 (ravenscar_thread_target::stopped_by_watchpoint)
694 (ravenscar_thread_target::stopped_data_address)
695 (ravenscar_thread_target::core_of_thread): Use
696 scoped_restore_current_thread and
697 set_base_thread_from_ravenscar_task.
698
0e29517d
TT
6992020-08-07 Tom Tromey <tromey@adacore.com>
700
701 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
702
592f9bd7
TT
7032020-08-07 Tom Tromey <tromey@adacore.com>
704
705 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
706 update_inferior_ptid before update_thread_list.
707 (temporarily_change_regcache_ptid): New class.
708 (ravenscar_thread_target::fetch_registers)
709 (ravenscar_thread_target::store_registers)
710 (ravenscar_thread_target::prepare_to_store): Use base thread when
711 forwarding operation.
712
39e2018a
TT
7132020-08-07 Tom Tromey <tromey@adacore.com>
714
715 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
716 "is_pid" case.
717
2080266b
TT
7182020-08-07 Tom Tromey <tromey@adacore.com>
719
720 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
721 New methods.
722 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
723 first.
724 (ravenscar_thread_target::add_thread): Rename from
725 ravenscar_add_thread.
726 (ravenscar_thread_target::update_thread_list): Use a lambda.
727 (ravenscar_thread_target::xfer_partial): New method.
728
78c02f21
TT
7292020-08-07 Tom Tromey <tromey@adacore.com>
730
731 * ada-lang.h (ada_task_list_iterator_ftype): Now a
732 gdb::function_view.
733 (iterate_over_live_ada_tasks): Change type of argument.
734 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
735 of argument.
736
d5d833af
TT
7372020-08-07 Tom Tromey <tromey@adacore.com>
738
739 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
740 Remove.
741 (ravenscar_thread_target::extra_thread_info): Remove.
742 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
743 defer to target beneath for non-Ravenscar threads.
744
a8ac85bb
TT
7452020-08-07 Tom Tromey <tromey@adacore.com>
746
747 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
748 get_base_thread_from_ravenscar_task>: Now methods.
749 <m_cpu_map>: New member.
750 (ravenscar_thread_target::get_thread_base_cpu): Rename from
751 ravenscar_get_thread_base_cpu. Check m_cpu_map.
752 (ravenscar_thread_target::task_is_currently_active): Update.
753 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
754 Now a method.
755 (ravenscar_thread_target::add_active_thread): Put initial thread
756 into the m_cpu_map.
757
550ab58d
TT
7582020-08-07 Tom Tromey <tromey@adacore.com>
759
760 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
761 event_ptid.
762
e9546579
TT
7632020-08-07 Tom Tromey <tromey@adacore.com>
764
765 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
766 runtime_initialized.
767
3d4470e5
TT
7682020-08-07 Tom Tromey <tromey@adacore.com>
769
770 * ravenscar-thread.c (ravenscar_thread_target): Don't call
771 add_active_thread.
772 (ravenscar_thread_target::add_active_thread): Now public.
773 (ravenscar_inferior_created): Call add_active_thread after pushing
774 the target.
775
888bdb2b
SM
7762020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * regcache.c (ptid_regcache_map): New type.
779 (target_ptid_regcache_map): New type.
780 (regcaches): Change type to target_ptid_regcache_map.
781 (get_thread_arch_aspace_regcache): Update to regcaches' new
782 type.
783 (regcache_thread_ptid_changed): Likewise.
784 (registers_changed_ptid): Likewise.
785 (regcaches_size): Likewise.
786 (regcaches_test): Update.
787 (regcache_thread_ptid_changed): Update.
788 * regcache.h (regcache_up): New type.
789 * gdbsupport/ptid.h (hash_ptid): New struct.
790
b161a60d
SM
7912020-08-07 Simon Marchi <simon.marchi@efficios.com>
792
793 * observable.h (thread_ptid_changed): Add parameter
794 `process_stratum_target *`.
795 * infrun.c (infrun_thread_ptid_changed): Add parameter
796 `process_stratum_target *` and use it.
797 (selftests): New namespace.
798 (infrun_thread_ptid_changed): New function.
799 (_initialize_infrun): Register selftest.
800 * regcache.c (regcache_thread_ptid_changed): Add parameter
801 `process_stratum_target *` and use it.
802 (regcache_thread_ptid_changed): New function.
803 (_initialize_regcache): Register selftest.
804 * thread.c (thread_change_ptid): Pass target to
805 thread_ptid_changed observable.
806
d2854d8d
CT
8072020-08-06 Caroline Tice <cmtice@google.com>
808
fe4c3d43
SM
809 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
810 (struct dwp_sections): Update field comments. Add loclists and
811 rnglists fields.
812 (struct virtual_v2_dwo_sections): Rename struct to
813 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
814 size & offset fields for loclists and rnglists.
815 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
816 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
817 skipping dummy type units.
818 (create_dwp_hash_table): Update the large comment above the function to
819 discuss Version 5 DWP files as well, with references. Update all the
820 version checks in the function to check for version 5 as well. Add new
821 section at the end to create dwp hash table for version 5.
822 (create_dwp_v2_section): Rename function to
823 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
824 Add V5 to error message text.
825 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
826 into calls to create_dwp_v2_or_v5_section.
827 (create_dwo_unit_in_dwp_v5): New function.
828 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
829 check for version2; add else clause to handle version 5.
830 (open_and_init_dwo_file): Add code to check dwarf version & only call
831 create_debug_types_hash_table (with sections.types) if version is not 5;
832 else call create_debug_type_hash_table, with sections.info.
833 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
834 version 5.
835 (dwarf2_locate_v5_dwp_sections): New function.
836 (open_and_init_dwp_file): Add else-if clause for version 5 to call
837 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 838
159ed7d9
SM
8392020-08-06 Simon Marchi <simon.marchi@efficios.com>
840
841 * regcache.h (class regcache): Remove friend
842 registers_changed_ptid.
843 <regcache_thread_ptid_changed>: Remove.
844 <regcaches>: Remove.
845 * regcache.c (regcache::regcaches): Rename to...
846 (regcaches): ... this. Make static.
847 (get_thread_arch_aspace_regcache): Update.
848 (regcache::regcache_thread_ptid_changed): Rename to...
849 (regcache_thread_ptid_changed): ... this. Update.
850 (class regcache_access): Remove.
851 (regcaches_test): Update.
852 (_initialize_regcache): Update.
853 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
854 <forward_list>.
855
174981ae
SM
8562020-08-06 Simon Marchi <simon.marchi@efficios.com>
857
858 * regcache.h (class regcache) <current_regcache>: Rename to...
859 <regcaches>: ... this. Move doc here.
860 * regcache.c (regcache::current_regcache) Rename to...
861 (regcache::regcaches): ... this. Move doc to header.
862 (get_thread_arch_aspace_regcache): Update.
863 (regcache::regcache_thread_ptid_changed): Update.
864 (registers_changed_ptid): Update.
865 (class regcache_access) <current_regcache_size>: Rename to...
866 <regcaches_size>: ... this.
867 (current_regcache_test): Rename to...
868 (regcaches_test): ... this.
869 (_initialize_regcache): Update.
870
ed908db6
VC
8712020-08-06 Victor Collod <vcollod@nvidia.com>
872
873 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
874
b5582ab7
KB
8752020-08-05 Kevin Buettner <kevinb@redhat.com>
876
877 * corelow.c (core_target::build_file_mappings): Don't output
878 null pathname in warning.
879
ea946b86
SM
8802020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
881
882 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
883 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
884 gdb.dwarf2/dw2-single-line-discriminators.exp,
885 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
886
57d02173
TT
8872020-08-05 Tom Tromey <tromey@adacore.com>
888
889 PR rust/26197:
890 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
891 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
892 Fix off-by-one and type size errors in ordinary case.
893
5555c86d
TV
8942020-08-05 Tom de Vries <tdevries@suse.de>
895
896 * gdbtypes.c (type_not_allocated, type_not_associated): Use
897 "prop->const_val () == 0" instead of "prop->const_val () != 0".
898
97916bfe
SM
8992020-08-04 Simon Marchi <simon.marchi@efficios.com>
900
901 * frame.h (frame_id_p): Return bool.
902 (frame_id_artificial_p): Return bool.
903 (frame_id_eq): Return bool.
904 (has_stack_frames): Return bool.
905 (get_selected_frame): Fix typo in comment.
906 (get_frame_pc_if_available): Return bool.
907 (get_frame_address_in_block_if_available): Return bool.
908 (get_frame_func_if_available): Return bool.
909 (read_frame_register_unsigned): Return bool.
910 (get_frame_register_bytes): Return bool.
911 (safe_frame_unwind_memory): Return bool.
912 (deprecated_frame_register_read): Return bool.
913 (frame_unwinder_is): Return bool.
914 * frame.c (struct frame_info) <prev_arch::p>: Change type to
915 bool.
916 <this_id::p>: Likewise.
917 <prev_p>: Likewise.
918 (frame_stash_add): Return bool.
919 (get_frame_id): Use bool.
920 (frame_id_build_special) Use bool.
921 (frame_id_build_unavailable_stack): Use bool.
922 (frame_id_build): Use bool.
923 (frame_id_p): Return bool, use true/false instead of 1/0.
924 (frame_id_artificial_p): Likewise.
925 (frame_id_eq): Likewise.
926 (frame_id_inner): Likewise.
927 (get_frame_func_if_available): Likewise.
928 (read_frame_register_unsigned): Likewise.
929 (deprecated_frame_register_read): Likewise.
930 (get_frame_register_bytes): Likewise.
931 (has_stack_frames): Likewise.
932 (inside_main_func): Likewise.
933 (inside_entry_func): Likewise.
934 (get_frame_pc_if_available): Likewise.
935 (get_frame_address_in_block_if_available): Likewise.
936 (frame_unwinder_is): Likewise.
937 (safe_frame_unwind_memory): Likewise.
938 (frame_unwind_arch): Likewise.
939
fedfee88
SM
9402020-08-04 Simon Marchi <simon.marchi@efficios.com>
941
942 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
943 type to cached_copy_status.
944 (fprintf_frame): Adjust.
945 (get_frame_func_if_available): Adjust.
946 (frame_cleanup_after_sniffer): Adjust.
947
6cfa9b59
MW
9482020-08-04 Mark Wielaard <mark@klomp.org>
949
950 * MAINTAINERS (Write After Approval): Update email address.
951
66d6346b
SM
9522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
955 dynamic_prop::const_val.
956
8a6d5e35
SM
9572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
960 dynamic_prop::kind.
961
51d6067d
SM
9622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
965
b26e2ae7
JM
9662020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
967
968 * configure.tgt: Set gdb_sim for bpf-*-* targets.
969
39791af2
JM
9702020-08-04 Weimin Pan <weimin.pan@oracle.com>
971 Jose E. Marchesi <jose.marchesi@oracle.com>
972
973 * configure.tgt: Add entry for bpf-*-*.
974 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
975 (ALLDEPFILES): Add bpf-tdep.c.
976 * bpf-tdep.c: New file.
977 * MAINTAINERS: Add bpf target and maintainer.
978 * NEWS: Mention the support for the new target.
979
521894aa
TV
9802020-08-04 Tom de Vries <tdevries@suse.de>
981
982 PR symtab/23270
983 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
984 Error.
985
5d6356e9
JB
9862020-08-03 John Baldwin <jhb@FreeBSD.org>
987
988 * syscalls/freebsd.xml: Regenerate.
989
0cf82b81
JB
9902020-08-03 John Baldwin <jhb@FreeBSD.org>
991
992 * syscalls/update-freebsd.sh: Fix usage and year range.
993
8f34b746
TV
9942020-08-03 Tom de Vries <tdevries@suse.de>
995
996 PR symtab/26333
997 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
998 DW_LNE_lo_user/DW_LNE_hi_user range.
999
5e500d33
SM
10002020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 PR ada/26318
1003 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1004 kind.
1005
78319c15
TBA
10062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1007
1008 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1009
4c55e970
TBA
10102020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011
1012 * breakpoint.c (set_breakpoint_condition): Update the condition
1013 expressions after checking that the input condition string parses
1014 successfully and does not contain junk at the end.
1015
1e620590
TBA
10162020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1017
1018 * breakpoint.c (set_breakpoint_condition): Update the
1019 condition string after parsing the new condition successfully.
1020
c8693053
RO
10212020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1022
1023 * proc-api.c (_STRUCTURED_PROC): Don't define.
1024 * proc-events.c: Likewise.
1025 * proc-flags.c: Likewise.
1026 * proc-why.c: Likewise.
1027 * procfs.c: Likewise.
1028
1029 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1030 * configure, config.in: Regenerate.
1031
5a99adb8
TV
10322020-07-30 Tom de Vries <tdevries@suse.de>
1033
1034 PR build/26320
1035 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1036 m_red/m_green/m_blue in a union.
1037
8ba83e91
TV
10382020-07-29 Tom de Vries <tdevries@suse.de>
1039
1040 PR tdep/26280
1041 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1042
f75a0693
AB
10432020-07-28 Tom Tromey <tromey@adacore.com>
1044
1045 PR symtab/26270:
1046 * symtab.h (find_pc_partial_function_sym): Declare.
1047 * cli/cli-cmds.c (disassemble_command): Use
1048 find_pc_partial_function_sym. Check asm_demangle.
1049 * blockframe.c (cache_pc_function_sym): New global.
1050 (cache_pc_function_name): Remove.
1051 (clear_pc_function_cache): Update.
1052 (find_pc_partial_function_sym): New function, from
1053 find_pc_partial_function.
1054 (find_pc_partial_function): Rewrite using
1055 find_pc_partial_function_sym.
1056
16f3242c
TT
10572020-07-28 Tom Tromey <tromey@adacore.com>
1058
1059 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1060 help. Add usage.
1061
4888741a
TT
10622020-07-28 Tom Tromey <tromey@adacore.com>
1063
1064 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1065 <DW_OP_GNU_variable_value>: Cast to address type.
1066
4d46f402
KR
10672020-07-28 Kamil Rytarowski <n54@gmx.com>
1068
1069 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1070 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1071 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1072 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1073 (nbsd_get_siginfo_type): New.
1074 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1075 (_initialize_nbsd_tdep): New.
1076
d70f978b
L
10772020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR binutils/26301
1080 * configure: Regenerated.
1081
377170fa
L
10822020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 PR binutils/26301
1085 * configure: Regenerated.
1086
43d5901d
AB
10872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * python/py-frame.c: Remove 'user-regs.h' include.
1090 (frapy_read_register): Rewrite to make use of
1091 gdbpy_parse_register_id.
1092 * python/py-registers.c (gdbpy_parse_register_id): New function,
1093 moved here from python/py-unwind.c. Updated the return type, and
1094 also accepts register descriptor objects.
1095 * python/py-unwind.c: Remove 'user-regs.h' include.
1096 (pyuw_parse_register_id): Moved to python/py-registers.c.
1097 (unwind_infopy_add_saved_register): Update to use
1098 gdbpy_parse_register_id.
1099 (pending_framepy_read_register): Likewise.
1100 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1101
14fa8fb3
AB
11022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * python/py-registers.c: Add 'user-regs.h' include.
1105 (register_descriptor_iter_find): New function.
1106 (register_descriptor_iterator_object_methods): New static global
1107 methods array.
1108 (register_descriptor_iterator_object_type): Add pointer to methods
1109 array.
1110
ddce1758
JB
11112020-07-27 John Baldwin <jhb@FreeBSD.org>
1112
1113 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1114 for all architectures on FreeBSD 11.3 and later.
1115
a4089f52
TT
11162020-07-27 Tom Tromey <tromey@adacore.com>
1117
1118 * gcore.h (load_corefile): Don't declare.
1119
95420d30
TV
11202020-07-27 Tom de Vries <tdevries@suse.de>
1121
1122 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1123 * config.in: Regenerate.
1124 * configure: Regenerate.
1125
05a6b8c2
EZ
11262020-07-26 Eli Zaretskii <eliz@gnu.org>
1127
1128 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1129 ws2tcpip.h. When checking whether socklen_t type is defined, use
1130 ws2tcpip.h if it is available and sys/socket.h isn't.
1131 * configure: Regenerate.
1132 * config.in: Regenerate.
1133
e79eb02f
AB
11342020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 PR fortran/23051
1137 PR fortran/26139
1138 * valops.c (value_ind): Pass address to
1139 readjust_indirect_value_type.
1140 * value.c (readjust_indirect_value_type): Make parameter
1141 non-const, and add extra address parameter. Resolve original type
1142 before using it.
1143 * value.h (readjust_indirect_value_type): Update function
1144 signature and comment.
1145
876518dd
TV
11462020-07-25 Tom de Vries <tdevries@suse.de>
1147
1148 PR symtab/26243
1149 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1150 entries.
1151
f6720b1c
AM
11522020-07-24 Aaron Merey <amerey@redhat.com>
1153
1154 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1155 * configure: Rebuild.
1156
513487e1
KB
11572020-07-23 Kevin Buettner <kevinb@redhat.com>
1158
1159 PR corefiles/26294
1160 * corelow.c (_initialize_corelow): Add period to help text
1161 for "maintenance print core-file-backed-mappings".
1162
e7bc9db8
PA
11632020-07-23 Pedro Alves <pedro@palves.net>
1164
1165 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1166 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1167 meanwhile.
1168 * frame.c (frame_cache_generation, get_frame_cache_generation):
1169 New.
1170 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1171 (get_prev_frame_if_no_cycle): On exception, don't touch
1172 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1173 * frame.h (get_frame_cache_generation): Declare.
1174
90fcc466
TV
11752020-07-23 Tom de Vries <tdevries@suse.de>
1176
1177 PR tui/26282
1178 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1179 New default constructor.
1180
78344df7
AB
11812020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1184 exclude non-statement entries.
1185
b089853a
KB
11862020-07-22 Kevin Buettner <kevinb@redhat.com>
1187
1188 * NEWS (New commands): Mention new command
1189 "maintenance print core-file-backed-mappings".
1190
09c2f5d4
KB
11912020-07-22 Kevin Buettner <kevinb@redhat.com>
1192
1193 * corelow.c (gdbcmd.h): Include.
1194 (core_target::info_proc_mappings): New method.
1195 (get_current_core_target): New function.
1196 (maintenance_print_core_file_backed_mappings): New function.
1197 (_initialize_corelow): Add core-file-backed-mappings to
1198 "maint print" commands.
1199
9c5ec5c2 12002020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1201
9c5ec5c2
KB
1202 * linux-tdep.c (dump_note_entry_p): New function.
1203 (linux_dump_mapping_p_ftype): New typedef.
1204 (linux_find_memory_regions_full): Add new parameter,
1205 should_dump_mapping_p.
1206 (linux_find_memory_regions): Adjust call to
1207 linux_find_memory_regions_full.
1208 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1209 call to linux_find_memory_regions_full.
1210
db082f59
KB
12112020-07-22 Kevin Buettner <kevinb@redhat.com>
1212
1213 * corelow.c (solist.h, unordered_map): Include.
1214 (class core_target): Add field m_core_file_mappings and
1215 method build_file_mappings.
1216 (core_target::core_target): Call build_file_mappings.
1217 (core_target::~core_target): Free memory associated with
1218 m_core_file_mappings.
1219 (core_target::build_file_mappings): New method.
1220 (core_target::xfer_partial): Use m_core_file_mappings
1221 for memory transfers.
1222 * linux-tdep.c (linux_read_core_file_mappings): New
1223 function.
1224 (linux_core_info_proc_mappings): Rewrite to use
1225 linux_read_core_file_mappings.
1226 (linux_init_abi): Register linux_read_core_file_mappings.
1227
7e183d27
KB
12282020-07-22 Kevin Buettner <kevinb@redhat.com>
1229
1230 * arch-utils.c (default_read_core_file_mappings): New function.
1231 * arch-utils.c (default_read_core_file_mappings): Declare.
1232 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1233 * gdbarch.h, gdbarch.c: Regenerate.
1234
2735d421
KB
12352020-07-22 Kevin Buettner <kevinb@redhat.com>
1236
1237 PR corefiles/25631
1238 * corelow.c (core_target:xfer_partial): Revise
1239 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1240 case after first checking the stratum beneath the core
1241 target.
1242 (has_all_memory): Return true.
1243 * target.c (raw_memory_xfer_partial): Revise comment
1244 regarding use of has_all_memory.
1245
e56cb451
KB
12462020-07-22 Kevin Buettner <kevinb@redhat.com>
1247
1248 * exec.h (section_table_xfer_memory): Revise declaration,
1249 replacing section name parameter with an optional callback
1250 predicate.
1251 * exec.c (section_table_xfer_memory): Likewise.
1252 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1253 of section_table_xfer_memory.
1254
32fa152e
TT
12552020-07-22 Tom Tromey <tromey@adacore.com>
1256
1257 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1258 lookup_symbol_search_name.
1259
a67a1c41
AB
12602020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1263 redundant local variable.
1264 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1265 reference, not pointer, update code accordingly.
1266
a7b4ff4f
SM
12672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1268 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1269
1270 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1271 * jit.c (jit_breakpoint_re_set_internal): Use the
1272 `skip_jit_symbol_lookup` field.
1273
2340e834
SM
12742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1275 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276
1277 * jit.c (jit_read_descriptor): Define the descriptor address once,
1278 use twice.
1279 (jit_breakpoint_deleted): Move the declaration of the loop variable
1280 `iter` into the loop header.
1281 (jit_breakpoint_re_set_internal): Move the declaration of the local
1282 variable `objf_data` to the first point of definition.
1283 (jit_event_handler): Move the declaration of local variables
1284 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1285 Rename `objf` to `jited`.
1286
c1072906
SM
12872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1290 Remove.
1291 * jit.c (get_jiter_objfile_data): Update.
1292
c8474dc3
TBA
12932020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1294 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * jit.c (struct jit_program_space_data): Remove.
1297 (jit_program_space_key): Remove.
1298 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1299 stuff.
1300 (get_jit_program_space_data): Remove.
1301 (jit_breakpoint_deleted): Iterate on all of the program space's
1302 objfiles.
1303 (jit_inferior_init): Likewise.
1304 (jit_breakpoint_re_set_internal): Likewise. Also change return
1305 type to void.
1306 (jit_breakpoint_re_set): Pass current_program_space to
1307 jit_breakpoint_re_set_internal.
1308
77208eb7
SM
13092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * jit.h (struct jiter_objfile_data) <cached_code_address,
1312 jit_breakpoint>: Move to here from ...
1313 * jit.c (jit_program_space_data): ... here.
1314 (jiter_objfile_data::~jiter_objfile_data): Update.
1315 (jit_breakpoint_deleted): Update.
1316 (jit_breakpoint_re_set_internal): Update.
1317
8c1c720f
SM
13182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1321 checks.
1322 (jit_read_descriptor): Remove NULL check.
1323 (jit_event_handler): Add an assertion.
1324
0e74a041
SM
13252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * jit.h (struct jit_objfile_data): Split into...
1328 (struct jiter_objfile_data): ... this ...
1329 (struct jited_objfile_data): ... and this.
1330 * objfiles.h (struct objfile) <jit_data>: Remove.
1331 <jiter_data, jited_data>: New fields.
1332 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1333 (jiter_objfile_data::~jiter_objfile_data): ... this.
1334 (get_jit_objfile_data): Rename to ...
1335 (get_jiter_objfile_data): ... this.
1336 (add_objfile_entry): Update.
1337 (jit_read_descriptor): Use get_jiter_objfile_data.
1338 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1339 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1340 (jit_inferior_exit_hook): Use objfile's jited_data field.
1341
238b5c9f
SM
13422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * jit.h: Forward-declare `struct minimal_symbol`.
1345 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1346 constructor, destructor, and an objfile* field.
1347 * jit.c (jit_objfile_data): Remove.
1348 (struct jit_objfile_data): Migrate from here to jit.h.
1349 (jit_objfile_data::~jit_objfile_data): New destructor
1350 implementation with code moved from free_objfile_data.
1351 (free_objfile_data): Delete.
1352 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1353 (jit_find_objf_with_entry_addr): Ditto.
1354 (jit_inferior_exit_hook): Ditto.
1355 (_initialize_jit): Remove the call to
1356 register_objfile_data_with_cleanup.
1357 * objfiles.h (struct objfile) <jit_data>: New field.
1358
fe053b9e
TBA
13592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360
1361 * jit.h: Forward-declare `struct objfile`.
1362 (jit_event_handler): Add a second parameter, the JITer objfile.
1363 * jit.c (jit_read_descriptor): Change the signature to take the
1364 JITer objfile as an argument instead of the jit_program_space_data.
1365 (jit_inferior_init): Update the call to jit_read_descriptor.
1366 (jit_event_handler): Use the new JITer objfile argument when calling
1367 jit_read_descriptor.
1368 * breakpoint.c (handle_jit_event): Update the call to
1369 jit_event_handler to pass the JITer objfile.
1370
4cec0c66
JB
13712020-07-21 John Baldwin <jhb@FreeBSD.org>
1372
1373 * gdbarch.c: Regenerate.
1374 * gdbarch.h: Regenerate.
1375 * gdbarch.sh (handle_segmentation_fault): Remove method.
1376 * infrun.c (handle_segmentation_fault): Remove.
1377 (print_signal_received_reason): Remove call to
1378 handle_segmentation_fault.
1379
0e42f66a
JB
13802020-07-21 John Baldwin <jhb@FreeBSD.org>
1381
1382 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1383 Rename to sparc64_linux_report_signal_info and add siggnal
1384 argument.
1385 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1386 instead of sparc64_linux_handle_segmentation_fault.
1387
77bdfeb2
JB
13882020-07-21 John Baldwin <jhb@FreeBSD.org>
1389
1390 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1391 i386_linux_report_signal_info instead of
1392 i386_linux_handle_segmentation_fault.
1393 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1394 to i386_linux_report_signal_info and add siggnal argument.
1395 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1396 of i386_linux_handle_segmentation_fault.
1397 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1398 to i386_linux_report_signal_info and add siggnal argument.
1399
ad97bfc5
JB
14002020-07-21 John Baldwin <jhb@FreeBSD.org>
1401
1402 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1403 hook if present.
1404
272bb05c
JB
14052020-07-21 John Baldwin <jhb@FreeBSD.org>
1406
1407 * gdbarch.c: Regenerate.
1408 * gdbarch.h: Regenerate.
1409 * gdbarch.sh (report_signal_info): New method.
1410 * infrun.c (print_signal_received_reason): Invoke gdbarch
1411 report_signal_info hook if present.
1412
baf8791e
AB
14132020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * python/py-registers.c : Add 'unordered_map' include.
1416 (gdbpy_new_reggroup): Renamed to...
1417 (gdbpy_get_reggroup): ...this. Update to only create register
1418 group descriptors when needed.
1419 (gdbpy_reggroup_iter_next): Update.
1420
f7306dac
AB
14212020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * python/py-registers.c (gdbpy_register_object_data): New static
1424 global.
1425 (gdbpy_register_object_data_init): New function.
1426 (gdbpy_new_register_descriptor): Renamed to...
1427 (gdbpy_get_register_descriptor): ...this, and update to reuse
1428 existing register descriptors where possible.
1429 (gdbpy_register_descriptor_iter_next): Update.
1430 (gdbpy_initialize_registers): Register new gdbarch data.
1431
05c309a8
SM
14322020-07-21 Simon Marchi <simon.marchi@efficios.com>
1433
1434 * linux-nat.c (stopped_pids): Make static.
1435
d1fd641e
SM
14362020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1437
1438 PR ada/26235
1439 * gdbtypes.c (ada_discrete_type_low_bound,
1440 ada_discrete_type_high_bound): Handle undefined bounds.
1441
1de14d77
KR
14422020-07-21 Kamil Rytarowski <n54@gmx.com>
1443
1444 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1445 declaration.
1446 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1447 function.
1448
ed810cc7
JB
14492020-07-20 John Baldwin <jhb@FreeBSD.org>
1450
1451 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1452 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1453 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1454 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1455 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1456 method.
1457
ae5369e7
LC
14582020-07-20 Ludovic Courtès <ludo@gnu.org>
1459
1460 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1461 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1462 which are deprecated in Guile 3.0.
1463 * configure.ac (try_guile_versions): Add "guile-3.0".
1464 * configure (try_guile_versions): Regenerate.
1465 * NEWS: Update entry.
1466
68cf161c
LC
14672020-07-20 Ludovic Courtès <ludo@gnu.org>
1468 Doug Evans <dje@google.com>
1469
1470 PR gdb/21104
1471 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1472 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1473 USING_GUILE_BEFORE_2_2.
1474 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1475 Change type to 'scm_t_port_type *'.
1476 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1477 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1478 parameter and honor it. Update callers.
1479 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1480 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1481 functions.
1482 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1483 USING_GUILE_BEFORE_2_2.
1484 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1485 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1486 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1487 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1488 and 'SCM_PORT_TYPE'.
1489 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1490 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1491 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1492 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1493 [!USING_GUILE_BEFORE_2_2]: New functions.
1494 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1495 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1496 'gdbscm_memory_port_read'.
1497 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1498 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1499 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1500 function.
1501 (ioscm_init_memory_port): Remove.
1502 (ioscm_init_memory_port_stream): New function
1503 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1504 function.
1505 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1506 Return scm_from_uint (0).
1507 (gdbscm_set_memory_port_read_buffer_size_x)
1508 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1509 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1510 Return scm_from_uint (0).
1511 (gdbscm_set_memory_port_write_buffer_size_x)
1512 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1513 * configure.ac (try_guile_versions): Add "guile-2.2".
1514 * configure: Regenerate.
1515 * NEWS: Add entry.
1516
aee91db3
TT
15172020-07-18 Tom Tromey <tom@tromey.com>
1518
1519 * linux-nat.c (linux_multi_process): Remove.
1520 (linux_nat_target::supports_multi_process): Return true.
1521
0e267416
AB
15222020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1525 (riscv_lookup_target_description): Return pointer out of
1526 unique_ptr.
1527 * target-descriptions.c (allocate_target_description): Add
1528 comment.
1529 (target_desc_deleter::operator()): Likewise.
1530 * target-descriptions.h (struct target_desc_deleter): Moved to
1531 gdbsupport/tdesc.h.
1532 (target_desc_up): Likewise.
1533
f80c8ec4
TT
15342020-07-17 Tom Tromey <tromey@adacore.com>
1535
1536 * linux-nat.c (linux_nat_target::supports_non_stop)
1537 (linux_nat_target::always_non_stop_p): Use "true".
1538 (linux_nat_target::supports_disable_randomization): Use "true" and
1539 "false".
1540
d0ce17d8
CT
15412020-07-16 Caroline Tice <cmtice@google.com>
1542
1543 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1544 (RNGLIST_HEADER_SIZE64): New constant definition.
1545 (struct dwop_section_names): Add rnglists_dwo.
1546 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1547 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1548 (struct dwo_sections): Add rnglists field.
1549 (read_attribut_reprocess): Add tag parameter.
1550 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1551 (cu_debug_rnglists_section): New function (decl & definition).
1552 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1553 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1554 die whose range is being checked; get rnglist section from
1555 cu_debug_rnglists_section, to get from either objfile or dwo file as
1556 appropriate. Add cases for DW_RLE_base_addressx,
1557 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1558 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1559 test inside if-condition and updating complaint message.
1560 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1561 dwarf2_rnglists_process.
1562 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1563 dwarf2_ranges_process.
1564 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1565 need_ranges_base and update comment appropriately. Also pass die tag
1566 to dwarf2_ranges_read.
1567 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1568 need_ranges_base and update comment appropriately. Also pass die tag
1569 to dwarf2_ranges_process.
1570 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1571 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1572 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1573 need_ranges_base and update comment appropriately. Also pass die tag
1574 to read_attribute_reprocess and dwarf2_ranges_read.
1575 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1576 and update function comment appropriately.
1577 (read_loclist_index): Call read_loclists_rnglists_header instead of
1578 read_loclist_header.
1579 (read_rnglist_index): New function.
1580 (read_attribute_reprocess): Add tag parameter. Add code for
1581 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1582 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1583
3dcc261c
AB
15842020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1587 being resolved.
1588
ccb9eba6
AB
15892020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * arch-utils.c (show_architecture): Update formatting of messages.
1592
cf88be68
SM
15932020-07-12 Simon Marchi <simon.marchi@efficios.com>
1594
1595 * gdbtypes.h (struct type) <bounds>: Handle array and string
1596 types.
1597 * ada-lang.c (assign_aggregate): Use type::bounds on
1598 array/string type.
1599 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1600 * c-varobj.c (c_number_of_children): Likewise.
1601 (c_describe_child): Likewise.
1602 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1603 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1604 (f_type_print_base): Likewise.
1605 * f-valprint.c (f77_array_offset_tbl): Likewise.
1606 (f77_get_upperbound): Likewise.
1607 (f77_print_array_1): Likewise.
1608 * guile/scm-type.c (gdbscm_type_range): Likewise.
1609 * m2-typeprint.c (m2_array): Likewise.
1610 (m2_is_long_set_of_type): Likewise.
1611 * m2-valprint.c (get_long_set_bounds): Likewise.
1612 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1613 * python/py-type.c (typy_range): Likewise.
1614 * rust-lang.c (rust_internal_print_type): Likewise.
1615 * type-stack.c (type_stack::follow_types): Likewise.
1616 * valarith.c (value_subscripted_rvalue): Likewise.
1617 * valops.c (value_cast): Likewise.
1618
509971ae
SM
16192020-07-12 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1622 callers to use the equivalent accessor methods.
1623
107406b7
SM
16242020-07-12 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1627 (struct type) <bit_stride>: New method.
1628 (TYPE_BIT_STRIDE): Remove.
1629 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1630
bb789949
SM
16312020-07-12 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1634 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1635 callers to use the equivalent accessor methods instead.
1636
39498edb
SM
16372020-07-12 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1640 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1641 callers to use the equivalent accessor methods instead.
1642
3b606f38
SM
16432020-07-12 Simon Marchi <simon.marchi@efficios.com>
1644
1645 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1646 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1647 to use dynamic_prop::kind.
1648
064d9cb9
SM
16492020-07-12 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1652 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1653 to get the bound property's kind and check against
1654 PROP_UNDEFINED.
1655
5537ddd0
SM
16562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1659 all callers to use type::range_bounds followed by
1660 dynamic_prop::{low,high}.
1661
8c2e4e06
SM
16622020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1665 const_val, set_const_val, baton, set_locexpr, set_loclist,
1666 set_addr_offset, variant_parts, set_variant_parts,
1667 original_type, set_original_type>: New methods.
1668 <kind>: Rename to...
1669 <m_kind>: ... this. Update all users to use the new methods
1670 instead.
1671 <data>: Rename to...
1672 <m_data>: ... this. Update all users to use the new methods
1673 instead.
1674
7c6f2712
SM
16752020-07-12 Simon Marchi <simon.marchi@efficios.com>
1676
1677 * gdbtypes.c (get_discrete_bounds): Return failure if
1678 the range type's bounds are not both defined and constant
1679 values.
1680 (get_array_bounds): Update comment. Remove undefined bound check.
1681
599088e3
SM
16822020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1685 the type::bounds method directly.
1686
c4dfcb36
SM
16872020-07-12 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1690 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1691 are used to set the range type's bounds to use set_bounds.
1692
0a278aa7
PW
16932020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1694
1695 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1696
cce20f10
PA
16972020-07-10 Pedro Alves <pedro@palves.net>
1698
1699 * gdbthread.h (inferior_ref): Define.
1700 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1701 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1702 * thread.c
1703 (scoped_restore_current_thread::restore):
1704 Adjust to gdb::ref_ptr.
1705 (scoped_restore_current_thread::~scoped_restore_current_thread):
1706 Remove manual decref handling.
1707 (scoped_restore_current_thread::scoped_restore_current_thread):
1708 Adjust to use
1709 inferior_ref::new_reference/thread_info_ref::new_reference.
1710 Incref the thread before calling get_frame_id instead of after.
1711 Let TARGET_CLOSE_ERROR propagate.
1712
6d7aa592
PA
17132020-07-10 Pedro Alves <pedro@palves.net>
1714
1715 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1716 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1717 NOT_AVAILABLE_ERROR.
1718 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1719 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1720
b3e3a4c1
SM
17212020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1722 Pedro Alves <pedro@palves.net>
1723
1724 PR gdb/26199
1725 * infrun.c (threads_are_resumed_pending_p): Delete.
1726 (do_target_wait): Remove threads_are_executing and
1727 threads_are_resumed_pending_p checks from the inferior_matches
1728 lambda. Update comments.
1729
d6cc5d98
PA
17302020-07-10 Pedro Alves <pedro@palves.net>
1731
1732 PR gdb/26199
1733 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1734 executing threads.
1735
7d3badc6
PA
17362020-07-10 Pedro Alves <pedro@palves.net>
1737
1738 PR gdb/26199
1739 * infrun.c (handle_no_resumed): Handle multiple targets.
1740
42bd97a6
PA
17412020-07-10 Pedro Alves <pedro@palves.net>
1742
1743 PR gdb/26199
1744 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1745 target_is_async_p.
1746
43667cc6
PA
17472020-07-10 Pedro Alves <pedro@palves.net>
1748
1749 PR gdb/26199
1750 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1751 threads, not all threads.
1752
96118d11
PA
17532020-07-10 Pedro Alves <pedro@palves.net>
1754
1755 PR gdb/26199
1756 * remote.c (remote_target::open_1): Pass remote target pointer as
1757 data to create_async_event_handler.
1758 (remote_async_inferior_event_handler): Mark async event handler
1759 before returning if the remote target still has either pending
1760 events or unacknowledged notifications.
1761
54904d81
JB
17622020-07-10 John Baldwin <jhb@FreeBSD.org>
1763
1764 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1765 declaration.
1766 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1767 function.
1768
f37e5866
JB
17692020-07-09 John Baldwin <jhb@FreeBSD.org>
1770
1771 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1772 inferior_ptid.
1773
fc238d4a
JB
17742020-07-09 John Baldwin <jhb@FreeBSD.org>
1775
1776 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1777 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1778 AT_FREEBSD_PS_STRINGS.
1779
6e2469ff
HD
17802020-07-08 Hannes Domani <ssbssa@yahoo.de>
1781
1782 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1783 of debugfile path on Windows.
1784
d1076c41
JB
17852020-07-08 John Baldwin <jhb@FreeBSD.org>
1786
1787 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1788 argument to 'data'.
1789
15f3b077
TT
17902020-07-08 Tom Tromey <tromey@adacore.com>
1791
1792 * ada-lang.c (ada_exception_message_1): Use read_memory.
1793
9fc501fd
AB
17942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 PR python/22748
1797 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1798 special handling for inline frames.
1799 * findvar.c (value_of_register_lazy): Skip inline frames when
1800 creating lazy register values.
1801 * frame.c (frame_id_computed_p): Delete definition.
1802 * frame.h (frame_id_computed_p): Delete declaration.
1803
64cb3757
AB
18042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * NEWS: Mention additions to Python API.
1807 * python/py-arch.c (archpy_register_groups): New function.
1808 (arch_object_methods): Add 'register_groups' method.
1809 * python/py-registers.c (reggroup_iterator_object): New struct.
1810 (reggroup_object): New struct.
1811 (gdbpy_new_reggroup): New function.
1812 (gdbpy_reggroup_to_string): New function.
1813 (gdbpy_reggroup_name): New function.
1814 (gdbpy_reggroup_iter): New function.
1815 (gdbpy_reggroup_iter_next): New function.
1816 (gdbpy_new_reggroup_iterator): New function
1817 (gdbpy_initialize_registers): Register new types.
1818 (reggroup_iterator_object_type): Define new Python type.
1819 (gdbpy_reggroup_getset): New static global.
1820 (reggroup_object_type): Define new Python type.
1821 * python/python-internal.h
1822
0f767f94
AB
18232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1826 * python/py-arch.c (archpy_registers): New function.
1827 (arch_object_methods): Add 'registers' method.
1828 * python/py-registers.c: New file.
1829 * python/python-internal.h
1830 (gdbpy_new_register_descriptor_iterator): Declare.
1831 (gdbpy_initialize_registers): Declare.
1832 * python/python.c (do_start_initialization): Call
1833 gdbpy_initialize_registers.
1834 * NEWS: Mention additions to the Python API.
1835
87dbc774
AB
18362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * NEWS: Mention new Python API method.
1839 * python/py-unwind.c (pending_framepy_architecture): New function.
1840 (pending_frame_object_methods): Add architecture method.
1841
3bc98c0c
AB
18422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * gdbarch.c: Regenerate.
1845 * gdbarch.h: Regenerate.
1846 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1847 (gdbarch_data): Use internal_error for the case where
1848 deprecated_set_gdbarch_data was originally needed.
1849 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1850 and use passed in obstack.
1851 (libunwind_frame_set_descr): Should no longer get back NULL from
1852 gdbarch_data.
1853 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1854 type.
1855 * user-regs.c (user_regs_init): Update parameters, and use passed
1856 in obstack.
1857 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1858 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1859
d8cc8af6
TV
18602020-07-06 Tom de Vries <tdevries@suse.de>
1861
1862 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1863 End-Of-Sequence in lte_is_less_than.
1864 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1865 "gdb: Don't reorder line table entries too much when sorting".
1866
947f7597
TV
18672020-07-06 Tom de Vries <tdevries@suse.de>
1868
1869 PR tui/26205
1870 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1871
1e7c1b22
TV
18722020-07-05 Tom de Vries <tdevries@suse.de>
1873
1874 PR build/26187
1875 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1876 std::uncaught_exceptions instead of deprecated
1877 std::uncaught_exception.
1878
a36158ec
SM
18792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * macroexp.h (macro_stringify): Return
1882 gdb::unique_xmalloc_ptr<char>.
1883 * macroexp.c (macro_stringify): Likewise.
1884 * macrotab.c (fixup_definition): Update.
1885
14d960c8
SM
18862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1887
1888 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1889 (lex_one_token): Update.
1890 * macroexp.c (struct macro_buffer) <release>: Return
1891 gdb::unique_xmalloc_ptr<char>.
1892 (macro_stringify): Update.
1893 (macro_expand): Update.
1894 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1895 * macroexp.h (macro_expand_next): Likewise.
1896
211d5b1c
SM
18972020-07-02 Simon Marchi <simon.marchi@efficios.com>
1898
1899 * macroexp.h (macro_lookup_ftype): Remove.
1900 (macro_expand, macro_expand_once, macro_expand_next): Remove
1901 lookup function parameters, add scope parameter.
1902 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1903 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1904 * macroscope.h (standard_macro_lookup): Change parameter type
1905 to macro_scope.
1906 * macroscope.c (standard_macro_lookup): Likewise.
1907 * c-exp.y (lex_one_token): Update.
1908 * macrocmd.c (macro_expand_command): Likewise.
1909 (macro_expand_once_command): Likewise.
1910
b1a35af2
SM
19112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * inf-loop.c (inferior_event_handler): Remove client_data param.
1914 * inf-loop.h (inferior_event_handler): Likewise.
1915 * infcmd.c (step_1): Adjust.
1916 * infrun.c (proceed): Adjust.
1917 (fetch_inferior_event): Remove client_data param.
1918 (infrun_async_inferior_event_handler): Adjust.
1919 * infrun.h (fetch_inferior_event): Remove `void *` param.
1920 * linux-nat.c (handle_target_event): Adjust.
1921 * record-btrace.c (record_btrace_handle_async_inferior_event):
1922 Adjust.
1923 * record-full.c (record_full_async_inferior_event_handler):
1924 Adjust.
1925 * remote.c (remote_async_inferior_event_handler): Adjust.
1926
1cdf9e33
TT
19272020-07-01 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1930 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1931
32c1e210
TT
19322020-07-01 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1935 tui_gen_win_info.
1936 (tui_win_info::make_window): Merge with
1937 tui_gen_win_info::make_window.
1938 (tui_win_info::make_visible): Move from tui_gen_win_info.
1939 * tui/tui-win.c (tui_win_info::max_width): Move from
1940 tui_gen_win_info.
1941 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1942 type.
1943 <window_factory>: Likewise.
1944 * tui/tui-layout.c (tui_win_info::resize): Move from
1945 tui_gen_win_info.
1946 (make_standard_window): Change return type.
1947 (get_locator_window, tui_get_window_by_name): Likewise.
1948 (tui_layout_window::apply): Remove a cast.
1949 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1950 (struct tui_win_info): Merge with tui_gen_win_info.
1951 (struct tui_gen_win_info): Remove.
1952
a30cb6da
TT
19532020-07-01 Tom Tromey <tom@tromey.com>
1954
1955 * tui/tui-stack.h (struct tui_locator_window): Derive from
1956 tui_win_info.
1957 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1958 <can_box>: New method.
1959
1eb2161f
TT
19602020-07-01 Tom Tromey <tom@tromey.com>
1961
1962 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1963
7134f2eb
TT
19642020-07-01 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-regs.c (tui_data_window::display_registers_from)
1967 (tui_data_window::display_registers_from)
1968 (tui_data_window::first_data_item_displayed)
1969 (tui_data_window::delete_data_content_windows): Update.
1970 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1971 Remove.
1972 (tui_data_window::check_register_values): Update.
1973 (tui_data_item_window::rerender): Add parameters. Update.
1974 (tui_data_item_window::refresh_window): Remove.
1975 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1976 virtual.
1977 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1978 tui_gen_win_info.
1979 <refresh_window, max_height, min_height>: Remove.
1980 <rerender>: Add parameters.
1981 <x, y, visible>: New members.
1982 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1983 <m_item_width>: New member.
1984
22b7b041
TT
19852020-07-01 Tom Tromey <tom@tromey.com>
1986
1987 * tui/tui-regs.c (tui_data_window::show_register_group)
1988 (tui_data_window::check_register_values): Update.
1989 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1990 from item_no.
1991
c9753adb
TT
19922020-07-01 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1995 useless "if".
1996
9ab26b4a
TT
19972020-07-01 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2000 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2001
e555083f
TT
20022020-07-01 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2005 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2006 (struct tui_line_or_address): Move from tui-data.h.
2007 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2008 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2009 (tui_cmd_window, tui_source_window_base, tui_source_window)
2010 (tui_disasm_window): Don't declare.
2011 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2012 to tui-winsource.h.
2013 (SINGLE_KEY): Move to tui-stack.c.
2014
7a02bab7
TT
20152020-07-01 Tom Tromey <tom@tromey.com>
2016
2017 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2018 std::string.
2019 * tui/tui-regs.c (class tab_expansion_file): New.
2020 (tab_expansion_file::write): New method.
2021 (tui_register_format): Change return type. Use
2022 tab_expansion_file.
2023 (tui_get_register, tui_data_window::display_registers_from)
2024 (tui_data_item_window::rerender): Update.
2025 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2026 * tui/tui-io.c (tui_expand_tabs): Remove.
2027
ea68593b
TT
20282020-07-01 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2031
a8caed5d
FS
20322020-07-01 Fangrui Song <maskray@google.com>
2033
2034 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2035
9cdf9820
AKS
20362020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2037
2038 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2039 forms for DW_AT_associated and DW_AT_allocated attributes,
2040 which is already checked in function attr_to_dynamic_prop.
2041
a1520ad8
TT
20422020-06-30 Tom Tromey <tromey@adacore.com>
2043
2044 * dwarf2/read.c (quirk_rust_enum): Correctly call
2045 alloc_rust_variant for default-less enum.
2046
5ac58899
TT
20472020-06-30 Tom Tromey <tromey@adacore.com>
2048
2049 PR build/26183:
2050 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2051 gdb::to_string.
2052
19b187a9
SM
20532020-06-29 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2056 * gdbarch.h: Re-generate.
2057
cd4c4c07
TT
20582020-06-28 Tom Tromey <tom@tromey.com>
2059
2060 * command.h (cmd_types): Remove.
2061 (cmd_type): Don't declare.
2062 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2063 typedef.
2064 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2065 * cli/cli-decode.c (cmd_type): Remove.
2066
05779d57
PA
20672020-06-27 Pedro Alves <palves@redhat.com>
2068
2069 * fork-child.c (prefork_hook): Adjust.
2070 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2071 Delete.
2072 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2073 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2074 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2075 Remove declarations.
2076 (struct inferior) <set_tty, tty>: New methods.
2077 (struct inferior) <terminal>: Rename to ...
2078 (struct inferior) <m_terminal>: ... this and make private.
2079 * main.c (captured_main_1): Adjust.
2080 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2081 (mi_cmd_inferior_tty_show): Adjust.
2082 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2083 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2084
1776e3e5
NA
20852020-06-26 Nick Alcock <nick.alcock@oracle.com>
2086
2087 * configure.ac: Add --enable-libctf: handle --disable-static
2088 properly.
2089 * acinclude.m4: sinclude ../config/enable.m4.
2090 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2091 (LIBCTF): Substitute in.
2092 (CTF_DEPS): New, likewise.
2093 (CLIBS): libctf needs symbols from libbfd: move earlier.
2094 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2095 flags.
2096 * ctfread.c: Surround in ENABLE_LIBCTF.
2097 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2098 * configure: Regenerate.
2099 * config.in: Likewise.
2100
58373b80
SM
21012020-06-25 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2104
277474ee
SM
21052020-06-25 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * inferior.h (struct inferior) <terminal>: Change type to
2108 gdb::unique_xmalloc_ptr<char>.
2109 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2110 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2111 field, adjust to unique pointer.
2112 (get_inferior_io_terminal): Adjust to unique pointer.
2113
6d74da72
AB
21142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2117 registers, not just the known core set of registers.
2118
2e52d038
AB
21192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2122 fflags, frm, and fcsr registers.
2123 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2124 restore groups.
2125 (riscv_tdesc_unknown_reg): New function.
2126 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2127 tdesc_use_registers.
2128 * riscv-tdep.h (struct gdbarch_tdep): Add
2129 unknown_csrs_first_regnum, unknown_csrs_count,
2130 duplicate_fflags_regnum, duplicate_frm_regnum, and
2131 duplicate_fcsr_regnum fields.
2132
be64fd07
AB
21332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2136 callback, use the callback (when not null) to help number unknown
2137 registers.
2138 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2139 (tdesc_use_registers): Add extra parameter to declaration.
2140
3b9fce96
AB
21412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2144 in the file.
2145 (class riscv_pending_register_alias): Likewise.
2146 (riscv_register_feature::register_info): Change 'required_p' field
2147 to 'required', and change its type. Add 'check' member function.
2148 (riscv_register_feature::register_info::check): Define new member
2149 function.
2150 (riscv_xreg_feature): Change initialisation of 'required' field.
2151 (riscv_freg_feature): Likewise.
2152 (riscv_virtual_feature): Likewise.
2153 (riscv_csr_feature): Likewise.
2154 (riscv_check_tdesc_feature): Take extra parameter, the csr
2155 tdesc_feature, rewrite the function to use the new
2156 riscv_register_feature::register_info::check function.
2157 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2158
865bad26
AB
21592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * features/Makefile: Remove all references to the deleted files
2162 below.
2163 * features/riscv/32bit-csr.c: Deleted.
2164 * features/riscv/32bit-csr.xml: Deleted.
2165 * features/riscv/64bit-csr.c: Deleted.
2166 * features/riscv/64bit-csr.xml: Deleted.
2167 * features/riscv/rebuild-csr-xml.sh: Deleted.
2168
ed69cbc8
AB
21692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2172 whitespace error for declaration of names member variable.
2173 (struct riscv_register_feature): Add new prefer_first_name member
2174 variable, and fix whitespace error in declaration of registers.
2175 (riscv_xreg_feature): Initialize prefer_first_name field.
2176 (riscv_freg_feature): Likewise.
2177 (riscv_virtual_feature): Likewise.
2178 (riscv_csr_feature): Likewise.
2179 (riscv_register_name): Expand on comments. Remove register name
2180 modifications for CSR and virtual registers.
2181
4445e8f5
AB
21822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2185 errors.
2186
767a879e
AB
21872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2190 riscv-opc.h.
2191 (class riscv_pending_register_alias): New class.
2192 (riscv_check_tdesc_feature): Take vector of pending aliases and
2193 populate it as appropriate.
2194 (riscv_setup_register_aliases): Delete.
2195 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2196 to riscv_check_tdesc_feature in all cases. Use the vector to
2197 create the register aliases.
2198
bb6e55f3
RO
21992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2200
2201 * sol2-tdep.c (sol2_static_transform_name): Remove.
2202 (sol2_init_abi): Don't register it.
2203 * gdbarch.sh (static_transform_name): Remove.
2204 * gdbarch.c, gdbarch.h: Regenerate.
2205
2206 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2207 gdbarch_static_transform_name.
2208 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2209 * stabsread.c (define_symbol) <'X'>: Remove.
2210 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2211 handling.
2212 <'V'>: Likewise.
2213 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2214 <'S'>: Remove call to gdbarch_static_transform_name.
2215
c6d36836
RO
22162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2217
2218 * procfs.c (procfs_pre_trace): New function.
2219 (procfs_target::create_inferior): Pass it to fork_inferior.
2220
a7e6196b
RO
22212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2222
2223 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2224 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2225 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2226 sol2-tdep.o, sparc-sol2-tdep.o.
2227 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2228 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2229 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2230 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2231
d412e696
RO
22322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2233
2234 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2235 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2236 Call sol2_init_abi.
2237 Remove calls to set_gdbarch_skip_solib_resolver,
2238 set_gdbarch_core_pid_to_str.
2239 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2240 (i386_sol2_static_transform_name): Remove.
2241 (i386_sol2_init_abi): Call sol2_init_abi.
2242 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2243 set_gdbarch_static_transform_name,
2244 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2245 Use sol2_sigtramp_p.
2246 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2247 (sol2_sigtramp_p): New function.
2248 (sol2_static_transform_name): New function.
2249 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2250 (sol2_init_abi): New function.
2251 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2252 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2253 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2254 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2255 (sparc_sol2_static_transform_name): Remove.
2256 (sparc32_sol2_init_abi): Call sol2_init_abi.
2257 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2258 set_gdbarch_static_transform_name,
2259 set_gdbarch_skip_solib_resolver,
2260 set_gdbarch_core_pid_to_str.
2261 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2262 (sparc_sol2_static_transform_name): Remove
2263 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2264 call sol2_sigtramp_p.
2265 (sparc64_sol2_init_abi): Call sol2_init_abi.
2266 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2267 set_gdbarch_static_transform_name,
2268 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2269
a8654e7d
PW
22702020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2271
2272 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2273 * exec.c (validate_exec_file): If from_tty, set both
2274 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2275 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2276 and from_tty, unconditionally ask a confirmation.
2277
caa7fd04
AB
22782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * target-descriptions.c (tdesc_architecture_name): Protect against
2281 NULL pointer dereference.
2282 (maint_print_xml_tdesc_cmd): New function.
2283 (_initialize_target_descriptions): Register new 'maint print
2284 xml-tdesc' command and give it the filename completer.
2285 * NEWS: Mention new 'maint print xml-tdesc' command.
2286
fbf42f4e
AB
22872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2288
2289 * target-descriptions.c (class tdesc_compatible_info): New class.
2290 (struct target_desc): Change type of compatible vector.
2291 (tdesc_compatible_p): Update for change in type of
2292 target_desc::compatible.
2293 (tdesc_compatible_info_list): New function.
2294 (tdesc_compatible_info_arch_name): New function.
2295 (tdesc_add_compatible): Update for change in type of
2296 target_desc::compatible.
2297 (print_c_tdesc::visit_pre): Likewise.
2298
20821f4e
AB
22992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2302 whitespace to underscore.
2303 (maint_print_c_tdesc_cmd): Use fake filename for target
2304 descriptions that came from the target.
2305 (_initialize_target_descriptions): Add filename command completion
2306 for 'maint print c-tdesc'.
2307
1fb5ee62
SM
23082020-06-23 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2311 lines.
2312
fc3ecb3e
SM
23132020-06-23 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2316 lines.
2317 (dwarf2_find_location_expression): Likewise.
2318 (call_site_parameter_matches): Likewise.
2319 (dwarf2_compile_expr_to_ax): Likewise.
2320 (disassemble_dwarf_expression): Likewise.
2321 (loclist_describe_location): Likewise.
2322
236ef034
PA
23232020-06-23 Pedro Alves <palves@redhat.com>
2324
2325 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2326 progspace-and-thread.h. Include scoped-mock-context.h instead.
2327 (register_to_value_test): Use scoped_mock_context.
2328 * regcache.c: Include "scoped-mock-context.h".
2329 (cooked_read_test): Don't error out if a target is already pushed.
2330 Use scoped_mock_context. Adjust.
2331 * scoped-mock-context.h: New file.
2332
39e7ecca
AB
23332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2336 initializer.
2337 (ada_language::is_string_type_p): New member function.
2338 * c-lang.c (c_language_data): Delete la_is_string_type_p
2339 initializer.
2340 (cplus_language_data): Likewise.
2341 (asm_language_data): Likewise.
2342 (minimal_language_data): Likewise.
2343 * d-lang.c (d_language_data): Likewise.
2344 * f-lang.c (f_is_string_type_p): Delete function, implementation
2345 moved to f_language::is_string_type_p.
2346 (f_language_data): Delete la_is_string_type_p initializer.
2347 (f_language::is_string_type_p): New member function,
2348 implementation from f_is_string_type_p.
2349 * go-lang.c (go_is_string_type_p): Delete function, implementation
2350 moved to go_language::is_string_type_p.
2351 (go_language_data): Delete la_is_string_type_p initializer.
2352 (go_language::is_string_type_p): New member function,
2353 implementation from go_is_string_type_p.
2354 * language.c (language_defn::is_string_type_p): Define new member
2355 function.
2356 (default_is_string_type_p): Make static, add comment copied from
2357 header file.
2358 (unknown_language_data): Delete la_is_string_type_p initializer.
2359 (unknown_language::is_string_type_p): New member function.
2360 (auto_language_data): Delete la_is_string_type_p initializer.
2361 (auto_language::is_string_type_p): New member function.
2362 * language.h (language_data): Delete la_is_string_type_p field.
2363 (language_defn::is_string_type_p): Declare new function.
2364 (default_is_string_type_p): Delete desclaration, move comment to
2365 definition.
2366 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2367 moved to m2_language::is_string_type_p.
2368 (m2_language_data): Delete la_is_string_type_p initializer.
2369 (m2_language::is_string_type_p): New member function,
2370 implementation from m2_is_string_type_p.
2371 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2372 initializer.
2373 * opencl-lang.c (opencl_language_data): Likewise.
2374 * p-lang.c (pascal_is_string_type_p): Delete function,
2375 implementation moved to pascal_language::is_string_type_p.
2376 (pascal_language_data): Delete la_is_string_type_p initializer.
2377 (pascal_language::is_string_type_p): New member function,
2378 implementation from pascal_is_string_type_p.
2379 * rust-lang.c (rust_is_string_type_p): Delete function,
2380 implementation moved to rust_language::is_string_type_p.
2381 (rust_language_data): Delete la_is_string_type_p initializer.
2382 (rust_language::is_string_type_p): New member function,
2383 implementation from rust_is_string_type_p.
2384 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2385 is_string_type_p.
2386
4ffc13fb
AB
23872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language_data): Delete la_print_typedef
2390 initializer.
2391 (ada_language::print_typedef): New member function.
2392 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2393 (cplus_language_data): Likewise.
2394 (asm_language_data): Likewise.
2395 (minimal_language_data): Likewise.
2396 * d-lang.c (d_language_data): Likewise.
2397 * f-lang.c (f_language_data): Likewise.
2398 (f_language::print_typedef): New member function.
2399 * go-lang.c (go_language_data): Delete la_print_typedef
2400 initializer.
2401 * language.c (language_defn::print_typedef): Define member
2402 function.
2403 (unknown_language_data): Delete la_print_typedef initializer.
2404 (unknown_language::print_typedef): New member function.
2405 (auto_language_data): Delete la_print_typedef initializer.
2406 (auto_language::print_typedef): New member function.
2407 * language.h (language_data): Delete la_print_typedef field.
2408 (language_defn::print_typedef): Declare new member function.
2409 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2410 (default_print_typedef): Delete declaration.
2411 * m2-lang.c (m2_language_data): Delete la_print_typedef
2412 initializer.
2413 (m2_language::print_typedef): New member function.
2414 * objc-lang.c (objc_language_data): Delete la_print_typedef
2415 initializer.
2416 * opencl-lang.c (opencl_language_data): Likewise.
2417 * p-lang.c (pascal_language_data): Likewise.
2418 (pascal_language::print_typedef): New member function.
2419 * rust-lang.c (rust_print_typedef): Delete function,
2420 implementation moved to rust_language::print_typedef.
2421 (rust_language): Delete la_print_typedef initializer.
2422 (rust_language::print_typedef): New member function,
2423 implementation from rust_print_typedef.
2424 * typeprint.c (default_print_typedef): Delete.
2425
d711ee67
AB
24262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2429 (ada_language::printstr): New member function.
2430 * c-lang.c (c_language_data): Delete la_printstr initializer.
2431 (cplus_language_data): Likewise.
2432 (asm_language_data): Likewise.
2433 (minimal_language_data): Likewise.
2434 * d-lang.c (d_language_data): Likewise.
2435 * f-lang.c (f_printstr): Rename to f_language::printstr.
2436 (f_language_data): Delete la_printstr initializer.
2437 (f_language::printstr): New member function, implementation from
2438 f_printstr.
2439 * go-lang.c (go_language_data): Delete la_printstr initializer.
2440 * language.c (language_defn::printstr): Define new member
2441 function.
2442 (unk_lang_printstr): Delete.
2443 (unknown_language_data): Delete la_printstr initializer.
2444 (unknown_language::printstr): New member function.
2445 (auto_language_data): Delete la_printstr initializer.
2446 (auto_language::printstr): New member function.
2447 * language.h (language_data): Delete la_printstr field.
2448 (language_defn::printstr): Declare new member function.
2449 (LA_PRINT_STRING): Update call to printstr.
2450 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2451 (m2_language_data): Delete la_printstr initializer.
2452 (m2_language::printstr): New member function, implementation from
2453 m2_printstr.
2454 * objc-lang.c (objc_language_data): Delete la_printstr
2455 initializer.
2456 * opencl-lang.c (opencl_language_data): Likewise.
2457 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2458 (pascal_language_data): Delete la_printstr initializer.
2459 (pascal_language::printstr): New member function, implementation
2460 from pascal_printstr.
2461 * p-lang.h (pascal_printstr): Delete declaration.
2462 * rust-lang.c (rust_printstr): Update header comment.
2463 (rust_language_data): Delete la_printstr initializer.
2464 (rust_language::printstr): New member function.
2465
52b50f2c
AB
24662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2469 (ada_language::printchar): New member function.
2470 * c-lang.c (c_language_data): Delete la_printchar initializer.
2471 (cplus_language_data): Likewise.
2472 (asm_language_data): Likewise.
2473 (minimal_language_data): Likewise.
2474 * d-lang.c (d_language_data): Likewise.
2475 * f-lang.c (f_printchar): Rename to f_language::printchar.
2476 (f_language_data): Delete la_printchar initializer.
2477 (f_language::printchar): New member function, implementation from
2478 f_printchar.
2479 * go-lang.c (go_language_data): Delete la_printchar initializer.
2480 * language.c (unk_lang_printchar): Delete.
2481 (language_defn::printchar): Define new member function.
2482 (unknown_language_data): Delete la_printchar initializer.
2483 (unknown_language::printchar): New member function.
2484 (auto_language_data): Delete la_printchar initializer.
2485 (auto_language::printchar): New member function.
2486 * language.h (language_data): Delete la_printchar field.
2487 (language_defn::printchar): Declare new member function.
2488 (LA_PRINT_CHAR): Update call to printchar.
2489 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2490 (m2_language::printchar): New member function.
2491 * objc-lang.c (objc_language_data): Delete la_printchar
2492 initializer.
2493 * opencl-lang.c (opencl_language_data): Likewise.
2494 * p-lang.c (pascal_language_data): Delete la_printchar
2495 initializer.
2496 (pascal_language::printchar): New member function.
2497 * rust-lang.c (rust_printchar): Rename to
2498 rust_language::printchar.
2499 (rust_language_data): Delete la_printchar initializer.
2500 (rust_language::printchar): New member function, implementation
2501 from rust_printchar.
2502
ec8cec5b
AB
25032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2506 (ada_language_data): Delete la_emitchar initializer.
2507 (ada_language::emitchar): New member function, implementation from
2508 emit_char.
2509 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2510 (cplus_language_data): Likewise.
2511 (asm_language_data): Likewise.
2512 (minimal_language_data): Likewise.
2513 * d-lang.c (d_language_data): Likewise.
2514 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2515 (f_language_data): Delete la_emitchar initializer.
2516 (f_language::emitchar): New member function, implementation from
2517 f_emit_char.
2518 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2519 * language.c (unk_lang_emit_char): Delete.
2520 (language_defn::emitchar): New member function definition.
2521 (unknown_language_data): Delete la_emitchar initializer.
2522 (unknown_language::emitchar): New member function.
2523 (auto_language_data): Delete la_emitchar initializer.
2524 (auto_language::emitchar): New member function.
2525 * language.h (language_data): Delete la_emitchar field.
2526 (language_defn::emitchar): New member field declaration.
2527 (LA_EMIT_CHAR): Update call to emitchar.
2528 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2529 (m2_language_data): Delete la_emitchar initializer.
2530 (m2_language::emitchar): New member function, implementation from
2531 m2_emit_char.
2532 * objc-lang.c (objc_language_data): Delete la_emitchar
2533 initializer.
2534 * opencl-lang.c (opencl_language_data): Likewise.
2535 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2536 (pascal_language_data): Delete la_emitchar initializer.
2537 (pascal_language::emitchar): New member function, implementation
2538 from pascal_emit_char.
2539 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2540 (rust_language_data): Delete la_emitchar initializer.
2541 (rust_language::emitchar): New member function, implementation
2542 from rust_emitchar.
2543
1bf9c363
AB
25442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2547 (ada_language_data): Delete la_post_parser initializer.
2548 (ada_language::post_parser): New member function.
2549 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2550 (cplus_language_data): Likewise.
2551 (asm_language_data): Likewise.
2552 (minimal_language_data): Likewise.
2553 * d-lang.c (d_language_data): Likewise.
2554 * f-lang.c (f_language_data): Likewise.
2555 * go-lang.c (go_language_data): Likewise.
2556 * language.c (unknown_language_data): Likewise.
2557 (auto_language_data): Likewise.
2558 * language.h (language_data): Delete la_post_parser field.
2559 (language_defn::post_parser): New member function.
2560 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2561 * objc-lang.c (objc_language_data): Likewise.
2562 * opencl-lang.c (opencl_language_data): Likewise.
2563 * p-lang.c (pascal_language_data): Likewise.
2564 * parse.c (parse_exp_in_context): Update call to post_parser.
2565 (null_post_parser): Delete definition.
2566 * parser-defs.h (null_post_parser): Delete declaration.
2567 * rust-lang.c (rust_language_data): Delete la_post_parser
2568 initializer.
2569
87afa652
AB
25702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * ada-lang.c (parse): Rename to ada_language::parser.
2573 (ada_language_data): Delete la_parser initializer.
2574 (ada_language::parser): New member function, implementation from
2575 parse.
2576 * c-lang.c (c_language_data): Delete la_parser initializer.
2577 (cplus_language_data): Likewise.
2578 (asm_language_data): Likewise.
2579 (minimal_language_data): Likewise.
2580 * d-lang.c (d_language_data): Likewise.
2581 (d_language::parser): New member function.
2582 * f-lang.c (f_language_data): Delete la_parser initializer.
2583 (f_language::parser): New member function.
2584 * go-lang.c (go_language_data): Delete la_parser initializer.
2585 (go_language::parser): New member function.
2586 * language.c (unk_lang_parser): Delete.
2587 (language_defn::parser): Define new member function.
2588 (unknown_language_data): Delete la_parser initializer.
2589 (unknown_language::parser): New member function.
2590 (auto_language_data): Delete la_parser initializer.
2591 (auto_language::parser): New member function.
2592 * language.h (language_data): Delete la_parser field.
2593 (language_defn::parser): Declare new member function.
2594 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2595 (m2_language::parser): New member function.
2596 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2597 * opencl-lang.c (opencl_language_data): Likewise.
2598 * p-lang.c (pascal_language_data): Likewise.
2599 (pascal_language::parser): New member function.
2600 * parse.c (parse_exp_in_context): Update call to parser.
2601 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2602 (rust_language::parser): New member function.
2603
37825800
AB
26042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * top.c (print_gdb_configuration): Print --with-python-libdir
2607 configuration value.
2608
5b860c93
PW
26092020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2610
2611 * NEWS: Mention change to the alias command.
2612
cf00cd6f
PW
26132020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2614
2615 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2616 (alias_command_completer)
2617 (make_alias_options_def_group): New functions.
2618 (alias_opts, alias_option_defs): New struct and array.
2619 (alias_usage_error): Update usage.
2620 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2621 Use option framework.
2622 (_initialize_cli_cmds): Update alias command help.
2623 Update aliases command help.
2624 (show_user):
2625 Add NULL for new default_args lookup_cmd argument.
2626 (valid_command_p): Rename to validate_aliased_command.
2627 Add NULL for new default_args lookup_cmd argument. Verify that the
2628 aliased_command has no default args.
2629 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2630 (lookup_cmd_1, lookup_cmd): New argument default_args.
2631 (add_alias_cmd):
2632 Add NULL for new default_args lookup_cmd argument.
2633 (print_help_for_command): Show default args under the layout
2634 alias some_alias = some_aliased_cmd some_alias_default_arg.
2635 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2636 xfree default_args in destructor.
2637 * cli/cli-script.c (process_next_line, do_define_command):
2638 Add NULL for new default_args lookup_cmd argument.
2639 * command.h: Declare new default_args argument in lookup_cmd
2640 and lookup_cmd_1.
2641 * completer.c (complete_line_internal_1):
2642 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2643 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2644 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2645 Likewise.
2646 * infcmd.c (_initialize_infcmd): Likewise.
2647 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2648 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2649 * python/py-param.c (add_setshow_generic): Likewise.
2650 * remote.c (_initialize_remote): Likewise.
2651 * top.c (execute_command): Prepend default_args if command has some.
2652 (set_verbose):
2653 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2654 * tracepoint.c (validate_actionline, encode_actions_1):
2655 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2656
bd920864
TBA
26572020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2658
2659 * jit.c (jit_read_descriptor): Use bool as the return type.
2660 (jit_breakpoint_re_set_internal): Use bool as the return type.
2661 Invert the return value logic; return true if the jit breakpoint
2662 has been successfully initialized.
2663 (jit_inferior_init): Update the call to
2664 jit_breakpoint_re_set_internal.
2665
f8098322
PA
26662020-06-22 Pedro Alves <palves@redhat.com>
2667
2668 PR gdb/25939
2669 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2670 Use the current inferior instead. Don't return
2671 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2672 wait again.
2673 * sol-thread.c (sol_thread_target::wait): Don't reference
2674 inferior_ptid.
2675 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2676 (sol_update_thread_list_callback): Use the current inferior's pid
2677 instead of inferior_ptid.
2678
196535a6
RO
26792020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2680
2681 * procfs.c: Cleanup many comments.
2682
2683 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2684 (AFTER_WATCHFLAG): Replace by value.
2685
2686 (MAIN_PROC_NAME_FORMAT): Inline ...
2687 (create_procinfo): ... here.
2688
2689 (procfs_debug_inferior): Remove SYS_exec handling.
2690 (syscall_is_exec): Likewise.
2691 (procfs_set_exec_trap): Likewise.
2692
2693 (syscall_is_lwp_exit): Inline in callers.
2694 (syscall_is_exit): Likewise.
2695 (syscall_is_exec): Likewise.
2696 (syscall_is_lwp_create): Likewise.
2697
2698 (invalidate_cache): Remove #if 0 code.
2699
2700 (make_signal_thread_runnable): Remove.
2701 (procfs_target::resume): Remove #if 0 code.
2702
cf6f3e86
RO
27032020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2704
2705 PR gdb/25939
2706 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2707 call ...
2708 (procfs_target::create_inferior): ... here.
2709
48e9cc84
PW
27102020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2711
2712 * exec.c (validate_exec_file): Ensure the build-id is up to
2713 date by calling reopen_exec_file (that checks file timestamp
2714 to decide to re-read the file).
2715
3922b302
PA
27162020-06-18 Pedro Alves <palves@redhat.com>
2717
2718 PR gdb/25412
2719 * gdbthread.h (delete_thread, delete_thread_silent)
2720 (find_thread_ptid): Update comments.
2721 * thread.c (current_thread_): New global.
2722 (is_current_thread): Move higher, and reimplement.
2723 (inferior_thread): Reimplement.
2724 (set_thread_exited): Use bool. Add assertions.
2725 (add_thread_silent): Simplify thread-reuse handling by always
2726 calling delete_thread.
2727 (delete_thread): Remove intro comment.
2728 (find_thread_ptid): Skip exited threads.
2729 (switch_to_thread_no_regs): Write to current_thread_.
2730 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2731 INFERIOR_PTID. Clear current_thread_.
2732
6dbdab44
PA
27332020-06-18 Pedro Alves <palves@redhat.com>
2734
2735 * aix-thread.c (pd_update): Use switch_to_thread.
2736
2da4b788
PA
27372020-06-18 Pedro Alves <palves@redhat.com>
2738
2739 * ravenscar-thread.c (ravenscar_thread_target): Update.
2740 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2741 (ravenscar_thread_target::add_active_thread): ... this. Don't
2742 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2743 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2744
50838d1b
PA
27452020-06-18 Pedro Alves <palves@redhat.com>
2746
2747 * nat/windows-nat.c (current_windows_thread): Remove.
2748 * nat/windows-nat.h (current_windows_thread): Remove.
2749 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2750 Adjust.
2751 (display_selectors): Adjust to fetch the current
2752 windows_thread_info based on inferior_ptid.
2753 (fake_create_process): No longer write to current_windows_thread.
2754 (windows_nat_target::get_windows_debug_event):
2755 Don't set inferior_ptid or current_windows_thread.
2756 (windows_nat_target::wait): Adjust to not rely on
2757 current_windows_thread.
2758 (do_initial_windows_stuff): Now a method of windows_nat_target.
2759 Switch to the last_ptid thread.
2760 (windows_nat_target::attach): Adjust.
2761 (windows_nat_target::detach): Use switch_to_no_thread instead of
2762 writing to inferior_ptid directly.
2763 (windows_nat_target::create_inferior): Adjust.
2764
31ce04e9
PA
27652020-06-18 Pedro Alves <palves@redhat.com>
2766
2767 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2768
1ee1a363
PA
27692020-06-18 Pedro Alves <palves@redhat.com>
2770
2771 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2772 after creating it, instead of writing to inferior_ptid. Don't
2773 write to inferior_ptid.
2774
6d350754
PA
27752020-06-18 Pedro Alves <palves@redhat.com>
2776
2777 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2778
5d971d48
PA
27792020-06-18 Pedro Alves <palves@redhat.com>
2780
2781 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2782 it, instead of writing to inferior_ptid.
2783
86e57d1b
PA
27842020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2787 to inferior_ptid.
2788
f2e1c129
PA
27892020-06-18 Pedro Alves <palves@redhat.com>
2790
2791 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2792 instead of writing to inferior_ptid directly.
2793
60db1b85
PA
27942020-06-18 Pedro Alves <palves@redhat.com>
2795
2796 * corelow.c (core_target::close): Use switch_to_no_thread instead
2797 of writing to inferior_ptid directly.
2798 (add_to_thread_list, core_target_open): Use switch_to_thread
2799 instead of writing to inferior_ptid directly.
2800
fe7d6a8d
PA
28012020-06-18 Pedro Alves <palves@redhat.com>
2802
2803 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2804 inferior_ptid.
2805 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2806 inferior_ptid.
2807 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2808 inferior_ptid directly.
2809 (darwin_nat_target::init_thread_list): Switch to thread, instead
2810 of writing to inferior_ptid.
2811 (darwin_nat_target::attach): Don't write to inferior_ptid.
2812 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2813
975f8708
PA
28142020-06-18 Pedro Alves <palves@redhat.com>
2815
2816 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2817 thread.
2818 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2819 Instead use switch_to_thread.
2820 (gnu_nat_target::detach): Use switch_to_no_thread
2821 instead of writing to inferior_ptid directly. Used passed-in
2822 inferior instead of looking up the inferior by pid.
2823
1a204730
PA
28242020-06-18 Pedro Alves <palves@redhat.com>
2825
2826 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2827 inferior_ptid.
2828
ebe84f23
PA
28292020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2832 inferior_ptid.
2833 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2834 thread.
2835 (nto_procfs_target::detach): Avoid referencing
2836 inferior_ptid. Use switch_to_no_thread instead of writing to
2837 inferior_ptid directly.
2838 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2839 instead of writing to inferior_ptid directly.
2840 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2841 to thread.
2842
191f02e5
PA
28432020-06-18 Pedro Alves <palves@redhat.com>
2844
2845 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2846 after creating it, instead of writing to inferior_ptid.
2847 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2848 to inferior_ptid directly.
2849 (gdbsim_target::wait): Don't write to inferior_ptid.
2850
0ac55310
PA
28512020-06-18 Pedro Alves <palves@redhat.com>
2852
2853 * remote.c (remote_target::remote_notice_new_inferior): Use
2854 switch_to_thread instead of writing to inferior_ptid directly.
2855 (remote_target::add_current_inferior_and_thread): Use
2856 switch_to_no_thread instead of writing to inferior_ptid directly.
2857 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2858 and switch_to_thread instead of using set_current_inferior or
2859 writing to inferior_ptid directly.
2860
5233f39b
PA
28612020-06-18 Pedro Alves <palves@redhat.com>
2862
2863 * tracectf.c (ctf_target_open): Switch to added thread instead of
2864 writing to inferior_ptid directly.
2865 (ctf_target::close): Use switch_to_no_thread instead of writing to
2866 inferior_ptid directly.
2867
087e161b
PA
28682020-06-18 Pedro Alves <palves@redhat.com>
2869
2870 * tracefile-tfile.c (tfile_target_open): Don't write to
2871 inferior_ptid directly, instead switch to added thread.
2872 (tfile_target::close): Use switch_to_no_thread instead of writing
2873 to inferior_ptid directly.
2874
7fb43e53
PA
28752020-06-18 Pedro Alves <palves@redhat.com>
2876
2877 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2878 (procfs_target::detach): Use switch_to_no_thread
2879 instead of writing to inferior_ptid directly.
2880 (do_attach): Change return type to void. Switch to the added
2881 thread.
2882 (procfs_target::create_inferior): Switch to the added thread.
2883 (procfs_do_thread_registers): Don't write to inferior_ptid.
2884
18493a00
PA
28852020-06-18 Pedro Alves <palves@redhat.com>
2886
2887 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2888 of writing to inferior_ptid.
2889 (scoped_restore_exited_inferior): Delete.
2890 (handle_vfork_child_exec_or_exit): Simplify using
2891 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2892 instead of writing to inferior_ptid.
2893 (THREAD_STOPPED_BY): Delete.
2894 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2895 (thread_stopped_by_hw_breakpoint): Delete.
2896 (save_waitstatus): Use
2897 scoped_restore_current_thread+switch_to_thread, and call
2898 target_stopped_by_watchpoint instead of
2899 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2900 instead of thread_stopped_by_sw_breakpoint, and
2901 target_stopped_by_hw_breakpoint instead of
2902 thread_stopped_by_hw_breakpoint.
2903 (handle_inferior_event)
2904 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2905 inferior_ptid directly, nor
2906 set_current_inferior/set_current_program_space. Use
2907 switch_to_thread / switch_to_inferior_no_thread instead.
2908
a0776b13
PA
29092020-06-18 Pedro Alves <palves@redhat.com>
2910
2911 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2912 instead of writing to inferior_ptid.
2913
6155c136
PA
29142020-06-18 Pedro Alves <palves@redhat.com>
2915
2916 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2917 added thread.
2918 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2919 to the added thread.
2920 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2921 instead of writing to inferior_ptid.
2922
c5316fc6
PA
29232020-06-18 Pedro Alves <palves@redhat.com>
2924
2925 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2926 (register_to_value_test): Mock a program_space too. Heap-allocate
2927 the address space. Don't write to inferior_ptid. Use
2928 switch_to_thread instead.
2929
8df01799
PA
29302020-06-18 Pedro Alves <palves@redhat.com>
2931
2932 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2933 Delete.
2934 (find_signalled_thread()): New, factored out from
2935 linux_make_corefile_notes and adjusted to handle exited threads.
2936 (linux_make_corefile_notes): Adjust to use the new
2937 find_signalled_thread.
2938
41792d68
PA
29392020-06-18 Pedro Alves <palves@redhat.com>
2940
2941 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2942 of saving/restoring inferior_ptid.
2943
612f258a
TT
29442020-06-17 Tom Tromey <tom@tromey.com>
2945
2946 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2947 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2948 declare.
2949 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2950
efb763a5
SM
29512020-06-15 Simon Marchi <simon.marchi@efficios.com>
2952
2953 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2954 of partial symtabs.
2955
2951f6c0
SM
29562020-06-17 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * regformats/reg-arm.dat: Remove.
2959 * regformats/reg-bfin.dat: Remove.
2960 * regformats/reg-cris.dat: Remove.
2961 * regformats/reg-crisv32.dat: Remove.
2962 * regformats/reg-m32r.dat: Remove.
2963 * regformats/reg-tilegx.dat: Remove.
2964 * regformats/reg-tilegx32.dat: Remove.
2965
7d458ea5
SM
29662020-06-17 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * features/Makefile (WHICH): Remove arm files.
2969 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2970 * regformats/arm/arm-with-neon.dat: Remove.
2971 * regformats/arm/arm-with-vfpv2.dat: Remove.
2972 * regformats/arm/arm-with-vfpv3.dat: Remove.
2973
3af96c0d
SM
29742020-06-17 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * features/Makefile (XMLTOC): Remove rx.xml.
2977
b25e22fd
PA
29782020-06-17 Pedro Alves <palves@redhat.com>
2979
2980 * gdbthread.h (thread_control_state) <trap_expected> Update
2981 comments.
2982
a78a19b1
AB
29832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2986 ada_language::lookup_symbol_nonlocal.
2987 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2988 (ada_language::lookup_symbol_nonlocal): New member function,
2989 implementation from ada_lookup_symbol_nonlocal.
2990 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2991 initializer.
2992 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2993 initializer.
2994 (cplus_language::lookup_symbol_nonlocal): New member function.
2995 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2996 (minimal_language_data) Likewise.
2997 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2998 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2999 initializer.
3000 (d_language::lookup_symbol_nonlocal): New member function.
3001 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3002 initializer.
3003 (f_language::lookup_symbol_nonlocal): New member function.
3004 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3005 initializer.
3006 * language.c (unknown_language_data): Likewise.
3007 (auto_language_data): Likewise.
3008 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3009 field.
3010 (language_defn::lookup_symbol_nonlocal): New member function.
3011 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3012 initializer.
3013 * objc-lang.c (objc_language_data): Likewise.
3014 * opencl-lang.c (opencl_language_data): Likewise.
3015 * p-lang.c (pascal_language_data): Likewise.
3016 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3017 rust_language::lookup_symbol_nonlocal.
3018 (rust_language_data): Delete la_lookup_symbol_nonlocal
3019 initializer.
3020 (rust_language::lookup_symbol_nonlocal): New member function,
3021 implementation from rust_lookup_symbol_nonlocal.
3022 * symtab.c (lookup_symbol_aux): Update call to
3023 lookup_symbol_nonlocal.
3024 (basic_lookup_symbol_nonlocal): Rename to...
3025 (language_defn::lookup_symbol_nonlocal): ...this, and update
3026 header comment. Remove language_defn parameter, and replace with
3027 uses of `this'.
3028 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3029
ebe2334e
AB
30302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3033 initializer.
3034 (ada_language::value_print_inner): New member function.
3035 * c-lang.c (c_language_data): Delete la_value_print_inner
3036 initializer.
3037 (cplus_language_data): Likewise.
3038 (asm_language_data): Likewise.
3039 (minimal_language_data): Likewise.
3040 * d-lang.c (d_language_data): Likewise.
3041 (d_language::value_print_inner): New member function.
3042 * f-lang.c (f_language_data): Delete la_value_print_inner
3043 initializer.
3044 (f_language::value_print_inner): New member function.
3045 * f-lang.h (f_value_print_innner): Rename to...
3046 (f_value_print_inner): ...this (note spelling of 'inner').
3047 * f-valprint.c (f_value_print_innner): Rename to...
3048 (f_value_print_inner): ...this (note spelling of 'inner').
3049 * go-lang.c (go_language_data): Delete la_value_print_inner
3050 initializer.
3051 (go_language::value_print_inner): New member function.
3052 * language.c (language_defn::value_print_inner): Define new member
3053 function.
3054 (unk_lang_value_print_inner): Delete.
3055 (unknown_language_data): Delete la_value_print_inner initializer.
3056 (unknown_language::value_print_inner): New member function.
3057 (auto_language_data): Delete la_value_print_inner initializer.
3058 (auto_language::value_print_inner): New member function.
3059 * language.h (language_data): Delete la_value_print_inner field.
3060 (language_defn::value_print_inner): Delcare new member function.
3061 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3062 initializer.
3063 (m2_language::value_print_inner): New member function.
3064 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3065 initializer.
3066 * opencl-lang.c (opencl_language_data): Likewise.
3067 * p-lang.c (pascal_language_data): Likewise.
3068 (pascal_language::value_print_inner): New member function.
3069 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3070 initializer.
3071 (rust_language::value_print_inner): New member function.
3072 * valprint.c (do_val_print): Update call to value_print_inner.
3073
a1d1fa3e
AB
30742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * ada-lang.c (ada_language_data): Delete la_value_print
3077 initializer.
3078 (ada_language::value_print): New member function.
3079 * c-lang.c (c_language_data): Delete la_value_print initializer.
3080 (cplus_language_data): Likewise.
3081 (asm_language_data): Likewise.
3082 (minimal_language_data): Likewise.
3083 * d-lang.c (d_language_data): Likewise.
3084 * f-lang.c (f_language_data): Likewise.
3085 * go-lang.c (go_language_data): Likewise.
3086 * language.c (unk_lang_value_print): Delete.
3087 (language_defn::value_print): Define new member function.
3088 (unknown_language_data): Delete la_value_print initializer.
3089 (unknown_language::value_print): New member function.
3090 (auto_language_data): Delete la_value_print initializer.
3091 (auto_language::value_print): New member function.
3092 * language.h (language_data): Delete la_value_print field.
3093 (language_defn::value_print): Declare new member function.
3094 (LA_VALUE_PRINT): Update call to value_print.
3095 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3096 * objc-lang.c (objc_language_data): Likewise.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 (pascal_language::value_print): New member function.
3100 * rust-lang.c (rust_language_data): Delete la_value_print
3101 initializer.
3102
f16a9f57
AB
31032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * ada-lang.c (ada_watch_location_expression): Rename to
3106 ada_language::watch_location_expression.
3107 (ada_language_data): Delete la_watch_location_expression
3108 initializer.
3109 (ada_language::watch_location_expression): New member function,
3110 implementation from ada_watch_location_expression.
3111 * breakpoint.c (watch_command_1): Update call to
3112 watch_location_expression.
3113 * c-lang.c (c_watch_location_expression): Rename to
3114 language_defn::watch_location_expression.
3115 (c_language_data): Delete la_watch_location_expression
3116 initializer.
3117 (cplus_language_data): Likewise.
3118 (asm_language_data): Likewise.
3119 (minimal_language_data): Likewise.
3120 * c-lang.h (c_watch_location_expression): Delete declaration.
3121 * d-lang.c (d_language_data): Delete la_watch_location_expression
3122 initializer.
3123 * f-lang.c (f_language_data): Likewise.
3124 * go-lang.c (go_language_data): Likewise.
3125 * language.c (language_defn::watch_location_expression): Member
3126 function implementation from c_watch_location_expression.
3127 (unknown_language_data): Delete la_watch_location_expression
3128 initializer.
3129 (auto_language_data): Likewise.
3130 * language.h (language_data): Delete la_watch_location_expression
3131 field.
3132 (language_defn::watch_location_expression): Declare new member
3133 function.
3134 * m2-lang.c (m2_language_data): Delete
3135 la_watch_location_expression initializer.
3136 * objc-lang.c (objc_language_data): Likewise.
3137 * opencl-lang.c (opencl_language_data): Likewise.
3138 * p-lang.c (pascal_language_data): Likewise.
3139 * rust-lang.c (rust_watch_location_expression): Rename to
3140 rust_language::watch_location_expression.
3141 (rust_language_data): Delete la_watch_location_expression
3142 initializer.
3143 (rust_language::watch_location_expression): New member function,
3144 implementation from rust_watch_location_expression.
3145
7e56227d
AB
31462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3147
3148 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3149 ada_language::collect_symbol_completion_matches.
3150 (ada_language_data): Delete la_collect_symbol_completion_matches
3151 initializer.
3152 (ada_language::collect_symbol_completion_matches): New member
3153 function, implementation from
3154 ada_collect_symbol_completion_matches.
3155 * c-lang.c (c_language_data): Delete
3156 la_collect_symbol_completion_matches initializer.
3157 (cplus_language_data): Likewise.
3158 (asm_language_data): Likewise.
3159 (minimal_language_data): Likewise.
3160 * d-lang.c (d_language_data): Likewise.
3161 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3162 f_language::collect_symbol_completion_matches.
3163 (f_language_data): Delete la_collect_symbol_completion_matches
3164 initializer.
3165 (f_language::collect_symbol_completion_matches) New member
3166 function, implementation from f_collect_symbol_completion_matches.
3167 * go-lang.c (go_language_data): Delete
3168 la_collect_symbol_completion_matches initializer.
3169 * language.c (unknown_language_data): Likewise.
3170 (auto_language_data): Likewise.
3171 * language.h (language_data): Delete
3172 la_collect_symbol_completion_matches field.
3173 (language_defn::collect_symbol_completion_matches): New member
3174 function.
3175 * m2-lang.c (m2_language_data): Delete
3176 la_collect_symbol_completion_matches initializer.
3177 * objc-lang.c (objc_language_data): Likewise.
3178 * opencl-lang.c (opencl_language_data): Likewise.
3179 * p-lang.c (pascal_language_data): Likewise.
3180 * rust-lang.c (rust_language_data): Likewise.
3181 * symtab.c (default_collect_symbol_completion_matches): Delete.
3182 (collect_symbol_completion_matches): Update call to
3183 collect_symbol_completion_matches.
3184 (collect_symbol_completion_matches_type): Likewise.
3185 * symtab.h (default_collect_symbol_completion_matches): Delete
3186 declaration.
3187
53fc67f8
AB
31882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3191 (ada_language_data): Delete la_word_break_characters initializer.
3192 (ada_language::word_break_characters): New member function.
3193 * c-lang.c (c_language_data): Delete la_word_break_characters
3194 initializer.
3195 (cplus_language_data): Likewise.
3196 (asm_language_data): Likewise.
3197 (minimal_language_data): Likewise.
3198 * completer.c: Update global comment.
3199 (advance_to_expression_complete_word_point): Update call to
3200 word_break_characters.
3201 (complete_files_symbols): Likewise.
3202 (complete_line_internal_1): Likewise.
3203 (default_completer_handle_brkchars): Likewise.
3204 (skip_quoted_chars): Likewise.
3205 * d-lang.c (d_language_data): Delete la_word_break_characters
3206 initializer.
3207 * f-lang.c (f_word_break_characters): Delete.
3208 (f_language_data): Delete la_word_break_characters initializer.
3209 (f_language::word_break_characters): New member function.
3210 * go-lang.c (go_language_data): Delete la_word_break_characters
3211 initializer.
3212 * language.c (unknown_language_data): Likewise.
3213 (auto_language_data): Likewise.
3214 * language.h (default_word_break_characters): Move declaration to
3215 earlier in the file.
3216 (language_data): Delete la_word_break_characters field.
3217 (language_defn::word_break_characters): New member function.
3218 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3219 initializer.
3220 * objc-lang.c (objc_language_data): Likewise.
3221 * opencl-lang.c (opencl_language_data): Likewise.
3222 * p-lang.c (pascal_language_data): Likewise.
3223 * rust-lang.c (rust_language_data): Likewise.
3224
c9debfb9
AB
32252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3228 (ada_language_data): Delete la_get_symbol_name_matcher
3229 initializer.
3230 (language_defn::get_symbol_name_matcher_inner): New member
3231 function.
3232 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3233 initializer.
3234 (cplus_language_data): Likewise.
3235 (cplus_language::get_symbol_name_matcher_inner): New member
3236 function.
3237 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3238 (minimal_language_data): Likewise.
3239 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3240 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3241 initializer.
3242 * dictionary.c (iter_match_first_hashed): Update call to
3243 get_symbol_name_matcher.
3244 (iter_match_next_hashed): Likewise.
3245 (iter_match_next_linear): Likewise.
3246 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3247 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3248 initializer.
3249 (f_language::get_symbol_name_matcher_inner): New member function.
3250 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3251 initializer.
3252 * language.c (default_symbol_name_matcher): Update header comment,
3253 make static.
3254 (language_defn::get_symbol_name_matcher): New definition.
3255 (language_defn::get_symbol_name_matcher_inner): Likewise.
3256 (get_symbol_name_matcher): Delete.
3257 (unknown_language_data): Delete la_get_symbol_name_matcher
3258 initializer.
3259 (auto_language_data): Likewise.
3260 * language.h (language_data): Delete la_get_symbol_name_matcher
3261 field.
3262 (language_defn::get_symbol_name_matcher): New member function.
3263 (language_defn::get_symbol_name_matcher_inner): Likewise.
3264 (default_symbol_name_matcher): Delete declaration.
3265 * linespec.c (find_methods): Update call to
3266 get_symbol_name_matcher.
3267 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3268 initializer.
3269 * minsyms.c (lookup_minimal_symbol): Update call to
3270 get_symbol_name_matcher.
3271 (iterate_over_minimal_symbols): Likewise.
3272 * objc-lang.c (objc_language_data): Delete
3273 la_get_symbol_name_matcher initializer.
3274 * opencl-lang.c (opencl_language_data): Likewise.
3275 * p-lang.c (pascal_language_data): Likewise.
3276 * psymtab.c (psymbol_name_matches): Update call to
3277 get_symbol_name_matcher.
3278 * rust-lang.c (rust_language_data): Delete
3279 la_get_symbol_name_matcher initializer.
3280 * symtab.c (symbol_matches_search_name): Update call to
3281 get_symbol_name_matcher.
3282 (compare_symbol_name): Likewise.
3283
9a49ad8c
AB
32842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * ada-lang.c (ada_language_data): Delete la_compute_program
3287 initializer.
3288 * c-lang.c (c_language_data): Likewise.
3289 (c_language::compute_program): New member function.
3290 (cplus_language_data): Delete la_compute_program initializer.
3291 (cplus_language::compute_program): New member function.
3292 (asm_language_data): Delete la_compute_program initializer.
3293 (minimal_language_data): Likewise.
3294 * c-lang.h (c_compute_program): Update comment.
3295 (cplus_compute_program): Likewise.
3296 * compile/compile-c-support.c (c_compute_program): Likewise.
3297 (cplus_compute_program): Likewise.
3298 * compile/compile.c (compile_to_object): Update call to
3299 la_compute_program.
3300 * d-lang.c (d_language_data): Delete la_compute_program
3301 initializer.
3302 * f-lang.c (f_language_data): Likewise.
3303 * go-lang.c (go_language_data): Likewise.
3304 * language.c (unknown_language_data): Likewise.
3305 (auto_language_data): Likewise.
3306 * language.h (language_data): Delete la_compute_program field.
3307 (language_defn::compute_program): New member function.
3308 * m2-lang.c (m2_language_data): Delete la_compute_program
3309 initializer.
3310 * objc-lang.c (objc_language_data): Likewise.
3311 * opencl-lang.c (opencl_language_data): Likewise.
3312 * p-lang.c (pascal_language_data): Likewise.
3313 * rust-lang.c (rust_language_data): Likewise.
3314
eff93b4d
AB
33152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * ada-lang.c (ada_language_data) Delete
3318 la_class_name_from_physname initializer.
3319 * c-lang.c (c_language_data): Likewise.
3320 (cplus_language_data): Likewise.
3321 (cplus_language::class_name_from_physname): New member function.
3322 (asm_language_data): Delete la_class_name_from_physname
3323 initializer.
3324 (minimal_language_data): Likewise.
3325 * d-lang.c (d_language_data): Likewise.
3326 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3327 method on language_defn class.
3328 (guess_full_die_structure_name): Likewise.
3329 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3330 initializer.
3331 * go-lang.c (go_language_data): Likewise.
3332 * language.c (language_class_name_from_physname): Delete.
3333 (unk_lang_class_name): Delete.
3334 (unknown_language_data): Delete la_class_name_from_physname
3335 initializer.
3336 (auto_language_data): Likewise.
3337 * language.h (language_data): Delete la_class_name_from_physname
3338 field.
3339 (language_defn::class_name_from_physname): New function.
3340 (language_class_name_from_physname): Delete declaration.
3341 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3342 initializer.
3343 * objc-lang.c (objc_language_data): Likewise.
3344 * opencl-lang.c (opencl_language_data): Likewise.
3345 * p-lang.c (pascal_language_data): Likewise.
3346 * rust-lang.c (rust_language_data): Likewise.
3347
de543742
TT
33482020-06-16 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-data.h (STATUS_NAME): New macro.
3351 * tui/tui-layout.c (tui_remove_some_windows)
3352 (initialize_known_windows, tui_register_window)
3353 (tui_layout_split::remove_windows, initialize_layouts)
3354 (tui_new_layout_command): Don't use hard-coded window names.
3355
a350efd4
TT
33562020-06-16 Tom Tromey <tom@tromey.com>
3357
3358 PR tui/25348:
3359 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3360 tui_initialize_readline. Only run once. Call rl_initialize.
3361 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3362 tui_initialize_readline.
3363 * tui/tui-io.c (tui_setup_io): Call
3364 tui_ensure_readline_initialized.
3365 * tui/tui-interp.c (tui_interp::init): Update.
3366
39ec0490
TT
33672020-06-16 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3370 Also preserve the status window.
3371
d2d1ea20
TT
33722020-06-16 Tom Tromey <tom@tromey.com>
3373
3374 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3375 where m_window==nullptr.
3376
66920317
TT
33772020-06-15 Tom Tromey <tromey@adacore.com>
3378
3379 * windows-nat.c (windows_nat::handle_output_debug_string):
3380 Update.
3381 (windows_nat::handle_ms_vc_exception): Update.
3382 * target.h (target_read_string): Change API.
3383 * target.c (target_read_string): Change API.
3384 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3385 Update.
3386 * solib-frv.c (frv_current_sos): Update.
3387 * solib-dsbt.c (dsbt_current_sos): Update.
3388 * solib-darwin.c (darwin_current_sos): Update.
3389 * linux-thread-db.c (inferior_has_bug): Update.
3390 * expprint.c (print_subexp_standard): Update.
3391 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3392 (ada_exception_message_1): Update.
3393
a5d871dd
TT
33942020-06-15 Tom Tromey <tromey@adacore.com>
3395
3396 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3397
670e35fa
TT
33982020-06-15 Tom Tromey <tromey@adacore.com>
3399
3400 * valprint.c (read_string): Update comment.
3401 * target.c (MIN): Remove.
3402 (target_read_string): Rewrite.
3403
f5272a3b
TT
34042020-06-15 Tom Tromey <tromey@adacore.com>
3405
3406 * corefile.c (read_memory_string): Remove.
3407 * ada-valprint.c (ada_value_print_ptr): Update.
3408 * ada-lang.h (ada_tag_name): Change return type.
3409 * ada-lang.c (type_from_tag): Update.
3410 (ada_tag_name_from_tsd): Change return type. Use
3411 target_read_string.
3412 (ada_tag_name): Likewise.
3413 * gdbcore.h (read_memory_string): Don't declare.
3414
2c074f49
HD
34152020-06-14 Hannes Domani <ssbssa@yahoo.de>
3416
3417 * symtab.c (rbreak_command): Ignore Windows drive colon.
3418
6a17d503
SM
34192020-06-12 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * NEWS: Mention removed GDBserver host support.
3422
453c733f
NC
34232020-06-12 Nelson Chu <nelson.chu@sifive.com>
3424
3425 * features/riscv/rebuild-csr-xml.sh: Updated.
3426
2b4e6a3f
TT
34272020-06-11 Tom Tromey <tom@tromey.com>
3428
3429 PR gdb/18318:
3430 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3431
4412332f
JG
34322020-06-09 Jonny Grant <jg@jguk.org>
34332020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * main.c (captured_main_1): Don't print new line after help.
3436 (print_gdb_help): add mailing list and IRC channel information
3437 to --help. Add new lines between items in the footer. Remove
3438 quotes around bug url.
3439
2f33032a
KS
34402020-06-11 Keith Seitz <keiths@redhat.com>
3441
3442 PR gdb/21356
3443 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3444 Resolve typedefs for type length calculations.
3445
7ab96794
TV
34462020-06-10 Tom de Vries <tdevries@suse.de>
3447
3448 PR ada/24713
3449 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3450 (write_psymbols): Enable .gdb_index for ada.
3451 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3452 ada.
3453
e5f3ece2
TV
34542020-06-10 Tom de Vries <tdevries@suse.de>
3455
3456 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3457 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3458 namei" instead of "const char *name" argument.
3459 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3460 dw2_symtab_iter_init.
3461
940da03e
SM
34622020-06-08 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3465 to use type::field and field::type instead.
3466
b6cdac4b
SM
34672020-06-08 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3470 to use field::type instead.
3471
5d14b6e5
SM
34722020-06-08 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (struct field) <type, set_type>: New methods.
3475 Rename `type` field to...
3476 <m_type>: ... this. Change references throughout to use type or
3477 set_type methods.
3478 (FIELD_TYPE): Use field::type. Change call sites that modify
3479 the field's type to use field::set_type instead.
3480
3d967001
SM
34812020-06-08 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3484 to use type::index_type instead.
3485
262abc0d
SM
34862020-06-08 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3489 methods.
3490 (TYPE_INDEX_TYPE): Use type::index_type.
3491 * gdbtypes.c (create_array_type_with_stride): Likewise.
3492
82836c92
TT
34932020-06-07 Tom Tromey <tom@tromey.com>
3494
3495 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3496 parameter.
3497 (generic_value_print): Update.
3498
940dace9
AB
34992020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 Revert commit 982a38f60b0.
3502 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3503
982a38f6
AB
35042020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3507 avoid use after free.
3508
82f06518
TV
35092020-06-05 Tom de Vries <tdevries@suse.de>
3510
3511 * NEWS: Fix typos.
3512
f8c41851
SM
35132020-06-04 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3516 the per_bfd object.
3517 (dwarf2_read_debug_names): Likewise.
3518 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3519 object when re-using a per_bfd object with an index.
3520
f9b5d5ea
TV
35212020-06-03 Tom de Vries <tdevries@suse.de>
3522
3523 PR symtab/26046
3524 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3525 children for C++.
3526 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3527 DW_TAG_subprogram.
3528
f6eee2d0
AB
35292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3530
3531 * ada-lang.c (ada_language_data): Delete skip_trampoline
3532 initializer.
3533 * c-lang.c (c_language_data): Likewise.
3534 (cplus_language_data): Likewise.
3535 (cplus_language::skip_trampoline): New member function.
3536 (asm_language_data): Delete skip_trampoline initializer.
3537 (minimal_language_data): Likewise.
3538 * d-lang.c (d_language_data): Likewise.
3539 * f-lang.c (f_language_data): Likewise.
3540 * go-lang.c (go_language_data): Likewise.
3541 * language.c (unk_lang_trampoline): Delete function.
3542 (skip_language_trampoline): Update.
3543 (unknown_language_data): Delete skip_trampoline initializer.
3544 (auto_language_data): Likewise.
3545 * language.h (language_data): Delete skip_trampoline field.
3546 (language_defn::skip_trampoline): New function.
3547 * m2-lang.c (m2_language_data): Delete skip_trampoline
3548 initializer.
3549 * objc-lang.c (objc_skip_trampoline): Delete function, move
3550 implementation to objc_language::skip_trampoline.
3551 (objc_language_data): Delete skip_trampoline initializer.
3552 (objc_language::skip_trampoline): New member function with
3553 implementation from objc_skip_trampoline.
3554 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3555 initializer.
3556 * p-lang.c (pascal_language_data): Likewise.
3557 * rust-lang.c (rust_language_data): Likewise.
3558
0a50df5d
AB
35592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3560
3561 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3562 (ada_language::demangle): New member function.
3563 * c-lang.c (c_language_data): Delete la_demangle initializer.
3564 (cplus_language_data): Delete la_demangle initializer.
3565 (cplus_language::demangle): New member function.
3566 (asm_language_data): Delete la_demangle initializer.
3567 (minimal_language_data): Delete la_demangle initializer.
3568 * d-lang.c (d_language_data): Delete la_demangle initializer.
3569 (d_language::demangle): New member function.
3570 * f-lang.c (f_language_data): Delete la_demangle initializer.
3571 (f_language::demangle): New member function.
3572 * go-lang.c (go_language_data): Delete la_demangle initializer.
3573 (go_language::demangle): New member function.
3574 * language.c (language_demangle): Update.
3575 (unk_lang_demangle): Delete.
3576 (unknown_language_data): Delete la_demangle initializer.
3577 (unknown_language::demangle): New member function.
3578 (auto_language_data): Delete la_demangle initializer.
3579 (auto_language::demangle): New member function.
3580 * language.h (language_data): Delete la_demangle field.
3581 (language_defn::demangle): New function.
3582 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3583 * objc-lang.c (objc_language_data): Delete la_demangle
3584 initializer.
3585 (objc_language::demangle): New member function.
3586 * opencl-lang.c (opencl_language_data): Delete la_demangle
3587 initializer.
3588 * p-lang.c (pascal_language_data): Likewise.
3589 * rust-lang.c (rust_language_data): Likewise.
3590 (rust_language::demangle): New member function.
3591
fbfb0a46
AB
35922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3593
3594 * ada-lang.c (ada_language_data): Delete la_print_type
3595 initializer.
3596 (ada_language::print_type): New member function.
3597 * c-lang.c (c_language_data): Delete la_print_type initializer.
3598 (c_language::print_type): New member function.
3599 (cplus_language_data): Delete la_print_type initializer.
3600 (cplus_language::print_type): New member function.
3601 (asm_language_data): Delete la_print_type initializer.
3602 (asm_language::print_type): New member function.
3603 (minimal_language_data): Delete la_print_type initializer.
3604 (minimal_language::print_type): New member function.
3605 * d-lang.c (d_language_data): Delete la_print_type initializer.
3606 (d_language::print_type): New member function.
3607 * f-lang.c (f_language_data): Delete la_print_type initializer.
3608 (f_language::print_type): New member function.
3609 * go-lang.c (go_language_data): Delete la_print_type initializer.
3610 (go_language::print_type): New member function.
3611 * language.c (unk_lang_print_type): Delete.
3612 (unknown_language_data): Delete la_print_type initializer.
3613 (unknown_language::print_type): New member function.
3614 (auto_language_data): Delete la_print_type initializer.
3615 (auto_language::print_type): New member function.
3616 * language.h (language_data): Delete la_print_type field.
3617 (language_defn::print_type): New function.
3618 (LA_PRINT_TYPE): Update.
3619 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3620 (m2_language::print_type): New member function.
3621 * objc-lang.c (objc_language_data): Delete la_print_type
3622 initializer.
3623 (objc_language::print_type): New member function.
3624 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3625 to opencl_language::print_type.
3626 (opencl_language_data): Delete la_print_type initializer.
3627 (opencl_language::print_type): New member function, implementation
3628 from opencl_print_type.
3629 * p-lang.c (pascal_language_data): Delete la_print_type
3630 initializer.
3631 (pascal_language::print_type): New member function.
3632 * rust-lang.c (rust_print_type): Delete, implementation moved to
3633 rust_language::print_type.
3634 (rust_language_data): Delete la_print_type initializer.
3635 (rust_language::print_type): New member function, implementation
3636 from rust_print_type.
3637
6f827019
AB
36382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3639
3640 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3641 implementation moves to...
3642 (ada_language::sniff_from_mangled_name): ...here. Update return
3643 type.
3644 (ada_language_data): Delete la_sniff_from_mangled_name
3645 initializer.
3646 * c-lang.c (c_language_data): Likewise.
3647 (cplus_language_data): Likewise.
3648 (cplus_language::sniff_from_mangled_name): New member function,
3649 implementation taken from gdb_sniff_from_mangled_name.
3650 (asm_language_data): Delete la_sniff_from_mangled_name
3651 initializer.
3652 (minimal_language_data): Likewise.
3653 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3654 implementation moves to cplus_language::sniff_from_mangled_name.
3655 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3656 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3657 moves to...
3658 (d_language::sniff_from_mangled_name): ...here.
3659 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3660 * f-lang.c (f_language_data): Likewise.
3661 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3662 moves to...
3663 (go_language::sniff_from_mangled_name): ...here.
3664 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3665 * language.c (language_sniff_from_mangled_name): Delete.
3666 (unknown_language_data): Delete la_sniff_from_mangled_name
3667 initializer.
3668 (auto_language_data): Likewise.
3669 * language.h (language_data): Delete la_sniff_from_mangled_name
3670 field.
3671 (language_defn::sniff_from_mangled_name): New function.
3672 (language_sniff_from_mangled_name): Delete declaration.
3673 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3674 field.
3675 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3676 implementation moves to...
3677 (objc_language::sniff_from_mangled_name): ...here.
3678 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3679 * opencl-lang.c (opencl_language_data): Likewise.
3680 * p-lang.c (pascal_language_data): Likewise.
3681 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3682 implementation moves to...
3683 (rust_language::sniff_from_mangled_name): ...here.
3684 (rust_language_data): Delete la_sniff_from_mangled_name
3685 initializer.
3686 * symtab.c (symbol_find_demangled_name): Call
3687 sniff_from_mangled_name member function.
3688
fb8006fd
AB
36892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3692 initializer.
3693 * c-lang.c (c_language_data): Likewise.
3694 (cplus_language_data): Likewise.
3695 (cplus_language::search_name_hash): New member function.
3696 (asm_language_data): Delete la_search_name_hash initializer.
3697 (minimal_language_data): Likewise.
3698 * d-lang.c (d_language_data): Likewise.
3699 * dictionary.c (default_search_name_hash): Rename to...
3700 (language_defn::search_name_hash): ...this.
3701 * f-lang.c (f_language_data): Likewise.
3702 (f_language::search_name_hash): New member function.
3703 * go-lang.c (go_language_data): Delete la_search_name_hash
3704 initializer.
3705 * language.c (unknown_language_data): Likewise.
3706 (auto_language_data): Likewise.
3707 * language.h (struct language_data): Delete la_search_name_hash
3708 field.
3709 (language_defn::search_name_hash): Declare new member function.
3710 (default_search_name_hash): Delete declaration.
3711 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3712 initializer.
3713 * objc-lang.c (objc_language_data): Likewise.
3714 * opencl-lang.c (opencl_language_data): Likewise.
3715 * p-lang.c (pascal_language_data): Likewise.
3716 * rust-lang.c (rust_language_data): Likewise.
3717 * symtab.c (search_name_hash): Update call.
3718
8e25bafe
AB
37192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3722 initializer.
3723 * c-lang.c (class compile_instance): Declare.
3724 (c_language_data): Delete la_get_compile_instance initializer.
3725 (c_language::get_compile_instance): New member function.
3726 (cplus_language_data): Delete la_get_compile_instance initializer.
3727 (cplus_language::get_compile_instance): New member function.
3728 (asm_language_data): Delete la_get_compile_instance initializer.
3729 (minimal_language_data): Likewise.
3730 * c-lang.h (c_get_compile_context): Update comment.
3731 (cplus_get_compile_context): Update comment.
3732 * compile/compile.c (compile_to_object): Update calls, don't rely
3733 on function pointer being NULL.
3734 * d-lang.c (d_language_data): Delete la_get_compile_instance
3735 initializer.
3736 * f-lang.c (f_language_data): Likewise.
3737 * go-lang.c (go_language_data): Likewise.
3738 * language.c (unknown_language_data): Likewise.
3739 (auto_language_data): Likewise.
3740 * language.h (language_data): Delete la_get_compile_instance field.
3741 (language_defn::get_compile_instance): New member function.
3742 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3743 initializer.
3744 * objc-lang.c (objc_language_data): Likewise.
3745 * opencl-lang.c (opencl_language_data): Likewise.
3746 * p-lang.c (pascal_language_data): Likewise.
3747 * rust-lang.c (rust_language_data): Likewise.
3748
4009ee92
AB
37492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * ada-lang.c (ada_add_all_symbols): Update comment.
3752 (ada_iterate_over_symbols): Delete, move implementation to...
3753 (ada_language::iterate_over_symbols): ...here, a new member
3754 function, rewrite to use range based for loop.
3755 (ada_language_data): Delete la_iterate_over_symbols initializer.
3756 * c-lang.c (c_language_data): Likewise.
3757 (cplus_language_data): Likewise.
3758 (asm_language_data): Likewise.
3759 (minimal_language_data): Likewise.
3760 * d-lang.c (d_language_data): Likewise.
3761 * f-lang.c (f_language_data): Likewise.
3762 * go-lang.c (go_language_data): Likewise.
3763 * language.c (unknown_language_data): Likewise.
3764 (auto_language_data): Likewise.
3765 * language.h (language_data): Delete la_iterate_over_symbols field.
3766 (language_defn::iterate_over_symbols): New member function.
3767 (LA_ITERATE_OVER_SYMBOLS): Update.
3768 * linespec.c (iterate_over_all_matching_symtabs): Update.
3769 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3770 initializer.
3771 * objc-lang.c (objc_language_data): Likewise.
3772 * opencl-lang.c (opencl_language_data): Likewise.
3773 * p-lang.c (pascal_language_data): Likewise.
3774 * rust-lang.c (rust_language_data): Likewise.
3775
54f4ca46
AB
37762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_language_data): Delete
3779 la_lookup_transparent_type initializer.
3780 * c-lang.c (c_language_data): Likewise.
3781 (cplus_language_data): Likewise.
3782 (cplus_language::lookup_transparent_type): New member function.
3783 (asm_language_data): Delete la_lookup_transparent_type
3784 initializer.
3785 (minimal_language_data): Likewise.
3786 * d-lang.c (d_language_data): Likewise.
3787 * f-lang.c (f_language_data): Likewise.
3788 * go-lang.c (go_language_data): Likewise.
3789 * language.c (unknown_language_data): Likewise.
3790 (auto_language_data): Likewise.
3791 * language.h (struct language_data): Delete
3792 la_lookup_transparent_type field.
3793 (language_defn::lookup_transparent_type): New member function.
3794 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3795 initializer.
3796 * objc-lang.c (objc_language_data): Likewise.
3797 * opencl-lang.c (opencl_language_data): Likewise.
3798 * p-lang.c (pascal_language_data): Likewise.
3799 * rust-lang.c (rust_language_data): Likewise.
3800 * symtab.c (symbol_matches_domain): Update call.
3801
1fb314aa
AB
38022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * ada-lang.c (ada_language_arch_info): Delete function, move
3805 implementation to...
3806 (ada_language::language_arch_info): ...here, a new member
3807 function.
3808 (ada_language_data): Delete la_language_arch_info.
3809 * c-lang.c (c_language_data): Likewise.
3810 (c_language::language_arch_info): New member function.
3811 (cplus_language_arch_info): Delete function, move
3812 implementation to...
3813 (cplus_language::language_arch_info): ...here, a new member
3814 function.
3815 (cplus_language_data): Delete la_language_arch_info.
3816 (asm_language_data): Likewise.
3817 (asm_language::language_arch_info): New member function.
3818 (minimal_language_data): Delete la_language_arch_info.
3819 (minimal_language::language_arch_info): New member function.
3820 * d-lang.c (d_language_arch_info): Delete function, move
3821 implementation to...
3822 (d_language::language_arch_info): ...here, a new member
3823 function.
3824 (d_language_data): Delete la_language_arch_info.
3825 * f-lang.c (f_language_arch_info): Delete function, move
3826 implementation to...
3827 (f_language::language_arch_info): ...here, a new member
3828 function.
3829 (f_language_data): Delete la_language_arch_info.
3830 * go-lang.c (go_language_arch_info): Delete function, move
3831 implementation to...
3832 (go_language::language_arch_info): ...here, a new member
3833 function.
3834 (go_language_data): Delete la_language_arch_info.
3835 * language.c (unknown_language_data): Likewise.
3836 (unknown_language::language_arch_info): New member function.
3837 (auto_language_data): Delete la_language_arch_info.
3838 (auto_language::language_arch_info): New member function.
3839 (language_gdbarch_post_init): Update call to
3840 la_language_arch_info.
3841 * language.h (language_data): Delete la_language_arch_info
3842 function pointer.
3843 (language_defn::language_arch_info): New function.
3844 * m2-lang.c (m2_language_arch_info): Delete function, move
3845 implementation to...
3846 (m2_language::language_arch_info): ...here, a new member
3847 function.
3848 (m2_language_data): Delete la_language_arch_info.
3849 * objc-lang.c (objc_language_arch_info): Delete function, move
3850 implementation to...
3851 (objc_language::language_arch_info): ...here, a new member
3852 function.
3853 (objc_language_data): Delete la_language_arch_info.
3854 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3855 implementation to...
3856 (opencl_language::language_arch_info): ...here, a new member
3857 function.
3858 (opencl_language_data): Delete la_language_arch_info.
3859 * p-lang.c (pascal_language_arch_info): Delete function, move
3860 implementation to...
3861 (pascal_language::language_arch_info): ...here, a new member
3862 function.
3863 (pascal_language_data): Delete la_language_arch_info.
3864 * rust-lang.c (rust_language_arch_info): Delete function, move
3865 implementation to...
3866 (rust_language::language_arch_info): ...here, a new member
3867 function.
3868 (rust_language_data): Delete la_language_arch_info.
3869
48448202
AB
38702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3871
3872 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3873 initializer.
3874 * c-lang.c (c_language_data): Likewise.
3875 (cplus_language_data): Likewise.
3876 (cplus_language::pass_by_reference_info): New method.
3877 (asm_language_data): Delete la_pass_by_reference initializer.
3878 (minimal_language_data): Likewise.
3879 * cp-abi.c (cp_pass_by_reference): Remove use of
3880 default_pass_by_reference.
3881 * d-lang.c (d_language_data): Likewise.
3882 * f-lang.c (f_language_data): Likewise.
3883 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3884 default_pass_by_reference.
3885 * go-lang.c (go_language_data): Likewise.
3886 * language.c (language_pass_by_reference): Update.
3887 (default_pass_by_reference): Delete.
3888 (unknown_language_data): Delete la_pass_by_reference
3889 initializer.
3890 (auto_language_data): Likewise.
3891 * language.h (struct language_data): Delete la_pass_by_reference
3892 field.
3893 (language_defn::pass_by_reference_info): New member function.
3894 (default_pass_by_reference): Delete declaration.
3895 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3896 initializer.
3897 * objc-lang.c (objc_language_data): Likewise.
3898 * opencl-lang.c (opencl_language_data): Likewise.
3899 * p-lang.c (pascal_language_data): Likewise.
3900 * rust-lang.c (rust_language_data): Likewise.
3901
15e5fd35
AB
39022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * ada-lang.c (ada_read_var_value): Delete function, move
3905 implementation to...
3906 (ada_language::read_var_value): ...here.
3907 (ada_language_data): Delete la_read_var_value initializer.
3908 * c-lang.c (c_language_data): Likewise.
3909 (cplus_language_data): Likewise.
3910 (minimal_language_data): Likewise.
3911 * d-lang.c (d_language_data): Likewise.
3912 * f-lang.c (f_language_data): Likewise.
3913 * findvar.c (default_read_var_value): Rename to...
3914 (language_defn::read_var_value): ...this.
3915 * findvar.c (read_var_value): Update header comment, and change to
3916 call member function instead of function pointer.
3917 * go-lang.c (go_language_data): Likewise.
3918 * language.c (unknown_language_data): Delete la_read_var_value
3919 initializer.
3920 (auto_language_data): Likewise.
3921 * language.h (struct language_data): Delete la_read_var_value
3922 field.
3923 (language_defn::read_var_value): New member function.
3924 (default_read_var_value): Delete declaration.
3925 * m2-lang.c (m2_language_data): Delete la_read_var_value
3926 initializer.
3927 * objc-lang.c (objc_language_data): Likewise.
3928 * opencl-lang.c (opencl_language_data): Likewise.
3929 * p-lang.c (pascal_language_data): Likewise.
3930 * rust-lang.c (rust_language_data): Likewise.
3931 * value.h (default_read_var_value): Delete declaration.
3932
5bd40f2a
AB
39332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * ada-lang.c (ada_print_array_index): Delete function, move
3936 implementation to...
3937 (ada_language::print_array_index): ...here.
3938 (ada_language_data): Delete la_print_array_index initializer.
3939 * c-lang.c (c_language_data): Likewise.
3940 (cplus_language_data): Likewise.
3941 (minimal_language_data): Likewise.
3942 * d-lang.c (d_language_data): Likewise.
3943 * f-lang.c (f_language_data): Likewise.
3944 * go-lang.c (go_language_data): Likewise.
3945 * language.c (default_print_array_index): Delete function, move
3946 implementation to...
3947 (language_defn::print_array_index): ...here.
3948 (unknown_language_data): Delete la_print_array_index initializer.
3949 (auto_language_data): Likewise.
3950 * language.h (struct language_data): Delete la_print_array_index
3951 field.
3952 (language_defn::print_array_index): New member function.
3953 (LA_PRINT_ARRAY_INDEX): Update.
3954 (default_print_array_index): Delete declaration.
3955 * m2-lang.c (m2_language_data): Delete la_print_array_index
3956 initializer.
3957 * objc-lang.c (objc_language_data): Likewise.
3958 * opencl-lang.c (opencl_language_data): Likewise.
3959 * p-lang.c (pascal_language_data): Likewise.
3960 * rust-lang.c (rust_language_data): Likewise.
3961
0874fd07
AB
39622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * gdb/ada-lang.c (ada_language_defn): Convert to...
3965 (ada_language_data): ...this.
3966 (class ada_language): New class.
3967 (ada_language_defn): New static global.
3968 * gdb/c-lang.c (c_language_defn): Convert to...
3969 (c_language_data): ...this.
3970 (class c_language): New class.
3971 (c_language_defn): New static global.
3972 (cplus_language_defn): Convert to...
3973 (cplus_language_data): ...this.
3974 (class cplus_language): New class.
3975 (cplus_language_defn): New static global.
3976 (asm_language_defn): Convert to...
3977 (asm_language_data): ...this.
3978 (class asm_language): New class.
3979 (asm_language_defn): New static global.
3980 (minimal_language_defn): Convert to...
3981 (minimal_language_data): ...this.
3982 (class minimal_language): New class.
3983 (minimal_language_defn): New static global.
3984 * gdb/d-lang.c (d_language_defn): Convert to...
3985 (d_language_data): ...this.
3986 (class d_language): New class.
3987 (d_language_defn): New static global.
3988 * gdb/f-lang.c (f_language_defn): Convert to...
3989 (f_language_data): ...this.
3990 (class f_language): New class.
3991 (f_language_defn): New static global.
3992 * gdb/go-lang.c (go_language_defn): Convert to...
3993 (go_language_data): ...this.
3994 (class go_language): New class.
3995 (go_language_defn): New static global.
3996 * gdb/language.c (unknown_language_defn): Remove declaration.
3997 (current_language): Initialize to nullptr, real initialization is
3998 moved to _initialize_language.
3999 (languages): Delete global.
4000 (language_defn::languages): Define.
4001 (set_language_command): Use language_defn::languages.
4002 (set_language): Likewise.
4003 (range_error): Likewise.
4004 (language_enum): Likewise.
4005 (language_def): Likewise.
4006 (add_set_language_command): Use language_def::languages for the
4007 language list, and language_def to lookup language pointers.
4008 (skip_language_trampoline): Use language_defn::languages.
4009 (unknown_language_defn): Convert to...
4010 (unknown_language_data): ...this.
4011 (class unknown_language): New class.
4012 (unknown_language_defn): New static global.
4013 (auto_language_defn): Convert to...
4014 (auto_language_data): ...this.
4015 (class auto_language): New class.
4016 (auto_language_defn): New static global.
4017 (language_gdbarch_post_init): Use language_defn::languages.
4018 (_initialize_language): Initialize current_language.
4019 * gdb/language.h (struct language_defn): Rename to...
4020 (struct language_data): ...this.
4021 (struct language_defn): New.
4022 (auto_language_defn): Delete.
4023 (unknown_language_defn): Delete.
4024 (minimal_language_defn): Delete.
4025 (ada_language_defn): Delete.
4026 (asm_language_defn): Delete.
4027 (c_language_defn): Delete.
4028 (cplus_language_defn): Delete.
4029 (d_language_defn): Delete.
4030 (f_language_defn): Delete.
4031 (go_language_defn): Delete.
4032 (m2_language_defn): Delete.
4033 (objc_language_defn): Delete.
4034 (opencl_language_defn): Delete.
4035 (pascal_language_defn): Delete.
4036 (rust_language_defn): Delete.
4037 * gdb/m2-lang.c (m2_language_defn): Convert to...
4038 (m2_language_data): ...this.
4039 (class m2_language): New class.
4040 (m2_language_defn): New static global.
4041 * gdb/objc-lang.c (objc_language_defn): Convert to...
4042 (objc_language_data): ...this.
4043 (class objc_language): New class.
4044 (objc_language_defn): New static global.
4045 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4046 (opencl_language_data): ...this.
4047 (class opencl_language): New class.
4048 (opencl_language_defn): New static global.
4049 * gdb/p-lang.c (pascal_language_defn): Convert to...
4050 (pascal_language_data): ...this.
4051 (class pascal_language): New class.
4052 (pascal_language_defn): New static global.
4053 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4054 language pointer, update comment format.
4055 * gdb/rust-lang.c (rust_language_defn): Convert to...
4056 (rust_language_data): ...this.
4057 (class rust_language): New class.
4058 (rust_language_defn): New static global.
4059
1313c56e
AB
40602020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4063 member variable.
4064 <m_stmt_at_address>: New member variable.
4065 (lnp_state_machine::record_line): Don't record some lines, update
4066 tracking of is_stmt at the same address.
4067 (lnp_state_machine::lnp_state_machine): Initialise new member
4068 variables.
4069
b7ed9f3d
ST
40702020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4071
4072 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4073 "-include gnu-nat-mig.h".
4074 * gnu-nat-mig.h: New file.
4075 * gnu-nat.c: Include "gnu-nat-mig.h".
4076 (exc_server, msg_reply_server, notify_server,
4077 process_reply_server): Remove declarations.
4078
14a8ad62
ST
40792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4080
4081 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4082 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4083 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4084 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4085 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4086 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4087 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4088 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4089 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4090 to gnu_nat_target class.
4091 * gnu-nat.c: Likewise.
4092 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4093 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4094 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4095 object.
4096 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4097 instead of `gnu_target'.
4098
0af5e106
ST
40992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4100
4101 * i386-gnu-tdep.c: Include "gdbcore.h"
4102 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4103 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4104 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4105 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4106 i386_gnu_sigcontext_addr): New functions
4107 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4108 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4109 tdep.
4110
078f2fc9
ST
41112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4112
4113 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4114 before fork_inferior call. Avoid calling it if target_is_pushed returns
4115 true.
4116
53dff92c
ST
41172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4118
4119 * gnu-nat.h (gnu_target): New variable declaration.
4120 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4121 gnu_target.
4122 * gnu-nat.c (gnu_target): New variable.
4123 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4124 add_thread_silent, and add_thread calls.
4125 (gnu_nat_target::create_inferior): Pass gnu_target to
4126 add_thread_silent, thread_change_ptid call.
4127 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4128 call.
4129
5a8b8627
ST
41302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4131
4132 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4133 (gnu_nat_target::find_memory_regions): Remove unused
4134 `old_address' variable.
4135
366f550a
ST
41362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4137
4138 * gnu-nat.c: Include "gdbarch.h".
4139
f14871bf
ST
41402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4141
4142 * reply_mig_hack.awk (Error return): Cast function through
4143 void *, to bypass compiler function call check.
4144
c6887cfb
ST
41452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4146
4147 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4148 $(srcdir)/reply_mig_hack.awk.
4149
6930bffe
ST
41502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4151
4152 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4153
112c22ed
JG
41542020-05-30 Jonny Grant <jg@jguk.org>
4155
4156 * configure.ac (ACX_BUGURL): change bug URL to https.
4157
f68f85b5
PA
41582020-05-30 Pedro Alves <palves@redhat.com>
4159
4160 * cp-support.c (replace_typedefs_template): New.
4161 (replace_typedefs_qualified_name): Handle
4162 DEMANGLE_COMPONENT_TEMPLATE.
4163
976ca316
SM
41642020-05-29 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4167 dwarf2/index-cache.h, dwarf2/index-write.c,
4168 dwarf2/index-write.h, dwarf2/line-header.c,
4169 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4170 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4171 variables and fields from `dwarf2_per_objfile` to just
4172 `per_objfile` throughout.
4173
989ade05
SM
41742020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4175
4176 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4177 <push_dwarf_reg_entry_value>: Add comment.
4178
c47bae85
KB
41792020-05-28 Kevin Buettner <kevinb@redhat.com>
4180 Keith Seitz <keiths@redhat.com>
4181
4182 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4183 instead of PyEval_ReleaseLock.
4184 (class gdbpy_gil): Move to earlier in file.
4185 (finalize_python): Set gdb_python_initialized.
4186 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4187 when not initialized.
4188
44486dcf
SM
41892020-05-28 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4192 <push_dwarf_reg_entry_value>: Remove assert. Override
4193 per_objfile with caller_per_objfile.
4194
f030440d
TV
41952020-05-28 Tom de Vries <tdevries@suse.de>
4196
4197 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4198 PR gold/15646 workaround to symbol kind "type".
4199
f0fbb768
TT
42002020-05-27 Tom Tromey <tromey@adacore.com>
4201
4202 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4203
af0b2a3e
TT
42042020-05-27 Tom Tromey <tromey@adacore.com>
4205
4206 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4207 Use htab_find_with_hash.
4208 <add_abbrev>: Remove "abbrev_number" parameter.
4209 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4210 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4211 (hash_abbrev): Add comment.
4212 (abbrev_table::lookup_abbrev): Move to header file.
4213 (abbrev_table::read): Update.
4214
7d00ffec
TT
42152020-05-27 Tom Tromey <tromey@adacore.com>
4216
4217 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4218 method.
4219 <canonical_name>: New member.
4220 <raw_name>: Rename from "name".
4221 (partial_die_info): Initialize canonical_name.
4222 (scan_partial_symbols): Check raw_name.
4223 (partial_die_parent_scope, partial_die_full_name)
4224 (add_partial_symbol, add_partial_subprogram)
4225 (add_partial_enumeration, load_partial_dies): Use "name" method.
4226 (partial_die_info::name): New method.
4227 (partial_die_info::read, guess_partial_die_structure_name)
4228 (partial_die_info::fixup): Update.
4229
697bba18
TT
42302020-05-27 Tom Tromey <tromey@adacore.com>
4231
4232 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4233 <get_ref_die_offset>: Inline.
4234 <get_ref_die_offset_complaint>: New method.
4235 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4236 (attribute::get_ref_die_offset_complaint): Rename from
4237 get_ref_die_offset. Just issue complaint.
4238
c17ace43
HD
42392020-05-27 Hannes Domani <ssbssa@yahoo.de>
4240
4241 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4242
96445f0b
HD
42432020-05-27 Hannes Domani <ssbssa@yahoo.de>
4244
4245 * exec.c (exec_file_attach): Use errno value of first openp failure.
4246
ac637ec3
HD
42472020-05-27 Hannes Domani <ssbssa@yahoo.de>
4248
4249 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4250 Don't close thread handle.
4251
17ee85fc
TT
42522020-05-27 Tom Tromey <tom@tromey.com>
4253 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4256 shared_ptr.
4257 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4258 member.
4259 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4260 dwarf2_per_bfd_objfile_data_key>: New globals.
4261 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4262 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4263 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4264 shared.
4265 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4266 short-circuit when sharing.
4267 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4268 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4269
39b16f87
SM
42702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4273 to...
4274 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4275 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4276
fcf23d5b
SM
42772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4280 build_name_components, find_name_components_bounds>:
4281 Add per_objfile parameter.
4282 (struct mapped_index) <symbol_name_at>: Likewise.
4283 (struct mapped_debug_names): Remove constructor.
4284 <dwarf2_per_objfile>: Remove field.
4285 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4286 (mapped_index_base::find_name_components_bounds,
4287 mapped_index_base::build_name_components,
4288 dw2_expand_symtabs_matching_symbol): Likewise.
4289 (class mock_mapped_index) <symbol_name_at>: Likewise.
4290 (check_match): Likewise.
4291 (check_find_bounds_finds): Likewise.
4292 (test_mapped_index_find_name_component_bounds): Update.
4293 (CHECK_MATCH): Update.
4294 (dw2_expand_symtabs_matching): Update.
4295 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4296 per_objfile parameter.
4297 <find_vec_in_debug_names>: Likewise.
4298 <m_per_objfile>: New field.
4299 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4300 parameter.
4301 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4302 (dw2_debug_names_iterator::next): Update.
4303 (dw2_debug_names_lookup_symbol): Update.
4304 (dw2_debug_names_expand_symtabs_for_function): Update.
4305 (dw2_debug_names_map_matching_symbols): Update.
4306 (dw2_debug_names_expand_symtabs_matching): Update.
4307 (dwarf2_read_debug_names): Update.
4308
7188ed02
SM
43092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4312 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4313 move to dwarf2_per_objfile.
4314 <read_in_chain>: Remove.
4315 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4316 remove_all_cus, age_comp_units>: New methods.
4317 <m_dwarf2_cus>: New member.
4318 (struct dwarf2_per_cu_data) <cu>: Remove.
4319 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4320 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4321 moved to methods of dwarf2_per_objfile.
4322 (dwarf2_clear_marks): Remove.
4323 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4324 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4325 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4326 (dwarf2_per_objfile::remove_all_cus): New.
4327 (class free_cached_comp_units) <~free_cached_comp_units>:
4328 Update.
4329 (load_cu): Update.
4330 (dw2_do_instantiate_symtab): Adjust.
4331 (fill_in_sig_entry_from_dwo_entry): Adjust.
4332 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4333 (cutu_reader::cutu_reader): Likewise.
4334 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4335 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4336 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4337 and dwarf2_per_objfile::age_comp_units.
4338 (load_partial_comp_unit): Update.
4339 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4340 (process_queue): Likewise.
4341 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4342 backlink.
4343 (dwarf2_read_addr_index): Likewise.
4344 (follow_die_offset): Likewise.
4345 (dwarf2_fetch_die_loc_sect_off): Likewise.
4346 (dwarf2_fetch_constant_bytes): Likewise.
4347 (dwarf2_fetch_die_type_sect_off): Likewise.
4348 (follow_die_sig_1): Likewise.
4349 (load_full_type_unit): Likewise.
4350 (read_signatured_type): Likewise.
4351 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4352 (dwarf2_cu::~dwarf2_cu): Remove.
4353 (dwarf2_per_objfile::get_cu): New.
4354 (dwarf2_per_objfile::set_cu): New.
4355 (age_cached_comp_units): Rename to...
4356 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4357 to std::unordered_map.
4358 (free_one_cached_comp_unit): Rename to...
4359 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4360 to std::unordered_map.
4361 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4362 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4363 a dwarf2_per_objfile in data.
4364 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4365 (dwarf2_clear_marks): Remove.
4366
2e671100
SM
43672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4370 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4371 (init_tu_and_read_dwo_dies): Likewise.
4372 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4373 (cutu_reader::cutu_reader): Likewise.
4374 (load_partial_comp_unit): Likewise.
4375 (process_psymtab_comp_unit): Update.
4376 (build_type_psymtabs_1): Update.
4377 (process_skeletonless_type_unit): Update.
4378 (load_full_comp_unit): Update.
4379 (find_partial_die): Update.
4380 (dwarf2_read_addr_index): Update.
4381 (read_signatured_type): Update.
4382
2e6a9f79
SM
43832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4386 m_header_read_in>: New fields.
4387 <get_header>: New method.
4388 * dwarf2/read.c (per_cu_header_read_in): Remove.
4389 (dwarf2_per_cu_data::get_header): New.
4390 (dwarf2_per_cu_data::addr_size): Update.
4391 (dwarf2_per_cu_data::offset_size): Update.
4392 (dwarf2_per_cu_data::ref_addr_size): Update.
4393
1b555f17
SM
43942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4397 (dw2_do_instantiate_symtab): Update.
4398 (queue_and_load_all_dwo_tus): Change parameter from
4399 dwarf2_per_cu_data to dwarf2_cu.
4400 (dwarf2_fetch_die_loc_sect_off): Update.
4401 (dwarf2_fetch_constant_bytes): Update.
4402 (dwarf2_fetch_die_type_sect_off): Update.
4403
8fc0b21d
SM
44042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * dwarf2/read.c (process_full_comp_unit,
4407 process_full_type_unit): Remove per_cu, per_objfile paramters.
4408 Add dwarf2_cu parameter.
4409 (process_queue): Update.
4410
168c9250
SM
44112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * dwarf2/read.c (create_cu_from_index_list): Replace
4414 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4415 (create_cus_from_index_list): Likewise.
4416 (create_cus_from_index): Likewise.
4417 (create_signatured_type_table_from_index): Likewise.
4418 (create_cus_from_debug_names_list): Likewise.
4419 (create_cus_from_debug_names): Likewise.
4420 (dwarf2_read_gdb_index): Update.
4421 (dwarf2_read_debug_names): Update.
4422
e286671b
TT
44232020-05-27 Tom Tromey <tom@tromey.com>
4424 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * dwarf2/read.h (struct dwarf2_per_objfile)
4427 <get_type_for_signatured_type, set_type_for_signatured_type>:
4428 New methods.
4429 <m_type_map>: New member.
4430 (struct signatured_type) <type>: Remove.
4431 * dwarf2/read.c
4432 (dwarf2_per_objfile::get_type_for_signatured_type,
4433 dwarf2_per_objfile::set_type_for_signatured_type): New.
4434 (get_signatured_type): Use new methods.
4435
8adb8487
TT
44362020-05-27 Tom Tromey <tom@tromey.com>
4437 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4440 (struct dwarf2_per_objfile) <type_units>: New member.
4441 <get_type_unit_group_unshareable>: New method.
4442 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4443 num_symtabs, symtabs>: Remove; move to
4444 type_unit_group_unshareable.
4445 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4446 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4447 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4448
127bbf4b
SM
44492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * dwarf2/read.h (struct dwarf2_per_cu_data):
4452 <dwarf2_per_objfile>: Remove.
4453 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4454 dwarf2_per_objfile.
4455 (create_signatured_type_table_from_index): Likewise.
4456 (create_signatured_type_table_from_debug_names): Likewise.
4457 (create_debug_type_hash_table): Likewise.
4458 (fill_in_sig_entry_from_dwo_entry): Likewise.
4459 (create_type_unit_group): Likewise.
4460 (read_comp_units_from_section): Likewise.
4461 (create_cus_hash_table): Likewise.
4462
f6e649dd
SM
44632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4466 dwarf2_per_cu_data::dwarf2_per_objfile.
4467 (compute_compunit_symtab_includes): Likewise.
4468 (dwarf2_cu::start_symtab): Likewise.
4469
aa66c379
SM
44702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4473 parameter.
4474 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4475 (read_namespace_alias): Update.
4476 (lookup_die_type): Update.
4477 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4478 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4479 Update.
4480 (disassemble_dwarf_expression): Update.
4481
120ce1b5
SM
44822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * dwarf2/read.h (struct dwarf2_queue_item): Add
4485 dwarf2_per_objfile parameter, assign new parameter.
4486 <per_objfile>: New field.
4487 * dwarf2/read.c (free_one_cached_comp_unit): Add
4488 dwarf2_per_objfile parameter.
4489 (queue_comp_unit): Likewise.
4490 (dw2_do_instantiate_symtab): Update.
4491 (process_psymtab_comp_unit): Update.
4492 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4493 (process_imported_unit_die): Update.
4494 (queue_and_load_dwo_tu): Update.
4495 (follow_die_offset): Update.
4496 (follow_die_sig_1): Update.
4497
9f47c707
SM
44982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4501 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4502 (read_call_site_scope): Assign per_objfile.
4503 (dwarf2_per_cu_data::objfile): Remove.
4504 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4505 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4506 dwarf2_per_objfile parameter.
4507 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4508 dwarf2_per_objfile parameter.
4509 (dwarf_expr_reg_to_entry_parameter): Add output
4510 dwarf2_per_objfile parameter.
4511 (locexpr_get_frame_base): Update.
4512 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4513 <push_dwarf_reg_entry_value>: Update.
4514 <call_site_to_target_addr>: Update.
4515 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4516 parameter.
4517 (value_of_dwarf_reg_entry): Update.
4518 (rw_pieced_value): Update.
4519 (indirect_synthetic_pointer): Update.
4520 (dwarf2_evaluate_property): Update.
4521 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4522 parameter.
4523 (locexpr_read_variable): Update.
4524 (locexpr_get_symbol_read_needs): Update.
4525 (loclist_read_variable): Update.
4526
14095eb3
SM
45272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4530 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4531 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4532 parameter.
4533 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4534 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4535 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4536 parameter.
4537 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4538 sect_variable_value): Add dwarf2_per_objfile parameter.
4539 (class dwarf_evaluate_loc_desc) <dwarf_call,
4540 dwarf_variable_value>: Update.
4541 (fetch_const_value_from_synthetic_pointer): Add
4542 dwarf2_per_objfile parameter.
4543 (fetch_const_value_from_synthetic_pointer): Update.
4544 (coerced_pieced_ref): Update.
4545 (class symbol_needs_eval_context) <dwarf_call,
4546 dwarf_variable_value>: Update.
4547 (dwarf2_compile_expr_to_ax): Update.
4548
3c3cd3d4
SM
45492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4552 parameter.
4553 (dwarf2_evaluate_loc_desc_full): Update.
4554
82ca3f51
SM
45552020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4558 parameter.
4559 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4560 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4561 dwarf2_per_objfile parameter.
4562 (decode_debug_loc_dwo_addresses): Likewise.
4563 (dwarf2_find_location_expression): Update.
4564 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4565 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4566 parameter.
4567 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4568 parameter.
4569 (locexpr_describe_location_1): Likewise.
4570 (locexpr_describe_location): Update.
4571
4b167ea1
SM
45722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4575 Remove.
4576 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4577 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4578 (dwarf2_compile_property_to_c): Update.
4579 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4580 use text offset from objfile.
4581 (locexpr_tracepoint_var_ref): Update.
4582 (locexpr_generate_c_location): Update.
4583 (loclist_describe_location): Update.
4584 (loclist_tracepoint_var_ref): Update.
4585 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4586 dwarf2_per_objfile parameter.
4587 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4588 use text offset from objfile.
4589 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4590
89b07335
SM
45912020-05-27 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * dwarf2/expr.h (struct dwarf_expr_context)
4594 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4595 <offset>: Remove.
4596 <per_objfile>: New member.
4597 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4598 dwarf2_per_objfile parameter. Don't set offset, set
4599 per_objfile.
4600 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4601 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4602 a dwarf2_per_objfile object instead of an offset.
4603 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4604 constructor.
4605 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4606 to dwarf2_expr_executor constructor. Don't set offset.
4607 (dwarf2_fetch_cfa_info): Update.
4608 (struct dwarf2_frame_cache) <text_offset>: Remove.
4609 <per_objfile>: New field.
4610 (dwarf2_frame_cache): Update.
4611 (dwarf2_frame_prev_register): Update.
4612 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4613 <dwarf_evaluate_loc_desc>: Add constructor.
4614 (dwarf2_evaluate_loc_desc_full): Update.
4615 (dwarf2_locexpr_baton_eval): Update.
4616 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4617 Add constructor.
4618 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4619
293e7e51
SM
46202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4623 addr_sized_int_type>: Move to dwarf2_cu.
4624 <int_type>: Move to dwarf2_per_objfile.
4625 (struct dwarf2_per_objfile) <int_type>: Move here.
4626 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4627 addr_sized_int_type>: Move here.
4628 (read_func_scope): Update.
4629 (read_array_type): Update.
4630 (read_tag_string_type): Update.
4631 (attr_to_dynamic_prop): Update.
4632 (dwarf2_per_cu_data::int_type): Rename to...
4633 (dwarf2_per_objfile::int_type): ... this.
4634 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4635 (dwarf2_cu::addr_sized_int_type): ... this.
4636 (read_subrange_type): Update.
4637 (dwarf2_per_cu_data::addr_type): Rename to...
4638 (dwarf2_cu::addr_type): ... this.
4639 (set_die_type): Update.
4640
64874a40
SM
46412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4644 data through per_cu->cu.
4645
4ab09049
SM
46462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4649 dwarf2_per_cu_data parameter fo dwarf2_cu.
4650 (lookup_dwo_type_unit): Likewise.
4651 (read_cutu_die_from_dwo): Likewise.
4652 (lookup_dwo_unit): Likewise.
4653 (open_and_init_dwo_file): Likewise.
4654 (lookup_dwo_cutu): Likewise.
4655 (lookup_dwo_comp_unit): Likewise.
4656 (lookup_dwo_type_unit): Likewise.
4657 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4658 (cutu_reader::cutu_reader): Update.
4659
47b14e86
SM
46602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4663 parameter.
4664 (process_full_type_unit): Likewise.
4665 (process_queue): Update.
4666
43182c09
SM
46672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * dwarf2/read.c (recursively_compute_inclusions): Add
4670 dwarf2_per_objfile parameter.
4671 (compute_compunit_symtab_includes): Likewise.
4672 (process_cu_includes): Update.
4673
7aa104c4
SM
46742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4677 parameter.
4678 (create_type_unit_group): Update.
4679 (process_psymtab_comp_unit_reader): Update.
4680 (build_type_psymtabs_reader): Update.
4681
e3beb21d
SM
46822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4685 object through m_this_cu->cu.
4686
d460f660
SM
46872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4690 the info parameter.
4691 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4692
ab432490
SM
46932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4694
4695 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4696 per_objfile parameter.
4697 (load_full_type_unit): Add per_objfile parameter.
4698 (read_signatured_type): Likewise.
4699 (load_full_comp_unit): Likewise.
4700 (load_cu): Likewise.
4701 (dw2_do_instantiate_symtab): Likewise.
4702 (dw2_get_file_names): Likewise.
4703 (dw2_map_symtabs_matching_filename): Update.
4704 (dw_expand_symtabs_matching_file_matcher): Update.
4705 (dw2_map_symbol_filenames): Update.
4706 (process_psymtab_comp_unit): Add per_objfile parameter.
4707 (build_type_psymtabs_1): Update.
4708 (process_skeletonless_type_unit): Update.
4709 (dwarf2_build_psymtabs_hard): Update.
4710 (load_partial_comp_unit): Add per_objfile parameter.
4711 (scan_partial_symbols): Update.
4712 (load_full_comp_unit): Add per_objfile parameter.
4713 (process_imported_unit_die): Update.
4714 (create_cus_hash_table): Update.
4715 (find_partial_die): Update.
4716 (dwarf2_read_addr_index): Update.
4717 (follow_die_offset): Update.
4718 (dwarf2_fetch_die_loc_sect_off): Update.
4719 (dwarf2_fetch_constant_bytes): Update.
4720 (dwarf2_fetch_die_type_sect_off): Update.
4721 (follow_die_sig_1): Update.
4722 (load_full_type_unit): Add per_objfile parameter.
4723 (read_signatured_type): Likewise.
4724
313bad1b
SM
47252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4728 of objfile_name.
4729
c3699833
SM
47302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4733 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4734 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4735 field.
4736 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4737 (create_cus_from_index): Update.
4738 (dwarf2_read_gdb_index): Update.
4739 (create_cus_from_debug_names): Update.
4740 (dwarf2_read_debug_names): Update.
4741 (get_abbrev_section_for_cu): Update.
4742 (create_all_comp_units): Update.
4743 (read_attribute_value): Update.
4744 (get_debug_line_section): Update.
4745 * dwarf2/index-cache.c (index_cache::store): Update.
4746 * dwarf2/index-write.c (save_gdb_index_command): Update.
4747 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4748
1859c670
SM
47492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4750
4751 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4752 member.
4753 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4754 dwarf2_per_cu_data::per_bfd.
4755 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4756 (create_type_unit_group): Likewise.
4757 (queue_comp_unit): Remove reference to
4758 per_cu->dwarf2_per_objfile.
4759 (maybe_queue_comp_unit): Likewise.
4760 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4761 (create_cus_hash_table): Assign new field.
4762
5e22e966
SM
47632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4764
4765 * dwarf2/read.c: Replace
4766 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4767 dwarf2_cu->per_objfile throughout.
4768
97a1449a
SM
47692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4772 parameter, don't use per_cu->dwarf2_per_objfile.
4773 (dw2_instantiate_symtab): Likewise.
4774 (dw2_find_last_source_symtab): Update.
4775 (dw2_map_expand_apply): Update.
4776 (dw2_lookup_symbol): Update.
4777 (dw2_expand_symtabs_for_function): Update.
4778 (dw2_expand_all_symtabs): Update.
4779 (dw2_expand_symtabs_with_fullname): Update.
4780 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4781 don't use per_cu->dwarf2_per_objfile.
4782 (dw2_expand_marked_cus): Update.
4783 (dw2_find_pc_sect_compunit_symtab): Update.
4784 (dw2_debug_names_lookup_symbol): Update.
4785 (dw2_debug_names_expand_symtabs_for_function): Update.
4786 (dw2_debug_names_map_matching_symbols): Update.
4787 (dwarf2_psymtab::expand_psymtab): Update.
4788
9e021579
SM
47892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4790
4791 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4792 <per_objfile>: New member.
4793 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4794 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4795 call to dwarf2_cu.
4796 (cutu_reader::cutu_reader): Update.
4797 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4798
ae090bdb
SM
47992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4800
4801 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4802 struct dwarf2_per_objfile.
4803 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4804 dwarf2_per_bfd.
4805 * dwarf2/read.c (set_die_type): Update.
4806 (get_die_type_at_offset): Update.
4807
af758d11
SM
48082020-05-27 Tom Tromey <tom@tromey.com>
4809 Simon Marchi <simon.marchi@efficios.com>
4810
4811 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4812 method.
4813 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4814 get_symtab, set_symtab>: New methods.
4815 <m_symtabs>: New field.
4816 (struct dwarf2_psymtab): Derive from partial_symtab.
4817 <readin_p, get_compunit_symtab>: Declare methods.
4818 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4819 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4820 New methods.
4821 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4822 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4823 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4824 (dw2_symtab_iter_next, dw2_print_stats)
4825 (dw2_expand_symtabs_with_fullname)
4826 (dw2_expand_symtabs_matching_one)
4827 (dw_expand_symtabs_matching_file_matcher)
4828 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4829 (dw2_debug_names_iterator::next)
4830 (dw2_debug_names_map_matching_symbols)
4831 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4832 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4833 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4834 New methods.
4835 (get_compunit_symtab, process_full_comp_unit)
4836 (process_full_type_unit): Update.
4837 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4838
5989a64e
SM
48392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4840
4841 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4842 then introduce a new dwarf2_per_objfile type.
4843 <read_line_string>: Move to the new dwarf2_per_objfile type.
4844 <objfile>: Likewise.
4845 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4846 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4847 dwarf2_per_objfile->per_bfd.
4848 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4849 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4850 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4851 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4852 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4853 (dwarf2_per_objfile::locate_sections): Rename to...
4854 (dwarf2_per_bfd::locate_sections): ... this.
4855 (dwarf2_per_objfile::get_cutu): Rename to...
4856 (dwarf2_per_bfd::get_cutu): ... this.
4857 (dwarf2_per_objfile::get_cu): Rename to...
4858 (dwarf2_per_bfd::get_cu): ... this.
4859 (dwarf2_per_objfile::get_tu): Rename to...
4860 (dwarf2_per_bfd::get_tu): ... this.
4861 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4862 (dwarf2_per_bfd::allocate_per_cu): ... this.
4863 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4864 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4865 (get_gdb_index_contents_ftype): Change parameter from
4866 dwarf2_per_objfile to dwarf2_per_bfd.
4867 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4868 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4869
a50264ba
TT
48702020-05-27 Tom Tromey <tom@tromey.com>
4871 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4874 (allocate_piece_closure): Set "per_objfile" member.
4875 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4876 (locexpr_describe_location, loclist_describe_location): Use new
4877 member.
4878 * dwarf2/read.c (read_call_site_scope)
4879 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4880 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4881 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4882 handle_data_member_location): Set per_objfile member.
4883 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4884 member.
4885 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4886
d3473f0c
TT
48872020-05-27 Tom Tromey <tom@tromey.com>
4888
4889 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4890 allocate_signatured_type>: Declare new methods.
4891 <m_num_psymtabs>: New member.
4892 (struct dwarf2_per_cu_data) <index>: New member.
4893 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4894 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4895 (create_cu_from_index_list): Use allocate_per_cu.
4896 (create_signatured_type_table_from_index)
4897 (create_signatured_type_table_from_debug_names)
4898 (create_debug_type_hash_table, add_type_unit)
4899 (read_comp_units_from_section): Use allocate_signatured_type.
4900
5717c425
TT
49012020-05-27 Tom Tromey <tom@tromey.com>
4902
4903 * psymtab.c (partial_map_expand_apply)
4904 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4905 (psym_lookup_global_symbol_language)
4906 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4907 (psym_print_stats, psym_expand_symtabs_for_function)
4908 (psym_map_symbol_filenames, psym_map_matching_symbols)
4909 (psym_expand_symtabs_matching)
4910 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4911 (maintenance_check_psymtabs): Update.
4912 * psympriv.h (struct partial_symtab) <readin_p,
4913 get_compunit_symtab>: Add objfile parameter.
4914 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4915 Likewise.
4916 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4917 get_compunit_symtab>: Likewise.
4918 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4919
45940949
TT
49202020-05-27 Tom Tromey <tom@tromey.com>
4921
4922 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4923 member.
4924 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4925 (create_cu_from_index_list)
4926 (create_signatured_type_table_from_index)
4927 (create_signatured_type_table_from_debug_names)
4928 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4929 (dwarf2_create_include_psymtab)
4930 (create_debug_type_hash_table, add_type_unit)
4931 (create_type_unit_group, read_comp_units_from_section)
4932 (dwarf2_compute_name, create_cus_hash_table)
4933 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4934 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4935 obstack.
4936 (dw2_get_real_path): Likewise. Change argument to
4937 dwarf2_per_objfile.
4938
f8c6d152
LM
49392020-05-27 Luis Machado <luis.machado@linaro.org>
4940
4941 PR tdep/26000
4942 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4943 for ldrd (immediate).
4944
e98d2e6d
PW
49452020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4946
4947 * command.h: Add comment giving the name of class_tui.
4948 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4949 create the fake command for the help for class_tui.
4950
53a47a3e
TT
49512020-05-26 Tom Tromey <tromey@adacore.com>
4952
4953 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4954 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4955 (val_atr): New function.
4956 (value_val_atr): Use it.
4957 * ada-valprint.c (print_optional_low_bound): Change low bound
4958 handling for enums.
4959 (val_print_packed_array_elements): Don't call discrete_position.
4960 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4961 discrete_position for enum types.
4962 * language.c (default_print_array_index): Change type.
4963 * language.h (struct language_defn) <la_print_array_index>: Add
4964 index_type parameter, change type of index_value.
4965 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4966 (default_print_array_index): Update.
4967 * valprint.c (maybe_print_array_index): Don't call
4968 value_from_longest. Update.
4969 (value_print_array_elements): Don't call discrete_position.
4970
0bc2354b
TT
49712020-05-26 Tom Tromey <tromey@adacore.com>
4972
4973 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4974 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4975
1218a4bf
CDA
49762020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4977
4978 PR gdb/13519
4979 * avr-tdep.c (avr_integer_to_address): Return data or code
4980 address accordingly to the second 'type' argument of the
4981 function.
4982
92651b1d
MW
49832020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4984
4985 * infcmd.c, inferior.h: (construct_inferior_arguments):
4986 Moved function from here to gdbsupport/common-inferior.{h,cc}
4987
0a4f5f8c
TT
49882020-05-23 Tom Tromey <tom@tromey.com>
4989
4990 Revert commit eca1f90c:
4991 * NEWS: Remove entry for completion styling.
4992 * completer.c (_rl_completion_prefix_display_length): Move
4993 declaration later.
4994 (gdb_fnprint): Revert.
4995 (gdb_display_match_list_1): Likewise.
4996 * cli/cli-style.c (completion_prefix_style)
4997 (completion_difference_style, completion_suffix_style): Remove.
4998 (_initialize_cli_style): Revert.
4999 * cli/cli-style.h (completion_prefix_style)
5000 (completion_difference_style, completion_suffix_style): Don't
5001 declare.
5002
e08bd6c5
PA
50032020-05-24 Pedro Alves <palves@redhat.com>
5004
5005 * symtab.c (completion_list_add_name): Return boolean indication
5006 of whether the symbol matched.
5007 (completion_list_add_symbol): Don't try to remove C++ aliases if
5008 the symbol didn't match in the first place.
5009 * symtab.h (completion_list_add_name): Return bool.
5010
ceacbf6e
SM
50112020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5014 type::field.
5015
26f16254
JB
50162020-05-23 Joel Brobecker <brobecker@adacore.com>
5017
5018 GDB 9.2 released.
5019
eca1f90c
TT
50202020-05-23 Tom Tromey <tom@tromey.com>
5021
5022 * NEWS: Add entry for completion styling.
5023 * completer.c (_rl_completion_prefix_display_length): Move
5024 declaration earlier.
5025 (gdb_fnprint): Use completion_style.
5026 (gdb_display_match_list_1): Likewise.
5027 * cli/cli-style.c (completion_prefix_style)
5028 (completion_difference_style, completion_suffix_style): New
5029 globals.
5030 (_initialize_cli_style): Register new globals.
5031 * cli/cli-style.h (completion_prefix_style)
5032 (completion_difference_style, completion_suffix_style): Declare.
5033
51e2cfa2
PA
50342020-05-23 Pedro Alves <palves@redhat.com>
5035
5036 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5037 (parse_escape): Use ISDIGIT instead of isdigit.
5038 (puts_debug): Use gdb_isprint instead of isprint.
5039 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5040 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5041 ISSPACE instead of isspace.
5042 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5043 instead of isspace.
5044 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5045 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5046 instead of isxdigit and ISDIGIT instead of isdigit.
5047
80fc5e77
SM
50482020-05-22 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * gdbtypes.h (struct type) <field>: New method.
5051 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5052 or type::field.
5053
3cabb6b0
SM
50542020-05-22 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5057 (TYPE_FIELDS): Use type::fields. Change all call sites that
5058 modify the propery to use type::set_fields instead.
5059
1f704f76
SM
50602020-05-22 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5063 type::num_fields instead.
5064
5e33d5f4
SM
50652020-05-22 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5068 methods.
5069 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5070 that modify the number of fields to use type::set_num_fields
5071 instead.
5072
9392ebb3
TT
50732020-05-22 Tom Tromey <tromey@adacore.com>
5074
5075 * compile/compile-object-load.h (munmap_list_free): Don't
5076 declare.
5077
7c13f4e8
AB
50782020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * annotate.c (annotate_source_line): Update return type, add call
5081 to update current symtab and line.
5082 * annotate.h (annotate_source_line): Update return type, and
5083 extend header comment.
5084 * source.c (info_line_command): Check annotation_level before
5085 calling annotate_source_line.
5086 * stack.c (print_frame_info): If calling annotate_source_line
5087 returns true, then don't print any other source line information.
5088
aa370940
SM
50892020-05-21 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5092
84d53fa9
SM
50932020-05-21 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * coffread.c (patch_type): Remove NULL check before xfree.
5096 * corefile.c (set_gnutarget): Likewise.
5097 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5098 * exec.c (build_section_table): Likewise.
5099 * remote.c (remote_target::pass_signals): Likewise.
5100 * utils.c (n_spaces): Likewise.
5101 * cli/cli-script.c (document_command): Likewise.
5102 * i386-windows-tdep.c (core_process_module_section): Likewise.
5103 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5104
9d428aae
SM
51052020-05-20 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * symfile.c (reread_symbols): Clear objfile's section_offsets
5108 vector and section indices, re-compute them by calling
5109 sym_offsets.
5110
250106a7
TT
51112020-05-20 Tom Tromey <tromey@adacore.com>
5112
5113 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5114 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5115
9a0bacfb
TV
51162020-05-20 Tom de Vries <tdevries@suse.de>
5117
5118 PR symtab/25833
5119 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5120
7b958a48
AM
51212020-05-20 Alan Modra <amodra@gmail.com>
5122
5123 PR 25993
5124 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5125 bfd_set_filename.
5126 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5127 passed to bfd_set_filename.
5128 * symfile-mem.c (add_vsyscall_page): Likewise for string
5129 passed to symbol_file_add_from_memory.
5130 (symbol_file_add_from_memory): Make name param a const char* and
5131 don't strdup.
5132
c7e97679
AM
51332020-05-20 Alan Modra <amodra@gmail.com>
5134
5135 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5136 rather than accessing bfd->filename directly.
5137 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5138 and use bfd_section_name.
5139 * dwarf2/frame.c (decode_frame_entry): Likewise.
5140 * exec.c (exec_set_section_address): Likewise.
5141 * solib-aix.c (solib_aix_bfd_open): Likewise.
5142 * stap-probe.c (get_stap_base_address): Likewise.
5143 * symfile.c (reread_symbols): Likewise.
5144
563c591b
TT
51452020-05-19 Tom Tromey <tromey@adacore.com>
5146
5147 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5148
f408d82c
SM
51492020-05-19 Simon Marchi <simon.marchi@efficios.com>
5150
5151 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5152
98c59b52
PA
51532020-05-19 Pedro Alves <palves@redhat.com>
5154
5155 * NEWS (set exec-file-mismatch): Adjust entry.
5156 * exec.c: Include "build-id.h".
5157 (validate_exec_file): Try to match build IDs instead of filenames.
5158 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5159 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5160 and pass down 'warn_if_slow'.
5161 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5162 gdb_bfd_open_closure to pass it down.
5163 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5164
4111f652
PA
51652020-05-19 Pedro Alves <palves@redhat.com>
5166
5167 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5168 * target.c (target_fileio_open_1): Rename to target_fileio_open
5169 and make extern. Use bool.
5170 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5171 (target_fileio_read_alloc_1): Adjust.
5172 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5173 (target_fileio_open_warn_if_slow): Delete declaration.
5174
ad80db5b
PA
51752020-05-19 Pedro Alves <palves@redhat.com>
5176
5177 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5178 Adjust all callers.
5179
1d6ce4d3
YS
51802020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5181
5182 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5183 whether disp is negative.
5184
9005fbbb
SM
51852020-05-19 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * symfile.h (struct symfile_segment_data)
5188 <~symfile_segment_data>: Remove.
5189 <segment_info>: Change to std::vector.
5190 * symfile.c (default_symfile_segments): Update.
5191 * elfread.c (elf_symfile_segments): Update.
5192
68b888ff
SM
51932020-05-19 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5196 <segments>: New.
5197 <segment_bases, segment_sizes>: Remove.
5198 * symfile.c (default_symfile_segments): Update.
5199 * elfread.c (elf_symfile_segments): Update.
5200 * remote.c (remote_target::get_offsets): Update.
5201 * solib-target.c (solib_target_relocate_section_addresses):
5202 Update.
5203
62982abd
SM
52042020-05-19 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * symfile.h (struct symfile_segment_data): Initialize fields.
5207 <~symfile_segment_data>: Add.
5208 (symfile_segment_data_up): New.
5209 (struct sym_fns) <sym_segments>: Return a
5210 symfile_segment_data_up.
5211 (default_symfile_segments): Return a symfile_segment_data_up.
5212 (free_symfile_segment_data): Remove.
5213 (get_symfile_segment_data): Return a symfile_segment_data_up.
5214 * symfile.c (default_symfile_segments): Likewise.
5215 (get_symfile_segment_data): Likewise.
5216 (free_symfile_segment_data): Remove.
5217 (symfile_find_segment_sections): Update.
5218 * elfread.c (elf_symfile_segments): Return a
5219 symfile_segment_data_up.
5220 * remote.c (remote_target::get_offsets): Update.
5221 * solib-target.c (solib_target_relocate_section_addresses):
5222 Update.
5223 * symfile-debug.c (debug_sym_segments): Return a
5224 symfile_segment_data_up.
5225
7f204339
RO
52262020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5227
e52a0f1b
RO
5228 PR build/25981
5229 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5230 Hardcode register numbers.
5231
7f204339
RO
5232 PR build/25981
5233 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5234 procfs_find_LDT_entry): Remove.
5235 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5236 procfs_find_LDT_entry): Remove.
5237 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5238 Remove.
5239
7f32a4d5
PA
52402020-05-17 Pedro Alves <palves@redhat.com>
5241 Andrew Burgess <andrew.burgess@embecosm.com>
5242 Keno Fischer <keno@juliacomputing.com>
5243
5244 PR gdb/25741
5245 * breakpoint.c (build_target_condition_list): Update comments.
5246 (build_target_command_list): Update comments and skip matching
5247 locations.
5248 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5249 a separate function. Simplify "set breakpoint auto-hw off"
5250 handling.
5251 (insert_breakpoints): Update comment.
5252 (tracepoint_locations_match): New parameter. For breakpoints,
5253 compare location types too, if the caller wants to.
5254 (handle_automatic_hardware_breakpoints): New functions.
5255 (bp_location_is_less_than): Also sort by location type and
5256 hardware breakpoint length.
5257 (update_global_location_list): Handle "set breakpoint auto-hw on"
5258 here.
5259 (update_breakpoint_locations): Ask breakpoint_locations_match to
5260 ignore location types.
5261
7d93a1e0
SM
52622020-05-16 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5265 type::name instead.
5266
d0e39ea2
SM
52672020-05-16 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * gdbtypes.h (struct type) <name, set_name>: New methods.
5270 (TYPE_CODE): Use type::name. Change all call sites used to set
5271 the name to use type::set_name instead.
5272
2dab0c7b
TT
52732020-05-16 Tom Tromey <tom@tromey.com>
5274
5275 * top.c (quit_force): Update.
5276 * infrun.c (handle_no_resumed): Update.
5277 * top.h (all_uis): New function.
5278 (ALL_UIS): Remove.
5279
59f7bd8d
SM
52802020-05-16 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5283
9bf058f0
PA
52842020-05-16 Pedro Alves <palves@redhat.com>
5285
5286 * ia64-linux-nat.c
5287 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5288 Declare method.
5289 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5290
8f86ae1a
SM
52912020-05-15 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5294 (sparc64_adi_info): Likewise.
5295
d6bc0792
TT
52962020-05-15 Tom Tromey <tom@tromey.com>
5297
5298 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5299 block_objfile.
5300 (lookup_objfile_from_block): Remove.
5301 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5302 (lookup_global_symbol): Use block_objfile.
5303 * symtab.h (lookup_objfile_from_block): Don't declare.
5304 * printcmd.c (clear_dangling_display_expressions): Use
5305 block_objfile.
5306 * parse.c (operator_check_standard): Use block_objfile.
5307
8c14c3a3
TT
53082020-05-15 Tom Tromey <tom@tromey.com>
5309
5310 * language.c (language_alloc_type_symbol): Set
5311 SYMBOL_SECTION.
5312 * symtab.c (initialize_objfile_symbol): Remove.
5313 (allocate_symbol): Remove.
5314 (allocate_template_symbol): Remove.
5315 * dwarf2/read.c (fixup_go_packaging): Use "new".
5316 (new_symbol): Use "new".
5317 (read_variable): Don't call initialize_objfile_symbol. Use
5318 "new".
5319 (read_func_scope): Use "new".
5320 * xcoffread.c (process_xcoff_symbol): Don't call
5321 initialize_objfile_symbol.
5322 (SYMBOL_DUP): Remove.
5323 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5324 "new".
5325 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5326 (allocate_template_symbol): Don't declare.
5327 (struct symbol): Add copy constructor. Change defaults.
5328 * jit.c (finalize_symtab): Use "new".
5329 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5330 Use "new".
5331 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5332 (common_block_end): Use "new".
5333 * mdebugread.c (parse_symbol): Use "new".
5334 (new_symbol): Likewise.
5335
5b4a1a8d
PW
53362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5337
5338 * NEWS: Mention changes to help and apropos.
5339
57b4f16e
PW
53402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5341
5342 * command.h (enum command_class): Improve comments, document
5343 that class_alias is for user-defined aliases, give the class
5344 name for each class, remove unused class_xdb.
5345 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5346 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5347 by a precise class.
5348 * infcmd.c (_initialize_infcmd): Likewise.
5349 * reverse.c (_initialize_reverse): Likewise.
5350 * stack.c (_initialize_stack): Likewise.
5351 * symfile.c (_initialize_symfile): Likewise.
5352 * tracepoint.c (_initialize_tracepoint): Likewise.
5353
7c05caf7
PW
53542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5355
5356 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5357 when their aliased command is traversed.
5358 (help_cmd): Add fput_command_names_styled call to
5359 output command name and aliases when command has an alias.
5360
3b3aaacb
PW
53612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5362
5363 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5364 * cli/cli-decode.c (help_cmd_list): Declare as static,
5365 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5366 a command together with the command.
5367 (fput_command_name_styled, fput_command_names_styled): New functions.
5368 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5369 fput_command_name_styled.
5370 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5371 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5372
7aa1b46f
PW
53732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5374
5375 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5376 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5377 * command.h (cmd_show_list): Likewise.
5378 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5379 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5380
89bcba74
PW
53812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5382
5383 * unittests/command-def-selftests.c (traverse_command_structure):
5384 Verify all commands of a list have the same prefix command and
5385 that only the top cmdlist commands have a null prefix.
5386
3f4d92eb
PW
53872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5388
5389 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5390 as prefix, not one of its aliases.
5391 (set_cmd_prefix): Remove.
5392 (do_add_cmd): Centralize the setting of the prefix of a command, when
5393 command is defined after its full chain of prefix commands.
5394 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5395 (add_setshow_cmd_full): Likewise.
5396 (update_prefix_field_of_prefixed_commands): New function.
5397 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5398 update_prefix_field_of_prefixed_commands.
5399 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5400 addresses of remote_set_cmdlist and remote_show_cmdlist given
5401 as argument, not the address of an argument.
5402 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5403 * gdb/remote.c (_initialize_remote): Likewise.
5404
0605465f
PW
54052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5406
5407 * cli/cli-cmds.c (alias_command): Check for an existing alias
5408 using lookup_cmd_composition, as valid_command_p is too strict
5409 and forbids aliases that are the prefix of an existing alias
5410 or command.
5411 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5412 command is properly recognised as a valid command.
5413
58e6ac70
PW
54142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5415
5416 * unittests/help-doc-selftests.c: Rename to
5417 unittests/command-def-selftests.c
5418 * unittests/command-def-selftests.c (help_doc_tests): Update some
5419 comments.
5420 (command_structure_tests, traverse_command_structure): New namespace
5421 and function.
5422 (command_structure_invariants_tests): New function.
5423 (_initialize_command_def_selftests) Renamed from
5424 _initialize_help_doc_selftests, register command_structure_invariants
5425 selftest.
5426
a7b9ceb8
PW
54272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5428
5429 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5430 an alias of 'show'.
5431
b2188a06
JB
54322020-05-15 Joel Brobecker <brobecker@adacore.com>
5433
5434 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5435 ada_is_fixed_point_type. Update all callers.
5436 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5437 all callers.
5438 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5439 Update all callers.
5440 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5441 print_fixed_point_type. Update all callers.
5442 * ada-valprint.c (ada_value_print_num): Replace call to
5443 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5444
a51951c2
KB
54452020-05-14 Kevin Buettner <kevinb@redhat.com>
5446
5447 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5448 processors.
5449 (cpu_supports_bts): Add CV_AMD case.
5450
29d6859f
LM
54512020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5452 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * infrun.c (stop_all_threads): Collect multiple wait events at
5455 each pass.
5456
78134374
SM
54572020-05-14 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5460 type::code instead.
5461
67607e24
SM
54622020-05-14 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * gdbtypes.h (struct type) <code, set_code>: New methods.
5465 (TYPE_CODE): Use type::code. Change all call sites used to set
5466 the code to use type::set_code instead.
5467
a05575d3
TBA
54682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5469 Tom de Vries <tdevries@suse.de>
5470 Pedro Alves <palves@redhat.com>
5471
5472 PR threads/25478
5473 * infrun.c (stop_all_threads): Do NOT ignore
5474 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5475 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5476 received.
5477 (handle_no_resumed): Remove code handling a live inferior with no
5478 threads.
5479 * remote.c (has_single_non_exited_thread): New.
5480 (remote_target::update_thread_list): Do not delete a thread if is
5481 the last thread of the process.
5482 * thread.c (thread_select): Call delete_exited_threads instead of
5483 prune_threads.
5484
6ad82919
TBA
54852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5486
5487 * infrun.c (stop_all_threads): Enable/disable thread events of all
5488 targets. Move a debug message denoting the end of the function
5489 into the SCOPED_EXIT block.
5490
d890404b
TBA
54912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5492
5493 * process-stratum-target.h: Include <set>.
5494 (all_non_exited_process_targets, switch_to_target_no_thread): New
5495 function declarations.
5496 * process-stratum-target.c (all_non_exited_process_targets)
5497 (switch_to_target_no_thread): New function implementations.
5498
293b3ebc
TBA
54992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5500
5501 * infrun.c (handle_inferior_event): Extract out a piece of code
5502 into...
5503 (mark_non_executing_threads): ...this new function.
5504
7ca9b62a
TBA
55052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5506
5507 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5508 use.
5509
fc75c28b
TBA
55102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5511
5512 * regcache.c (regcache_read_pc_protected): New function
5513 implementation that returns 0 if the PC cannot read via
5514 'regcache_read_pc'.
5515 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5516 instead of 'regcache_read_pc'.
5517 (keep_going_pass_signal): Ditto.
5518
a89febbd
TT
55192020-05-13 Tom Tromey <tromey@adacore.com>
5520
5521 * ada-lang.c (align_value): Remove.
5522 (ada_template_to_fixed_record_type_1): Use align_up.
5523
f7e23710
TBA
55242020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5525
5526 * async-event.c: Update the copyright year.
5527 * async-event.h: Update the copyright year.
5528
02ff80c2
SM
55292020-05-12 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * objfiles.h (is_addr_in_objfile,
5532 shared_objfile_contains_address_p): Return bool.
5533 * objfile.c (is_addr_in_objfile,
5534 shared_objfile_contains_address_p): Return bool.
5535
4fd6c7e8
TT
55362020-05-11 Tom Tromey <tromey@adacore.com>
5537
5538 * cli/cli-cmds.c (info_command): Restore.
5539 (_initialize_cli_cmds): Use add_prefix_command for "info".
5540 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5541
5eb68a39
TT
55422020-05-11 Tom Tromey <tromey@adacore.com>
5543
5544 * ada-lang.c (ada_value_primitive_field): Now public.
5545 * ada-lang.h (ada_value_primitive_field): Declare.
5546 * ada-valprint.c (print_field_values): Use
5547 ada_value_primitive_field for wrapper fields.
5548
7666722f
TV
55492020-05-11 Tom de Vries <tdevries@suse.de>
5550
5551 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5552 MODULE_DOMAIN.
5553
3ee6bb11
TV
55542020-05-11 Tom de Vries <tdevries@suse.de>
5555
5556 PR symtab/25941
5557 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5558 with length 0, if not gdb-produced.
5559 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5560
43434996
TV
55612020-05-09 Tom de Vries <tdevries@suse.de>
5562
5563 PR gdb/25955
5564 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5565 calculation.
5566
2f78cffc
TT
55672020-05-09 Tom Tromey <tom@tromey.com>
5568
5569 * top.c (server_command): Now bool.
5570 * top.h (server_command): Now bool.
5571
4f7bc5ed
TT
55722020-05-08 Tom Tromey <tromey@adacore.com>
5573
5574 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5575 already being processed.
5576
8be4b118
TT
55772020-05-08 Tom Tromey <tom@tromey.com>
5578
5579 * printcmd.c (struct display) <next>: Remove.
5580 <display>: New constructor.
5581 <exp_string>: Now a std::string.
5582 <enabled_p>: Now a bool.
5583 (display_number): Move definition earlier.
5584 (displays): Rename from display_chain. Now a std::vector.
5585 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5586 (display_command): Update.
5587 (do_one_display, disable_display)
5588 (enable_disable_display_command, do_enable_disable_display):
5589 Update.
5590 (free_display): Remove.
5591 (clear_displays): Rewrite.
5592 (delete_display): Update.
5593 (map_display_numbers): Use function_view. Remove "data"
5594 parameter. Update.
5595 (do_delete_display): Remove.
5596 (undisplay_command): Update.
5597 (do_one_display, do_displays, disable_display)
5598 (info_display_command): Update.
5599 (do_enable_disable_display): Remove.
5600 (enable_disable_display_command)
5601 (clear_dangling_display_expressions): Update.
5602
94c93c35
TT
56032020-05-08 Tom Tromey <tom@tromey.com>
5604
5605 * symtab.c (set_symbol_cache_size)
5606 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5607 (maintenance_print_symbol_cache_statistics): Update.
5608 * symmisc.c (print_symbol_bcache_statistics)
5609 (print_objfile_statistics, maintenance_print_objfiles)
5610 (maintenance_info_symtabs, maintenance_check_symtabs)
5611 (maintenance_expand_symtabs, maintenance_info_line_tables):
5612 Update.
5613 * symfile-debug.c (set_debug_symfile): Update.
5614 * source.c (forget_cached_source_info): Update.
5615 * python/python.c (gdbpy_progspaces): Update.
5616 * psymtab.c (maintenance_info_psymtabs): Update.
5617 * probe.c (parse_probes): Update.
5618 * linespec.c (iterate_over_all_matching_symtabs)
5619 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5620 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5621 * exec.c (exec_target::close): Update.
5622 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5623 * breakpoint.c (print_one_breakpoint_location)
5624 (create_longjmp_master_breakpoint)
5625 (create_std_terminate_master_breakpoint): Update.
5626 * progspace.c (program_spaces): Now a std::vector.
5627 (maybe_new_address_space): Update.
5628 (add_program_space): Remove.
5629 (program_space::program_space): Update.
5630 (remove_program_space): Update.
5631 (number_of_program_spaces): Remove.
5632 (print_program_space, update_address_spaces): Update.
5633 * progspace.h (program_spaces): Change type.
5634 (ALL_PSPACES): Remove.
5635 (number_of_program_spaces): Don't declare.
5636 (struct program_space) <next>: Remove.
5637
a1fd1ac9
TT
56382020-05-08 Tom Tromey <tom@tromey.com>
5639
5640 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5641 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5642 (enable_break): Update.
5643 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5644 (frv_fdpic_find_canonical_descriptor): Update.
5645 (frv_fetch_objfile_link_map): Update.
5646 * progspace.c (program_space::free_all_objfiles): Update.
5647 (program_space::solibs): New method.
5648 * progspace.h (struct program_space) <solibs>: New method.
5649 * solist.h (master_so_list): Don't declare.
5650 (ALL_SO_LIBS): Remove.
5651 * solib.h (so_list_head): Remove.
5652 (update_solib_list): Update comment.
5653 * solib.c (master_so_list): Remove.
5654 (solib_used, update_solib_list, solib_add)
5655 (info_sharedlibrary_command, clear_solib)
5656 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5657
38eae084
TT
56582020-05-08 Tom Tromey <tom@tromey.com>
5659
5660 * extension.c (extension_languages): Now a std::array.
5661 (ALL_EXTENSION_LANGUAGES): Remove.
5662 (get_ext_lang_defn, get_ext_lang_of_file)
5663 (eval_ext_lang_from_control_command): Update.
5664 (finish_ext_lang_initialization)
5665 (auto_load_ext_lang_scripts_for_objfile)
5666 (ext_lang_type_printers::ext_lang_type_printers)
5667 (apply_ext_lang_type_printers)
5668 (ext_lang_type_printers::~ext_lang_type_printers)
5669 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5670 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5671 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5672 (get_matching_xmethod_workers, ext_lang_colorize)
5673 (ext_lang_before_prompt): Update.
5674 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5675
596dc4ad
TT
56762020-05-08 Tom Tromey <tom@tromey.com>
5677
5678 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5679 overload.
5680 <swap_string, m_string>: Remove.
5681 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5682 Update.
5683 * stabsread.c (define_symbol, read_type): Update.
5684 * linespec.c (find_linespec_symbols): Update.
5685 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5686 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5687 * dbxread.c (read_dbx_symtab): Update.
5688 * cp-support.h (cp_canonicalize_string_full)
5689 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5690 Return unique_xmalloc_ptr.
5691 * cp-support.c (inspect_type): Update.
5692 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5693 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5694 Likewise.
5695 * c-typeprint.c (print_name_maybe_canonical): Update.
5696 * break-catch-throw.c (check_status_exception_catchpoint):
5697 Update.
5698
bf4cb9be
TV
56992020-05-08 Tom de Vries <tdevries@suse.de>
5700
5701 * infrun.c (follow_fork): Copy current_line and current_symtab to
5702 child thread.
5703
a1b68f28
SM
57042020-05-07 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * async-event.c (struct async_signal_handler, struct
5707 async_event_handler): Reformat, remove typedef.
5708
98d48915
SM
57092020-05-07 Simon Marchi <simon.marchi@efficios.com>
5710
5711 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5712 access thistype->main_type->dyn_prop_list directly.
5713
7aa91313
SM
57142020-05-07 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5717 (remove_dyn_prop): Remove. Update all users to use
5718 type::remove_dyn_prop.
5719 * gdbtypes.c (remove_dyn_prop): Rename to...
5720 (type::remove_dyn_prop): ... this.
5721
5c54719c
SM
57222020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5723
5724 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5725 (add_dyn_prop): Remove. Update all users to use
5726 type::add_dyn_prop.
5727 * gdbtypes.c (add_dyn_prop): Rename to...
5728 (type::add_dyn_prop): ... this.
5729
24e99c6c
SM
57302020-05-07 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5733 (get_dyn_prop): Remove. Update all users to use
5734 type::dyn_prop.
5735 * gdbtypes.c (get_dyn_prop): Rename to...
5736 (type::dyn_prop): ... this.
5737
0d4bf016
SM
57382020-05-06 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5741
ac4a4f1c
SM
57422020-05-06 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5745 instruction, skip it if it's there.
5746
a3bbacc1
SM
57472020-05-05 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5750
c3236f84
SM
57512020-05-04 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5754 * gdbtypes.c (recursive_dump_type): Remove use of
5755 TYPE_INCOMPLETE.
5756
3b6acaee
TT
57572020-05-03 Tom Tromey <tom@tromey.com>
5758
5759 * breakpoint.c (catch_command, tcatch_command): Remove.
5760 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5761 add_show_prefix_cmd.
5762 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5763 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5764 Remove.
5765 (add_internal_problem_command): Use add_basic_prefix_cmd,
5766 add_show_prefix_cmd.
5767 * mips-tdep.c (set_mipsfpu_command): Remove.
5768 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5769 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5770 (_initialize_index_cache): Use add_basic_prefix_cmd.
5771 * memattr.c (dummy_cmd): Remove.
5772 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5773 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5774 (_initialize_tui_win): Use add_basic_prefix_cmd,
5775 add_show_prefix_cmd.
5776 * cli/cli-logging.c (set_logging_command): Remove.
5777 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5778 add_show_prefix_cmd.
5779 (show_logging_command): Remove.
5780 * target.c (target_command): Remove.
5781 (add_target): Use add_basic_prefix_cmd.
5782
a51119cd
HD
57832020-05-02 Hannes Domani <ssbssa@yahoo.de>
5784
5785 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5786
652fc23a 57872020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5788
652fc23a
PW
5789 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5790 info_command.
5791
117539e6
KR
57922020-04-30 Kamil Rytarowski <n54@gmx.com>
5793
5794 * nbsd-nat.c (nbsd_enable_proc_events)
5795 (nbsd_nat_target::post_startup_inferior): Add.
5796 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5797 (nbsd_nat_target::update_thread_list): Rewrite.
5798 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5799 "PTRACE_LWP_CREATE".
5800 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5801
102e38eb 58022020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5803
102e38eb
PW
5804 * stack.c (_initialize_stack): Remove duplicated creation
5805 of "frame" command and "f" alias.
5806
ee9d1e5f
HD
58072020-04-30 Hannes Domani <ssbssa@yahoo.de>
5808
5809 PR gdb/18706
5810 * gdbtypes.c (check_typedef): Calculate size of array of
5811 stubbed type.
5812
627c7fb8
HD
58132020-04-30 Hannes Domani <ssbssa@yahoo.de>
5814
5815 PR gdb/15559
5816 * i386-tdep.c (i386_push_dummy_call): Call
5817 i386_thiscall_push_dummy_call.
5818 (i386_thiscall_push_dummy_call): New function.
5819 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5820 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5821 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5822
ffc2844e
SM
58232020-04-29 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * gdbarch.sh (do_read): Add shellcheck disable directive for
5826 warning SC2162.
5827
1207375d
SM
58282020-04-29 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5831 "referenced but not assigned" warning.
5832
9fdb2916
SM
58332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * gdbarch.sh: Remove code that sets fallbackdefault.
5836
759cea5e
SM
58372020-04-29 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * gdbarch.sh: Use shell operators && and || instead of
5840 -a and -o.
5841
cb02ab24
SM
58422020-04-29 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * gdbarch.sh: Use $(...) instead of `...`.
5845
a6fc5ffc
SM
58462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * gdbarch.sh: Use double quotes around variables.
5849
8d113d13
SM
58502020-04-29 Simon Marchi <simon.marchi@efficios.com>
5851
5852 * gdbarch.sh: Use %s with printf, instead of variables in the
5853 format string.
5854
ed6acedd
TT
58552020-04-29 Tom Tromey <tromey@adacore.com>
5856
5857 PR ada/25875:
5858 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5859 type fields here.
5860 (read_enumeration_type): Call
5861 update_enumeration_type_from_children later. Update comments.
5862 (process_enumeration_scope): Don't create type fields.
5863
b68b1b58
KR
58642020-04-29 Kamil Rytarowski <n54@gmx.com>
5865
5866 * nbsd-tdep.c: Include "xml-syscall.h".
5867 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5868
f94b2e03
KR
58692020-04-29 Kamil Rytarowski <n54@gmx.com>
5870
5871 * nbsd-nat.c: Include "sys/wait.h".
5872 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5873 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5874 (nbsd_nat_target::remove_exec_catchpoint)
5875 (nbsd_nat_target::set_syscall_catchpoint): Add.
5876 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5877 (nbsd_nat_target::insert_exec_catchpoint)
5878 (nbsd_nat_target::remove_exec_catchpoint)
5879 (nbsd_nat_target::set_syscall_catchpoint): Add.
5880 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5881 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5882 `nbsd_get_syscall_number'.
5883
fc49bc72
TT
58842020-04-29 Tom Tromey <tom@tromey.com>
5885
5886 * stack.c (print_block_frame_labels): Remove.
5887
d642b692
HD
58882020-04-29 Hannes Domani <ssbssa@yahoo.de>
5889
5890 PR gdb/17320
5891 * ada-valprint.c (val_print_packed_array_elements): Move array
5892 end bracket to new line.
5893 (ada_val_print_string): Remove extra spaces before first array
5894 element.
5895 * c-valprint.c (c_value_print_array): Likewise.
5896 * m2-valprint.c (m2_print_array_contents): Likewise.
5897 (m2_value_print_inner): Likewise.
5898 * p-valprint.c (pascal_value_print_inner): Likewise.
5899 * valprint.c (generic_val_print_array): Likewise.
5900 (value_print_array_elements): Move first array element and array
5901 end bracket to new line.
5902
ea90f227
TV
59032020-04-29 Tom de Vries <tdevries@suse.de>
5904
5905 PR symtab/25889
5906 * linespec.c (find_method): Fix ix calculation.
5907
4498ef4f
KR
59082020-04-28 Kamil Rytarowski <n54@gmx.com>
5909
5910 * syscalls/update-netbsd.sh: New file.
5911 * syscalls/netbsd.xml: Regenerate.
5912 * data-directory/Makefile.in: Register `netbsd.xml' in
5913 `SYSCALLS_FILES'.
5914
a55e30b5
SM
59152020-04-28 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * syscalls/update-freebsd.sh: Add double quotes.
5918
2b2fbab8
TT
59192020-04-28 Tom Tromey <tom@tromey.com>
5920
5921 * NEWS: Update.
5922 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5923 (cmdpy_init): Allow class_tui.
5924
a65189c9
TV
59252020-04-28 Mark Williams <mark@myosotissp.com>
5926
5927 PR gdb/24480
5928 * dwarf2read.c: Add missing assingments to list_in_scope when
5929 start_symtab was already called.
5930
1b95cdb7
SM
59312020-04-28 Simon Marchi <simon.marchi@efficios.com>
5932
5933 PR gdb/25881
5934 * dwarf2/read.c (offset_map_type): Use
5935 gdb:hash_enum<sect_offset> as hash function.
5936
15cd93d0
TV
59372020-04-28 Tom de Vries <tdevries@suse.de>
5938
5939 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5940 with DW_AT_signature.
5941
1eb39914
SM
59422020-04-27 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * configure.ac: Remove check for fs_base/gs_base in
5945 user_regs_struct.
5946 * configure: Re-generate.
5947 * config.in: Re-generate.
5948 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5949 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5950 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5951
991a3e2e
LM
59522020-04-27 Luis Machado <luis.machado@linaro.org>
5953
5954 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5955 problematic inline frame unwinding situation.
5956 * frame.c (frame_id_computed_p): New function.
5957 * frame.h (frame_id_computed_p): New prototype.
5958
361ba0e8
TT
59592020-04-26 Tom Tromey <tom@tromey.com>
5960
5961 * command.h (enum command_class) <class_pseudo>: Remove.
5962
bc3609fd
PW
59632020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5964
5965 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5966 and whitespace.
5967
b9771db7
KR
59682020-04-25 Kamil Rytarowski <n54@gmx.com>
5969
ec16513e
SM
5970 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5971 `PT_GET_PROCESS_STATE' block.
b9771db7 5972
7151c1af
TT
59732020-04-24 Tom Tromey <tom@tromey.com>
5974
5975 * symtab.h (symbol_get_demangled_name): Don't declare.
5976 * symtab.c (symbol_get_demangled_name): Remove.
5977 (general_symbol_info::natural_name)
5978 (general_symbol_info::demangled_name): Update.
5979
906bb4c5
TT
59802020-04-24 Tom Tromey <tom@tromey.com>
5981
5982 PR rust/25025:
5983 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5984
bcfe6157
TT
59852020-04-24 Tom Tromey <tom@tromey.com>
5986
5987 PR symtab/12707:
5988 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5989 exists.
5990 (new_symbol): Likewise.
5991 * compile/compile-object-load.c (get_out_value_type): Use
5992 symbol_matches_search_name.
5993
f049a313
TT
59942020-04-24 Tom Tromey <tom@tromey.com>
5995
5996 * dwarf2/read.c (add_partial_symbol): Do not call
5997 compute_and_set_names.
5998
76e288d1
TT
59992020-04-24 Tom Tromey <tom@tromey.com>
6000
6001 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6002 overload.
6003
2467f4f6
TT
60042020-04-24 Tom Tromey <tom@tromey.com>
6005
6006 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6007 (add_psymbol_to_list): New overload. Make old overload call new
6008 one.
6009 * psympriv.h (add_psymbol_to_list): New overload.
6010
e61108c9
TT
60112020-04-24 Tom Tromey <tom@tromey.com>
6012
6013 * dwarf2/read.c (partial_die_info::read) <case
6014 DW_AT_linkage_name>: Use value_as_string.
6015 (dwarf2_string_attr): Use value_as_string.
6016 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6017 method.
6018 * dwarf2/attribute.c (attribute::value_as_string): New method.
6019
8c87a452
TT
60202020-04-24 Tom Tromey <tom@tromey.com>
6021
6022 * symtab.c (general_symbol_info::natural_name)
6023 (general_symbol_info::demangled_name): Check for language_rust.
6024
787de330
TT
60252020-04-24 Tom Tromey <tom@tromey.com>
6026
6027 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6028 (dwarf2_physname): ... from here.
6029 (partial_die_info::read): Add Rust "{" hack.
6030
ff985671
TT
60312020-04-24 Tom Tromey <tom@tromey.com>
6032
6033 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6034 method.
6035 (symbol_set_demangled_name): Don't declare.
6036 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6037 symbol_set_demangled_name.
6038 (general_symbol_info::set_language)
6039 (general_symbol_info::compute_and_set_names): Update.
6040 * minsyms.c (minimal_symbol_reader::install): Update.
6041 * dwarf2/read.c (new_symbol): Update.
6042
1acda803
TT
60432020-04-24 Tom Tromey <tromey@adacore.com>
6044
6045 PR python/23662:
6046 * python/py-type.c (convert_field): Handle
6047 FIELD_LOC_KIND_DWARF_BLOCK.
6048 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6049 (typy_get_dynamic): Nw function.
6050 (type_object_getset): Add "dynamic".
6051 * NEWS: Add entry.
6052
d656f129
TT
60532020-04-24 Tom Tromey <tromey@adacore.com>
6054
6055 * ada-typeprint.c (print_choices, print_variant_part)
6056 (print_record_field_types_dynamic): New functions.
6057 (print_record_field_types): Use print_record_field_types_dynamic.
6058
7d79de9a
TT
60592020-04-24 Tom Tromey <tromey@adacore.com>
6060
6061 * dwarf2/read.c (handle_data_member_location): New overload.
6062 (dwarf2_add_field): Use it.
6063 (decode_locdesc): Add "computed" parameter. Update comment.
6064 * gdbtypes.c (is_dynamic_type_internal): Also look for
6065 FIELD_LOC_KIND_DWARF_BLOCK.
6066 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6067 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6068 virtual base classes.
6069 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6070 FIELD_LOC_KIND_DWARF_BLOCK.
6071
f8e89861
TT
60722020-04-24 Tom Tromey <tromey@adacore.com>
6073
6074 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6075 * gdbtypes.c (is_dynamic_type_internal): Check
6076 TYPE_HAS_DYNAMIC_LENGTH.
6077 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6078 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6079 New macros.
6080 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6081 constant.
6082
9c6a1327
TT
60832020-04-24 Tom Tromey <tromey@adacore.com>
6084
6085 * dwarf2/read.c (struct variant_field): Rewrite.
6086 (struct variant_part_builder): New.
6087 (struct nextfield): Remove "variant" field. Add "offset".
6088 (struct field_info): Add "current_variant_part" and
6089 "variant_parts".
6090 (alloc_discriminant_info): Remove.
6091 (alloc_rust_variant): New function.
6092 (quirk_rust_enum): Update.
6093 (dwarf2_add_field): Set "offset" member. Don't handle
6094 DW_TAG_variant_part.
6095 (offset_map_type): New typedef.
6096 (convert_variant_range, create_one_variant)
6097 (create_one_variant_part, create_variant_parts)
6098 (add_variant_property): New functions.
6099 (dwarf2_attach_fields_to_type): Call add_variant_property.
6100 (read_structure_type): Don't handle DW_TAG_variant_part.
6101 (handle_variant_part, handle_variant): New functions.
6102 (handle_struct_member_die): Use them.
6103 (process_structure_scope): Don't handle variant parts.
6104 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6105 (struct discriminant_info): Remove.
6106 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6107 (struct main_type) <flag_discriminated_union>: Remove.
6108 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6109 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6110 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6111 Update.
6112 * valops.c (value_union_variant): Remove.
6113 * value.h (value_union_variant): Don't declare.
6114
b249d2c2
TT
61152020-04-24 Tom Tromey <tromey@adacore.com>
6116
6117 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6118 (ada_value_primitive_packed_val): Update.
6119 * ada-valprint.c (ada_value_print_1): Update.
6120 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6121 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6122 just an address. Use evaluate_for_locexpr_baton.
6123 (dwarf2_evaluate_property): Update.
6124 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6125 array_view.
6126 * findvar.c (default_read_var_value): Update.
6127 * gdbtypes.c (compute_variant_fields_inner)
6128 (resolve_dynamic_type_internal): Update.
6129 (resolve_dynamic_type): Change type of valaddr parameter.
6130 * gdbtypes.h (resolve_dynamic_type): Update.
6131 * valarith.c (value_subscripted_rvalue): Update.
6132 * value.c (value_from_contents_and_address): Update.
6133
61122aa9
TT
61342020-04-24 Tom Tromey <tromey@adacore.com>
6135
6136 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6137 "push_initial_value" parameter.
6138 (dwarf2_evaluate_property): Likewise.
6139 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6140
ef83a141
TT
61412020-04-24 Tom Tromey <tromey@adacore.com>
6142
6143 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6144 (variant::matches, compute_variant_fields_recurse)
6145 (compute_variant_fields_inner, compute_variant_fields): New
6146 functions.
6147 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6148 Use resolved_type after type is made.
6149 (operator==): Add new cases.
6150 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6151 (struct discriminant_range, struct variant, struct variant_part):
6152 New.
6153 (union dynamic_prop_data) <variant_parts, original_type>: New
6154 members.
6155 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6156 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6157 constants.
6158 * value.c (unpack_bits_as_long): Now public.
6159 * value.h (unpack_bits_as_long): Declare.
6160
675127ec
TT
61612020-04-24 Tom Tromey <tromey@adacore.com>
6162
6163 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6164 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6165
9852ceef
HD
61662020-04-24 Hannes Domani <ssbssa@yahoo.de>
6167
6168 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6169
7632c6ce
KR
61702020-04-24 Kamil Rytarowski <n54@gmx.com>
6171
6172 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6173 (remove_fork_catchpoint, post_startup_inferior)
6174 (post_attach): Move...
6175 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6176 (remove_fork_catchpoint, post_startup_inferior)
6177 (post_attach): ...here.
6178 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6179 (remove_fork_catchpoint, post_startup_inferior)
6180 (post_attach): Move...
6181 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6182 (remove_fork_catchpoint, post_startup_inferior)
6183 (post_attach): ...here.
6184
7be2bb4f
TT
61852020-04-24 Tom Tromey <tromey@adacore.com>
6186
6187 * nat/windows-nat.h (struct windows_thread_info)
6188 <pc_adjusted>: New member.
6189 * windows-nat.c (windows_fetch_one_register): Check
6190 pc_adjusted.
6191 (windows_nat_target::get_windows_debug_event)
6192 (windows_nat_target::wait): Set pc_adjusted.
6193
f80cb3b4
TV
61942020-04-24 Tom de Vries <tdevries@suse.de>
6195
6196 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6197 Run gdb-add-index inside temp dir.
6198
29514b87
TT
61992020-04-23 Tom Tromey <tromey@adacore.com>
6200
6201 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6202 in loop.
6203
5939967b
LM
62042020-04-23 Luis Machado <luis.machado@linaro.org>
6205
6206 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6207 get_frame_register instead of gdbarch_unwind_pc.
6208
70bc38f5
TV
62092020-04-23 Tom de Vries <tdevries@suse.de>
6210
6211 * symtab.c (lookup_global_symbol): Prefer def over decl.
6212
de82891c
TV
62132020-04-23 Tom de Vries <tdevries@suse.de>
6214
6215 PR symtab/25807
6216 * block.c (best_symbol, better_symbol): Promote to external.
6217 * block.h (best_symbol, better_symbol): Declare.
6218 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6219 decl.
6220
ecc6c606
TT
62212020-04-23 Tom Tromey <tromey@adacore.com>
6222
6223 PR ada/25837:
6224 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6225 "const char *", not a "const std::string &".
6226 <name_and_matcher::operator==>: Update.
6227 * unittests/lookup_name_info-selftests.c: Change type of
6228 "result".
6229
740480b8
TT
62302020-04-23 Tom Tromey <tom@tromey.com>
6231
6232 * inferior.h (iterate_over_inferiors): Don't declare.
6233 * inferior.c (iterate_over_inferiors): Remove.
6234 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6235 Remove.
6236 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6237 use iterate_over_inferiors.
6238 (darwin_resume_inferior_it)
6239 (struct resume_inferior_threads_param)
6240 (darwin_resume_inferior_threads_it): Remove.
6241 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6242
ae3ab1f0
TV
62432020-04-23 Tom de Vries <tdevries@suse.de>
6244
6245 * blockframe.c (find_pc_partial_function): Use
6246 find_pc_sect_compunit_symtab rather than
6247 objfile->sf->qf->find_pc_sect_compunit_symtab.
6248
317d2668
TV
62492020-04-22 Tom de Vries <tdevries@suse.de>
6250
6251 PR symtab/25764
6252 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6253 in psymtabs.
6254
eea9e357
TV
62552020-04-22 Tom de Vries <tdevries@suse.de>
6256
6257 PR symtab/25801
6258 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6259 symtabs.
6260
3d5afab3
TV
62612020-04-22 Tom de Vries <tdevries@suse.de>
6262
6263 PR symtab/25700
6264 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6265 CU if already created.
6266
d43b7a2d
TBA
62672020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6268
6269 * infrun.c (displaced_step_fixup): Switch to the event_thread
6270 before calling displaced_step_restore, not after.
6271
d89edf9b
MM
62722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6273
6274 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6275 its inferior is not recorded by us.
6276 (record_btrace_target_open): Replace call to
6277 all_non_exited_threads () with call to current_inferior
6278 ()->non_exited_threads ().
6279 (record_btrace_target::stop_recording): Likewise.
6280 (record_btrace_target::close): Likewise.
6281 (record_btrace_target::wait): Likewise.
6282 (record_btrace_target::record_stop_replaying): Likewise.
6283
5897fd49
MM
62842020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6285
6286 * btrace.c (btrace_enable): Throw an error on double enables and
6287 when enabling recording fails.
6288 (btrace_disable): Throw an error if the thread is not recorded.
6289
1a476b6d
MM
62902020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6291
6292 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6293 request if we do not have a thread_info.
6294
4778a5f8
TV
62952020-04-21 Tom de Vries <tdevries@suse.de>
6296
6297 PR gdb/25471
6298 * thread.c
6299 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6300 exception in get_frame_id.
6301
0fa7617d
TT
63022020-04-20 Tom Tromey <tromey@adacore.com>
6303
6304 * python/python.c (struct gdbpy_event): Mark move constructor as
6305 noexcept.
6306 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6307 constructor as noexcept.
6308 * completer.h (struct completion_result): Mark move constructor as
6309 noexcept.
6310 * completer.c (completion_result::completion_result): Use
6311 initialization style. Don't call reset_match_list.
6312
ad23bda0
MS
63132020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6314
6315 * MAINTAINERS (Write After Approval): Add myself.
6316
45e1f031
TT
63172020-04-18 Tom Tromey <tom@tromey.com>
6318
6319 * windows-tdep.c (init_w32_command_list)
6320 (w32_prefix_command_valid): Restore.
6321 (_initialize_windows_tdep): Call init_w32_command_list.
6322
08feed99
TT
63232020-04-18 Tom Tromey <tom@tromey.com>
6324
6325 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6326 * value.c (value_fn_field): Update.
6327 * valops.c (find_function_in_inferior)
6328 (value_allocate_space_in_inferior): Update.
6329 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6330 Update.
6331 * tui/tui-source.c (tui_source_window::set_contents): Update.
6332 * symtab.c (lookup_global_or_static_symbol)
6333 (find_function_start_sal_1, skip_prologue_sal)
6334 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6335 * symmisc.c (dump_msymbols, dump_symtab_1)
6336 (maintenance_print_one_line_table): Update.
6337 * symfile.c (init_entry_point_info, section_is_mapped)
6338 (list_overlays_command, simple_read_overlay_table)
6339 (simple_overlay_update_1): Update.
6340 * stap-probe.c (handle_stap_probe): Update.
6341 * stabsread.c (dbx_init_float_type, define_symbol)
6342 (read_one_struct_field, read_enum_type, read_range_type): Update.
6343 * source.c (info_line_command): Update.
6344 * python/python.c (gdbpy_source_objfile_script)
6345 (gdbpy_execute_objfile_script): Update.
6346 * python/py-type.c (save_objfile_types): Update.
6347 * python/py-objfile.c (py_free_objfile): Update.
6348 * python/py-inferior.c (python_new_objfile): Update.
6349 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6350 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6351 (maintenance_check_psymtabs): Update.
6352 * printcmd.c (info_address_command): Update.
6353 * objfiles.h (struct objfile) <arch>: New method, from
6354 get_objfile_arch.
6355 (get_objfile_arch): Don't declare.
6356 * objfiles.c (get_objfile_arch): Remove.
6357 (filter_overlapping_sections): Update.
6358 * minsyms.c (msymbol_is_function): Update.
6359 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6360 (output_nondebug_symbol): Update.
6361 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6362 (mdebug_expand_psymtab): Update.
6363 * machoread.c (macho_add_oso_symfile): Update.
6364 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6365 Update.
6366 * linux-fork.c (checkpoint_command): Update.
6367 * linespec.c (convert_linespec_to_sals): Update.
6368 * jit.c (finalize_symtab): Update.
6369 * infrun.c (insert_exception_resume_from_probe): Update.
6370 * ia64-tdep.c (ia64_find_unwind_table): Update.
6371 * hppa-tdep.c (internalize_unwinds): Update.
6372 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6373 Update.
6374 * gcore.c (call_target_sbrk): Update.
6375 * elfread.c (record_minimal_symbol, elf_symtab_read)
6376 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6377 (elf_gnu_ifunc_resolve_by_got): Update.
6378 * dwarf2/read.c (create_addrmap_from_index)
6379 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6380 (read_debug_names_from_section)
6381 (process_psymtab_comp_unit_reader, add_partial_symbol)
6382 (add_partial_subprogram, process_full_comp_unit)
6383 (read_file_scope, read_func_scope, read_lexical_block_scope)
6384 (read_call_site_scope, dwarf2_ranges_read)
6385 (dwarf2_record_block_ranges, dwarf2_add_field)
6386 (mark_common_block_symbol_computed, read_tag_pointer_type)
6387 (read_tag_string_type, dwarf2_init_float_type)
6388 (dwarf2_init_complex_target_type, read_base_type)
6389 (partial_die_info::read, partial_die_info::read)
6390 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6391 (dwarf2_fetch_die_loc_sect_off): Update.
6392 * dwarf2/loc.c (dwarf2_find_location_expression)
6393 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6394 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6395 (dwarf2_loc_desc_get_symbol_read_needs)
6396 (locexpr_describe_location_piece, locexpr_describe_location_1)
6397 (loclist_describe_location): Update.
6398 * dwarf2/index-write.c (write_debug_names): Update.
6399 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6400 * dtrace-probe.c (dtrace_process_dof): Update.
6401 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6402 (process_one_symbol): Update.
6403 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6404 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6405 (coff_read_enum_type): Update.
6406 * cli/cli-cmds.c (edit_command, list_command): Update.
6407 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6408 * breakpoint.c (create_overlay_event_breakpoint)
6409 (create_longjmp_master_breakpoint)
6410 (create_std_terminate_master_breakpoint)
6411 (create_exception_master_breakpoint, get_sal_arch): Update.
6412 * block.c (block_gdbarch): Update.
6413 * annotate.c (annotate_source_line): Update.
6414
0743fc83
TT
64152020-04-17 Tom Tromey <tromey@adacore.com>
6416
6417 * auto-load.c (show_auto_load_cmd): Remove.
6418 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6419 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6420 (maintenance_print_arc_command): Remove.
6421 * tui/tui-win.c (tui_command): Remove.
6422 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6423 * tui/tui-layout.c (tui_layout_command): Remove.
6424 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6425 * python/python.c (user_set_python, user_show_python): Remove.
6426 (_initialize_python): Use add_basic_prefix_cmd,
6427 add_show_prefix_cmd.
6428 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6429 (install_gdb_commands): Use add_basic_prefix_cmd,
6430 add_show_prefix_cmd.
6431 (info_guile_command): Remove.
6432 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6433 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6434 add_show_prefix_cmd.
6435 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6436 Remove do_set and do_show parameters.
6437 * cli/cli-style.c (set_style, show_style): Remove.
6438 (_initialize_cli_style): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 (cli_style_option::add_setshow_commands): Remove do_set and
6441 do_show parameters.
6442 (cli_style_option::add_setshow_commands): Use
6443 add_basic_prefix_cmd, add_show_prefix_cmd.
6444 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6445 (set_style_name): Remove.
6446 * cli/cli-dump.c (dump_command, append_command): Remove.
6447 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6448 (tekhex_dump_command, binary_dump_command)
6449 (binary_append_command): Remove.
6450 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6451 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6452 (init_w32_command_list): Remove; move into ...
6453 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6454 * valprint.c (set_print, show_print, set_print_raw)
6455 (show_print_raw): Remove.
6456 (_initialize_valprint): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * typeprint.c (set_print_type, show_print_type): Remove.
6459 (_initialize_typeprint): Use add_basic_prefix_cmd,
6460 add_show_prefix_cmd.
6461 * record.c (set_record_command, show_record_command): Remove.
6462 (_initialize_record): Use add_basic_prefix_cmd,
6463 add_show_prefix_cmd.
6464 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 (info_command, show_command, set_debug, show_debug): Remove.
6467 * top.h (set_history, show_history): Don't declare.
6468 * top.c (set_history, show_history): Remove.
6469 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6470 (unset_tdesc_cmd): Remove.
6471 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * symtab.c (info_module_command): Remove.
6474 (_initialize_symtab): Use add_basic_prefix_cmd.
6475 * symfile.c (overlay_command): Remove.
6476 (_initialize_symfile): Use add_basic_prefix_cmd.
6477 * sparc64-tdep.c (info_adi_command): Remove.
6478 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6479 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6480 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6481 add_show_prefix_cmd.
6482 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6483 (_initialize_serial): Use add_basic_prefix_cmd,
6484 add_show_prefix_cmd.
6485 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6486 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6487 add_show_prefix_cmd.
6488 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6489 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6490 add_show_prefix_cmd.
6491 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6492 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6493 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6494 add_show_prefix_cmd.
6495 * remote.c (remote_command, set_remote_cmd): Remove.
6496 (_initialize_remote): Use add_basic_prefix_cmd.
6497 * record-full.c (set_record_full_command)
6498 (show_record_full_command): Remove.
6499 (_initialize_record_full): Use add_basic_prefix_cmd,
6500 add_show_prefix_cmd.
6501 * record-btrace.c (cmd_set_record_btrace)
6502 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6503 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6504 (cmd_show_record_btrace_pt): Remove.
6505 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6506 add_show_prefix_cmd.
6507 * ravenscar-thread.c (set_ravenscar_command)
6508 (show_ravenscar_command): Remove.
6509 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6510 add_show_prefix_cmd.
6511 * mips-tdep.c (show_mips_command, set_mips_command)
6512 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6513 add_show_prefix_cmd.
6514 * maint.c (maintenance_command, maintenance_info_command)
6515 (maintenance_check_command, maintenance_print_command)
6516 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6517 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6518 add_show_prefix_cmd.
6519 (show_per_command_cmd): Remove.
6520 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6521 Remove.
6522 (maintenance_show_test_settings_cmd): Remove.
6523 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6524 add_show_prefix_cmd.
6525 * maint-test-options.c (maintenance_test_options_command):
6526 Remove.
6527 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6528 * macrocmd.c (macro_command): Remove
6529 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6530 * language.c (set_check, show_check): Remove.
6531 (_initialize_language): Use add_basic_prefix_cmd,
6532 add_show_prefix_cmd.
6533 * infcmd.c (unset_command): Remove.
6534 (_initialize_infcmd): Use add_basic_prefix_cmd.
6535 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6536 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6537 add_show_prefix_cmd.
6538 * go32-nat.c (go32_info_dos_command): Remove.
6539 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6540 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6541 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6542 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6543 (_initialize_frame): Use add_basic_prefix_cmd,
6544 add_show_prefix_cmd.
6545 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6546 (_initialize_dcache): Use add_basic_prefix_cmd,
6547 add_show_prefix_cmd.
6548 * cp-support.c (maint_cplus_command): Remove.
6549 (_initialize_cp_support): Use add_basic_prefix_cmd.
6550 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6551 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6552 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6553 add_basic_prefix_cmd, add_show_prefix_cmd.
6554 * breakpoint.c (save_command): Remove.
6555 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6556 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6557 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6558 add_show_prefix_cmd.
6559 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6560 (set_ada_command, show_ada_command): Remove.
6561 (_initialize_ada_language): Use add_basic_prefix_cmd,
6562 add_show_prefix_cmd.
6563 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6564
3557f442
KR
65652020-04-16 Kamil Rytarowski <n54@gmx.com>
6566
6567 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6568 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6569
16197208
SM
65702020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6573 warning messages.
6574
00ac85d3
SM
65752020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6578 import table is not at beginning of .idata section.
6579
381ce63f
PA
65802020-04-16 Pedro Alves <palves@redhat.com>
6581
6582 * inferior.c (delete_inferior): Use delete operator directly
6583 instead of delete_program_space.
6584 * progspace.c (add_program_space): New, factored out from
6585 program_space::program_space.
6586 (remove_program_space): New, factored out from
6587 delete_program_space.
6588 (program_space::program_space): Remove intro comment. Rewrite.
6589 (program_space::~program_space): Remove intro comment. Call
6590 remove_program_space.
6591 (delete_program_space): Delete.
6592 * progspace.h (program_space::program_space): Make explicit. Move
6593 intro comment here, adjusted.
6594 (program_space::~program_space): Move intro comment here,
6595 adjusted.
6596 (delete_program_space): Remove.
6597
a010605f
TT
65982020-04-16 Tom Tromey <tromey@adacore.com>
6599
6600 * windows-nat.c (windows_nat::handle_access_violation): New
6601 function.
6602 * nat/windows-nat.h (handle_access_violation): Declare.
6603 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6604 windows-nat.c. Call handle_access_violation.
6605
efba5c23
TV
66062020-04-16 Tom de Vries <tdevries@suse.de>
6607
6608 PR symtab/25791
6609 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6610 CUs without psymtab.
6611
97ed802d
KB
66122020-04-16 Kevin Buettner <kevinb@redhat.com>
6613
6614 * python/python.c (do_start_initialization): Don't call
6615 PyEval_InitThreads for Python 3.9 and beyond.
6616
c7d64809
KR
66172020-04-15 Kamil Rytarowski <n54@gmx.com>
6618
6619 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6620 thread functions.
6621 (obsd_nat_target::wait): Likewise.
6622
ce127a96
TT
66232020-04-15 Tom Tromey <tromey@adacore.com>
6624
6625 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6626 (DEBUG_EXCEPT): Use debug_printf.
6627
99f1bc6a
AB
66282020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * completer.c (class completion_tracker::completion_hash_entry)
6631 <hash_name>: New member function.
6632 (completion_tracker::discard_completions): New callback to hash a
6633 completion_hash_entry, pass this to htab_create_alloc.
6634
a0e9b532
JT
66352016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6636
6637 * windows-nat.c (windows_make_so): Warn rather than stopping with
6638 an error if realpath() fails.
6639
06ca5dd4
KR
66402020-04-14 Kamil Rytarowski <n54@gmx.com>
6641
6642 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6643 (nbsd_nat_target::info_proc): Add do_status.
6644
194d088f
TV
66452020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6646 Tom de Vries <tdevries@suse.de>
6647
6648 PR symtab/25718
6649 * psympriv.h (struct partial_symtab::read_symtab)
6650 (struct partial_symtab::expand_psymtab)
6651 (struct partial_symtab::read_dependencies): Update comments.
6652 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6653 read_symtab for includer.
6654 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6655 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6656 (struct dwarf2_include_psymtab::m_readin): Remove.
6657 (struct dwarf2_include_psymtab::includer): New member function.
6658 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6659
c1a66c06
TV
66602020-04-14 Tom de Vries <tdevries@suse.de>
6661
6662 PR symtab/25720
6663 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6664 with NULL symbol_matcher and lookup_name.
6665 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6666 and lookup_name.
6667 * dwarf2/read.c (dw2_expand_symtabs_matching)
6668 (dw2_debug_names_expand_symtabs_matching): Same.
6669 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6670 Make lookup_name a pointer. Update comment.
6671 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6672 lookup_name being a pointer.
6673 * symfile.c (expand_symtabs_matching): Same.
6674 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6675 * linespec.c (iterate_over_all_matching_symtabs): Same.
6676
400b5eca
TT
66772020-04-13 Tom Tromey <tom@tromey.com>
6678
6679 * run-on-main-thread.c: Update include.
6680 * unittests/main-thread-selftests.c: Update include.
6681 * tui/tui-win.c: Update include.
6682 * tui/tui-io.c: Update include.
6683 * tui/tui-interp.c: Update include.
6684 * tui/tui-hooks.c: Update include.
6685 * top.h: Update include.
6686 * top.c: Update include.
6687 * ser-base.c: Update include.
6688 * remote.c: Update include.
6689 * remote-notif.c: Update include.
6690 * remote-fileio.c: Update include.
6691 * record-full.c: Update include.
6692 * record-btrace.c: Update include.
6693 * python/python.c: Update include.
6694 * posix-hdep.c: Update include.
6695 * mingw-hdep.c: Update include.
6696 * mi/mi-main.c: Update include.
6697 * mi/mi-interp.c: Update include.
6698 * main.c: Update include.
6699 * linux-nat.c: Update include.
6700 * interps.c: Update include.
6701 * infrun.c: Update include.
6702 * inf-loop.c: Update include.
6703 * event-top.c: Update include.
6704 * event-loop.c: Move to ../gdbsupport/.
6705 * event-loop.h: Move to ../gdbsupport/.
6706 * async-event.h: Update include.
6707 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6708
93b54c8e
TT
67092020-04-13 Tom Tromey <tom@tromey.com>
6710
6711 * tui/tui-win.c: Include async-event.h.
6712 * remote.c: Include async-event.h.
6713 * remote-notif.c: Include async-event.h.
6714 * record-full.c: Include async-event.h.
6715 * record-btrace.c: Include async-event.h.
6716 * infrun.c: Include async-event.h.
6717 * event-top.c: Include async-event.h.
6718 * event-loop.h: Move some declarations to async-event.h.
6719 * event-loop.c: Don't include ser-event.h or top.h. Move some
6720 code to async-event.c.
6721 * async-event.h: New file.
6722 * async-event.c: New file.
6723 * Makefile.in (COMMON_SFILES): Add async-event.c.
6724 (HFILES_NO_SRCDIR): Add async-event.h.
6725
c1cd3163
TT
67262020-04-13 Tom Tromey <tom@tromey.com>
6727
6728 * utils.c (flush_streams): New function.
6729 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6730
29f2bf4f
TT
67312020-04-13 Tom Tromey <tom@tromey.com>
6732
6733 * event-loop.c (handle_file_event): Use warning, not
6734 printf_unfiltered.
6735
98029d02
TT
67362020-04-13 Tom Tromey <tom@tromey.com>
6737
6738 * event-loop.c: Include <chrono>.
6739
06cc9596
TT
67402020-04-13 Tom Tromey <tom@tromey.com>
6741
6742 * gdb_select.h: Move to ../gdbsupport/.
6743 * event-loop.c: Update include path.
6744 * top.c: Update include path.
6745 * ser-base.c: Update include path.
6746 * ui-file.c: Update include path.
6747 * ser-tcp.c: Update include path.
6748 * guile/scm-ports.c: Update include path.
6749 * posix-hdep.c: Update include path.
6750 * ser-unix.c: Update include path.
6751 * gdb_usleep.c: Update include path.
6752 * mingw-hdep.c: Update include path.
6753 * inflow.c: Update include path.
6754 * infrun.c: Update include path.
6755 * event-top.c: Update include path.
6756
8ae8e197
TT
67572020-04-13 Tom Tromey <tom@tromey.com>
6758
6759 * configure: Rebuild.
6760 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6761
58cf28e8
TT
67622020-04-13 Tom Tromey <tom@tromey.com>
6763
6764 * event-loop.h (start_event_loop): Don't declare.
6765 * event-loop.c (start_event_loop): Move...
6766 * main.c (start_event_loop): ...here. Now static.
6767
b7f999ae
SDJ
67682020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6769
6770 * MAINTAINERS: Update my email address.
6771
1085dfd4
KR
67722020-04-12 Kamil Rytarowski <n54@gmx.com>
6773
6774 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6775 IP_ALL.
6776
49d1d1f5
KR
67772020-04-12 Kamil Rytarowski <n54@gmx.com>
6778
6779 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6780 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6781
b4848d2a
KR
67822020-04-12 Kamil Rytarowski <n54@gmx.com>
6783
6784 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6785 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6786
51c133d5
KR
67872020-04-12 Kamil Rytarowski <n54@gmx.com>
6788
6789 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6790
54b8cbd0
KR
67912020-04-11 Kamil Rytarowski <n54@gmx.com>
6792
6793 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6794 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6795 (nbsd_nat_target::info_proc): New functions.
6796 * nbsd-nat.c (kinfo_get_vmmap): New function.
6797 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6798 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6799 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6800 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6801 functions.
6802 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6803 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6804 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6805 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6806 (KINFO_VME_FLAG_GROWS_DOWN): New.
6807
cf83625d
AS
68082020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6809
6810 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6811 bit shift.
6812
0c4311ab
TT
68132020-04-10 Tom Tromey <tromey@adacore.com>
6814
6815 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6816
3e65b3e9
TT
68172020-04-10 Tom Tromey <tromey@adacore.com>
6818
6819 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6820 separate debug files.
6821
13302e95
HD
68222020-04-10 Hannes Domani <ssbssa@yahoo.de>
6823
6824 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6825 Move to...
6826 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6827 ... here.
6828 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6829 Check for STATUS_WX86_BREAKPOINT.
6830 (windows_nat_target::wait): Same.
6831
bdfc1e8a
TV
68322020-04-10 Tom de Vries <tdevries@suse.de>
6833
6834 PR cli/25808
6835 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6836
f4460aec
SM
68372020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6838
6839 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6840 (Write After Approval): Remove Tom de Vries.
6841
a25198bb
BE
68422020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6843
6844 revert partially:
6845 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6846
aac66a4c
SM
6847 * buildsym.c (record_line): Fix undefined behavior and preserve
6848 lines at eof.
a25198bb 6849
206c98a6
KR
68502020-04-09 Kamil Rytarowski <n54@gmx.com>
6851
6852 * auxv.h (svr4_auxv_parse): New.
6853 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6854 and generic_auxv_parse.
6855 (svr4_auxv_parse): Add.
6856 * obsd-tdep.c: Include "auxv.h".
6857 (obsd_auxv_parse): Remove.
6858 (obsd_init_abi): Remove comment.
6859 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6860 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6861 * nbsd-tdep.c: Include "auxv.h".
6862 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6863
71fbdbaf
TT
68642020-04-08 Tom Tromey <tromey@adacore.com>
6865
6866 * nat/windows-nat.h (last_wait_event): Don't declare.
6867 (wait_for_debug_event): Update comment.
6868 * nat/windows-nat.c (last_wait_event): Now static.
6869
2c1d95e8
TT
68702020-04-08 Tom Tromey <tromey@adacore.com>
6871
6872 * windows-nat.c (wait_for_debug_event): Move to
6873 nat/windows-nat.c.
6874 * nat/windows-nat.h (wait_for_debug_event): Declare.
6875 * nat/windows-nat.c (wait_for_debug_event): Move from
6876 windows-nat.c. No longer static.
6877
d2977bc4
TT
68782020-04-08 Tom Tromey <tromey@adacore.com>
6879
6880 * windows-nat.c (get_windows_debug_event): Use
6881 fetch_pending_stop.
6882 * nat/windows-nat.h (fetch_pending_stop): Declare.
6883 * nat/windows-nat.c (fetch_pending_stop): New function.
6884
e758e19c
TT
68852020-04-08 Tom Tromey <tromey@adacore.com>
6886
6887 * windows-nat.c (windows_continue): Use matching_pending_stop and
6888 continue_last_debug_event.
6889 * nat/windows-nat.h (matching_pending_stop)
6890 (continue_last_debug_event): Declare.
6891 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6892 (matching_pending_stop, continue_last_debug_event): New
6893 functions.
6894
8d30e395
TT
68952020-04-08 Tom Tromey <tromey@adacore.com>
6896
6897 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6898 (handle_exception_result): Move to nat/windows-nat.h.
6899 (DEBUG_EXCEPTION_SIMPLE): Remove.
6900 (windows_nat::handle_ms_vc_exception): New function.
6901 (handle_exception): Move to nat/windows-nat.c.
6902 (get_windows_debug_event): Update.
6903 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6904 nat/windows-nat.c.
6905 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6906 (handle_exception_result): Move from windows-nat.c.
6907 (handle_exception): Declare.
6908 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6909 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6910 windows-nat.c.
6911
29de418d
TT
69122020-04-08 Tom Tromey <tromey@adacore.com>
6913
6914 * windows-nat.c (exception_count, event_count): Remove.
6915 (handle_exception, get_windows_debug_event)
6916 (do_initial_windows_stuff): Update.
6917
a816ba18
TT
69182020-04-08 Tom Tromey <tromey@adacore.com>
6919
6920 * windows-nat.c (windows_nat::handle_load_dll)
6921 (windows_nat::handle_unload_dll): Rename. No longer static.
6922 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6923 Declare.
6924
a00caa12
TT
69252020-04-08 Tom Tromey <tromey@adacore.com>
6926
6927 * complaints.h (stop_whining): Declare at top-level.
6928 (complaint): Don't declare stop_whining.
6929
d41b524f
TT
69302020-04-08 Tom Tromey <tromey@adacore.com>
6931
6932 * windows-nat.c (windows_nat::handle_output_debug_string):
6933 Rename. No longer static.
6934 * nat/windows-nat.h (handle_output_debug_string): Declare.
6935
3c76026d
TT
69362020-04-08 Tom Tromey <tromey@adacore.com>
6937
6938 * windows-nat.c (current_process_handle, current_process_id)
6939 (main_thread_id, last_sig, current_event, last_wait_event)
6940 (current_windows_thread, desired_stop_thread_id, pending_stops)
6941 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6942 (display_selectors, fake_create_process)
6943 (get_windows_debug_event): Update.
6944 * nat/windows-nat.h (current_process_handle, current_process_id)
6945 (main_thread_id, last_sig, current_event, last_wait_event)
6946 (current_windows_thread, desired_stop_thread_id, pending_stops)
6947 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6948 * nat/windows-nat.c (current_process_handle, current_process_id)
6949 (main_thread_id, last_sig, current_event, last_wait_event)
6950 (current_windows_thread, desired_stop_thread_id, pending_stops)
6951 (siginfo_er): New globals. Move from windows-nat.c.
6952
9d8679cc
TT
69532020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6956 (handle_load_dll): Update.
6957 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6958
28688adf
TT
69592020-04-08 Tom Tromey <tromey@adacore.com>
6960
6961 * windows-nat.c (enum thread_disposition_type): Move to
6962 nat/windows-nat.h.
6963 (windows_nat::thread_rec): Rename from thread_rec. No longer
6964 static.
6965 (windows_add_thread, windows_nat_target::fetch_registers)
6966 (windows_nat_target::store_registers, handle_exception)
6967 (windows_nat_target::resume, get_windows_debug_event)
6968 (windows_nat_target::get_tib_address)
6969 (windows_nat_target::thread_name)
6970 (windows_nat_target::thread_alive): Update.
6971 * nat/windows-nat.h (enum thread_disposition_type): Move from
6972 windows-nat.c.
6973 (thread_rec): Declare.
6974
4834dad0
TT
69752020-04-08 Tom Tromey <tromey@adacore.com>
6976
6977 * windows-nat.c: Add "using namespace".
6978 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6979 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6980
65bafd5b
TT
69812020-04-08 Tom Tromey <tromey@adacore.com>
6982
6983 * nat/windows-nat.h (struct windows_thread_info): Declare
6984 destructor.
6985 * nat/windows-nat.c (~windows_thread_info): New.
6986
0a4afda3
TT
69872020-04-08 Tom Tromey <tromey@adacore.com>
6988
6989 PR gdb/22992
6990 * windows-nat.c (current_event): Update comment.
6991 (last_wait_event, desired_stop_thread_id): New globals.
6992 (struct pending_stop): New.
6993 (pending_stops): New global.
6994 (windows_nat_target) <stopped_by_sw_breakpoint>
6995 <supports_stopped_by_sw_breakpoint>: New methods.
6996 (windows_fetch_one_register): Add assertions. Adjust PC.
6997 (windows_continue): Handle pending stops. Suspend other threads
6998 when stepping. Use last_wait_event
6999 (wait_for_debug_event): New function.
7000 (get_windows_debug_event): Use wait_for_debug_event. Handle
7001 pending stops. Queue spurious stops.
7002 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7003 (windows_nat_target::kill): Use wait_for_debug_event.
7004 * nat/windows-nat.h (struct windows_thread_info)
7005 <stopped_at_software_breakpoint>: New field.
7006 * nat/windows-nat.c (windows_thread_info::resume): Clear
7007 stopped_at_software_breakpoint.
7008
8e61ebec
TT
70092020-04-08 Tom Tromey <tromey@adacore.com>
7010
7011 * windows-nat.c (enum thread_disposition_type): New.
7012 (thread_rec): Replace "get_context" parameter with "disposition";
7013 change type.
7014 (windows_add_thread, windows_nat_target::fetch_registers)
7015 (windows_nat_target::store_registers, handle_exception)
7016 (windows_nat_target::resume, get_windows_debug_event)
7017 (windows_nat_target::get_tib_address)
7018 (windows_nat_target::thread_name)
7019 (windows_nat_target::thread_alive): Update.
7020
98a03287
TT
70212020-04-08 Tom Tromey <tromey@adacore.com>
7022
7023 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7024 (windows_continue): Use windows_continue::resume.
7025 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7026 resume>: Declare new methods.
7027 * nat/windows-nat.c: New file.
7028 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7029
7c7411bc
TT
70302020-04-08 Tom Tromey <tromey@adacore.com>
7031
7032 * windows-nat.c (windows_add_thread, windows_delete_thread)
7033 (windows_nat_target::fetch_registers)
7034 (windows_nat_target::store_registers, fake_create_process)
7035 (windows_nat_target::resume, windows_nat_target::resume)
7036 (get_windows_debug_event, windows_nat_target::wait)
7037 (windows_nat_target::pid_to_str)
7038 (windows_nat_target::get_tib_address)
7039 (windows_nat_target::get_ada_task_ptid)
7040 (windows_nat_target::thread_name)
7041 (windows_nat_target::thread_alive): Use lwp, not tid.
7042
2950fdf7
TT
70432020-04-08 Tom Tromey <tromey@adacore.com>
7044
7045 * windows-nat.c (handle_exception)
7046 (windows_nat_target::thread_name): Update.
7047 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7048 <name>: Now unique_xmalloc_ptr.
7049
62fe396b
TT
70502020-04-08 Tom Tromey <tromey@adacore.com>
7051
7052 * windows-nat.c (thread_rec)
7053 (windows_nat_target::fetch_registers): Update.
7054 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7055 Update comment.
7056 <debug_registers_changed, reload_context>: Now bool.
7057
e9534bd2
TT
70582020-04-08 Tom Tromey <tromey@adacore.com>
7059
7060 * windows-nat.c (windows_add_thread): Use new.
7061 (windows_init_thread_list, windows_delete_thread): Use delete.
7062 (get_windows_debug_event): Update.
7063 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7064 destructor, and initializers.
7065
ae1f8880
TT
70662020-04-08 Tom Tromey <tromey@adacore.com>
7067
7068 * windows-nat.c (struct windows_thread_info): Remove.
7069 * nat/windows-nat.h: New file.
7070
55a1e039
TT
70712020-04-08 Tom Tromey <tromey@adacore.com>
7072
7073 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7074 (thread_rec, windows_add_thread, windows_delete_thread)
7075 (windows_continue): Update.
7076
93366324
TT
70772020-04-08 Tom Tromey <tromey@adacore.com>
7078
7079 * windows-nat.c (struct windows_thread_info): Remove typedef.
7080 (thread_head): Remove.
7081 (thread_list): New global.
7082 (thread_rec, windows_add_thread, windows_init_thread_list)
7083 (windows_delete_thread, windows_continue): Update.
7084
0f2265e2
SM
70852020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7086
7087 * windows-tdep.h (windows_init_abi): Add comment.
7088 (cygwin_init_abi): New declaration.
7089 * windows-tdep.c: Split signal enumeration in two, one for
7090 Windows and one for Cygwin.
7091 (windows_gdb_signal_to_target): Only deal with signal of the
7092 Windows OS ABI.
7093 (cygwin_gdb_signal_to_target): New function.
7094 (windows_init_abi): Rename to windows_init_abi_common, don't set
7095 gdb_signal_to_target gdbarch method. Add new new function with
7096 this name.
7097 (cygwin_init_abi): New function.
7098 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7099 comment. Don't call windows_init_abi.
7100 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7101 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7102 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7103 i386_windows_init_abi_common, don't call windows_init_abi. Add
7104 a new function of this name.
7105 (i386_cygwin_init_abi): New function.
7106 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7107 OS ABI Cygwin.
7108
3810f182
SM
71092020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7110
7111 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7112 parameter.c.
7113 (dwarf2_read_gdb_index): Update.
7114
063f8e80
KR
71152020-04-07 Kamil Rytarowski <n54@gmx.com>
7116
7117 * nbsd-tdep.c: Include "objfiles.h".
7118 (nbsd_skip_solib_resolver): New.
7119 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7120
85a9510c 71212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7122
7123 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7124 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7125 with DW_LLE_base_addressx are being emitted in DWARFv5.
7126 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7127 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7128 unsigned integer.
7129
9fc3eaae 71302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7131
7132 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7133 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7134 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7135 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7136 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7137 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7138 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7139
7140
41144253 71412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7142
7143 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7144 (read_loclist_index): New function definition.
7145 (lookup_loclist_base): New function definition.
7146 (read_loclist_header): New function definition.
7147 (dwarf2_cu): Add loclist_base and loclist_header field.
7148 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7149 (read_full_die_1): Read the value of DW_AT_loclists_base.
7150 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7151 (read_attribute_value): Handle DW_FORM_loclistx.
7152 (skip_one_die): Handle DW_FORM_loclistx.
7153 (loclist_header): New structure declaration.
7154 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7155
9f4e76a4
SM
71562020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7159 constructor. Remove `addr` parameter from other constructor and
7160 add `per_cu` parameter.
7161 * dwarf2/read.c (create_partial_symtab): Update.
7162
25c11aca
TV
71632020-04-07 Tom de Vries <tdevries@suse.de>
7164
7165 PR symtab/25796
7166 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7167 (partial_die_info::fixup): Inherit has_const_value.
7168
5707e24b
TV
71692020-04-07 Tom de Vries <tdevries@suse.de>
7170
7171 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7172 symbols without address.
7173
05f00e22
KR
71742020-04-06 Kamil Rytarowski <n54@gmx.com>
7175
7176 * nbsd-nat.h (struct thread_info): Add forward declaration.
7177 (nbsd_nat_target::thread_alive): Add.
7178 (nbsd_nat_target::thread_name): Likewise.
7179 (nbsd_nat_target::update_thread_list): Likewise.
7180 (update_thread_list::post_attach): Likewise.
7181 (post_attach::pid_to_str): Likewise.
7182 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7183 (nbsd_thread_lister): Add.
7184 (nbsd_nat_target::thread_alive): Likewise.
7185 (nbsd_nat_target::thread_name): Likewise.
7186 (nbsd_add_threads): Likewise.
7187 (update_thread_list::post_attach): Likewise.
7188 (nbsd_nat_target::update_thread_list): Likewise.
7189 (post_attach::pid_to_str): Likewise.
7190
6ee448cc
TT
71912020-04-06 Tom Tromey <tromey@adacore.com>
7192
7193 * ada-valprint.c (print_variant_part): Extract the variant field.
7194 (print_field_values): Use the field as the outer value when
7195 recursing.
7196
dea34e8c
TT
71972020-04-06 Tom Tromey <tromey@adacore.com>
7198
7199 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7200 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7201 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7202 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7203 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7204
93689ce9
TT
72052020-04-06 Tom Tromey <tromey@adacore.com>
7206
7207 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7208 TYPE_CODE_ERROR.
7209
79743962
KR
72102020-04-06 Kamil Rytarowski <n54@gmx.com>
7211
7212 * nbsd-tdep.c: Include "gdbarch.h".
7213 Define enum with NetBSD signal numbers.
7214 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7215 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7216 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7217 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7218 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7219 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7220 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7221 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7222 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7223 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7224 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7225 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7226
9e7c9a03
HD
72272020-04-03 Hannes Domani <ssbssa@yahoo.de>
7228
7229 PR gdb/25325
7230 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7231
d9e49b61
TT
72322020-04-03 Tom Tromey <tromey@adacore.com>
7233
7234 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7235 Read constant block.
7236
e0fc5c3f
SM
72372020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7238
7239 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7240 (gdb_bfd_get_full_section_contents): New declaration.
7241 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7242 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7243 gdb_bfd_get_full_section_contents.
7244
e2ff18a0
SM
72452020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7246
7247 * exec.c (build_section_table): Replace internal_error with
7248 gdb_assert.
7249 (section_table_xfer_memory_partial): Likewise.
7250 * mdebugread.c (parse_partial_symbols): Likewise.
7251 * psymtab.c (lookup_partial_symbol): Likewise.
7252 * utils.c (wrap_here): Likewise.
7253
0830d301
TT
72542020-04-02 Tom Tromey <tromey@adacore.com>
7255
7256 * f-lang.c (build_fortran_types): Use arch_type to initialize
7257 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7258
e7da7f8f
TT
72592020-04-02 Tom Tromey <tromey@adacore.com>
7260
7261 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7262 of attributes.
7263
c90d28ac
AB
72642020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7265 Bernd Edlinger <bernd.edlinger@hotmail.de>
7266 Tom Tromey <tromey@adacore.com>
7267
7268 * buildsym.c (buildsym_compunit::record_line): Remove
7269 deduplication code.
7270
1aa98955
TV
72712020-04-02 Tom de Vries <tdevries@suse.de>
7272
7273 PR ada/24671
7274 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7275
d3214198
TV
72762020-04-02 Tom de Vries <tdevries@suse.de>
7277
7278 * dwarf2/read.c (dwarf2_gdb_index_functions,
7279 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7280 NULL.
7281 * psymtab.c (psym_lookup_global_symbol_language): New function.
7282 (psym_functions): Init psym_lookup_global_symbol_language with
7283 psym_lookup_global_symbol_language.
7284 * symfile-debug.c (debug_sym_quick_functions): Init
7285 lookup_global_symbol_language with NULL.
7286 * symfile.c (set_initial_language): Remove fixme comment.
7287 * symfile.h (struct quick_symbol_functions): Add
7288 lookup_global_symbol_language.
7289 * symtab.c (find_quick_global_symbol_language): New function.
7290 (find_main_name): Use find_quick_global_symbol_language.
7291
2836752f
SM
72922020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7295
64dc2d4b
BE
72962020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7297
7298 * buildsym.c (record_line): Fix undefined behavior and preserve
7299 lines at eof.
7300
bbe3dc41
BE
73012020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7302
7303 * buildsym.c (record_line): Fix the resizing condition.
7304
6b4a335b
TT
73052020-04-01 Tom Tromey <tom@tromey.com>
7306
7307 * value.h (value_literal_complex): Add comment.
7308 * valops.c (value_literal_complex): Refer to value.h.
7309
3638a098
TT
73102020-04-01 Tom Tromey <tom@tromey.com>
7311
7312 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7313 (scalar_type): New rule, from typebase.
7314 (typebase): Use scalar_type. Recognize complex types.
7315 (field_name): Handle FLOAT_KEYWORD.
7316 (ident_tokens): Add _Complex and __complex__.
7317
c34e8714
TT
73182020-04-01 Tom Tromey <tom@tromey.com>
7319
7320 PR exp/25299:
7321 * valarith.c (promotion_type, complex_binop): New functions.
7322 (scalar_binop): Handle complex numbers. Use promotion_type.
7323 (value_pos, value_neg, value_complement): Handle complex numbers.
7324
fa649bb7
TT
73252020-04-01 Tom Tromey <tom@tromey.com>
7326
7327 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7328 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7329 (parse_number): Handle complex numbers.
7330
981c08ce
TT
73312020-04-01 Tom Tromey <tom@tromey.com>
7332
7333 * c-valprint.c (c_decorations): Change complex suffix to "i".
7334
4c99290d
TT
73352020-04-01 Tom Tromey <tom@tromey.com>
7336
7337 * valprint.c (generic_value_print_complex): Use accessors.
7338 * value.h (value_real_part, value_imaginary_part): Declare.
7339 * valops.c (value_real_part, value_imaginary_part): New
7340 functions.
7341 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7342
5b930b45
TT
73432020-04-01 Tom Tromey <tom@tromey.com>
7344
7345 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7346 (read_range_type): Update.
7347 * mdebugread.c (basic_type): Update.
7348 * go-lang.c (build_go_types): Use init_complex_type.
7349 * gdbtypes.h (struct main_type) <complex_type>: New member.
7350 (init_complex_type): Update.
7351 (arch_complex_type): Don't declare.
7352 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7353 Make name if none given. Use alloc_type_copy. Look for cached
7354 complex type.
7355 (arch_complex_type): Remove.
7356 (gdbtypes_post_init): Use init_complex_type.
7357 * f-lang.c (build_fortran_types): Use init_complex_type.
7358 * dwarf2/read.c (read_base_type): Update.
7359 * d-lang.c (build_d_types): Use init_complex_type.
7360 * ctfread.c (read_base_type): Update.
7361
53cccef1
TBA
73622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7363
7364 * infrun.c (stop_all_threads): Update assertion, plus when
7365 stopping threads, take into account that we might be trying
7366 to stop an all-stop target.
7367 (stop_waiting): Call 'stop_all_threads' if there exists a
7368 non-stop target.
7369
a0714d30
TBA
73702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7371
7372 * target.h (exists_non_stop_target): New function declaration.
7373 * target.c (exists_non_stop_target): New function.
7374
60e22c1e
HD
73752020-04-01 Hannes Domani <ssbssa@yahoo.de>
7376
7377 PR gdb/24789
7378 * eval.c (is_integral_or_integral_reference): New function.
7379 (evaluate_subexp_standard): Allow integer references in
7380 pointer arithmetic.
7381
e139a727
TBA
73822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7383
7384 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7385 check for no ptid in the stop reply when the target is non-stop.
7386
e0802d59
TT
73872020-04-01 Tom Tromey <tromey@adacore.com>
7388
7389 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7390 "name" parameter to rvalue reference. Initialize m_name_holder.
7391 <lookup_name_info>: New overloads.
7392 <name>: Return gdb::string_view.
7393 <c_str>: New method.
7394 <make_ignore_params>: Update.
7395 <search_name_hash>: Update.
7396 <language_lookup_name>: Return const char *.
7397 <m_name>: Change type.
7398 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7399 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7400 (lookup_name_info::match_any): Update.
7401 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7402 Update.
7403 * minsyms.c (linkage_name_str): Update.
7404 * language.c (default_symbol_name_matcher): Update.
7405 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7406 Update.
7407 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7408 (ada_lookup_name_info::ada_lookup_name_info): Update.
7409 (literal_symbol_name_matcher): Update.
7410
8c072cb6
TT
74112020-04-01 Tom Tromey <tromey@adacore.com>
7412
7413 * psymtab.c (psymtab_search_name): Remove function.
7414 (psym_lookup_symbol): Create search name and lookup name here.
7415 (lookup_partial_symbol): Remove "name" parameter; add
7416 lookup_name.
7417 (psym_expand_symtabs_for_function): Update.
7418
6f29a534
TT
74192020-03-31 Joel Jones <joelkevinjones@gmail.com>
7420
7421 PR tui/25597:
7422 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7423
af62665e
TT
74242020-03-31 Tom Tromey <tromey@adacore.com>
7425
7426 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7427 memcpy.
7428
d1a89da5
NC
74292020-03-30 Nelson Chu <nelson.chu@sifive.com>
7430
7431 * features/riscv/32bit-csr.xml: Regenerated.
7432 * features/riscv/64bit-csr.xml: Regenerated.
7433
d8af9068
TT
74342020-03-30 Tom Tromey <tromey@adacore.com>
7435
7436 * ada-valprint.c (print_variant_part): Update.
7437 * ada-lang.h (ada_which_variant_applies): Update.
7438 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7439 outer_valaddr parameters; replace with "outer" value parameter.
7440 (to_fixed_variant_branch_type): Update.
7441
227c0bf4
PFC
74422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7443
7444 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7445 <list>. Remove inclusion of observable.h.
7446 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7447 (struct arch_lwp_info): New struct.
7448 (class ppc_linux_dreg_interface): New class.
7449 (struct ppc_linux_process_info): New struct.
7450 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7451 <low_new_clone, low_forget_process, low_prepare_to_resume>
7452 <copy_thread_dreg_state, mark_thread_stale>
7453 <mark_debug_registers_changed, register_hw_breakpoint>
7454 <clear_hw_breakpoint, register_wp, clear_wp>
7455 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7456 <num_memory_accesses, get_trigger_type>
7457 <create_watchpoint_request, hwdebug_point_cmp>
7458 <init_arch_lwp_info, get_arch_lwp_info>
7459 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7460 methods.
7461 <struct ptid_hash>: New inner struct.
7462 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7463 members.
7464 (saved_dabr_value, hwdebug_info, max_slots_number)
7465 (struct hw_break_tuple, struct thread_points, ppc_threads)
7466 (have_ptrace_hwdebug_interface)
7467 (hwdebug_find_thread_points_by_tid)
7468 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7469 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7470 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7471 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7472 use m_dreg_interface.
7473 (hwdebug_point_cmp): Change to...
7474 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7475 reference arguments instead of pointers.
7476 (ppc_linux_nat_target::ranged_break_num_registers): Use
7477 m_dreg_interface.
7478 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7479 m_dreg_interface. Call register_hw_breakpoint.
7480 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7481 m_dreg_interface. Call clear_hw_breakpoint.
7482 (get_trigger_type): Change to...
7483 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7484 comment.
7485 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7486 use m_dreg_interface. Call register_hw_breakpoint.
7487 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7488 use m_dreg_interface. Call clear_hw_breakpoint.
7489 (can_use_watchpoint_cond_accel): Change to...
7490 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7491 method. Update comment, use m_dreg_interface and
7492 m_process_info.
7493 (calculate_dvc): Change to...
7494 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7495 m_dreg_interface.
7496 (num_memory_accesses): Change to...
7497 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7498 (check_condition): Change to...
7499 (ppc_linux_nat_target::check_condition): ...this method.
7500 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7501 comment, use m_dreg_interface.
7502 (create_watchpoint_request): Change to...
7503 (ppc_linux_nat_target::create_watchpoint_request): ...this
7504 method. Use m_dreg_interface.
7505 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7506 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7507 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7508 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7509 (ppc_linux_nat_target::low_forget_process)
7510 (ppc_linux_nat_target::low_new_fork)
7511 (ppc_linux_nat_target::low_new_clone)
7512 (ppc_linux_nat_target::low_delete_thread)
7513 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7514 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7515 only call mark_thread_stale.
7516 (ppc_linux_thread_exit): Remove.
7517 (ppc_linux_nat_target::stopped_data_address): Change to...
7518 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7519 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7520 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7521 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7522 comment. Call low_stopped_data_address.
7523 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7524 m_dreg_interface.
7525 (ppc_linux_nat_target::masked_watch_num_registers): Use
7526 m_dreg_interface.
7527 (ppc_linux_nat_target::copy_thread_dreg_state)
7528 (ppc_linux_nat_target::mark_thread_stale)
7529 (ppc_linux_nat_target::mark_debug_registers_changed)
7530 (ppc_linux_nat_target::register_hw_breakpoint)
7531 (ppc_linux_nat_target::clear_hw_breakpoint)
7532 (ppc_linux_nat_target::register_wp)
7533 (ppc_linux_nat_target::clear_wp)
7534 (ppc_linux_nat_target::init_arch_lwp_info)
7535 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7536 (_initialize_ppc_linux_nat): Remove observer callback.
7537
4db10d8f
PFC
75382020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7539
7540 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7541 (ppc_linux_nat_target::auxv_parse)
7542 (ppc_linux_nat_target::read_description)
7543 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7544 Move up.
7545
1310c1b0
PFC
75462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7547
7548 * linux-nat.h (low_new_clone): New method.
7549 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7550
69b037c3
SM
75512020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7552
7553 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7554 (dbx_expand_psymtab): ... this.
7555 (start_psymtab): Update.
7556 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7557 (mdebug_expand_psymtab): ... this.
7558 (parse_partial_symbols): Update.
7559 (new_psymtab): Update.
7560 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7561 (xcoff_expand_psymtab): ... this.
7562 (xcoff_start_psymtab): Update.
7563
48993951
SM
75642020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7565
7566 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7567 <expand_dependencies>: ... this.
7568 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7569 (partial_symtab::expand_dependencies): ... this.
7570 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7571 Update.
7572 (dwarf2_psymtab::expand_psymtab): Update.
7573 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7574 * mdebugread.c (psymtab_to_symtab_1): Update.
7575 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7576
3ad83046
SM
75772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7578
7579 * psympriv.h (discard_psymtab): Remove.
7580 * dbxread.c (dbx_end_psymtab): Update.
7581 * xcoffread.c (xcoff_end_psymtab): Update.
7582
4d1b9ab6
TT
75832020-03-28 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7586 comment.
7587
f1749218
TT
75882020-03-28 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7591
ebea7626
HD
75922020-03-27 Hannes Domani <ssbssa@yahoo.de>
7593
7594 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7595
a879b4d5
JB
75962020-03-26 John Baldwin <jhb@FreeBSD.org>
7597
7598 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7599
0826b30a
TT
76002020-03-26 Tom Tromey <tom@tromey.com>
7601
7602 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7603 (mark_common_block_symbol_computed, read_tag_string_type)
7604 (attr_to_dynamic_prop, read_subrange_type): Update.
7605 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7606 to be methods on struct attribute.
7607 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7608 (read_call_site_scope, partial_die_info::read)
7609 (partial_die_info::read, lookup_die_type, follow_die_ref):
7610 Update.
7611 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7612 from dwarf2_get_ref_die_offset.
7613 (attribute::constant_value): New method, from
7614 dwarf2_get_attr_constant_value.
7615 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7616 Declare method.
7617 <constant_value>: New method.
7618
2b2558bf
TT
76192020-03-26 Tom Tromey <tom@tromey.com>
7620
7621 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7622 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7623 (dwarf_type_encoding_name): Move to stringify.c.
7624 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7625 * dwarf2/stringify.c: New file.
7626 * dwarf2/stringify.h: New file.
7627
eeb64781
TT
76282020-03-26 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7631 Rewrite.
7632
a39fdb41
TT
76332020-03-26 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7636 methods.
7637 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7638 (lookup_ranges_base): Likewise.
7639 (read_cutu_die_from_dwo, read_full_die_1): Update.
7640
436c571c
TT
76412020-03-26 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2/read.c (read_import_statement, read_file_scope)
7644 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7645 (read_lexical_block_scope, read_call_site_scope)
7646 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7647 (handle_struct_member_die, process_structure_scope)
7648 (update_enumeration_type_from_children)
7649 (process_enumeration_scope, read_array_type, read_common_block)
7650 (read_namespace, read_module, read_subroutine_type): Update.
7651 (sibling_die): Remove.
7652
052c8bb8
TT
76532020-03-26 Tom Tromey <tom@tromey.com>
7654
7655 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7656 (build_type_psymtabs_reader, read_structure_type)
7657 (read_enumeration_type, read_full_die_1): Update.
7658 (dwarf2_attr_no_follow): Move to die.h.
7659 * dwarf2/die.h (struct die_info) <attr>: New method.
7660
2b24b6e4
TT
76612020-03-26 Tom Tromey <tom@tromey.com>
7662
7663 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7664 <base_address>: Now an optional.
7665 (dwarf2_find_base_address, dwarf2_rnglists_process)
7666 (dwarf2_ranges_process, fill_in_loclist_baton)
7667 (dwarf2_symbol_mark_computed): Update.
7668
c2d50fd0
TT
76692020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/read.c (struct die_info): Move to die.h.
7672 * dwarf2/die.h: New file.
7673
0df7ad3a
TT
76742020-03-26 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7677 * dwarf2/read.c
7678 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7679 Move to line-header.c.
7680 (read_checked_initial_length_and_offset, read_formatted_entries):
7681 Likewise.
7682 (dwarf_decode_line_header): Split into two.
7683 * dwarf2/line-header.c
7684 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7685 Move from read.c.
7686 (read_checked_initial_length_and_offset, read_formatted_entries):
7687 Likewise.
7688 (dwarf_decode_line_header): New function, split from read.c.
7689
86c0bb4c
TT
76902020-03-26 Tom Tromey <tom@tromey.com>
7691
7692 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7693 Declare method.
7694 * dwarf2/read.c (read_attribute_value): Update.
7695 (dwarf2_per_objfile::read_line_string): Rename from
7696 read_indirect_line_string.
7697 (read_formatted_entries): Update.
7698
2ef46c2f
TT
76992020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7702 variable.
7703
4f9c1eda
TT
77042020-03-26 Tom Tromey <tom@tromey.com>
7705
7706 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7707 const.
7708 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7709 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7710 parameter const.
7711
5a0e026f
TT
77122020-03-26 Tom Tromey <tom@tromey.com>
7713
7714 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7715 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7716 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7717 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7718
8844c11b
TT
77192020-03-26 Tom Tromey <tom@tromey.com>
7720
7721 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7722 file_names_size, file_full_name, file_file_name>: Use const.
7723 <file_name_at, file_names>: Add const overload.
7724 * dwarf2/line-header.c (line_header::file_file_name)
7725 (line_header::file_full_name): Update.
7726
c90ec28a
TT
77272020-03-26 Tom Tromey <tom@tromey.com>
7728
7729 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7730 (macro_start_file, consume_improper_spaces)
7731 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7732 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7733 (dwarf_decode_macros): Move to macro.c.
7734 * dwarf2/macro.c: New file.
7735 * dwarf2/macro.h: New file.
7736 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7737
4f44ae6c
TT
77382020-03-26 Tom Tromey <tom@tromey.com>
7739
7740 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7741 method.
7742 * dwarf2/section.c: New method. From
7743 read_indirect_string_at_offset_from.
7744 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7745 (read_indirect_string_at_offset_from): Move to section.c.
7746 (read_indirect_string_at_offset): Rewrite.
7747 (read_indirect_line_string_at_offset): Remove.
7748 (read_indirect_string, read_indirect_line_string)
7749 (dwarf_decode_macro_bytes): Update.
7750
a0194fa8
TT
77512020-03-26 Tom Tromey <tom@tromey.com>
7752
7753 * dwarf2/section.h (struct dwarf2_section_info)
7754 <overload_complaint>: Declare.
7755 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7756 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7757 Rename from dwarf2_section_buffer_overflow_complaint.
7758 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7759 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7760
3d27bbdb
TT
77612020-03-26 Tom Tromey <tom@tromey.com>
7762
7763 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7764 Declare.
7765 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7766 Move from read.c.
7767 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7768 to section.c.
7769
9eac9650
TT
77702020-03-26 Tom Tromey <tom@tromey.com>
7771
7772 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7773
bf80d710
TT
77742020-03-26 Tom Tromey <tom@tromey.com>
7775
7776 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7777 "builder".
7778 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7779 parameter.
7780 (dwarf_decode_macros): Update.
7781
0314b390
TT
77822020-03-26 Tom Tromey <tom@tromey.com>
7783
7784 * dwarf2/read.c (read_attribute_value): Update.
7785 (read_indirect_string_from_dwz): Move to dwz.c; change into
7786 method.
7787 (dwarf_decode_macro_bytes): Update.
7788 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7789 * dwarf2/dwz.c: New file.
7790 * Makefile.in (COMMON_SFILES): Add dwz.c.
7791
9fda78b6
TT
77922020-03-26 Tom Tromey <tom@tromey.com>
7793
7794 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7795 * dwarf2/read.c: Add include.
7796 * dwarf2/index-write.c: Add include.
7797 * dwarf2/index-cache.c: Add include.
7798 * dwarf2/dwz.h: New file.
7799
33aa3c10
TT
78002020-03-25 Tom Tromey <tom@tromey.com>
7801
7802 * compile/compile-object-load.c (get_out_value_type): Mention
7803 correct symbol name in error message.
7804
d503b685
HD
78052020-03-25 Hannes Domani <ssbssa@yahoo.de>
7806
7807 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7808
7b1eff95
TV
78092020-03-25 Tom de Vries <tdevries@suse.de>
7810
7811 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7812 * symmisc.c (dump_symtab_1): Print user and includes fields.
7813 (maintenance_info_symtabs): Same.
7814
dd895392
AB
78152020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 PR gdb/25534
7818 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7819 (riscv_regcache_cooked_write): New function.
7820 (riscv_push_dummy_call): Use new function.
7821 (riscv_return_value): Likewise.
7822
5ab2fbf1
SM
78232020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7824
7825 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7826 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7827 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7828 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7829 * infrun.c (follow_fork): Likewise.
7830 (follow_fork_inferior): Likewise.
7831 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7832 * linux-nat.h (class linux_nat_target): Likewise.
7833 * remote.c (class remote_target) <follow_fork>: Likewise.
7834 (remote_target::follow_fork): Likewise.
7835 * target-delegates.c: Re-generate.
7836 * target.c (default_follow_fork): Likewise.
7837 (target_follow_fork): Likewise.
7838 * target.h (struct target_ops) <follow_fork>: Likewise.
7839 (target_follow_fork): Likewise.
7840
a64fafb5
TV
78412020-03-24 Tom de Vries <tdevries@suse.de>
7842
7843 * psymtab.c (maintenance_info_psymtabs): Print user field.
7844
fe26d3a3
TT
78452020-03-20 Tom Tromey <tromey@adacore.com>
7846
7847 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7848 const.
7849 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7850 const.
7851
c884cc46
SM
78522020-03-20 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * ptrace.m4: Don't check for ptrace declaration.
7855 * config.in: Re-generate.
7856 * configure: Re-generate.
7857 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7858 not defined.
7859
1ff700c2
KR
78602020-03-20 Kamil Rytarowski <n54@gmx.com>
7861
7862 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7863 `PTRACE_TYPE_RET'.
7864 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7865 * sparc-nat.c (gdb_ptrace): Likewise.
7866 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7867
f7d4f0b1
TT
78682020-03-20 Tom Tromey <tromey@adacore.com>
7869
7870 * c-exp.y (lex_one_token): Fix assert.
7871
f67210ff
TT
78722020-03-20 Tom Tromey <tromey@adacore.com>
7873
7874 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7875 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7876 strncpy call.
7877
1773be9e
TT
78782020-03-20 Tom Tromey <tromey@adacore.com>
7879
7880 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7881
70304be9
TT
78822020-03-20 Tom Tromey <tromey@adacore.com>
7883
7884 * ada-valprint.c (print_variant_part): Remove parameters; switch
7885 to value-based API.
7886 (print_field_values): Likewise.
7887 (ada_val_print_struct_union): Likewise.
7888 (ada_value_print_1): Update.
7889
9faa006d
KR
78902020-03-20 Kamil Rytarowski <n54@gmx.com>
7891
7892 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7893 nbsd_nat_target instead of inf_ptrace_target.
7894 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7895 nbsd_nat_target.
7896
4a90f062
KR
78972020-03-20 Kamil Rytarowski <n54@gmx.com>
7898
7899 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7900 it to the ptrace call.
7901 * (store_registers): Likewise.
7902
79032020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7904
7905 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7906 it to the ptrace call.
7907 * (store_registers): Likewise.
7908
2d07da27
LM
79092020-03-19 Luis Machado <luis.machado@linaro.org>
7910
7911 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7912 valid, fetch vg value from ptrace.
7913
f09db380
KR
79142020-03-19 Kamil Rytarowski <n54@gmx.com>
7915 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7916 * inf-ptrace.c: Likewise.
7917 * (gdb_ptrace): Add.
7918 * (inf_ptrace_target::resume): Update.
7919 * (inf_ptrace_target::xfer_partial): Likewise.
7920 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7921 * (inf_ptrace_peek_poke): Update.
7922
fcc7376e
KR
79232020-03-19 Kamil Rytarowski <n54@gmx.com>
7924
7925 * x86-bsd-nat.c (gdb_ptrace): New.
7926 * (x86bsd_dr_set): Add new argument `ptid'.
7927 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7928 x86bsd_dr_set_addr): Update.
7929
cada5fc9
AB
79302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * remote.c (remote_target::process_stop_reply): Handle events for
7933 all threads differently.
7934
19a2740f
AB
79352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * completer.c (completion_tracker::remove_completion): Define new
7938 function.
7939 * completer.h (completion_tracker::remove_completion): Declare new
7940 function.
7941 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7942 when adding a C++ function symbol.
7943
724fd9ba
AB
79442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7945
7946 * completer.c (completion_tracker::completion_hash_entry): Define
7947 new class.
7948 (advance_to_filename_complete_word_point): Call
7949 recompute_lowest_common_denominator.
7950 (completion_tracker::completion_tracker): Call discard_completions
7951 to setup the hash table.
7952 (completion_tracker::discard_completions): Allow for being called
7953 from the constructor, pass new equal function, and element deleter
7954 when constructing the hash table. Initialise new class member
7955 variables.
7956 (completion_tracker::maybe_add_completion): Remove use of
7957 m_entries_vec, and store more information into m_entries_hash.
7958 (completion_tracker::recompute_lcd_visitor): New function, most
7959 content taken from...
7960 (completion_tracker::recompute_lowest_common_denominator):
7961 ...here, this now just visits each item in the hash calling the
7962 above visitor.
7963 (completion_tracker::build_completion_result): Remove use of
7964 m_entries_vec, call recompute_lowest_common_denominator.
7965 * completer.h (completion_tracker::have_completions): Remove use
7966 of m_entries_vec.
7967 (completion_tracker::completion_hash_entry): Declare new class.
7968 (completion_tracker::recompute_lowest_common_denominator): Change
7969 function signature.
7970 (completion_tracker::recompute_lcd_visitor): Declare new function.
7971 (completion_tracker::m_entries_vec): Delete.
7972 (completion_tracker::m_entries_hash): Initialize to NULL.
7973 (completion_tracker::m_lowest_common_denominator_valid): New
7974 member variable.
7975 (completion_tracker::m_lowest_common_denominator_max_length): New
7976 member variable.
7977
5a82b8a1
KR
79782020-03-17 Kamil Rytarowski <n54@gmx.com>
7979
7980 * regformats/regdef.h: Put reg in gdb namespace.
7981
fb516a69
KR
79822020-03-17 Kamil Rytarowski <n54@gmx.com>
7983
7984 * i386-bsd-nat.c (gdb_ptrace): New.
7985 * (i386bsd_fetch_inferior_registers,
7986 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7987 * (i386bsd_fetch_inferior_registers,
7988 i386bsd_store_inferior_registers) Use gdb_ptrace.
7989
1c0aa1fb
KR
79902020-03-17 Kamil Rytarowski <n54@gmx.com>
7991
7992 * amd64-bsd-nat.c (gdb_ptrace): New.
7993 * (amd64bsd_fetch_inferior_registers,
7994 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7995 * (amd64bsd_fetch_inferior_registers,
7996 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7997
5ccd2fb7
KR
79982020-03-17 Kamil Rytarowski <n54@gmx.com>
7999
8000 * user-regs.c (user_reg::read): Rename to...
8001 (user_reg::xread): ...this.
8002 * (append_user_reg): Rename argument `read' to `xread'.
8003 * (user_reg_add_builtin): Likewise.
8004 * (user_reg_add): Likewise.
8005 * (value_of_user_reg): Likewise.
8006
2108a63a
KR
80072020-03-17 Kamil Rytarowski <n54@gmx.com>
8008
8009 * sparc-nat.c (gdb_ptrace): New.
8010 * sparc-nat.c (sparc_fetch_inferior_registers)
8011 (sparc_store_inferior_registers) Remove obsolete comment.
8012 * sparc-nat.c (sparc_fetch_inferior_registers)
8013 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8014 * sparc-nat.c (sparc_fetch_inferior_registers)
8015 (sparc_store_inferior_registers) Use gdb_ptrace.
8016
a225c9a8
KR
80172020-03-17 Kamil Rytarowski <n54@gmx.com>
8018
8019 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8020 it to the ptrace call.
8021 * sh-nbsd-nat.c (store_registers): Likewise.
8022
98097623
KR
80232020-03-17 Kamil Rytarowski <n54@gmx.com>
8024
8025 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8026 nbsd_nat_target instead of inf_ptrace_target.
8027 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8028 nbsd_nat_target.
8029
9e38d619
KR
80302020-03-17 Kamil Rytarowski <n54@gmx.com>
8031
8032 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8033
a2ecbe9f
KR
80342020-03-17 Kamil Rytarowski <n54@gmx.com>
8035
8036 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8037 <sys/sysctl.h>.
8038 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8039
58990295
TV
80402020-03-17 Tom de Vries <tdevries@suse.de>
8041
8042 PR gdb/23710
8043 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8044 fields.
8045 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8046 fields.
8047 (process_imported_unit_die): Skip import of c++ CUs.
8048
771dd3a8
TT
80492020-03-16 Tom Tromey <tom@tromey.com>
8050
8051 * p-valprint.c (pascal_object_print_value): Initialize
8052 base_value.
8053
817a7585
AK
80542020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8055 Shahab Vahedi <shahab@synopsys.com>
8056
8057 * Makefile.in: Add arch/arc.o
8058 * configure.tgt: Likewise.
8059 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8060 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8061 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8062 * arc-tdep.h (arc_read_description): Add proto type.
8063 * arch/arc.c: New file.
8064 * arch/arc.h: Likewise.
8065 * features/Makefile: Replace old target descriptions with new.
8066 * features/arc-arcompact.c: Remove.
8067 * features/arc-arcompact.xml: Likewise.
8068 * features/arc-v2.c: Likewise
8069 * features/arc-v2.xml: Likewise
8070 * features/arc/aux-arcompact.xml: New file.
8071 * features/arc/aux-v2.xml: Likewise.
8072 * features/arc/core-arcompact.xml: Likewise.
8073 * features/arc/core-v2.xml: Likewise.
8074 * features/arc/aux-arcompact.c: Generate.
8075 * features/arc/aux-v2.c: Likewise.
8076 * features/arc/core-arcompact.c: Likewise.
8077 * features/arc/core-v2.c: Likewise.
8078 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8079
67430cd0
TT
80802020-03-16 Tom Tromey <tromey@adacore.com>
8081
8082 PR gdb/25663:
8083 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8084 putting value into bcache.
8085
30efb6c7
SM
80862020-03-16 Simon Marchi <simon.marchi@efficios.com>
8087
8088 PR gdb/21500
8089 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8090 to...
8091 (amd64_windows_init_abi_common): ... this. Don't set size of
8092 long type.
8093 (amd64_windows_init_abi): New function.
8094 (amd64_cygwin_init_abi): New function.
8095 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8096 the Cygwin OS ABI.
8097 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8098 comment.
8099
8db52437
SM
81002020-03-16 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8103 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8104 (pe_import_directory_entry): New struct type.
8105 (is_linked_with_cygwin_dll): New function.
8106 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8107 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8108 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8109
5982a56a
SM
81102020-03-16 Simon Marchi <simon.marchi@efficios.com>
8111
8112 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8113 i386_cygwin_core_osabi_sniffer.
8114
7a1998df
SM
81152020-03-16 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * i386-cygwin-tdep.c: Rename to...
8118 * i386-windows-tdep.c: ... this.
8119 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8120 i386-windows-tdep.c.
8121 * configure.tgt: Likewise.
8122
053205cc
SM
81232020-03-16 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8126 * osabi.c (gdb_osabi_names): Add "Windows".
8127 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8128 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8129 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8130 i386_cygwin_osabi_sniffer.
8131 (_initialize_i386_cygwin_tdep): Register OS ABI
8132 GDB_OSABI_WINDOWS for i386.
8133 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8134 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8135 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8136 for x86-64.
8137 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8138 when the target matches '*-*-mingw*'.
8139
fe4b2ee6
SM
81402020-03-16 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * defs.h (enum gdb_osabi): Move to...
8143 * osabi.h (enum gdb_osabi): ... here.
8144 * gdbarch.sh: Include osabi.h in gdbarch.h.
8145 * gdbarch.h: Re-generate.
8146
cb9b645d
SM
81472020-03-16 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8150 function.
8151 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8152
3293bbaf
TT
81532020-03-14 Tom Tromey <tom@tromey.com>
8154
8155 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8156 for C++.
8157 (c_type_print_modifier): Likewise. Add "language" parameter.
8158 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8159 (c_type_print_base_1): Update.
8160 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8161 constants.
8162 * type-stack.c (type_stack::insert): Handle tp_atomic and
8163 tp_restrict.
8164 (type_stack::follow_type_instance_flags): Likewise.
8165 (type_stack::follow_types): Likewise. Merge type-following code.
8166 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8167 (space_identifier, cv_with_space_id)
8168 (const_or_volatile_or_space_identifier_noopt)
8169 (const_or_volatile_or_space_identifier): Remove.
8170 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8171 rules.
8172 (ptr_operator, typebase): Update.
8173 (enum token_flag) <FLAG_C>: New constant.
8174 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8175 "_Atomic".
8176 (lex_one_token): Handle FLAG_C.
8177
154151a6
KR
81782020-03-14 Kamil Rytarowski <n54@gmx.com>
8179
8180 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8181 it to the ptrace call.
8182 * m68k-bsd-nat.c (store_registers): Likewise.
8183
bc107784
KR
81842020-03-14 Kamil Rytarowski <n54@gmx.com>
8185
8186 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8187 gdb_byte *.
8188 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8189 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8190 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8191
01a80117
KR
81922020-03-14 Kamil Rytarowski <n54@gmx.com>
8193
8194 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8195 nbsd_nat_target instead of inf_ptrace_target.
8196 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8197 nbsd_nat_target.
8198
f90280ca
KR
81992020-03-14 Kamil Rytarowski <n54@gmx.com>
8200
8201 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8202 register_t.
8203
6def66f1
KR
82042020-03-14 Kamil Rytarowski <n54@gmx.com>
8205
8206 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8207 it to the ptrace call.
8208 * alpha-bsd-nat.c (store_registers): Likewise.
8209
66eaca97
KR
82102020-03-14 Kamil Rytarowski <n54@gmx.com>
8211
8212 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8213 includes.
8214 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8215 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8216 fill_fpregset): Likewise.
8217
4fed520b
KR
82182020-03-14 Kamil Rytarowski <n54@gmx.com>
8219
8220 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8221 nbsd_nat_target instead of inf_ptrace_target.
8222 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8223 nbsd_nat_target.
8224
2190cf06
KR
82252020-03-14 Kamil Rytarowski <n54@gmx.com>
8226
8227 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8228 register_t.
8229
75c56d3d
KR
82302020-03-14 Kamil Rytarowski <n54@gmx.com>
8231
8232 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8233 it to the ptrace call.
8234 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8235 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8236 * arm-nbsd-nat.c (store_register): Likewise.
8237 * arm-nbsd-nat.c (store_regs): Likewise.
8238 * arm-nbsd-nat.c (store_fp_register): Likewise.
8239 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8240
6018d381
KR
82412020-03-14 Kamil Rytarowski <n54@gmx.com>
8242
8243 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8244 nbsd_nat_target instead of inf_ptrace_target.
8245 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8246 nbsd_nat_target.
8247
013f99f0
KR
82482020-03-14 Kamil Rytarowski <n54@gmx.com>
8249
8250 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8251 it to the ptrace call.
8252 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8253
12753073
KR
82542020-03-14 Kamil Rytarowski <n54@gmx.com>
8255
6227b330
KR
8256 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8257 it to the ptrace call.
8258 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8259
82602020-03-14 Kamil Rytarowski <n54@gmx.com>
8261
8262 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8263 gdb_byte *.
12753073
KR
8264 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8265
d5be5fa4
KR
82662020-03-14 Kamil Rytarowski <n54@gmx.com>
8267
8268 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8269 instead of inf_ptrace_target.
8270 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8271 nbsd_nat_target.
8272
8110f842
KR
82732020-03-14 Kamil Rytarowski <n54@gmx.com>
8274
8275 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8276 register_t.
8277
52feded7
KR
82782020-03-14 Kamil Rytarowski <n54@gmx.com>
8279
8280 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8281 register_t.
8282
25567eee
KR
82832020-03-14 Kamil Rytarowski <n54@gmx.com>
8284
8285 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8286 register_t.
8287
426a9c18
TT
82882020-03-13 Tom Tromey <tom@tromey.com>
8289
8290 * value.h (val_print): Don't declare.
8291 * valprint.h (val_print_array_elements)
8292 (val_print_scalar_formatted, generic_val_print): Don't declare.
8293 * valprint.c (generic_val_print_array): Take a struct value.
8294 (generic_val_print_ptr, generic_val_print_memberptr)
8295 (generic_val_print_bool, generic_val_print_int)
8296 (generic_val_print_char, generic_val_print_complex)
8297 (generic_val_print): Remove.
8298 (generic_value_print): Update.
8299 (do_val_print): Remove unused parameters. Don't call
8300 la_val_print.
8301 (val_print): Remove.
8302 (common_val_print): Update. Don't call value_check_printable.
8303 (val_print_scalar_formatted, val_print_array_elements): Remove.
8304 * rust-lang.c (rust_val_print): Remove.
8305 (rust_language_defn): Update.
8306 * p-valprint.c (pascal_val_print): Remove.
8307 (pascal_value_print_inner): Update.
8308 (pascal_object_print_val_fields, pascal_object_print_val):
8309 Remove.
8310 (pascal_object_print_static_field): Update.
8311 * p-lang.h (pascal_val_print): Don't declare.
8312 * p-lang.c (pascal_language_defn): Update.
8313 * opencl-lang.c (opencl_language_defn): Update.
8314 * objc-lang.c (objc_language_defn): Update.
8315 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8316 * m2-lang.h (m2_val_print): Don't declare.
8317 * m2-lang.c (m2_language_defn): Update.
8318 * language.h (struct language_defn) <la_val_print>: Remove.
8319 * language.c (unk_lang_value_print_inner): Rename. Change
8320 argument types.
8321 (unknown_language_defn, auto_language_defn): Update.
8322 * go-valprint.c (go_val_print): Remove.
8323 * go-lang.h (go_val_print): Don't declare.
8324 * go-lang.c (go_language_defn): Update.
8325 * f-valprint.c (f_val_print): Remove.
8326 * f-lang.h (f_value_print): Don't declare.
8327 * f-lang.c (f_language_defn): Update.
8328 * d-valprint.c (d_val_print): Remove.
8329 * d-lang.h (d_value_print): Don't declare.
8330 * d-lang.c (d_language_defn): Update.
8331 * cp-valprint.c (cp_print_value_fields)
8332 (cp_print_value_fields_rtti, cp_print_value): Remove.
8333 (cp_print_static_field): Update.
8334 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8335 (c_val_print_struct, c_val_print_union, c_val_print_int)
8336 (c_val_print_memberptr, c_val_print): Remove.
8337 * c-lang.h (c_val_print_array, cp_print_value_fields)
8338 (cp_print_value_fields_rtti): Don't declare.
8339 * c-lang.c (c_language_defn, cplus_language_defn)
8340 (asm_language_defn, minimal_language_defn): Update.
8341 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8342 (ada_val_print_enum): Take a struct value.
8343 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8344 (ada_val_print): Remove.
8345 (ada_value_print_1): Update.
8346 (printable_val_type): Remove.
8347 * ada-lang.h (ada_val_print): Don't declare.
8348 * ada-lang.c (ada_language_defn): Update.
8349
42331a1e
TT
83502020-03-13 Tom Tromey <tom@tromey.com>
8351
8352 * valprint.c (do_val_print): Update.
8353 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8354 a struct value.
8355 (value_to_value_object_no_release): Declare.
8356 * python/py-value.c (value_to_value_object_no_release): New
8357 function.
8358 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8359 struct value.
8360 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8361 function.
8362 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8363 a struct value.
8364 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8365 Declare.
8366 (gdbscm_apply_val_pretty_printer): Take a struct value.
8367 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8368 value.
8369 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8370 value.
8371 * extension-priv.h (struct extension_language_ops)
8372 <apply_val_pretty_printer>: Take a struct value.
8373 * cp-valprint.c (cp_print_value): Create a struct value.
8374 (cp_print_value): Update.
8375
3a916a97
TT
83762020-03-13 Tom Tromey <tom@tromey.com>
8377
8378 * ada-valprint.c (print_field_values): Call common_val_print.
8379
b59eac37
TT
83802020-03-13 Tom Tromey <tom@tromey.com>
8381
8382 * ada-valprint.c (val_print_packed_array_elements): Remove
8383 bitoffset and val parameters. Call common_val_print.
8384 (ada_val_print_string): Remove offset, address, and original_value
8385 parameters.
8386 (ada_val_print_array): Update.
8387 (ada_value_print_array): New function.
8388 (ada_value_print_1): Call it.
8389
03371129
TT
83902020-03-13 Tom Tromey <tom@tromey.com>
8391
8392 * ada-valprint.c (ada_value_print): Use common_val_print.
8393
2e088f8b
TT
83942020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8397
39ef85a8
TT
83982020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * ada-valprint.c (ada_value_print_num): New function.
8401 (ada_value_print_1): Use it.
8402
b9fa6e07
TT
84032020-03-13 Tom Tromey <tom@tromey.com>
8404
8405 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8406
416595d6
TT
84072020-03-13 Tom Tromey <tom@tromey.com>
8408
8409 * ada-valprint.c (ada_value_print_ptr): New function.
8410 (ada_value_print_1): Use it.
8411
5b5e15ec
TT
84122020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8415 call common_val_print.
8416 (ada_val_print_1): Update.
8417 (ada_value_print_1): New function.
8418 (ada_value_print_inner): Rewrite.
8419
fbf54e75
TT
84202020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * cp-valprint.c (cp_print_value_fields): Update.
8423 (cp_print_value): New function.
8424
64b653ca
TT
84252020-03-13 Tom Tromey <tom@tromey.com>
8426
8427 * m2-valprint.c (m2_value_print_inner): Use
8428 cp_print_value_fields.
8429 * cp-valprint.c (cp_print_value_fields): New function.
8430 * c-valprint.c (c_value_print_struct): New function.
8431 (c_value_print_inner): Use c_value_print_struct.
8432 * c-lang.h (cp_print_value_fields): Declare.
8433
6999f067
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * c-valprint.c (c_value_print_array): New function.
8437 (c_value_print_inner): Use it.
8438
ce80b8bd
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * c-valprint.c (c_value_print_memberptr): New function.
8442 (c_value_print_inner): Use it.
8443
2faac269
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * c-valprint.c (c_value_print_int): New function.
8447 (c_value_print_inner): Use it.
8448
da3e2c29
TT
84492020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * c-valprint.c (c_value_print_ptr): New function.
8452 (c_value_print_inner): Use it.
8453
50836231
TT
84542020-03-13 Tom Tromey <tom@tromey.com>
8455
8456 * c-valprint.c (c_value_print_inner): Rewrite.
8457
4f412b6e
TT
84582020-03-13 Tom Tromey <tom@tromey.com>
8459
8460 * valprint.c (generic_value_print_complex): New function.
8461 (generic_value_print): Use it.
8462
f5354008
TT
84632020-03-13 Tom Tromey <tom@tromey.com>
8464
8465 * valprint.c (generic_val_print_float): Don't call
8466 val_print_scalar_formatted.
8467 (generic_val_print, generic_value_print): Update.
8468
3eec3b05
TT
84692020-03-13 Tom Tromey <tom@tromey.com>
8470
8471 * valprint.c (generic_value_print_char): New function
8472 (generic_value_print): Use it.
8473
fdddfccb
TT
84742020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_value_print_int): New function.
8477 (generic_value_print): Use it.
8478
6dde7521
TT
84792020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * valprint.c (generic_value_print_bool): New function.
8482 (generic_value_print): Use it.
8483
4112d2e6
TT
84842020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * valprint.c (generic_val_print_func): Simplify.
8487 (generic_val_print, generic_value_print): Update.
8488
65786af6
TT
84892020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * valprint.c (generic_val_print_flags): Remove.
8492 (generic_val_print, generic_value_print): Update.
8493 (val_print_type_code_flags): Add original_value parameter.
8494
40f3ce18
TT
84952020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * valprint.c (generic_val_print): Update.
8498 (generic_value_print): Update.
8499 * valprint.c (generic_val_print_enum): Don't call
8500 val_print_scalar_formatted.
8501
2a5b130b
TT
85022020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8505 * valprint.c (generic_value_print_ptr): New function.
8506
abc66ce9
TT
85072020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * valprint.c (generic_value_print): Rewrite.
8510
07a32858
TT
85112020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * p-valprint.c (pascal_object_print_value_fields)
8514 (pascal_object_print_value): New functions.
8515
64d64d3a
TT
85162020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * p-valprint.c (pascal_value_print_inner): Rewrite.
8519
6a95a1f5
TT
85202020-03-13 Tom Tromey <tom@tromey.com>
8521
8522 * f-valprint.c (f_value_print_innner): Rewrite.
8523
59fcdac6
TT
85242020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * m2-valprint.c (m2_print_unbounded_array): New overload.
8527 (m2_print_unbounded_array): Update.
8528 (m2_print_array_contents): Take a struct value.
8529 (m2_value_print_inner): Rewrite.
8530
d133c3e1
TT
85312020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8534 (d_value_print_inner): New function.
8535 * d-lang.h (d_value_print_inner): Declare.
8536 * d-lang.c (d_language_defn): Use d_value_print_inner.
8537
23b0f06b
TT
85382020-03-13 Tom Tromey <tom@tromey.com>
8539
8540 * go-valprint.c (go_value_print_inner): New function.
8541 * go-lang.h (go_value_print_inner): Declare.
8542 * go-lang.c (go_language_defn): Use go_value_print_inner.
8543
5f56f7cb
TT
85442020-03-13 Tom Tromey <tom@tromey.com>
8545
8546 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8547 API.
8548 (rust_val_print): Rewrite.
8549 (rust_value_print_inner): New function, from rust_val_print.
8550 (rust_language_defn): Use rust_value_print_inner.
8551
26792ee0
TT
85522020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * ada-valprint.c (ada_value_print_inner): New function.
8555 * ada-lang.h (ada_value_print_inner): Declare.
8556 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8557
24051bbe
TT
85582020-03-13 Tom Tromey <tom@tromey.com>
8559
8560 * f-valprint.c (f_value_print_innner): New function.
8561 * f-lang.h (f_value_print_innner): Declare.
8562 * f-lang.c (f_language_defn): Use f_value_print_innner.
8563
c0941be6
TT
85642020-03-13 Tom Tromey <tom@tromey.com>
8565
8566 * p-valprint.c (pascal_value_print_inner): New function.
8567 * p-lang.h (pascal_value_print_inner): Declare.
8568 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8569
62c4663d
TT
85702020-03-13 Tom Tromey <tom@tromey.com>
8571
8572 * m2-valprint.c (m2_value_print_inner): New function.
8573 * m2-lang.h (m2_value_print_inner): Declare.
8574 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8575
62182190
TT
85762020-03-13 Tom Tromey <tom@tromey.com>
8577
8578 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8579 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8580 * c-valprint.c (c_value_print_inner): New function.
8581 * c-lang.h (c_value_print_inner): Declare.
8582 * c-lang.c (c_language_defn, cplus_language_defn)
8583 (asm_language_defn, minimal_language_defn): Use
8584 c_value_print_inner.
8585
1e592a8a
TT
85862020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * p-valprint.c (pascal_object_print_value_fields): Now static.
8589 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8590
7fe471e9
TT
85912020-03-13 Tom Tromey <tom@tromey.com>
8592
8593 * c-valprint.c (c_val_print_array): Simplify.
8594
d121c6ce
TT
85952020-03-13 Tom Tromey <tom@tromey.com>
8596
8597 * valprint.c (value_print_array_elements): New function.
8598 * valprint.h (value_print_array_elements): Declare.
8599
4dba70ee
TT
86002020-03-13 Tom Tromey <tom@tromey.com>
8601
8602 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8603 * mips-tdep.c (mips_print_register): Use
8604 value_print_scalar_formatted.
8605
4f9ae810
TT
86062020-03-13 Tom Tromey <tom@tromey.com>
8607
8608 * valprint.h (value_print_scalar_formatted): Declare.
8609 * valprint.c (value_print_scalar_formatted): New function.
8610
156bfec9
TT
86112020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * valprint.h (generic_value_print): Declare.
8614 * valprint.c (generic_value_print): New function.
8615
2b4e573d
TT
86162020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * valprint.c (do_val_print): Call la_value_print_inner, if
8619 available.
8620 * rust-lang.c (rust_language_defn): Update.
8621 * p-lang.c (pascal_language_defn): Update.
8622 * opencl-lang.c (opencl_language_defn): Update.
8623 * objc-lang.c (objc_language_defn): Update.
8624 * m2-lang.c (m2_language_defn): Update.
8625 * language.h (struct language_defn) <la_value_print_inner>: New
8626 member.
8627 * language.c (unknown_language_defn, auto_language_defn): Update.
8628 * go-lang.c (go_language_defn): Update.
8629 * f-lang.c (f_language_defn): Update.
8630 * d-lang.c (d_language_defn): Update.
8631 * c-lang.c (c_language_defn, cplus_language_defn)
8632 (asm_language_defn, minimal_language_defn): Update.
8633 * ada-lang.c (ada_language_defn): Update.
8634
a1f6a07c
TT
86352020-03-13 Tom Tromey <tom@tromey.com>
8636
8637 * c-valprint.c (c_value_print): Use common_val_print.
8638
410cf315
TT
86392020-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8642
72a45c93
TT
86432020-03-13 Tom Tromey <tom@tromey.com>
8644
8645 * f-valprint.c (f77_print_array_1, f_val_print): Use
8646 common_val_print.
8647
040f66bd
TT
86482020-03-13 Tom Tromey <tom@tromey.com>
8649
8650 * riscv-tdep.c (riscv_print_one_register_info): Use
8651 common_val_print.
8652
a6e05a6c
TT
86532020-03-13 Tom Tromey <tom@tromey.com>
8654
8655 * mi/mi-main.c (output_register): Use common_val_print.
8656
3444c526
TT
86572020-03-13 Tom Tromey <tom@tromey.com>
8658
8659 * infcmd.c (default_print_one_register_info): Use
8660 common_val_print.
8661
c2a44efe
TT
86622020-03-13 Tom Tromey <tom@tromey.com>
8663
8664 * valprint.h (common_val_print_checked): Declare.
8665 * valprint.c (common_val_print_checked): New function.
8666 * stack.c (print_frame_arg): Use common_val_print_checked.
8667
b0c26e99
TT
86682020-03-13 Tom Tromey <tom@tromey.com>
8669
8670 * valprint.c (do_val_print): New function, from val_print.
8671 (val_print): Use do_val_print.
8672 (common_val_print): Use do_val_print.
8673
ce3acbe9
TT
86742020-03-13 Tom Tromey <tom@tromey.com>
8675
8676 * valprint.c (value_print): Use scoped_value_mark.
8677
96c7f873
TV
86782020-03-13 Tom de Vries <tdevries@suse.de>
8679
8680 PR symtab/25646
8681 * psymtab.c (partial_symtab::partial_symtab): Don't set
8682 globals_offset and statics_offset. Push element onto
8683 current_global_psymbols and current_static_psymbols stacks.
8684 (concat): New function.
8685 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8686 element from current_global_psymbols and current_static_psymbols
8687 stacks. Concat popped elements to global_psymbols and
8688 static_symbols.
8689 (add_psymbol_to_list): Use current_global_psymbols and
8690 current_static_psymbols stacks.
8691 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8692 current_static_psymbols fields.
8693
6ba0a321
CB
86942020-03-12 Christian Biesinger <cbiesinger@google.com>
8695
8696 * corelow.c (sniff_core_bfd): Remove.
8697 (class core_target) <m_core_vec>: Remove.
8698 (core_target::core_target): Update.
8699 (core_file_fns): Remove.
8700 (deprecated_add_core_fns): Remove.
8701 (default_core_sniffer): Remove.
8702 (sniff_core_bfd): Remove.
8703 (default_check_format): Remove.
8704 (gdb_check_format): Remove.
8705 (core_target_open): Update.
8706 (core_target::get_core_register_section): Update.
8707 (get_core_registers_cb): Update.
8708 (core_target::fetch_registers): Update.
8709 * gdbcore.h (struct core_fns): Remove.
8710 (deprecated_add_core_fns): Remove.
8711 (default_core_sniffer): Remove.
8712 (default_check_format): Remove.
8713
227031b2
TT
87142020-03-12 Tom Tromey <tom@tromey.com>
8715
8716 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8717 CORE_ADDR.
8718 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8719
53807e9f
TT
87202020-03-12 Tom Tromey <tom@tromey.com>
8721
8722 * remote.c (remote_target::download_tracepoint)
8723 (remote_target::enable_tracepoint)
8724 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8725 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8726 sprintf_vma.
8727
64f25102
TT
87282020-03-12 Tom Tromey <tom@tromey.com>
8729
8730 * symfile-mem.c: Update CORE_ADDR size assert.
8731
272cd5a3
SM
87322020-03-12 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * selftest.m4: Move to gdbsupport/.
8735 * acinclude.m4: Update path to selftest.m4.
8736
74cd3f9d
SM
87372020-03-12 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8740 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8741 gdbarch-selfselftests.c and selftest-arch.c.
8742 (SUBDIR_UNITTESTS_OBS): Rename to...
8743 (SELFTESTS_OBS): ... this.
8744 (COMMON_SFILES): Remove disasm-selftests.c and
8745 gdbarch-selftests.c.
8746 * configure.ac: Don't add selftest-arch.{c,o} to
8747 CONFIG_{SRCS,OBS}.
8748 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8749 preprocessor conditions.
8750
db6878ac
SM
87512020-03-12 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * configure.ac: Don't source bfd/development.sh.
8754 * selftest.m4: Modify comment.
8755 * configure: Re-generate.
8756
4d696a5c
SM
87572020-03-12 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8760 not "true" or "false".
8761 * configure: Re-generate.
8762
8dd8e1c7
CB
87632020-03-12 Christian Biesinger <cbiesinger@google.com>
8764
8765 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8766 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8767 renamed to arm_nbsd_supply_gregset.
8768 (fetch_register): Update to call arm_nbsd_supply_gregset.
8769 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8770 (arm_netbsd_nat_target::fetch_registers): Update.
8771 (fetch_elfcore_registers): Removed.
8772 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8773 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8774 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8775 not require NetBSD system headers.
8776 (arm_nbsd_regset): New struct.
8777 (arm_nbsd_iterate_over_regset_sections): New function.
8778 (arm_netbsd_init_abi_common): Updated to call
8779 set_gdbarch_iterate_over_regset_sections.
8780 * arm-nbsd-tdep.h: New file.
8781
dd69bf7a
KB
87822020-03-11 Kevin Buettner <kevinb@redhat.com>
8783
8784 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8785 recursion.
8786
a0761e34
SM
87872020-03-11 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * configure: Re-generate.
8790
e7a82140
TT
87912020-03-11 Tom Tromey <tromey@adacore.com>
8792
8793 * ada-typeprint.c (print_choices): Fix comment.
8794
dcc050c8
AB
87952020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8796
8797 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8798 previous item in the list, when the list has no items.
8799
1c33af77
TV
88002020-03-11 Tom de Vries <tdevries@suse.de>
8801
8802 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8803 PROP_LOCLIST handling code.
8804
8c95582d
AB
88052020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * buildsym-legacy.c (record_line): Pass extra parameter to
8808 record_line.
8809 * buildsym.c (buildsym_compunit::record_line): Take an extra
8810 parameter, reduce duplication in the line table, and record the
8811 is_stmt flag in the line table.
8812 * buildsym.h (buildsym_compunit::record_line): Add extra
8813 parameter.
8814 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8815 non-statement lines.
8816 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8817 this to the symtab builder.
8818 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8819 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8820 through to dwarf_record_line_1.
8821 * infrun.c (process_event_stop_test): When stepping, don't stop at
8822 a non-statement instruction, and only refresh the step info when
8823 we land in the middle of a line's range. Also add an extra
8824 comment.
8825 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8826 field.
8827 * record-btrace.c (btrace_find_line_range): Only record lines
8828 marked as is-statement.
8829 * stack.c (frame_show_address): Show the frame address if we are
8830 in a non-statement sal.
8831 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8832 (maintenance_print_one_line_table): Print a header for the is_stmt
8833 column, and include is_stmt information in the output.
8834 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8835 preference to non-statements.
8836 (find_pcs_for_symtab_line): Prefer is-statement entries.
8837 (find_line_common): Likewise.
8838 * symtab.h (struct linetable_entry): Add is_stmt field.
8839 (struct symtab_and_line): Likewise.
8840 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8841 arranging the line table.
8842
e4003a34
TV
88432020-03-07 Tom de Vries <tdevries@suse.de>
8844
8845 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8846 DIE.
8847
e8932576
TT
88482020-03-07 Tom Tromey <tom@tromey.com>
8849
8850 * valops.c (value_literal_complex): Remove obsolete comment.
8851 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8852 comment.
8853
29734269
SM
88542020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8855
8856 * infrun.h: Forward-declare thread_info.
8857 (set_step_info): Add thread_info parameter, add doc.
8858 * infrun.c (set_step_info): Add thread_info parameter, move doc
8859 to header.
8860 * infrun.c (process_event_stop_test): Pass thread to
8861 set_step_info call.
8862 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8863 set_step_info.
8864 (prepare_one_step): Add thread_info parameter, pass it to
8865 set_step_frame and prepare_one_step (recursive) call.
8866 (step_1): Pass thread to prepare_one_step call.
8867 (step_command_fsm::should_stop): Pass thread to
8868 prepare_one_step.
8869 (until_next_fsm): Pass thread to set_step_frame call.
8870 (finish_command): Pass thread to set_step_info call.
8871
b7d64b29
HD
88722020-03-06 Hannes Domani <ssbssa@yahoo.de>
8873
8874 * windows-tdep.c (windows_solib_create_inferior_hook):
8875 Check if inferior is running.
8876
09f2921c
TV
88772020-03-06 Tom de Vries <tdevries@suse.de>
8878
8879 * NEWS: Fix "the the".
8880 * ctfread.c: Same.
8881
fd760e79
TV
88822020-03-06 Tom de Vries <tdevries@suse.de>
8883
8884 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8885
20ea4a60
AB
88862020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8887
8888 * .dir-locals.el: Add a comment referencing the other copies of
8889 this file.
8890
0afbabf0
JB
88912020-03-05 John Baldwin <jhb@FreeBSD.org>
8892
8893 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8894 psargs.
8895
842806cb
TBA
88962020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8897
8898 * .gitattributes: New file.
8899
be1e3d3e
TT
89002020-03-04 Tom Tromey <tom@tromey.com>
8901
8902 * symmisc.c (print_symbol_bcache_statistics)
8903 (print_objfile_statistics): Update.
8904 * symfile.c (allocate_symtab): Use intern.
8905 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8906 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8907 macro_cache>: Remove.
8908 <string_cache>: New member.
8909 (struct objfile) <intern>: New methods.
8910 * elfread.c (elf_symtab_read): Use intern.
8911 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8912 (dwarf2_compute_name, dwarf2_physname)
8913 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8914 names.
8915 (guess_partial_die_structure_name): Update.
8916 (partial_die_info::fixup): Intern name.
8917 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8918 name.
8919 (dwarf2_name): Intern name. Update.
8920 * buildsym.c (buildsym_compunit::get_macro_table): Use
8921 string_cache.
8922
4e7625fd
TT
89232020-03-04 Tom Tromey <tom@tromey.com>
8924
8925 * jit.c (bfd_open_from_target_memory): Make "target" const.
8926 * corefile.c (gnutarget): Now const.
8927 * gdbcore.h (gnutarget): Now const.
8928
46f9f931
HD
89292020-03-04 Hannes Domani <ssbssa@yahoo.de>
8930
8931 * NEWS: Mention support for WOW64 processes.
8932 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8933 (amd64_windows_segment_register_p): Remove static.
8934 (_initialize_amd64_windows_nat): Update.
8935 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8936 * i386-windows-nat.c (context_offset): Update.
8937 (i386_mappings): Rename and remove static.
8938 (i386_windows_segment_register_p): Remove static.
8939 (_initialize_i386_windows_nat): Update.
8940 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8941 (STATUS_WX86_SINGLE_STEP): New macro.
8942 (EnumProcessModulesEx): New macro.
8943 (Wow64SuspendThread): New macro.
8944 (Wow64GetThreadContext): New macro.
8945 (Wow64SetThreadContext): New macro.
8946 (Wow64GetThreadSelectorEntry): New macro.
8947 (windows_set_context_register_offsets): Add static.
8948 (windows_set_segment_register_p): Likewise.
8949 (windows_add_thread): Adapt for WOW64 processes.
8950 (windows_fetch_one_register): Likewise.
8951 (windows_nat_target::fetch_registers): Likewise.
8952 (windows_store_one_register): Likewise.
8953 (display_selector): Likewise.
8954 (display_selectors): Likewise.
8955 (handle_exception): Likewise.
8956 (windows_continue): Likewise.
8957 (windows_nat_target::resume): Likewise.
8958 (windows_add_all_dlls): Likewise.
8959 (do_initial_windows_stuff): Likewise.
8960 (windows_nat_target::attach): Likewise.
8961 (windows_get_exec_module_filename): Likewise.
8962 (windows_nat_target::create_inferior): Likewise.
8963 (windows_xfer_siginfo): Likewise.
8964 (_initialize_loadable): Initialize Wow64SuspendThread,
8965 Wow64GetThreadContext, Wow64SetThreadContext,
8966 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8967 * windows-nat.h (windows_set_context_register_offsets):
8968 Remove declaration.
8969 (windows_set_segment_register_p): Likewise.
8970 (i386_windows_segment_register_p): Add declaration.
8971 (amd64_windows_segment_register_p): Likewise.
8972
440cf44e
LM
89732020-03-04 Luis Machado <luis.machado@linaro.org>
8974
8975 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8976 in "info registers" for AArch64/ARM.
8977
8978 The change caused "info registers" to not print GPR's.
8979
8980 gdb/ChangeLog:
8981
8982 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8983
8984 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8985 when reg->group is empty and reggroup is not.
8986
1009d92f
TT
89872020-03-03 Tom Tromey <tromey@adacore.com>
8988
8989 * dwarf2/frame.c (struct dwarf2_frame_cache)
8990 <checked_tailcall_bottom, entry_cfa_sp_offset,
8991 entry_cfa_sp_offset_p>: Remove members.
8992 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8993 (dwarf2_frame_prev_register): Don't call
8994 dwarf2_tailcall_sniffer_first.
8995 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8996 * frame-unwind.c (add_unwinder): New fuction.
8997 (frame_unwind_init): Use it. Add tailcall unwinder.
8998
5e5d66b6
AB
89992020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9000 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9001
9002 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9003 value should be printed as true.
9004
584cf46d
HD
90052020-03-03 Hannes Domani <ssbssa@yahoo.de>
9006
9007 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9008 (windows_init_abi): Set and use windows_so_ops.
9009
7b973adc
SDJ
90102020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9011
9012 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9013 when verifying if dealing with a convenience variable.
9014
bb7b70ab
LM
90152020-03-03 Luis Machado <luis.machado@linaro.org>
9016
9017 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9018
9822cb57
SM
90192020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9020
9021 * infrun.c (gdbarch_supports_displaced_stepping): New.
9022 (use_displaced_stepping): Break up conditions in smaller pieces.
9023 Use gdbarch_supports_displaced_stepping.
9024 (displaced_step_prepare_throw): Use
9025 gdbarch_supports_displaced_stepping.
9026
63e163f2
AB
90272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * NEWS: Mention new behaviour of the history filename.
9030 * top.c (write_history_p): Add comment.
9031 (show_write_history_p): Add header comment, give a different
9032 message when history writing is on, but the history filename is
9033 empty.
9034 (history_filename): Add comment.
9035 (history_filename_empty): New function.
9036 (show_history_filename): Add header comment, give a different
9037 message when the filename is empty.
9038 (init_history): Compare history_filename against nullptr, and only
9039 read history if the filename is not empty.
9040 (set_history_filename): Add header comment, and only make
9041 non-empty filenames absolute.
9042 (init_main): Make the filename argument to 'set history filename'
9043 optional.
9044
81b86b97
CB
90452020-03-02 Christian Biesinger <cbiesinger@google.com>
9046
9047 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9048 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9049 (fetch_fp_register): Update.
9050 (fetch_fp_regs): Update.
9051 (store_fp_register): Update.
9052 (store_fp_regs): Update.
9053 (arm_netbsd_nat_target::read_description): New function.
9054 (fetch_elfcore_registers): Update.
9055
24ed6739
AB
90562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9059 general_thread if the stop reply is missing a thread-id.
9060 (remote_target::process_stop_reply): Use the first non-exited
9061 thread if the target didn't pass a thread-id.
9062 * infrun.c (do_target_wait): Move call to
9063 switch_to_inferior_no_thread to ....
9064 (do_target_wait_1): ... here.
9065
a84bb2a0
JT
90662020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9067
9068 * debuginfod-support.c: Include defs.h first.
9069
658dadf0
TV
90702020-02-28 Tom de Vries <tdevries@suse.de>
9071
9072 * symfile.c (set_initial_language): Use default language for lookup.
9073
4ebe4877
SM
90742020-02-28 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9077 reader variable, pass `this` to read_cutu_die_from_dwo.
9078
e5da1139
AM
90792020-02-27 Aaron Merey <amerey@redhat.com>
9080
9081 * source.c (open_source_file): Check for nullptr when computing
9082 srcpath.
9083
317f7127
TT
90842020-02-27 Tom Tromey <tromey@adacore.com>
9085
9086 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9087 member.
9088 (dwarf2_add_field): Don't update nfields.
9089 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9090
3104d9ee
AB
90912020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9094 abs.
9095
b83470bf
TT
90962020-02-26 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9099 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9100 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9101 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9102 per_cu_data.
9103
edfe0a0c
TT
91042020-02-26 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/index-write.c (psym_index_map): Change type.
9107 (add_address_entry_worker, write_one_signatured_type)
9108 (recursively_count_psymbols, recursively_write_psymbols)
9109 (class debug_names, psyms_seen_size, write_gdbindex)
9110 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9111
0d79cdc4
AM
91122020-02-26 Aaron Merey <amerey@redhat.com>
9113
9114 * Makefile.in: Handle optional debuginfod support.
9115 * NEWS: Update.
9116 * README: Add --with-debuginfod summary.
9117 * config.in: Regenerate.
9118 * configure: Regenerate.
9119 * configure.ac: Handle optional debuginfod support.
9120 * debuginfod-support.c: debuginfod helper functions.
9121 * debuginfod-support.h: Ditto.
9122 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9123 summary.
9124 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9125 when a dwz file cannot be found.
9126 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9127 debuginfo file cannot be found.
9128 * source.c (open_source_file): Query debuginfod servers when a
9129 source file cannot be found.
9130 * top.c (print_gdb_configuration): Include
9131 --{with,without}-debuginfod in the output.
9132
b65ce565
JG
91332020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9134
9135 * thread.c (thr_try_catch_cmd): Print thread name.
9136
d4c9a4f8
SM
91372020-02-26 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9140 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9141 dwarf2_fetch_die_type_sect_off): Move to...
9142 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9143 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9144 dwarf2_fetch_die_type_sect_off): ... here.
9145 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9146 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9147 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9148
0dce4280
TV
91492020-02-26 Tom de Vries <tdevries@suse.de>
9150
9151 PR gdb/25603
9152 * symfile.c (set_initial_language): Exit-early if
9153 language_mode == language_mode_manual.
9154
450a1bfc
SM
91552020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9156
9157 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9158 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9159 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9160
9e80cfa1
AB
91612020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 * gdbtypes.c (create_array_type_with_stride): Handle negative
9164 array strides.
9165 * valarith.c (value_subscripted_rvalue): Likewise.
9166
09624f1f
LM
91672020-02-25 Luis Machado <luis.machado@linaro.org>
9168
9169 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9170
8cb5117c
SM
91712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9172
9173 * loc.h (dwarf2_get_die_type): Move to...
9174 * read.h (dwarf2_get_die_type): ... here.
9175 * read.c (dwarf2_get_die_type): Move doc to header.
9176
c325c44e
JB
91772020-02-25 Joel Brobecker <brobecker@adacore.com>
9178
9179 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9180 'gnulib/Makefile.in' to the list.
9181
4ac93832
TT
91822020-02-24 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9185 Remove.
9186 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9187 XOBNEWVEC.
9188
197400e8
TT
91892020-02-24 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9192 New method.
9193 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9194 (dw2_do_instantiate_symtab, dw2_get_file_names)
9195 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9196
76935768
TT
91972020-02-24 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9200 make_scoped_restore.
9201 (dwarf2_psymtab::read_symtab): Don't clear
9202 reading_partial_symbols.
9203
a88ef40d
TV
92042020-02-24 Tom de Vries <tdevries@suse.de>
9205
9206 PR gdb/25592
9207 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9208
c9af6521
TV
92092020-02-24 Tom de Vries <tdevries@suse.de>
9210
9211 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9212 commands layout next/prev/regs.
9213
5707a07a
TT
92142020-02-22 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9217 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9218
3b0fb49e
TT
92192020-02-22 Tom Tromey <tom@tromey.com>
9220
9221 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9222
283be8bf
TT
92232020-02-22 Tom Tromey <tom@tromey.com>
9224
9225 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9226 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9227 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9228 * tui/tui.c (_initialize_tui): Add usage text.
9229
ca793b96
TT
92302020-02-22 Tom Tromey <tom@tromey.com>
9231
9232 * tui/tui-win.c (tui_set_focus_command)
9233 (tui_set_win_height_command): Use error_no_arg.
9234 (_initialize_tui_win): Update help text.
9235 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9236
432b5c40
TT
92372020-02-22 Tom Tromey <tom@tromey.com>
9238
9239 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9240 * tui/tui-disasm.h (struct tui_disasm_window)
9241 <display_start_addr>: Declare.
9242 * tui/tui-source.h (struct tui_source_window)
9243 <display_start_addr>: Declare.
9244 * tui/tui-winsource.h (struct tui_source_window_base)
9245 <show_source_line, display_start_addr>: New methods.
9246 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9247 Rename and move to protected section.
9248 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9249 (tui_source_window_base::do_erase_source_content): Update.
9250 (tui_source_window_base::show_source_line): Now a method.
9251 (tui_source_window_base::show_source_content)
9252 (tui_source_window_base::tui_source_window_base)
9253 (tui_source_window_base::rerender)
9254 (tui_source_window_base::refill)
9255 (tui_source_window_base::do_scroll_horizontal)
9256 (tui_source_window_base::set_is_exec_point_at)
9257 (tui_source_window_base::update_breakpoint_info)
9258 (tui_source_window_base::update_exec_info): Update.
9259 * tui/tui-source.c (tui_source_window::set_contents)
9260 (tui_source_window::showing_source_p)
9261 (tui_source_window::do_scroll_vertical)
9262 (tui_source_window::location_matches_p)
9263 (tui_source_window::line_is_displayed): Update.
9264 (tui_source_window::display_start_addr): New method.
9265 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9266 (tui_disasm_window::do_scroll_vertical)
9267 (tui_disasm_window::location_matches_p): Update.
9268 (tui_disasm_window::display_start_addr): New method.
9269
01b1af32
TT
92702020-02-22 Tom Tromey <tom@tromey.com>
9271
9272 * NEWS: Add entry for gdb.register_window_type.
9273 * tui/tui-layout.h (window_factory): New typedef.
9274 (tui_register_window): Declare.
9275 * tui/tui-layout.c (saved_tui_windows): New global.
9276 (tui_apply_current_layout): Use it.
9277 (tui_register_window): New function.
9278 * python/python.c (do_start_initialization): Call
9279 gdbpy_initialize_tui.
9280 (python_GdbMethods): Add "register_window_type" function.
9281 * python/python-internal.h (gdbpy_register_tui_window)
9282 (gdbpy_initialize_tui): Declare.
9283 * python/py-tui.c: New file.
9284 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9285
fc96d20b
TT
92862020-02-22 Tom Tromey <tom@tromey.com>
9287
9288 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9289
935c78c0
TT
92902020-02-22 Tom Tromey <tom@tromey.com>
9291
9292 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9293 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9294 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9295 (tui_set_win_focus_to): Move from tui-win.c.
9296
0240c8f1
TT
92972020-02-22 Tom Tromey <tom@tromey.com>
9298
9299 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9300 functions.
9301 (known_window_types): New global.
9302 (tui_get_window_by_name): Reimplement.
9303 (initialize_known_windows): New function.
9304 (validate_window_name): Rewrite.
9305 (_initialize_tui_layout): Call initialize_known_windows.
9306
fdb01f0c
TT
93072020-02-22 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9310 Remove constants.
9311 * tui/tui-winsource.h (struct tui_source_window_base)
9312 <tui_source_window_base>: Remove parameter.
9313 * tui/tui-winsource.c
9314 (tui_source_window_base::tui_source_window_base): Remove
9315 parameter.
9316 (tui_source_window_base::refill): Update.
9317 * tui/tui-stack.h (struct tui_locator_window)
9318 <tui_locator_window>: Update.
9319 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9320 Default the constructor.
9321 * tui/tui-regs.h (struct tui_data_item_window)
9322 <tui_data_item_window>: Default the constructor.
9323 (struct tui_data_window) <tui_data_window>: Likewise.
9324 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9325 Default the constructor.
9326 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9327 Default the constructor.
9328 <type>: Remove.
9329 (struct tui_win_info) <tui_win_info>: Default the constructor.
9330 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9331 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9332 Default the constructor.
9333
865a5aec
TT
93342020-02-22 Tom Tromey <tom@tromey.com>
9335
9336 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9337 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9338 * tui/tui-win.c (tui_resize_all): Don't call
9339 tui_delete_invisible_windows.
9340 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9341 done.
9342 (tui_set_layout): Update.
9343 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9344 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9345 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9346
e098d18c
TT
93472020-02-22 Tom Tromey <tom@tromey.com>
9348
9349 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9350 correctly.
9351
eb9c8874
TT
93522020-02-22 Tom Tromey <tom@tromey.com>
9353
9354 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9355
7eed1a8e
TT
93562020-02-22 Tom Tromey <tom@tromey.com>
9357
9358 * tui/tui-winsource.h (struct tui_source_window_iterator)
9359 <inner_iterator>: New etytypedef.
9360 <tui_source_window_iterator>: Take "end" parameter.
9361 <tui_source_window_iterator>: Take iterator.
9362 <operator*, advance>: Update.
9363 <m_iter>: Change type.
9364 <m_end>: New field.
9365 (struct tui_source_windows) <begin, end>: Update.
9366 * tui/tui-layout.c (tui_windows): New global.
9367 (tui_apply_current_layout): Clear tui_windows.
9368 (tui_layout_window::apply): Update tui_windows.
9369 * tui/tui-data.h (tui_windows): Declare.
9370 (all_tui_windows): Now inline function.
9371 (class tui_window_iterator, struct all_tui_windows): Remove.
9372
7c043ba6
TT
93732020-02-22 Tom Tromey <tom@tromey.com>
9374
9375 PR tui/17850:
9376 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9377 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9378 "height" argument.
9379 (class tui_layout_window) <get_sizes>: Likewise.
9380 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9381 argument.
9382 <get_sizes>: Add "height" argument.
9383 <m_vertical>: New field.
9384 * tui/tui-layout.c (tui_layout_split::clone): Update.
9385 (tui_layout_split::get_sizes): Add "height" argument.
9386 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9387 (tui_new_layout_command): Parse "-horizontal".
9388 (_initialize_tui_layout): Update help string.
9389 (tui_layout_split::specification): Add "-horizontal" when needed.
9390 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9391 argument.
9392 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9393 New methods.
9394
6bc56648
TT
93952020-02-22 Tom Tromey <tom@tromey.com>
9396
9397 * tui/tui-layout.h (enum tui_adjust_result): New.
9398 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9399 (class tui_layout_window) <adjust_size>: Return
9400 tui_adjust_result. Rewrite.
9401 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9402 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9403
c22fef7e
TT
94042020-02-22 Tom Tromey <tom@tromey.com>
9405
9406 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9407 parameter and return types.
9408 (class tui_layout_base) <specification>: Add "depth".
9409 (class tui_layout_window) <specification>: Add "depth".
9410 (class tui_layout_split) <specification>: Add "depth".
9411 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9412 and return types.
9413 (tui_new_layout_command): Parse sub-layouts.
9414 (_initialize_tui_layout): Update help string.
9415 (tui_layout_window::specification): Add "depth".
9416 (add_layout_command): Update.
9417
ee325b61
TT
94182020-02-22 Tom Tromey <tom@tromey.com>
9419
9420 * NEWS: Add "tui new-layout" item.
9421 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9422 Add new-layout command to help text.
9423 (validate_window_name): New function.
9424 (tui_new_layout_command): New function.
9425 (_initialize_tui_layout): Register "new-layout".
9426 (tui_layout_window::specification): New method.
9427 (tui_layout_window::specification): New method.
9428 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9429 method.
9430 (class tui_layout_window) <specification>: New method.
9431 (class tui_layout_split) <specification>: New method.
9432
416eb92d
TT
94332020-02-22 Tom Tromey <tom@tromey.com>
9434
9435 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9436 * tui/tui-win.c (window_name_completer): Update comment.
9437 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9438 Declare method.
9439 (class tui_layout_window) <replace_window>: Likewise.
9440 (class tui_layout_split) <replace_window>: Likewise.
9441 (tui_set_layout): Don't declare.
9442 (tui_set_initial_layout): Declare function.
9443 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9444 (asm_regs_layout): New globals.
9445 (tui_current_layout, show_layout): Remove.
9446 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9447 (find_layout, tui_apply_layout): New function.
9448 (layout_completer): Remove.
9449 (tui_next_layout): Reimplement.
9450 (tui_next_layout_command): New function.
9451 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9452 (tui_regs_layout): Reimplement.
9453 (tui_regs_layout_command): New function.
9454 (extract_display_start_addr): Rewrite.
9455 (next_layout, prev_layout): Remove.
9456 (tui_layout_window::replace_window): New method.
9457 (tui_layout_split::replace_window): New method.
9458 (destroy_layout): New function.
9459 (layout_list): New global.
9460 (add_layout_command): New function.
9461 (initialize_layouts): Update.
9462 (tui_layout_command): New function.
9463 (_initialize_tui_layout): Install "layout" commands.
9464 * tui/tui-data.h (enum tui_layout_type): Remove.
9465 (tui_current_layout): Don't declare.
9466
0dbc2fc7
TT
94672020-02-22 Tom Tromey <tom@tromey.com>
9468
9469 * tui/tui-regs.c (tui_reg_layout): Remove.
9470 (tui_reg_command): Use tui_regs_layout.
9471 * tui/tui-layout.h (tui_reg_command): Declare.
9472 * tui/tui-layout.c (tui_reg_command): New function.
9473
5afe342e
TT
94742020-02-22 Tom Tromey <tom@tromey.com>
9475
9476 * tui/tui.c (tui_rl_delete_other_windows): Call
9477 tui_remove_some_windows.
9478 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9479 Declare method.
9480 (class tui_layout_window) <remove_windows>: New method.
9481 (class tui_layout_split) <remove_windows>: Declare.
9482 (tui_remove_some_windows): Declare.
9483 * tui/tui-layout.c (tui_remove_some_windows): New function.
9484 (tui_layout_split::remove_windows): New method.
9485
427326a8
TT
94862020-02-22 Tom Tromey <tom@tromey.com>
9487
9488 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9489 * tui/tui-layout.h (tui_next_layout): Declare.
9490 * tui/tui-layout.c (tui_next_layout): New function.
9491
3fe12b6d
TT
94922020-02-22 Tom Tromey <tom@tromey.com>
9493
9494 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9495 correct coordinates.
9496
59b8b5d2
TT
94972020-02-22 Tom Tromey <tom@tromey.com>
9498
9499 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9500 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9501 DATA_WIN case.
9502
2a3d458b
TT
95032020-02-22 Tom Tromey <tom@tromey.com>
9504
9505 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9506 TUI_DISASM_WIN, not tui_win_list.
9507
3f0cbb04
TT
95082020-02-22 Tom Tromey <tom@tromey.com>
9509
9510 * valprint.c (generic_val_print_enum_1)
9511 (val_print_type_code_flags): Style member names.
9512 * rust-lang.c (val_print_struct, rust_print_enum)
9513 (rust_print_struct_def, rust_internal_print_type): Style member
9514 names.
9515 * p-valprint.c (pascal_object_print_value_fields): Style member
9516 names. Only call fprintf_symbol_filtered for static members.
9517 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9518 * f-valprint.c (f_val_print): Style member names.
9519 * f-typeprint.c (f_type_print_base): Style member names.
9520 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9521 call fprintf_symbol_filtered for static members.
9522 (cp_print_class_member): Style member names.
9523 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9524 member names.
9525 * ada-valprint.c (ada_print_scalar): Style enum names.
9526 (ada_val_print_enum): Likewise.
9527 * ada-typeprint.c (print_enum_type): Style enum names.
9528
d4d947ae
TT
95292020-02-21 Tom Tromey <tom@tromey.com>
9530
9531 * psympriv.h (struct partial_symtab): Update comment.
9532
e94e944b
TT
95332020-02-21 Tom Tromey <tromey@adacore.com>
9534
9535 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9536 type is CORE_ADDR.
9537
1eb73179
TV
95382020-02-21 Tom de Vries <tdevries@suse.de>
9539
9540 PR gdb/25534
9541 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9542 if dependencies[i]->user != NULL.
9543
4f180d53
AT
95442020-02-21 Ali Tamur <tamur@google.com>
9545
9546 * dwarf2/read.c (dwarf2_name): Add null check.
9547
22b6cd70
TT
95482020-02-20 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9551 ">=", in binary search.
9552 (dwarf2_find_containing_comp_unit): New overload.
9553 (run_test): New self-test.
9554 (_initialize_dwarf2_read): Register new test.
9555
bd0cf5a6
NC
95562020-02-20 Nelson Chu <nelson.chu@sifive.com>
9557
9558 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9559 * riscv-tdep.h: Likewise.
9560 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9561 rv32-only CSR.
9562 * features/riscv/64bit-csr.xml: Regenerated.
9563
3f702acd
SDJ
95642020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9565 Tom Tromey <tom@tromey.com>
9566
9567 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9568 of 'fputc_unfiltered'.
9569 (putchar_unfiltered): Call 'fputc_unfiltered'.
9570 (fputc_unfiltered): Call 'fputs_unfiltered'.
9571
d13c7322
AB
95722020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9573
9574 * config.in: Regenerate.
9575 * configure: Regenerate.
9576 * configure.ac: Add --with-python-libdir option.
9577 * main.c: Use WITH_PYTHON_LIBDIR.
9578
869d8950
TT
95792020-02-19 Tom Tromey <tom@tromey.com>
9580
9581 * symtab.c (general_symbol_info::compute_and_set_names): Use
9582 obstack_strndup. Simplify call to symbol_set_demangled_name.
9583
298e9637
SM
95842020-02-19 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * dwarf2/read.c (allocate_signatured_type_table,
9587 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9588 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9589 Remove objfile parameter, update all callers.
9590
08410482
DE
95912020-02-19 Doug Evans <dje@google.com>
9592
9593 PR rust/25535
9594 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9595 rust_enum_variant calculation.
9596
dfdeeca1
TT
95972020-02-19 Tom Tromey <tromey@adacore.com>
9598
9599 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9600
2ef5453b
TT
96012020-02-19 Tom Tromey <tromey@adacore.com>
9602
9603 * ada-lang.c (cache_symbol): Use obstack_strdup.
9604
9f1528a1
AB
96052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9606
9607 * configure: Regenerate.
9608
d3c22fa8
TT
96092020-02-19 Tom Tromey <tromey@adacore.com>
9610
9611 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9612 NULL check.
9613
bf84f706
MR
96142020-02-19 Maciej W. Rozycki <macro@wdc.com>
9615
9616 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9617
d1c9b20f
AB
96182020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9619
9620 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9621 if GDBSERVER is not defined.
9622 (riscv_tdesc_cache): Likewise, also store const target_desc.
9623 (STATIC_IN_GDB): Define.
9624 (riscv_create_target_description): Update declaration with
9625 STATIC_IN_GDB.
9626 (riscv_lookup_target_description): New function, only define if
9627 GDBSERVER is not defined.
9628 * arch/riscv.h (riscv_create_target_description): Declare only
9629 when GDBSERVER is defined.
9630 (riscv_lookup_target_description): New declaration when GDBSERVER
9631 is not defined.
9632 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9633 (riscv_linux_read_features): ...this, and return
9634 riscv_gdbarch_features instead of target_desc.
9635 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9636 (riscv_linux_read_description): Rename to...
9637 (riscv_linux_read_features): ...this.
9638 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9639 Update to use riscv_gdbarch_features and
9640 riscv_lookup_target_description.
9641 * riscv-tdep.c (riscv_find_default_target_description): Use
9642 riscv_lookup_target_description instead of
9643 riscv_create_target_description.
9644
373d7ac0
SM
96452020-02-18 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * valprint.c (generic_val_print_enum_1): When printing a flag
9648 enum with value 0 and there is no enumerator with value 0, print
9649 just "0" instead of "(unknown: 0x0)".
9650
b29a2df0
SM
96512020-02-18 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * valprint.c (generic_val_print_enum_1): Print unknown part of
9654 flag enum in hex.
9655
6740f0cc
SM
96562020-02-18 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9659 flag enums to contain duplicate enumerators.
9660 * valprint.c (generic_val_print_enum_1): Update comment.
9661
edd45eb0
SM
96622020-02-18 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * dwarf2/read.c: Include "count-one-bits.h".
9665 (update_enumeration_type_from_children): If an enumerator has
9666 multiple bits set, don't treat the enumeration as a "flag enum".
9667 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9668 of flag enums have 0 or 1 bit set.
9669
6d0cf446
BE
96702020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9671
9672 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9673 conversion.
9674 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9675 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9676 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9677 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9678 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9679
7001c1b7
SM
96802020-02-18 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9683
fdb61c6c
SM
96842020-02-14 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9687 displaced_step_closure_up.
9688 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9689 (struct displaced_step_closure_up):
9690 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9691 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9692 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9693 Likewise.
9694 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9695 * gdbarch.c, gdbarch.h: Re-generate.
9696 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9697 displaced_step_closure_up.
9698 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9699 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9700 * infrun.h (displaced_step_closure_up): New type alias.
9701 (struct displaced_step_inferior_state) <step_closure>: Change
9702 type to displaced_step_closure_up.
9703 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9704 displaced_step_closure_up.
9705 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9706
a4a38eb4
TT
97072020-02-14 Tom Tromey <tom@tromey.com>
9708
9709 * minidebug.c (gnu_debug_key): New global.
9710 (find_separate_debug_file_in_section): Use it.
9711
e8217e61
SM
97122020-02-14 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9715 std::unique_ptr.
9716 * gdbarch.c: Re-generate.
9717 * gdbarch.h: Re-generate.
9718 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9719 change.
9720 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9721 type to std::unique_ptr.
9722 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9723 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9724 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9725 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9726 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9727 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9728 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9729 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9730 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9731
d8d83535
SM
97322020-02-14 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9735 std::unique_ptr.
9736 (displaced_step_clear): Rename to...
9737 (displaced_step_reset): ... this. Just call displaced->reset ().
9738 (displaced_step_clear_cleanup): Rename to...
9739 (displaced_step_reset_cleanup): ... this.
9740 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9741 (displaced_step_fixup): Likewise.
9742 (resume_1): Likewise.
9743 (handle_inferior_event): Restore child's memory before calling
9744 displaced_step_fixup on the parent.
9745 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9746 to std::unique_ptr.
9747 <step_closure>: Change type to std::unique_ptr.
9748
5f661e03
SM
97492020-02-14 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * arm-tdep.c: Include count-one-bits.h.
9752 (cleanup_block_store_pc): Use count_one_bits.
9753 (cleanup_block_load_pc): Use count_one_bits.
9754 (arm_copy_block_xfer): Use count_one_bits.
9755 (thumb2_copy_block_xfer): Use count_one_bits.
9756 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9757 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9758 (thumb_get_next_pcs_raw): Use count_one_bits.
9759 (arm_get_next_pcs_raw): Use count_one_bits_l.
9760 * arch/arm.c (bitcount): Remove.
9761 * arch/arm.h (bitcount): Remove.
9762
8084e579
TT
97632020-02-14 Tom Tromey <tromey@adacore.com>
9764
9765 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9766 Update.
9767 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9768 * dwarf2/loc.c (call_site_find_chain_1): Return
9769 unique_xmalloc_ptr.
9770 (call_site_find_chain): Likewise.
9771
258bf0ee
RB
97722020-02-14 Richard Biener <rguenther@suse.de>
9773
9774 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9775 on expression with division operators.
9776
f98a8458
AKS
97772020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9778
9779 * MAINTAINERS (Write After Approval): Adding myself.
9780
d1437c0e
TT
97812020-02-12 Tom Tromey <tom@tromey.com>
9782
9783 * event-loop.c (event_data, gdb_event, event_handler_func):
9784 Remove.
9785
3d4560f7
TT
97862020-02-12 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9789 (dwarf2_frame_objfile_data): Add comment.
9790 (find_comp_unit, set_comp_unit): New functions.
9791 (dwarf2_frame_find_fde): Use find_comp_unit.
9792 (dwarf2_build_frame_info): Use set_comp_unit.
9793
21982304
TT
97942020-02-12 Tom Tromey <tom@tromey.com>
9795
9796 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9797 (comp_unit): Don't initialize objfile.
9798 (execute_cfa_program): Add text_offset parameter.
9799 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9800 (dwarf2_frame_cache): Update.
9801 (dwarf2_build_frame_info): Don't set "objfile" member.
9802
4debb237
TT
98032020-02-12 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9806 (decode_frame_entry): Likewise.
9807 (dwarf2_build_frame_info): Update.
9808
0d404d44
TT
98092020-02-12 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9812 (decode_frame_entry_1): Use the comp_unit obstack.
9813
a7a3ae5c
TT
98142020-02-12 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/frame.c (struct comp_unit): Add initializers and
9817 constructor.
9818 (dwarf2_frame_objfile_data): Store a comp_unit.
9819 (dwarf2_frame_find_fde): Update.
9820 (dwarf2_build_frame_info): Use "new".
9821
a9d65418
TT
98222020-02-12 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9825 (dwarf2_fde_table): Typedef for std::vector.
9826 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9827 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9828 (decode_frame_entry): Update.
9829 (dwarf2_build_frame_info): Use "new".
9830
7559c217
CB
98312020-02-12 Christian Biesinger <cbiesinger@google.com>
9832
9833 * arm-tdep.c (arm_gdbarch_init): Update.
9834 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9835 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9836 have_neon, is_m>: Change to bool.
9837
aeefc73c
CB
98382020-02-12 Christian Biesinger <cbiesinger@google.com>
9839
9840 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9841
d27b8e5f
TT
98422020-02-12 Tom Tromey <tom@tromey.com>
9843
9844 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9845
cd5900f3
HD
98462020-02-12 Hannes Domani <ssbssa@yahoo.de>
9847
9848 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9849 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9850
f056b22b
TT
98512020-02-11 Tom Tromey <tom@tromey.com>
9852
9853 * psymtab.h: Update comment.
9854
f92ff6b5
TT
98552020-02-11 Tom Tromey <tom@tromey.com>
9856
9857 * gdb_obstack.h (struct auto_obstack): Use
9858 DISABLE_COPY_AND_ASSIGN.
9859
3fd6912b
TT
98602020-02-11 Tom Tromey <tom@tromey.com>
9861
9862 * dwarf2/frame.h (struct objfile): Don't forward declare.
9863
69ed9b74
CB
98642020-02-11 Christian Biesinger <cbiesinger@google.com>
9865
9866 * cris-tdep.c (cris_supply_gregset): Change signature to match
9867 what struct regset expects.
9868 (cris_regset): New struct.
9869 (fetch_core_registers): Remove.
9870 (cris_iterate_over_regset_sections): New function.
9871 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9872 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9873
bda874f6
CB
98742020-02-11 Christian Biesinger <cbiesinger@google.com>
9875
9876 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9877 registers.
9878
754e1564
CB
98792020-02-11 Christian Biesinger <cbiesinger@google.com>
9880
9881 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9882
8ddd8e0e
SM
98832020-02-11 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * configure: Re-generate.
9886
898e7f60
SM
98872020-02-11 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * configure: Re-generate.
9890
58df732b
SM
98912020-02-11 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * acinclude: Update warning.m4 path.
9894 * warning.m4: Move to gdbsupport.
9895
da5bd37e
TT
98962020-02-11 Tom Tromey <tromey@adacore.com>
9897
9898 * remote.c (remote_console_output): Update.
9899 * printcmd.c (printf_command): Update.
9900 * event-loop.c (gdb_wait_for_event): Update.
9901 * linux-nat.c (sigchld_handler): Update.
9902 * remote-sim.c (gdb_os_write_stdout): Update.
9903 (gdb_os_flush_stdout): Update.
9904 (gdb_os_flush_stderr): Update.
9905 (gdb_os_write_stderr): Update.
9906 * exceptions.c (print_exception): Update.
9907 * remote-fileio.c (remote_fileio_func_read): Update.
9908 (remote_fileio_func_write): Update.
9909 * tui/tui.c (tui_enable): Update.
9910 * tui/tui-interp.c (tui_interp::init): Update.
9911 * utils.c (init_page_info): Update.
9912 (putchar_unfiltered, fputc_unfiltered): Update.
9913 (gdb_flush): Update.
9914 (emit_style_escape): Update.
9915 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9916 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9917 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9918 (stderr_file::write): Update.
9919 (stderr_file::puts): Update.
9920 * ui-file.h (ui_file_isatty, ui_file_write)
9921 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9922 (ui_file_puts): Don't declare.
9923
85f0dd3c
TV
99242020-02-10 Tom de Vries <tdevries@suse.de>
9925
9926 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9927 sentinel to char *.
9928
2e927613
TV
99292020-02-09 Tom de Vries <tdevries@suse.de>
9930
9931 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9932 filename if it matches "<artificial>".
9933
6bafc845
HD
99342020-02-09 Hannes Domani <ssbssa@yahoo.de>
9935
9936 * windows-tdep.c (struct enum_value_name): New struct.
9937 (create_enum): New function.
9938 (windows_get_siginfo_type): Create and use enum types.
9939
7928d571
HD
99402020-02-09 Hannes Domani <ssbssa@yahoo.de>
9941
9942 * NEWS: Mention $_siginfo support for Windows.
9943 * windows-nat.c (handle_exception): Set siginfo_er.
9944 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9945 (windows_xfer_siginfo): New function.
9946 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9947 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9948 (init_windows_gdbarch_data): New function.
9949 (get_windows_gdbarch_data): New function.
9950 (windows_get_siginfo_type): New function.
9951 (windows_init_abi): Register windows_get_siginfo_type.
9952 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9953
6751ebae
TT
99542020-02-08 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9957 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9958 <keep>: Declare method.
9959 <m_keep>: Remove member.
9960 <~cutu_reader>: Remove.
9961 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9962 (cutu_reader::cutu_reader): Update.
9963 (cutu_reader::keep): Rename from ~cutu_reader.
9964 (process_psymtab_comp_unit, build_type_psymtabs_1)
9965 (process_skeletonless_type_unit, load_partial_comp_unit)
9966 (load_full_comp_unit, dwarf2_read_addr_index)
9967 (read_signatured_type): Update.
9968
135f5437
TT
99692020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9972 "want_partial_unit" parameter.
9973 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9974 Inline check for DW_TAG_partial_unit.
9975 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9976
9f66ff1c
TT
99772020-02-08 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9980 read.c.
9981 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9982 read.c.
9983
c8a7a66f
TT
99842020-02-08 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2/read.c (read_address): Move to comp-unit.c.
9987 (dwarf2_rnglists_process, dwarf2_ranges_process)
9988 (read_attribute_value, dwarf_decode_lines_1)
9989 (var_decode_location, decode_locdesc): Update.
9990 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9991 read.c. Remove "cu" parameter.
9992 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9993 method.
9994
8266302d
TT
99952020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9998 (read_indirect_line_string): Update.
9999 * dwarf2/comp-unit.c (read_offset): Remove.
10000 (read_comp_unit_head): Update.
10001 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10002 method.
10003 (read_offset): Don't declare.
10004
4057dfde
TT
100052020-02-08 Tom Tromey <tom@tromey.com>
10006
10007 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10008 * dwarf2/read.c (struct comp_unit_head): Move to
10009 dwarf2/comp-unit.h.
10010 (enum class rcuh_kind): Move to comp-unit.h.
10011 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10012 (read_comp_unit_head, error_check_comp_unit_head)
10013 (read_and_check_comp_unit_head): Move to comp-unit.c.
10014 (read_offset, dwarf_unit_type_name): Likewise.
10015 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10016 (cutu_reader::cutu_reader, read_call_site_scope)
10017 (find_partial_die, follow_die_offset): Update.
10018 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10019
24aa364d
TT
100202020-02-08 Tom Tromey <tom@tromey.com>
10021
10022 * dwarf2/read.c (read_offset_1): Move to leb.c.
10023 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10024 (dwarf_decode_macro_bytes): Update.
10025 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10026 * dwarf2/leb.h (read_offset): Declare.
10027
2c7d5afc
TT
100282020-02-08 Tom Tromey <tom@tromey.com>
10029
10030 * dwarf2/read.c (dwarf2_section_size): Remove.
10031 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10032 Update.
10033 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10034
4075cb26
TT
100352020-02-08 Tom Tromey <tom@tromey.com>
10036
10037 * dwarf2/read.c (read_initial_length): Move to leb.c.
10038 * dwarf2/leb.h (read_initial_length): Declare.
10039 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10040 handle_nonstd parameter.
10041 * dwarf2/frame.c (read_initial_length): Remove.
10042 (decode_frame_entry_1): Update.
10043
09ba997f
TT
100442020-02-08 Tom Tromey <tom@tromey.com>
10045
10046 * dwarf2/loc.c (dwarf2_find_location_expression)
10047 (dwarf_evaluate_loc_desc::get_tls_address)
10048 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10049 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10050 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10051 (dwarf2_compile_property_to_c)
10052 (dwarf2_loc_desc_get_symbol_read_needs)
10053 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10054 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10055 (loclist_describe_location, loclist_tracepoint_var_ref)
10056 (loclist_generate_c_location): Update.
10057 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10058 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10059 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10060 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10061 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10062 (dwarf2_per_cu_data::addr_size)
10063 (dwarf2_per_cu_data::ref_addr_size)
10064 (dwarf2_per_cu_data::text_offset)
10065 (dwarf2_per_cu_data::addr_type): Now methods.
10066 (per_cu_header_read_in): Make per_cu "const".
10067 (dwarf2_version): Remove.
10068 (dwarf2_per_cu_data::int_type): Now a method.
10069 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10070 (set_die_type, read_array_type, read_subrange_index_type)
10071 (read_tag_string_type, read_subrange_type): Update.
10072 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10073 offset_size, ref_addr_size, text_offset, addr_type, version,
10074 objfile, int_type, addr_sized_int_type>: Declare methods.
10075
96c738c0
TT
100762020-02-08 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10079 Move earlier.
10080
8fdd972c
TT
100812020-02-08 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/read.h (dwarf_line_debug): Declare.
10084 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10085 * dwarf2/read.c: Move line_header code to new files.
10086 (dwarf_line_debug): No longer static.
10087 * dwarf2/line-header.c: New file.
10088 * dwarf2/line-header.h: New file.
10089
03075812
TT
100902020-02-08 Tom Tromey <tom@tromey.com>
10091
10092 * dwarf2/read.c (struct line_header) <file_full_name,
10093 file_file_name>: Return unique_xmalloc_ptr.
10094 (line_header::file_file_name): Update.
10095 (line_header::file_full_name): Update.
10096 (dw2_get_file_names_reader): Update.
10097 (macro_start_file): Update.
10098
bb822404
TT
100992020-02-08 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/read.c (struct line_header) <file_full_name,
10102 file_file_name>: Declare methods.
10103 (dw2_get_file_names_reader): Update.
10104 (file_file_name): Now a method.
10105 (file_full_name): Likewise.
10106 (macro_start_file): Update.
10107
009b64fc
TT
101082020-02-08 Tom Tromey <tom@tromey.com>
10109
10110 * dwarf2/read.c (dwarf_always_disassemble)
10111 (show_dwarf_always_disassemble): Move to loc.c.
10112 (_initialize_dwarf2_read): Move "always-disassemble" registration
10113 to loc.c.
10114 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10115 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10116 static.
10117 (show_dwarf_always_disassemble): Move from read.c.
10118 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10119
5895093f
TT
101202020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10123 (create_quick_file_names_table): Return htab_up.
10124 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10125 Update.
10126 * dwarf2/read.h (struct dwarf2_per_objfile)
10127 <quick_file_names_table>: Now htab_up.
10128
b3b32279
TT
101292020-02-08 Tom Tromey <tom@tromey.com>
10130
10131 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10132
1d33d811
TT
101332020-02-08 Tom Tromey <tom@tromey.com>
10134
10135 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10136 Rewrite.
10137 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10138 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10139 (abbrev_table::abbrev_table): No longer inline.
10140 (ABBREV_HASH_SIZE): Remove.
10141 (abbrev_table::m_abbrevs): Now an htab_up.
10142
86de1d91
TT
101432020-02-08 Tom Tromey <tom@tromey.com>
10144
10145 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10146 (cutu_reader): Update.
10147 (build_type_psymtabs_1): Update.
10148 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10149 (abbrev_table::alloc_abbrev): Update.
10150 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10151 (abbrev_table::read): New static method, renamed from
10152 abbrev_table_read_table.
10153 (abbrev_table::alloc_abbrev)
10154 (abbrev_table::add_abbrev): Now private.
10155 (abbrev_table::abbrev_table): Now private.
10156 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10157
0335378b
TT
101582020-02-08 Tom Tromey <tom@tromey.com>
10159
10160 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10161 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10162 htab_up.
10163
48b490f2
TT
101642020-02-08 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10167 htab_up.
10168 (lookup_dwo_unit_in_dwp): Update.
10169 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10170 on obstack.
10171
bc68fb19
TT
101722020-02-08 Tom Tromey <tom@tromey.com>
10173
10174 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10175 obstack.
10176
d15acc42
TT
101772020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10180 line_header_hash.
10181 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10182 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10183 Change type to htab_up.
10184
eaa5fa8b
TT
101852020-02-08 Tom Tromey <tom@tromey.com>
10186
10187 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10188 htab_up. Don't allocate on obstack.
10189 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10190 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10191 Change type to htab_up.
10192
b0b6a987
TT
101932020-02-08 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10196 Change type to htab_up.
10197 * dwarf2/read.c (create_signatured_type_table_from_index)
10198 (create_signatured_type_table_from_debug_names)
10199 (create_all_type_units, add_type_unit)
10200 (lookup_dwo_signatured_type, lookup_signatured_type)
10201 (process_skeletonless_type_unit): Update.
10202 (create_debug_type_hash_table, create_debug_types_hash_table):
10203 Change type of types_htab.
10204 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10205 htab_up. Don't allocate on obstack.
10206 (create_cus_hash_table): Change type of cus_htab parameter.
10207 (struct dwo_file) <cus, tus>: Now htab_up.
10208 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10209 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10210 (queue_and_load_all_dwo_tus): Update.
10211 * dwarf2/index-write.c (write_gdbindex): Update.
10212 (write_debug_names): Update.
10213
39856def
TT
102142020-02-08 Tom Tromey <tom@tromey.com>
10215
10216 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10217 dwarf2/read.c. Remove "next" member. Add constructor ntad
10218 destructor.
10219 (struct dwarf2_per_objfile) <queue>: New member.
10220 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10221 dwarf2/read.h.
10222 (dwarf2_queue, dwarf2_queue_tail): Remove.
10223 (class dwarf2_queue_guard): Add parameter to constructor. Use
10224 DISABLE_COPY_AND_ASSIGN.
10225 <m_per_objfile>: New member.
10226 <~dwarf2_queue_guard>: Rewrite.
10227 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10228 Update.
10229 (~dwarf2_queue_item): New.
10230
3e225074
TT
102312020-02-08 Tom Tromey <tom@tromey.com>
10232
10233 * dwarf2/read.c (struct die_info) <has_children>: New member.
10234 (dw2_get_file_names_reader): Remove has_children.
10235 (dw2_get_file_names): Update.
10236 (read_cutu_die_from_dwo): Remove has_children.
10237 (cutu_reader::init_tu_and_read_dwo_dies)
10238 (cutu_reader::cutu_reader): Update.
10239 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10240 Remove has_children.
10241 (build_type_psymtabs_1, process_skeletonless_type_unit)
10242 (load_partial_comp_unit, load_full_comp_unit): Update.
10243 (create_dwo_cu_reader): Remove has_children.
10244 (create_cus_hash_table, read_die_and_children): Update.
10245 (read_full_die_1,read_full_die): Remove has_children.
10246 (read_signatured_type): Update.
10247 (class cutu_reader) <has_children>: Remove.
10248
82ca8957
TT
102492020-02-08 Tom Tromey <tom@tromey.com>
10250
10251 * dwarf2/expr.c: Rename from dwarf2expr.c.
10252 * dwarf2/expr.h: Rename from dwarf2expr.h.
10253 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10254 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10255 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10256 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10257 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10258 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10259 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10260 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10261 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10262 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10263 * dwarf2/loc.c: Rename from dwarf2loc.c.
10264 * dwarf2/loc.h: Rename from dwarf2loc.h.
10265 * dwarf2/read.c: Rename from dwarf2read.c.
10266 * dwarf2/read.h: Rename from dwarf2read.h.
10267 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10268 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10269 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10270 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10271 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10272 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10273 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10274 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10275 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10276 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10277 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10278 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10279 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10280 Update.
10281 * Makefile.in (COMMON_SFILES): Update.
10282 (HFILES_NO_SRCDIR): Update.
10283
9e35d499
TT
102842020-02-08 Tom Tromey <tom@tromey.com>
10285
10286 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10287 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10288
1eba2311
TT
102892020-02-08 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2read.h (struct die_info): Don't declare.
10292
e41c2da2
TT
102932020-02-08 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2read.h (die_info_ptr): Remove typedef.
10296
4fc6c0d5
TT
102972020-02-08 Tom Tromey <tom@tromey.com>
10298
10299 * dwarf2read.c (read_call_site_scope)
10300 (handle_data_member_location, dwarf2_add_member_fn)
10301 (mark_common_block_symbol_computed, read_common_block)
10302 (attr_to_dynamic_prop, partial_die_info::read)
10303 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10304 (dwarf2_symbol_mark_computed, set_die_type): Update.
10305 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10306 method.
10307 (attr_form_is_block): Don't declare.
10308 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10309
cd6c91b4
TT
103102020-02-08 Tom Tromey <tom@tromey.com>
10311
10312 * dwarf2read.c (dwarf2_find_base_address, )
10313 (read_call_site_scope, rust_containing_type)
10314 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10315 (handle_data_member_location, dwarf2_add_member_fn)
10316 (get_alignment, read_structure_type, process_structure_scope)
10317 (mark_common_block_symbol_computed, read_common_block)
10318 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10319 (partial_die_info::read, read_attribute_value, new_symbol)
10320 (lookup_die_type, dwarf2_get_ref_die_offset)
10321 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10322 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10323 (dwarf2_symbol_mark_computed): Update.
10324 * dwarf2/attribute.h (struct attribute) <value_as_address,
10325 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10326 methods.
10327 (value_as_address, attr_form_is_section_offset)
10328 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10329 * dwarf2/attribute.c (attribute::value_as_address)
10330 (attribute::form_is_section_offset, attribute::form_is_constant)
10331 (attribute::form_is_ref): Now methods.
10332
162dce55
TT
103332020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2read.c (struct attribute, DW_STRING)
10336 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10337 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10338 (attr_form_is_block, attr_form_is_section_offset)
10339 (attr_form_is_constant, attr_form_is_ref): Move.
10340 * dwarf2/attribute.h: New file.
10341 * dwarf2/attribute.c: New file, from dwarf2read.c.
10342 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10343
3054dd54
TT
103442020-02-08 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10347 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10348 Move.
10349 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10350 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10351 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10352 abbrev.c.
10353 * dwarf2/abbrev.h: New file.
10354 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10355 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10356
96b79293
TT
103572020-02-08 Tom Tromey <tom@tromey.com>
10358
10359 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10360 (dwarf2_section_size, dwarf2_get_section_info)
10361 (create_signatured_type_table_from_debug_names)
10362 (create_addrmap_from_aranges, read_debug_names_from_section)
10363 (get_gdb_index_contents_from_section, read_comp_unit_head)
10364 (error_check_comp_unit_head, read_abbrev_offset)
10365 (create_debug_type_hash_table, init_cu_die_reader)
10366 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10367 (read_comp_units_from_section, create_cus_hash_table)
10368 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10369 (create_dwp_v2_section, dwarf2_rnglists_process)
10370 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10371 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10372 (read_indirect_string_from_dwz, read_addr_index_1)
10373 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10374 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10375 (fill_in_loclist_baton): Update.
10376 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10377 get_containing_section, get_bfd_owner, get_bfd_section,
10378 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10379 (dwarf2_read_section, get_section_name, get_section_file_name)
10380 (get_containing_section, get_section_bfd_owner)
10381 (get_section_bfd_section, get_section_name, get_section_file_name)
10382 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10383 declare.
10384 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10385 (dwarf2_section_info::get_bfd_owner)
10386 (dwarf2_section_info::get_bfd_section)
10387 (dwarf2_section_info::get_name)
10388 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10389 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10390 (dwarf2_section_info::read): Now methods.
10391 * dwarf-index-write.c (class debug_names): Update.
10392
2c86cff9
TT
103932020-02-08 Tom Tromey <tom@tromey.com>
10394
10395 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10396 Move to dwarf2/section.h.
10397 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10398 (get_section_bfd_section, get_section_name)
10399 (get_section_file_name, get_section_id, get_section_flags)
10400 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10401 dwarf2/section.c.
10402 * dwarf2/section.h: New file.
10403 * dwarf2/section.c: New file, from dwarf2read.c.
10404 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10405
f4382c45
TT
104062020-02-08 Tom Tromey <tom@tromey.com>
10407
10408 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10409 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10410 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10411 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10412 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10413 * dwarf2/leb.h: New file, from dwarf2read.c.
10414 * dwarf2/leb.c: New file, from dwarf2read.c.
10415 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10416 Remove.
10417 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10418 (COMMON_SFILES): Add dwarf2/leb.c.
10419
01840b7a
JB
104202020-02-08 Joel Brobecker <brobecker@adacore.com>
10421
10422 GDB 9.1 released.
10423
dfcb27e4
IB
104242020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10425
10426 PR gdb/25190:
aac66a4c
SM
10427 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10428 * gdb/remote.c (remote_console_output): Update.
10429 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10430 (ui_file_puts): ...this.
10431 * gdb/ui-file.h (ui_file_puts): Add declaration.
10432 * gdb/utils.c (emit_style_escape): Update.
10433 (flush_wrap_buffer): Update.
10434 (fputs_maybe_filtered): Update.
10435 (fputs_unfiltered): Add function.
dfcb27e4 10436
faa17681
IB
104372020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10438
aac66a4c
SM
10439 * gdb/event-loop.c (gdb_wait_for_event): Update.
10440 * gdb/printcmd.c (printf_command): Update.
10441 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10442 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10443 (gdb_os_flush_stderr): Update.
10444 * gdb/remote.c (remote_console_output): Update.
10445 * gdb/ui-file.c (gdb_flush): Rename to...
10446 (ui_file_flush): ...this.
10447 (stderr_file::write): Update.
10448 (stderr_file::puts): Update.
10449 * gdb/ui-file.h (gdb_flush): Rename to...
10450 (ui_file_flush): ...this.
10451 * gdb/utils.c (gdb_flush): Add function.
10452 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10453
5abbbe1d
TT
104542020-02-07 Tom Tromey <tromey@adacore.com>
10455
10456 PR breakpoints/24915:
10457 * source.c (find_and_open_source): Do not check basenames_may_differ.
10458
919adfe8
TT
104592020-02-07 Tom Tromey <tom@tromey.com>
10460
10461 * README: Update gdbserver documentation.
10462 * gdbserver: Move to top level.
10463 * configure.tgt (build_gdbserver): Remove.
10464 * configure.ac: Remove --enable-gdbserver.
10465 * configure: Rebuild.
10466 * Makefile.in (distclean): Don't mention gdbserver.
10467
1d5d29e7
SV
104682020-02-06 Shahab Vahedi <shahab@synopsys.com>
10469
10470 * source-cache.c (source_cache::ensure): Surround
10471 get_plain_source_lines with a try/catch.
10472 (source_cache::get_line_charpos): Get rid of try/catch
10473 and only check for the return value of "ensure".
10474 * tui/tui-source.c (tui_source_window::set_contents):
10475 Simplify "nlines" calculation.
10476
6eb1129c
SV
104772020-02-06 Shahab Vahedi <shahab@synopsys.com>
10478
10479 * MAINTAINERS (Write After Approval): Add myself.
10480
c6a42d11
CB
104812020-02-05 Christian Biesinger <cbiesinger@google.com>
10482
10483 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10484 function call.
10485
c8ecdda6
CB
104862020-02-05 Christian Biesinger <cbiesinger@google.com>
10487
10488 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10489
f6480e70
MR
104902020-02-05 Maciej W. Rozycki <macro@wdc.com>
10491
10492 * nat/riscv-linux-tdesc.h: New file.
10493 * nat/riscv-linux-tdesc.c: New file, taking code from...
10494 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10495 ... here.
10496 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10497 NATDEPFILES.
10498
dcc9fbc6
AB
104992020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10500
10501 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10502 we don't set the fake simulator ptid to the null_ptid.
10503
719546c4
SM
105042020-02-03 Simon Marchi <simon.marchi@efficios.com>
10505
10506 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10507 * gdbthread.h (class thread_info) <resumed>: Likewise.
10508 * infrun.c (resume_1): Likewise.
10509 (proceed): Likewise.
10510 (infrun_thread_stop_requested): Likewise.
10511 (stop_all_threads): Likewise.
10512 (handle_inferior_event): Likewise.
10513 (restart_threads): Likewise.
10514 (finish_step_over): Likewise.
10515 (keep_going_stepped_thread): Likewise.
10516 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10517 (linux_handle_extended_wait): Likewise.
10518 * record-btrace.c (get_thread_current_frame_id): Likewise.
10519 * record-full.c (record_full_wait_1): Likewise.
10520 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10521 * target.c (target_resume): Likewise.
10522 * thread.c (set_running_thread): Likewise.
10523
e409c542
AKS
105242020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10525
10526 * f-valprint.c (f77_print_array_1): Changed datatype of index
10527 variable to LONGEST from int to enable it to contain bound
10528 values correctly.
10529
ee98c0da
MR
105302020-02-03 Maciej W. Rozycki <macro@wdc.com>
10531
10532 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10533 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10534 offsets according to FLEN determined.
10535 (riscv_linux_nat_target::read_description): Determine FLEN
10536 dynamically.
10537 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10538 according to FLEN determined.
10539 (riscv_linux_nat_target::store_registers): Likewise.
10540
aa66aac4
SV
105412020-02-01 Shahab Vahedi <shahab@synopsys.com>
10542
10543 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10544 when reg->group is empty and reggroup is not.
10545
fd9faca8
TT
105462020-01-31 Tom Tromey <tromey@adacore.com>
10547
10548 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10549 Call beneath target's mourn_inferior after unpushing.
10550
42330a68
AB
105512020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10552
10553 PR tui/9765
10554 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10555 have enough lines to fill the screen, still return the lowest
10556 address we found.
10557
7a27a45b
AB
105582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10559
10560 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10561 '-', '<', and '>' commands.
10562
c47f70e2
PA
105632020-01-29 Pedro Alves <palves@redhat.com>
10564 Sergio Durigan Junior <sergiodj@redhat.com>
10565
10566 * infcmd.c (construct_inferior_arguments): Assert that
10567 'argc' is greater than 0.
10568
5133a315
LM
105692020-01-29 Luis Machado <luis.machado@linaro.org>
10570
10571 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10572 (BRK_INSN_MASK): Define to 0xd4200000.
10573 (aarch64_program_breakpoint_here_p): New function.
10574 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10575 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10576 breakpoint.c.
10577 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10578 breakpoint.h
10579 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10580 call gdbarch_program_breakpoint_here_p.
10581 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10582 default_program_breakpoint_here_p, changed return type to bool and
10583 simplified.
10584 * breakpoint.h (program_breakpoint_here): Moved prototype to
10585 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10586 return type to bool.
10587 * gdbarch.c: Regenerate.
10588 * gdbarch.h: Regenerate.
10589 * gdbarch.sh (program_breakpoint_here_p): New method.
10590 * infrun.c (handle_signal_stop): Call
10591 gdbarch_program_breakpoint_here_p.
10592
168f8c6b
TT
105932020-01-26 Tom Tromey <tom@tromey.com>
10594
10595 * ctfread.c (struct ctf_fp_info): Reindent.
10596 (_initialize_ctfread): Remove.
10597
128a391f
TT
105982020-01-26 Tom Tromey <tom@tromey.com>
10599
10600 * psymtab.c (partial_map_expand_apply)
10601 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10602 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10603 (psym_print_stats, psym_expand_symtabs_for_function)
10604 (psym_map_symbol_filenames, psym_map_matching_symbols)
10605 (psym_expand_symtabs_matching)
10606 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10607 (maintenance_check_psymtabs): Use new methods.
10608 * psympriv.h (struct partial_symtab) <readin_p,
10609 get_compunit_symtab>: New methods.
10610 <readin, compunit_symtab>: Remove members.
10611 (struct standard_psymtab): New.
10612 (struct legacy_psymtab): Derive from standard_psymtab.
10613 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10614 standard_psymtab.
10615 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10616
0494dbec
TT
106172020-01-26 Tom Tromey <tom@tromey.com>
10618
10619 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10620 read_dependencies. Add assert.
10621 * psymtab.c (partial_symtab::read_dependencies): New method.
10622 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10623 method.
10624 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10625 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10626 read_dependencies.
10627 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10628 Add assert.
10629
8566b89b
TT
106302020-01-26 Tom Tromey <tom@tromey.com>
10631
10632 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10633 Call expand_psymtab.
10634 (xcoff_read_symtab): Call expand_psymtab.
10635 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10636 legacy_expand_psymtab.
10637 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10638 method.
10639 (struct legacy_psymtab) <expand_psymtab>: Implement.
10640 <legacy_expand_psymtab>: New member.
10641 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10642 (parse_partial_symbols): Set legacy_expand_psymtab.
10643 (psymtab_to_symtab_1): Change argument order. Call
10644 expand_psymtab.
10645 (new_psymtab): Set legacy_expand_psymtab.
10646 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10647 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10648 expand_psymtab.
10649 (dwarf2_psymtab::expand_psymtab): Rename from
10650 psymtab_to_symtab_1. Call expand_psymtab.
10651 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10652 (dbx_end_psymtab): Likewise.
10653 (dbx_psymtab_to_symtab_1): Change argument order. Call
10654 expand_psymtab.
10655 (dbx_read_symtab): Call expand_psymtab.
10656 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10657 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10658 (ctf_psymtab::read_symtab): Call expand_psymtab.
10659
077cbab2
TT
106602020-01-26 Tom Tromey <tom@tromey.com>
10661
10662 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10663 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10664 messages.
10665 * mdebugread.c (mdebug_read_symtab): Remove prints.
10666 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10667 assert.
10668 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10669
891813be
TT
106702020-01-26 Tom Tromey <tom@tromey.com>
10671
10672 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10673 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10674 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10675 legacy_symtab.
10676 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10677 * psymtab.c (psymtab_to_symtab): Call method.
10678 (dump_psymtab): Update.
10679 * psympriv.h (struct partial_symtab): Add virtual destructor.
10680 <read_symtab>: New method.
10681 (struct legacy_symtab): New.
10682 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10683 (struct pst_map) <pst>: Now a legacy_psymtab.
10684 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10685 (new_psymtab): Use legacy_psymtab.
10686 * dwarf2read.h (struct dwarf2_psymtab): New.
10687 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10688 * dwarf2read.c (dwarf2_create_include_psymtab)
10689 (dwarf2_build_include_psymtabs, create_type_unit_group)
10690 (create_partial_symtab, process_psymtab_comp_unit_reader)
10691 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10692 (set_partial_user): Use dwarf2_psymtab.
10693 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10694 (psymtab_to_symtab_1, process_full_comp_unit)
10695 (process_full_type_unit, dwarf2_ranges_read)
10696 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10697 (dwarf_decode_lines): Use dwarf2_psymtab.
10698 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10699 (add_address_entry_worker, write_one_signatured_type)
10700 (recursively_count_psymbols, recursively_write_psymbols)
10701 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10702 (write_debug_names): Likewise.
10703 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10704 <pst>: Now a legacy_psymtab.
10705 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10706 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10707 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10708 * ctfread.c (struct ctf_psymtab): New.
10709 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10710 ctf_psymtab.
10711 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10712 (create_partial_symtab): Return a ctf_psymtab.
10713 (scan_partial_symbols): Update.
10714
c3693a1d
TT
107152020-01-26 Tom Tromey <tom@tromey.com>
10716
10717 * xcoffread.c (xcoff_start_psymtab): Use new.
10718 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10719 renamed from start_psymtab_common.
10720 * psympriv.h (struct partial_symtab): Add new constructor.
10721 (start_psymtab_common): Don't declare.
10722 * mdebugread.c (parse_partial_symbols): Use new.
10723 * dwarf2read.c (create_partial_symtab): Use new.
10724 * dbxread.c (start_psymtab): Use new.
10725 * ctfread.c (create_partial_symtab): Use new.
10726
32caafd0
TT
107272020-01-26 Tom Tromey <tom@tromey.com>
10728
10729 * xcoffread.c (xcoff_end_psymtab): Use new.
10730 * psymtab.c (start_psymtab_common): Use new.
10731 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10732 Update.
10733 * psympriv.h (struct partial_symtab): Add parameters to
10734 constructor. Don't inline.
10735 (allocate_psymtab): Don't declare.
10736 * mdebugread.c (new_psymtab): Use new.
10737 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10738 * dbxread.c (dbx_end_psymtab): Use new.
10739
abaa2f23
TT
107402020-01-26 Tom Tromey <tom@tromey.com>
10741
10742 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10743 allocate_psymtab. Update documentation.
10744 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10745 allocate_psymtab. Do not use new.
10746 (allocate_psymtab): Use new. Update.
10747
6d94535f
TT
107482020-01-26 Tom Tromey <tom@tromey.com>
10749
10750 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10751 * psymtab.c (psym_print_stats): Update.
10752 * psympriv.h (struct partial_symtab) <readin,
10753 psymtabs_addrmap_supported, anonymous>: Now bool.
10754 * mdebugread.c (psymtab_to_symtab_1): Update.
10755 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10756 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10757 (process_full_comp_unit, process_full_type_unit): Update.
10758 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10759 * ctfread.c (psymtab_to_symtab): Update.
10760
6f17252b
TT
107612020-01-26 Tom Tromey <tom@tromey.com>
10762
10763 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10764 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10765 * psymtab.c (psymtab_storage): Delete psymtabs.
10766 (psymtab_storage::allocate_psymtab): Use new.
10767 (psymtab_storage::discard_psymtab): Use delete.
10768 * psympriv.h (struct partial_symtab): Add constructor and
10769 initializers.
10770
f6f1cebc
TT
107712020-01-26 Tom Tromey <tom@tromey.com>
10772
10773 * machoread.c: Do not include psympriv.h.
10774
e47e48f6
PW
107752020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10776
10777 * NEWS: Mention the new option and the set/show commands.
10778
a2fedca9
PW
107792020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10780
10781 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10782 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10783 (validate_exec_file): New variables, enums, functions.
10784 (exec_file_locate_attach, print_section_info): Style the filenames.
10785 (_initialize_exec): Install show_exec_file_mismatch_command and
10786 set_exec_file_mismatch_command.
10787 * gdbcore.h (validate_exec_file): Declare.
10788 * infcmd.c (attach_command): Call validate_exec_file.
10789 * remote.c ( remote_target::remote_add_inferior): Likewise.
10790
7ffa82e1
AB
107912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * frame.c (find_frame_sal): Move call to get_next_frame into more
10794 inner scope.
10795 * inline-frame.c (inilne_state) <inline_state>: Update argument
10796 types.
10797 (inilne_state) <skipped_symbol>: Rename to...
10798 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10799 (skip_inline_frames): Build vector of skipped symbols and use this
10800 to reate the inline_state.
10801 (inline_skipped_symbol): Add a comment and some assertions, fetch
10802 skipped symbol from the list.
10803
3d92a3e3
AB
108042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * buildsym.c (lte_is_less_than): Delete.
10807 (buildsym_compunit::end_symtab_with_blockvector): Create local
10808 lambda function to sort line table entries, and use
10809 std::stable_sort instead of std::sort.
10810 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10811 markers when looking for a previous line.
10812
94a72be7
AB
108132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * dwarf2read.c (lnp_state_machine::record_line): Include
10816 end_sequence parameter in debug print out. Record the line if we
10817 are at an end_sequence marker even if it's not the start of a
10818 statement.
10819 * symmisc.c (maintenance_print_one_line_table): Print end of
10820 sequence markers with 'END' not '0'.
10821
53af73bf
PA
108222020-01-24 Pedro Alves <palves@redhat.com>
10823
10824 PR gdb/25410
10825 * thread.c (scoped_restore_current_thread::restore): Use
10826 switch_to_inferior_no_thread.
10827 * exec.c: Include "progspace-and-thread.h".
10828 (add_target_sections, remove_target_sections):
10829 scoped_restore_current_pspace_and_thread instead of
10830 scoped_restore_current_thread.
10831 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10832 and aspace to the inferior before calling clone_program_space.
10833 Remove stale comment.
10834
3050c6f4
CB
108352020-01-24 Christian Biesinger <cbiesinger@google.com>
10836
10837 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10838 (arm_netbsd_nat_target::fetch_registers): ...this.
10839 (arm_nbsd_nat_target::store_registers): Rename to...
10840 (arm_netbsd_nat_target::store_registers): ...this.
10841
73685c7e
CB
108422020-01-24 Christian Biesinger <cbiesinger@google.com>
10843
10844 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10845 register_t.
10846
89203d40
CB
108472020-01-24 Christian Biesinger <cbiesinger@google.com>
10848
10849 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10850 Update comment.
10851 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10852 Likewise.
10853 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10854 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10855 the correct replacement (iterate_over_regset_sections).
10856 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10857 Update comment.
10858
1ba1ac88
AB
108592020-01-24 Graham Markall <graham.markall@embecosm.com>
10860
10861 PR gdb/23718
10862 * gdb/python/python.c (execute_gdb_command): Call
10863 async_enable_stdin in catch block.
10864
f3364a6d
AB
108652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10866
10867 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10868 SWITCH_THRU_ALL_UIS.
10869
733d0a67
AB
108702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 PR tui/9765
10873 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10874 comment, add extra parameter, and update to store previous symbol
10875 when appropriate.
10876 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10877 add extra parameter.
10878 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10879 remove unneeded parameter, add try/catch around gdb_print_insn,
10880 rewrite to add items to asm_lines vector.
10881 (tui_find_backward_disassembly_start_address): New function.
10882 (tui_find_disassembly_address): Updated throughout.
10883 (tui_disasm_window::set_contents): Update for changes to
10884 tui_disassemble.
10885 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10886 number of lines to scroll.
10887
b3b3bada
SM
108882020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10889
10890 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10891 (SECT_OFF_DATA): Likewise.
10892 (SECT_OFF_RODATA): Likewise.
10893 (SECT_OFF_TEXT): Likewise.
10894 (SECT_OFF_BSS): Likewise.
10895 (struct objfile) <text_section_offset, data_section_offset>: New
10896 methods.
10897 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10898 objfile::text_section_offset.
10899 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10900 * coffread.c (coff_symtab_read): Likewise.
10901 (enter_linenos): Likewise.
10902 (process_coff_symbol): Likewise.
10903 * ctfread.c (get_objfile_text_range): Likewise.
10904 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10905 Use objfile::data_section_offset.
10906 * dwarf2-frame.c (execute_cfa_program): Use
10907 objfile::text_section_offset.
10908 (dwarf2_frame_find_fde): Likewise.
10909 * dwarf2read.c (create_addrmap_from_index): Likewise.
10910 (create_addrmap_from_aranges): Likewise.
10911 (dw2_find_pc_sect_compunit_symtab): Likewise.
10912 (process_psymtab_comp_unit_reader): Likewise.
10913 (add_partial_symbol): Likewise.
10914 (add_partial_subprogram): Likewise.
10915 (process_full_comp_unit): Likewise.
10916 (read_file_scope): Likewise.
10917 (read_func_scope): Likewise.
10918 (read_lexical_block_scope): Likewise.
10919 (read_call_site_scope): Likewise.
10920 (dwarf2_rnglists_process): Likewise.
10921 (dwarf2_ranges_process): Likewise.
10922 (dwarf2_ranges_read): Likewise.
10923 (dwarf_decode_lines_1): Likewise.
10924 (new_symbol): Likewise.
10925 (dwarf2_fetch_die_loc_sect_off): Likewise.
10926 (dwarf2_per_cu_text_offset): Likewise.
10927 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10928 * hppa-tdep.c (read_unwind_info): Likewise.
10929 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10930 * psympriv.h (struct partial_symtab): Likewise.
10931 * psymtab.c (find_pc_sect_psymtab): Likewise.
10932 * solib-svr4.c (enable_break): Likewise.
10933 * stap-probe.c (relocate_address): Use
10934 objfile::data_section_offset.
10935 * xcoffread.c (enter_line_range): Use
10936 objfile::text_section_offset.
10937 (read_xcoff_symtab): Likewise.
10938
ab53f382
SM
109392020-01-23 Simon Marchi <simon.marchi@efficios.com>
10940
10941 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10942 declaration to narrower scopes.
10943
e7eee665
SM
109442020-01-23 Simon Marchi <simon.marchi@efficios.com>
10945
10946 * darwin-nat.h (struct darwin_exception_msg, enum
10947 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10948 Move up.
10949 (class darwin_nat_target) <wait_1, check_new_threads,
10950 decode_exception_message, decode_message, stop_inferior,
10951 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10952 * darwin-nat.c (darwin_check_new_threads): Rename to...
10953 (darwin_nat_target::check_new_threads): ... this.
10954 (darwin_suspend_inferior_it): Remove.
10955 (darwin_decode_exception_message): Rename to...
10956 (darwin_nat_target::decode_exception_message): ... this.
10957 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10958 (darwin_decode_message): Rename to...
10959 (darwin_nat_target::decode_message): ... this.
10960 (cancel_breakpoint): Rename to...
10961 (darwin_nat_target::cancel_breakpoint): ... this.
10962 (darwin_wait): Rename to...
10963 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10964 instead of iterate_over_inferiors.
10965 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10966 (darwin_stop_inferior): Rename to...
10967 (darwin_nat_target::stop_inferior): ... this.
10968 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10969 (darwin_init_thread_list): Rename to...
10970 (darwin_nat_target::init_thread_list): ... this.
10971 (darwin_ptrace_him): Rename to...
10972 (darwin_nat_target::ptrace_him): ... this.
10973 (darwin_nat_target::create_inferior): Pass lambda function to
10974 fork_inferior.
10975 (darwin_nat_target::detach): Call stop_inferior instead of
10976 darwin_stop_inferior.
10977 * fork-inferior.h (fork_inferior): Change init_trace_fun
10978 parameter to gdb::function_view.
10979 * fork-inferior.c (fork_inferior): Likewise.
10980
c162ed3e
HD
109812020-01-23 Hannes Domani <ssbssa@yahoo.de>
10982
10983 * i386-cygwin-tdep.c (core_process_module_section): Update.
10984 * windows-nat.c (struct lm_info_windows): Add text_offset.
10985 (windows_xfer_shared_libraries): Update.
10986 * windows-tdep.c (windows_xfer_shared_library):
10987 Add text_offset_cached argument.
10988 * windows-tdep.h (windows_xfer_shared_library): Update.
10989
a1237872
SM
109902020-01-21 Simon Marchi <simon.marchi@efficios.com>
10991
10992 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10993
b3ee6dd9
SM
109942020-01-21 Simon Marchi <simon.marchi@efficios.com>
10995
10996 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10997 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10998 replace with range-based for.
10999 (gdbsim_interrupt_inferior): Remove.
11000 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11001 with a range-based for. Inline code from
11002 gdbsim_interrupt_inferior.
11003
f9fac3c8
SM
110042020-01-21 Simon Marchi <simon.marchi@efficios.com>
11005
11006 * infrun.c (proceed): Fix indentation.
11007
f6474de9
TT
110082020-01-21 Tom Tromey <tromey@adacore.com>
11009
11010 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11011 * python/python.c (python_extension_ops): Update.
11012 (gdbpy_colorize): New function.
11013 * python/lib/gdb/__init__.py (colorize): New function.
11014 * extension.h (ext_lang_colorize): Declare.
11015 * extension.c (ext_lang_colorize): New function.
11016 * extension-priv.h (struct extension_language_ops) <colorize>: New
11017 member.
11018 * cli/cli-style.c (_initialize_cli_style): Update help text.
11019
f0c702d4
LM
110202020-01-21 Luis Machado <luis.machado@linaro.org>
11021
11022 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11023 <cond>: Change type to bool.
11024 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11025 (aarch64_displaced_step_cb): Likewise.
11026 (aarch64_displaced_step_tb): Likewise.
11027
1ab139e5
LM
110282020-01-21 Luis Machado <luis.machado@linaro.org>
11029
11030 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11031 output.
11032
0c271889
LM
110332020-01-21 Luis Machado <luis.machado@linaro.org>
11034
11035 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11036 <pc_adjust>: Adjust the documentation.
11037 (aarch64_displaced_step_fixup): Check if PC really moved before
11038 adjusting it.
11039
4d89c1c7
TT
110402020-01-19 Tom Tromey <tom@tromey.com>
11041
11042 * disasm.c (~gdb_disassembler): New destructor.
11043 (gdb_buffered_insn_length): Call disassemble_free_target.
11044 * disasm.h (class gdb_disassembler): Declare destructor. Use
11045 DISABLE_COPY_AND_ASSIGN.
11046
c0ab21c2
TT
110472020-01-19 Tom Tromey <tom@tromey.com>
11048
11049 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11050 (die_reader_func_ftype): Remove.
11051 (cutu_reader): New class.
11052 (dw2_get_file_names_reader): Remove "data" parameter.
11053 (dw2_get_file_names): Use cutu_reader.
11054 (create_debug_type_hash_table): Update.
11055 (read_cutu_die_from_dwo): Update comment.
11056 (lookup_dwo_unit): Add dwo_name parameter.
11057 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11058 die_reader_func_ftype and data parameters.
11059 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11060 Remove die_reader_func_ftype and data parameters.
11061 (~cutu_reader): New; from init_cutu_and_read_dies.
11062 (cutu_reader::cutu_reader): Rename from
11063 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11064 and data parameters.
11065 (init_cutu_and_read_dies_simple): Remove.
11066 (struct process_psymtab_comp_unit_data): Remove.
11067 (process_psymtab_comp_unit_reader): Remove data parameter; add
11068 want_partial_unit and pretend_language parameters.
11069 (process_psymtab_comp_unit): Use cutu_reader.
11070 (build_type_psymtabs_reader): Remove data parameter.
11071 (build_type_psymtabs_1): Use cutu_reader.
11072 (process_skeletonless_type_unit): Likewise.
11073 (load_partial_comp_unit_reader): Remove.
11074 (load_partial_comp_unit): Use cutu_reader.
11075 (load_full_comp_unit_reader): Remove.
11076 (load_full_comp_unit): Use cutu_reader.
11077 (struct create_dwo_cu_data): Remove.
11078 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11079 dwo_unit parameters.
11080 (create_cus_hash_table): Use cutu_reader.
11081 (struct dwarf2_read_addr_index_data): Remove.
11082 (dwarf2_read_addr_index_reader): Remove.
11083 (dwarf2_read_addr_index): Use cutu_reader.
11084 (read_signatured_type_reader): Remove.
11085 (read_signatured_type): Use cutu_reader.
11086
45bbae5c
TT
110872020-01-19 Tom Tromey <tom@tromey.com>
11088
11089 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11090 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11091 (tui_wrefresh): Declare.
11092 * tui/tui-wingeneral.c (suppress_output): New global.
11093 (tui_suppress_output, ~tui_suppress_output): New constructor and
11094 destructor.
11095 (tui_wrefresh): New function.
11096 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11097 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11098 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11099 method.
11100 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11101 tui_wrefresh.
11102 (tui_data_window::no_refresh): New method.
11103 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11104 (tui_reg_command): Use tui_suppress_output
11105 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11106 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11107 method.
11108 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11109
4f13c1c0
TT
111102020-01-19 Tom Tromey <tom@tromey.com>
11111
11112 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11113 Handle case where symtab is null.
11114
fa47e446
SM
111152020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11116
11117 * linux-fork.c (one_fork_p): Simplify.
11118
26f42329
SM
111192020-01-17 Simon Marchi <simon.marchi@efficios.com>
11120
11121 * top.c (struct qt_args): Remove.
11122 (kill_or_detach): Change return type to void, replace `void *`
11123 parameter with a proper one.
11124 (print_inferior_quit_action): Likewise.
11125 (quit_confirm): Use range-based for loop to iterate over inferiors.
11126 (quit_force): Likewise.
11127
a9ac81b1
SM
111282020-01-17 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11131 `void *` parameter with proper parameters.
11132 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11133 (print_one_inferior): Change return type to void, replace `void *`
11134 parameter with proper parameters.
11135 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11136 inferiors.
11137 (get_other_inferior): Remove.
11138 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11139 inferiors.
11140
788eca49
SM
111412020-01-17 Simon Marchi <simon.marchi@efficios.com>
11142
11143 * mi/mi-interp.c (report_initial_inferior): Remove.
11144 (mi_interp::init): Use range-based for to iterate over inferiors.
11145
d9bc85b6
SM
111462020-01-17 Simon Marchi <simon.marchi@efficios.com>
11147
11148 * python/py-inferior.c (build_inferior_list): Remove.
11149 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11150
40c94099
CB
111512020-01-16 Christian Biesinger <cbiesinger@google.com>
11152
11153 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11154 (btrace_stitch_trace): Likewise.
11155 * charset.c (intermediate_encoding): Likewise (vaild).
11156 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11157 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11158 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11159
e0cdfe3c
HD
111602020-01-16 Hannes Domani <ssbssa@yahoo.de>
11161
11162 * windows-tdep.c (windows_get_tlb_type):
11163 Add rtl_user_process_parameters type.
11164
790f1718 111652020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11166 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11167
11168 PR build/24805
11169 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11170 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11171 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11172 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11173 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11174 (ps_plog): Redeclare exported functions with default visibility.
11175
3112ed97
NA
111762020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11177
11178 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11179 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11180
8dc3273e
SM
111812020-01-15 Simon Marchi <simon.marchi@efficios.com>
11182
11183 * infcmd.c (post_create_inferior): Use get_thread_regcache
11184 instead of get_current_regcache.
11185
ff47f4f0
TT
111862020-01-14 Tom Tromey <tom@tromey.com>
11187
11188 PR symtab/12535:
11189 * python/python.c (gdbpy_decode_line): Treat empty string the same
11190 as no argument.
11191
975f45b7
TT
111922020-01-14 Tom Tromey <tom@tromey.com>
11193
11194 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11195
25e57356
TT
111962020-01-14 Tom Tromey <tom@tromey.com>
11197
11198 * nat/linux-btrace.c: Don't include <config.h>.
11199 * nat/linux-ptrace.c: Don't include <config.h>.
11200 * nat/x86-linux-dregs.c: Don't include <config.h>.
11201
05ea2a05
TT
112022020-01-14 Tom Tromey <tom@tromey.com>
11203
11204 * configure: Rebuild.
11205 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11206
01027315
TT
112072020-01-14 Tom Tromey <tom@tromey.com>
11208
11209 * nat/x86-linux-dregs.c: Include configh.h.
11210 * nat/linux-ptrace.c: Include configh.h.
11211 * nat/linux-btrace.c: Include configh.h.
11212 * defs.h: Include config.h, bfd.h.
11213 * configure.ac: Don't source common.host.
11214 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11215 * configure: Rebuild.
11216 * acinclude.m4: Update path.
11217 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11218 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11219 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11220 (CLIBS): Add LIBSUPPORT.
11221 (CDEPS): Likewise.
11222 (COMMON_SFILES): Remove gdbsupport files.
11223 (HFILES_NO_SRCDIR): Likewise.
11224 (stamp-version): Update path to create-version.sh.
11225 (ALLDEPFILES): Remove gdbsupport files.
11226
b2ceabe8
TT
112272020-01-14 Tom Tromey <tom@tromey.com>
11228
11229 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11230 USE_WIN32API when needed.
11231 * configure.ac (USE_WIN32API): Don't define.
11232 (WIN32LIBS): Use WIN32APILIBS.
11233 * configure: Rebuild.
11234
25c51f71
TT
112352020-01-14 Tom Tromey <tom@tromey.com>
11236
11237 * configure: Rebuild.
11238 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11239
717c684d
BE
112402020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11241
11242 * skip.c (skip_function_command): Make skip w/o arguments use the
11243 name of the inlined function if pc is inside any inlined function.
11244
7da6a5b9
LM
112452020-01-14 Luis Machado <luis.machado@linaro.org>
11246
11247 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11248 * infrun.c (resume_1): Likewise.
11249 (handle_inferior_event): Remove stale comment.
11250 * linux-nat.c (linux_nat_target::resume): Update comments.
11251 (save_stop_reason): Likewise.
11252 (linux_nat_filter_event): Likewise.
11253 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11254
44e4c775
AB
112552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * elfread.c (record_minimal_symbol): Set section index to 0 for
11258 non-allocatable sections.
11259
18a8505e
AT
11260
112612020-01-13 Ali Tamur <tamur@google.com>
11262
11263 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11264 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11265 to gdb::optional. Update comments.
11266 (dwo_file): Update comments.
11267 (read_attribute): Update API to take an additional out parameter,
11268 need_reprocess. This is used to mark attributes that need other
11269 attributes (e.g. str_offsets_base) for correct computation which may not
11270 have been read yet.
11271 (read_attribute_reprocess): New function declaration.
11272 (read_addr_index): Likewise.
11273 (read_dwo_str_index): Likewise.
11274 (read_stub_str_index): Likewise.
11275 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11276 (lookup_addr_base): New function definition.
11277 (lookup_ranges_base): Likewise.
11278 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11279 lookup_ranges_base.
11280 (init_cutu_and_read_dies): Update comments.
11281 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11282 unit. This is used to inherit parent's str_offsets_base and addr_base.
11283 Update comments.
11284 (init_cutu_and_read_dies_simple): Reflect API changes.
11285 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11286 (create_cus_hash_table): Change API to take parent compile unit.
11287 Reflect API changes.
11288 (open_and_init_dwo_file): Reflect API changes.
11289 (dwarf2_get_pc_bounds): Update comments.
11290 (dwarf2_record_block_ranges): Likewise.
11291 (read_full_die_1): Change implementation to reprocess attributes that
11292 need str_offsets_base and addr_base.
11293 (partial_die_info::read): Likewise.
11294 (read_attribute_reprocess): New function definition.
11295 (read_attribute_value): Change API to take an additional out parameter,
11296 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11297 when a non-dwo compile unit has index based attributes.
11298 (read_attribute): Reflect API changes.
11299 (read_addr_index_1): Reflect API changes. Update comments.
11300 (dwarf2_read_addr_index_data): Reflect API changes.
11301 (dwarf2_read_addr_index): Likewise.
11302 (read_str_index): Change API and implementation. This becomes a helper
11303 to be used by the new string index related methods. Update error
11304 message and comments.
11305 (read_dwo_str_index): New function definition.
11306 (read_stub_str_index): Likewise.
11307 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11308 * symfile.h (dwarf2_debug_sections): Likewise.
11309 * xcoffread.c (dwarf2_debug_sections): Likewise.
11310
0cac9354
SM
113112020-01-13 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11314 core_reg_sect type to gdb_byte *.
11315 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11316 * cris-tdep.c (fetch_core_registers): Likewise.
11317 * corelow.c (core_target::get_core_register_section): Change
11318 type of `contents` to gdb::byte_vector.
11319
9a6d629c
AB
113202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11321
11322 * tui/tui-wingeneral.c (box_win): Position the title in the center
11323 of the border.
11324
d8b2f9e3
SM
113252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11326
11327 * corelow.c (core_target::get_core_register_section): Use
11328 std::vector instead of alloca.
11329
bb564c58
SM
113302020-01-13 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * warning.m4: Add -Wmissing-declarations to build_warnings.
11333 * configure: Re-generate.
11334
6b366111
SM
113352020-01-13 Simon Marchi <simon.marchi@efficios.com>
11336
11337 * python/python.c (init__gdb_module): Add declaration.
11338
6c265988
SM
113392020-01-13 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11342 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11343 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11344 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11345 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11346 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11347 * ada-exp.y (_initialize_ada_exp): Add declaration.
11348 * ada-lang.c (_initialize_ada_language): Add declaration.
11349 * ada-tasks.c (_initialize_tasks): Add declaration.
11350 * agent.c (_initialize_agent): Add declaration.
11351 * aix-thread.c (_initialize_aix_thread): Add declaration.
11352 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11353 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11354 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11355 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11356 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11357 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11358 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11359 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11360 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11361 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11362 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11363 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11364 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11365 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11366 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11367 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11368 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11369 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11370 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11371 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11372 * annotate.c (_initialize_annotate): Add declaration.
11373 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11374 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11375 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11376 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11377 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11378 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11379 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11380 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11381 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11382 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11383 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11384 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11385 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11386 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11387 * auto-load.c (_initialize_auto_load): Add declaration.
11388 * auxv.c (_initialize_auxv): Add declaration.
11389 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11390 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11391 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11392 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11393 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11394 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11395 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11396 * breakpoint.c (_initialize_breakpoint): Add declaration.
11397 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11398 * btrace.c (_initialize_btrace): Add declaration.
11399 * charset.c (_initialize_charset): Add declaration.
11400 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11401 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11402 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11403 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11404 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11405 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11406 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11407 * coffread.c (_initialize_coffread): Add declaration.
11408 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11409 * compile/compile.c (_initialize_compile): Add declaration.
11410 * complaints.c (_initialize_complaints): Add declaration.
11411 * completer.c (_initialize_completer): Add declaration.
11412 * copying.c (_initialize_copying): Add declaration.
11413 * corefile.c (_initialize_core): Add declaration.
11414 * corelow.c (_initialize_corelow): Add declaration.
11415 * cp-abi.c (_initialize_cp_abi): Add declaration.
11416 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11417 * cp-support.c (_initialize_cp_support): Add declaration.
11418 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11419 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11420 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11421 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11422 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11423 * ctfread.c (_initialize_ctfread): Add declaration.
11424 * d-lang.c (_initialize_d_language): Add declaration.
11425 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11426 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11427 * dbxread.c (_initialize_dbxread): Add declaration.
11428 * dcache.c (_initialize_dcache): Add declaration.
11429 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11430 * disasm.c (_initialize_disasm): Add declaration.
11431 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11432 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11433 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11434 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11435 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11436 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11437 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11438 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11439 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11440 * elfread.c (_initialize_elfread): Add declaration.
11441 * exec.c (_initialize_exec): Add declaration.
11442 * extension.c (_initialize_extension): Add declaration.
11443 * f-lang.c (_initialize_f_language): Add declaration.
11444 * f-valprint.c (_initialize_f_valprint): Add declaration.
11445 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11446 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11447 * filesystem.c (_initialize_filesystem): Add declaration.
11448 * findcmd.c (_initialize_mem_search): Add declaration.
11449 * findvar.c (_initialize_findvar): Add declaration.
11450 * fork-child.c (_initialize_fork_child): Add declaration.
11451 * frame-base.c (_initialize_frame_base): Add declaration.
11452 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11453 * frame.c (_initialize_frame): Add declaration.
11454 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11455 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11456 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11457 * gcore.c (_initialize_gcore): Add declaration.
11458 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11459 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11460 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11461 * gdbarch.c (_initialize_gdbarch): Add declaration.
11462 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11463 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11464 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11465 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11466 * go-lang.c (_initialize_go_language): Add declaration.
11467 * go32-nat.c (_initialize_go32_nat): Add declaration.
11468 * guile/guile.c (_initialize_guile): Add declaration.
11469 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11470 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11471 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11472 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11473 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11474 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11475 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11476 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11477 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11478 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11479 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11480 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11481 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11482 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11483 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11484 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11485 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11486 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11487 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11488 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11489 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11490 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11491 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11492 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11493 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11494 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11495 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11496 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11497 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11498 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11499 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11500 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11501 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11502 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11503 * infcall.c (_initialize_infcall): Add declaration.
11504 * infcmd.c (_initialize_infcmd): Add declaration.
11505 * inflow.c (_initialize_inflow): Add declaration.
11506 * infrun.c (_initialize_infrun): Add declaration.
11507 * interps.c (_initialize_interpreter): Add declaration.
11508 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11509 * jit.c (_initialize_jit): Add declaration.
11510 * language.c (_initialize_language): Add declaration.
11511 * linux-fork.c (_initialize_linux_fork): Add declaration.
11512 * linux-nat.c (_initialize_linux_nat): Add declaration.
11513 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11514 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11515 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11516 * m2-lang.c (_initialize_m2_language): Add declaration.
11517 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11518 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11519 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11520 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11521 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11522 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11523 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11524 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11525 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11526 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11527 * machoread.c (_initialize_machoread): Add declaration.
11528 * macrocmd.c (_initialize_macrocmd): Add declaration.
11529 * macroscope.c (_initialize_macroscope): Add declaration.
11530 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11531 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11532 * maint.c (_initialize_maint_cmds): Add declaration.
11533 * mdebugread.c (_initialize_mdebugread): Add declaration.
11534 * memattr.c (_initialize_mem): Add declaration.
11535 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11536 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11537 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11538 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11539 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11540 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11541 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11542 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11543 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11544 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11545 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11546 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11547 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11548 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11549 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11550 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11551 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11552 * mipsread.c (_initialize_mipsread): Add declaration.
11553 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11554 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11555 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11556 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11557 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11558 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11559 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11560 * nto-procfs.c (_initialize_procfs): Add declaration.
11561 * objc-lang.c (_initialize_objc_language): Add declaration.
11562 * observable.c (_initialize_observer): Add declaration.
11563 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11564 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11565 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11566 * osabi.c (_initialize_gdb_osabi): Add declaration.
11567 * osdata.c (_initialize_osdata): Add declaration.
11568 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11569 * parse.c (_initialize_parse): Add declaration.
11570 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11571 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11572 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11573 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11574 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11575 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11576 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11577 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11578 * printcmd.c (_initialize_printcmd): Add declaration.
11579 * probe.c (_initialize_probe): Add declaration.
11580 * proc-api.c (_initialize_proc_api): Add declaration.
11581 * proc-events.c (_initialize_proc_events): Add declaration.
11582 * proc-service.c (_initialize_proc_service): Add declaration.
11583 * procfs.c (_initialize_procfs): Add declaration.
11584 * producer.c (_initialize_producer): Add declaration.
11585 * psymtab.c (_initialize_psymtab): Add declaration.
11586 * python/python.c (_initialize_python): Add declaration.
11587 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11588 * record-btrace.c (_initialize_record_btrace): Add declaration.
11589 * record-full.c (_initialize_record_full): Add declaration.
11590 * record.c (_initialize_record): Add declaration.
11591 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11592 * regcache.c (_initialize_regcache): Add declaration.
11593 * reggroups.c (_initialize_reggroup): Add declaration.
11594 * remote-notif.c (_initialize_notif): Add declaration.
11595 * remote-sim.c (_initialize_remote_sim): Add declaration.
11596 * remote.c (_initialize_remote): Add declaration.
11597 * reverse.c (_initialize_reverse): Add declaration.
11598 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11599 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11600 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11601 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11602 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11603 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11604 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11605 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11606 Add declaration.
11607 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11608 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11609 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11610 * rust-exp.y (_initialize_rust_exp): Add declaration.
11611 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11612 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11613 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11614 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11615 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11616 * score-tdep.c (_initialize_score_tdep): Add declaration.
11617 * ser-go32.c (_initialize_ser_dos): Add declaration.
11618 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11619 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11620 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11621 * ser-uds.c (_initialize_ser_socket): Add declaration.
11622 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11623 * serial.c (_initialize_serial): Add declaration.
11624 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11625 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11626 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11627 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11628 * skip.c (_initialize_step_skip): Add declaration.
11629 * sol-thread.c (_initialize_sol_thread): Add declaration.
11630 * solib-aix.c (_initialize_solib_aix): Add declaration.
11631 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11632 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11633 * solib-frv.c (_initialize_frv_solib): Add declaration.
11634 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11635 * solib-target.c (_initialize_solib_target): Add declaration.
11636 * solib.c (_initialize_solib): Add declaration.
11637 * source-cache.c (_initialize_source_cache): Add declaration.
11638 * source.c (_initialize_source): Add declaration.
11639 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11640 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11641 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11642 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11643 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11644 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11645 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11646 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11647 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11648 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11649 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11650 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11651 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11652 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11653 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11654 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11655 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11656 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11657 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11658 * stabsread.c (_initialize_stabsread): Add declaration.
11659 * stack.c (_initialize_stack): Add declaration.
11660 * stap-probe.c (_initialize_stap_probe): Add declaration.
11661 * std-regs.c (_initialize_frame_reg): Add declaration.
11662 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11663 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11664 * symfile.c (_initialize_symfile): Add declaration.
11665 * symmisc.c (_initialize_symmisc): Add declaration.
11666 * symtab.c (_initialize_symtab): Add declaration.
11667 * target.c (_initialize_target): Add declaration.
11668 * target-connection.c (_initialize_target_connection): Add
11669 declaration.
11670 * target-dcache.c (_initialize_target_dcache): Add declaration.
11671 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11672 * thread.c (_initialize_thread): Add declaration.
11673 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11674 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11675 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11676 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11677 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11678 * tracectf.c (_initialize_ctf): Add declaration.
11679 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11680 * tracefile.c (_initialize_tracefile): Add declaration.
11681 * tracepoint.c (_initialize_tracepoint): Add declaration.
11682 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11683 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11684 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11685 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11686 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11687 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11688 * tui/tui.c (_initialize_tui): Add declaration.
11689 * typeprint.c (_initialize_typeprint): Add declaration.
11690 * ui-style.c (_initialize_ui_style): Add declaration.
11691 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11692 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11693 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11694 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11695 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11696 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11697 * unittests/filtered_iterator-selftests.c
11698 (_initialize_filtered_iterator_selftests): Add declaration.
11699 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11700 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11701 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11702 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11703 * unittests/main-thread-selftests.c
11704 (_initialize_main_thread_selftests): Add declaration.
11705 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11706 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11707 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11708 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11709 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11710 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11711 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11712 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11713 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11714 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11715 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11716 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11717 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11718 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11719 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11720 declaration.
11721 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11722 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11723 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11724 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11725 * user-regs.c (_initialize_user_regs): Add declaration.
11726 * utils.c (_initialize_utils): Add declaration.
11727 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11728 * valops.c (_initialize_valops): Add declaration.
11729 * valprint.c (_initialize_valprint): Add declaration.
11730 * value.c (_initialize_values): Add declaration.
11731 * varobj.c (_initialize_varobj): Add declaration.
11732 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11733 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11734 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11735 * windows-nat.c (_initialize_windows_nat): Add declaration.
11736 (_initialize_check_for_gdb_ini): Add declaration.
11737 (_initialize_loadable): Add declaration.
11738 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11739 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11740 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11741 * xcoffread.c (_initialize_xcoffread): Add declaration.
11742 * xml-support.c (_initialize_xml_support): Add declaration.
11743 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11744 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11745 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11746 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11747
e2de1eec
SM
117482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11749
11750 * regformats/regdat.sh: Generate declaration for init function.
11751
e0037b4c
SM
117522020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11753
11754 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11755 up.
11756 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11757 close_one_inferior>: New methods.
11758 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11759 pass down target to find_inferior_pid.
11760 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11761 Pass down target to find_inferior_ptid.
11762 (gdbsim_target::create_inferior): Pass down target to
11763 add_thread_silent.
11764 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11765 target down to find_inferior_ptid and switch_to_thread.
11766 (gdbsim_target::close): Update to call close_one_inferior.
11767 (struct resume_data): Remove.
11768 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11769 directly, rather than through a void pointer.
11770 (gdbsim_target::resume): Update to call resume_one_inferior.
11771
58920b5b
SM
117722020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11775
4ec89149
PA
117762020-01-12 Pedro Alves <palves@redhat.com>
11777
11778 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11779 directly for the current inferior instead of
11780 discard_all_inferiors.
11781 (discard_all_inferiors): Delete.
11782
7c392d1d
TT
117832020-01-11 Tom Tromey <tom@tromey.com>
11784
11785 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11786 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11787 deprecated_safe_get_selected_frame.
11788
d9ebdab7
TBA
117892020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11790
11791 * inferior.c (print_inferior): Switch inferior before printing it.
11792
f3c469b9
PA
117932020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11794 Pedro Alves <palves@redhat.com>
11795
11796 * progspace-and-thread.c (switch_to_program_space_and_thread):
11797 Assert there's an inferior for PSPACE. Use
11798 switch_to_inferior_no_thread to switch the inferior too.
11799 * progspace.c (program_space::~program_space): Call
11800 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11801 (program_space::free_all_objfiles): Don't call clear_symtab_users
11802 here.
11803 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11804
65c574f6
PA
118052020-01-10 Pedro Alves <palves@redhat.com>
11806
11807 * NEWS: Mention multi-target debugging, "info connections", and
11808 "add-inferior -no-connection".
11809
2f4fcf00
PA
118102020-01-10 Pedro Alves <palves@redhat.com>
11811
11812 * infrun.c: Include "target-connection.h".
11813 (check_multi_target_resumption): New.
11814 (proceed): Call it.
11815 * target-connection.c (make_target_connection_string): Make
11816 extern.
11817 * target-connection.h (make_target_connection_string): Declare.
11818
121b3efd
PA
118192020-01-10 Pedro Alves <palves@redhat.com>
11820
11821 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11822 * inferior.c (uiout_field_connection): New function.
11823 (print_inferior): Add new "connection-id" column.
11824 (add_inferior_command): Show connection number/string of added
11825 inferior.
11826 * process-stratum-target.h
11827 (process_stratum_target::connection_string): New virtual method.
11828 (process_stratum_target::connection_number): New field.
11829 * remote.c (remote_target::connection_string): New override.
11830 * target-connection.c: New file.
11831 * target-connection.h: New file.
11832 * target.c (decref_target): Remove process_stratum targets from
11833 the connection list.
11834 (target_stack::push): Add process_stratum targets to the
11835 connection list.
11836
4f837581
PA
118372020-01-10 Pedro Alves <palves@redhat.com>
11838
11839 Revert:
11840 2016-04-12 Pedro Alves <palves@redhat.com>
11841 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11842 Remove references to name.
11843 * serial.h (struct serial) <name>: Delete.
11844
f4ec508e
PA
118452020-01-10 Pedro Alves <palves@redhat.com>
11846
11847 * gdbarch-selftests.c (register_to_value_test): Remove "target
11848 already pushed" check.
11849
5b6d1e4f
PA
118502020-01-10 Pedro Alves <palves@redhat.com>
11851 John Baldwin <jhb@FreeBSD.org>
11852
11853 * aarch64-linux-nat.c
11854 (aarch64_linux_nat_target::thread_architecture): Adjust.
11855 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11856 (task_command_1): Likewise.
11857 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11858 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11859 (aix_thread_target::store_registers)
11860 (aix_thread_target::thread_alive): Adjust.
11861 * amd64-fbsd-tdep.c: Include "inferior.h".
11862 (amd64fbsd_get_thread_local_address): Pass down target.
11863 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11864 thread's gdbarch instead of target_gdbarch.
11865 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11866 get_last_target_status.
11867 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11868 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11869 inferiors.
11870 (update_inserted_breakpoint_locations): Skip if inferiors with no
11871 execution.
11872 (update_global_location_list): When handling moribund locations,
11873 find representative inferior for location's pspace, and use thread
11874 count of its process_stratum target.
11875 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11876 * bsd-uthread.c (bsd_uthread_target::wait): Use
11877 as_process_stratum_target and adjust thread_change_ptid and
11878 add_thread calls.
11879 (bsd_uthread_target::update_thread_list): Use
11880 as_process_stratum_target and adjust find_thread_ptid,
11881 thread_change_ptid and add_thread calls.
11882 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11883 find_thread_ptid call.
11884 * corelow.c (add_to_thread_list): Adjust add_thread call.
11885 (core_target_open): Adjust add_thread_silent and thread_count
11886 calls.
11887 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11888 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11889 * event-top.c (async_disconnect): Pop targets from all inferiors.
11890 * exec.c (add_target_sections): Push exec target on all inferiors
11891 sharing the program space.
11892 (remove_target_sections): Remove the exec target from all
11893 inferiors sharing the program space.
11894 (exec_on_vfork): New.
11895 * exec.h (exec_on_vfork): Declare.
11896 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11897 Pass it down.
11898 (fbsd_nat_target::update_thread_list): Adjust.
11899 (fbsd_nat_target::resume): Adjust.
11900 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11901 down.
11902 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11903 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11904 get_thread_arch_regcache call.
11905 * fork-child.c (gdb_startup_inferior): Pass target down to
11906 startup_inferior and set_executing.
11907 * gdbthread.h (struct process_stratum_target): Forward declare.
11908 (add_thread, add_thread_silent, add_thread_with_info)
11909 (in_thread_list): Add process_stratum_target parameter.
11910 (find_thread_ptid(inferior*, ptid_t)): New overload.
11911 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11912 parameter.
11913 (all_threads()): Delete overload.
11914 (all_threads, all_non_exited_threads): Add process_stratum_target
11915 parameter.
11916 (all_threads_safe): Use brace initialization.
11917 (thread_count): Add process_stratum_target parameter.
11918 (set_resumed, set_running, set_stop_requested, set_executing)
11919 (threads_are_executing, finish_thread_state): Add
11920 process_stratum_target parameter.
11921 (switch_to_thread): Use is_current_thread.
11922 * i386-fbsd-tdep.c: Include "inferior.h".
11923 (i386fbsd_get_thread_local_address): Pass down target.
11924 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11925 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11926 have_inferiors check.
11927 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11928 (inf_ptrace_target::attach): Adjust.
11929 * infcall.c (run_inferior_call): Adjust.
11930 * infcmd.c (run_command_1): Pass target to
11931 scoped_finish_thread_state.
11932 (proceed_thread_callback): Skip inferiors with no execution.
11933 (continue_command): Rename 'all_threads' local to avoid hiding
11934 'all_threads' function. Adjust get_last_target_status call.
11935 (prepare_one_step): Adjust set_running call.
11936 (signal_command): Use user_visible_resume_target. Compare thread
11937 pointers instead of inferior_ptid.
11938 (info_program_command): Adjust to pass down target.
11939 (attach_command): Mark target's 'thread_executing' flag.
11940 (stop_current_target_threads_ns): New, factored out from ...
11941 (interrupt_target_1): ... this. Switch inferior before making
11942 target calls.
11943 * inferior-iter.h
11944 (struct all_inferiors_iterator, struct all_inferiors_range)
11945 (struct all_inferiors_safe_range)
11946 (struct all_non_exited_inferiors_range): Filter on
11947 process_stratum_target too. Remove explicit.
11948 * inferior.c (inferior::inferior): Push dummy target on target
11949 stack.
11950 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11951 Add process_stratum_target parameter, and pass it down.
11952 (have_live_inferiors): Adjust.
11953 (switch_to_inferior_and_push_target): New.
11954 (add_inferior_command, clone_inferior_command): Handle
11955 "-no-connection" parameter. Use
11956 switch_to_inferior_and_push_target.
11957 (_initialize_inferior): Mention "-no-connection" option in
11958 the help of "add-inferior" and "clone-inferior" commands.
11959 * inferior.h: Include "process-stratum-target.h".
11960 (interrupt_target_1): Use bool.
11961 (struct inferior) <push_target, unpush_target, target_is_pushed,
11962 find_target_beneath, top_target, process_target, target_at,
11963 m_stack>: New.
11964 (discard_all_inferiors): Delete.
11965 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11966 (all_inferiors, all_non_exited_inferiors): Add
11967 process_stratum_target parameter.
11968 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11969 (target_last_proc_target): New global.
11970 (follow_fork_inferior): Push target on new inferior. Pass target
11971 to add_thread_silent. Call exec_on_vfork. Handle target's
11972 reference count.
11973 (follow_fork): Adjust get_last_target_status call. Also consider
11974 target.
11975 (follow_exec): Push target on new inferior.
11976 (struct execution_control_state) <target>: New field.
11977 (user_visible_resume_target): New.
11978 (do_target_resume): Call target_async.
11979 (resume_1): Set target's threads_executing flag. Consider resume
11980 target.
11981 (commit_resume_all_targets): New.
11982 (proceed): Also consider resume target. Skip threads of inferiors
11983 with no execution. Commit resumtion in all targets.
11984 (start_remote): Pass current inferior to wait_for_inferior.
11985 (infrun_thread_stop_requested): Consider target as well. Pass
11986 thread_info pointer to clear_inline_frame_state instead of ptid.
11987 (infrun_thread_thread_exit): Consider target as well.
11988 (random_pending_event_thread): New inferior parameter. Use it.
11989 (do_target_wait): Rename to ...
11990 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11991 down.
11992 (threads_are_resumed_pending_p, do_target_wait): New.
11993 (prepare_for_detach): Adjust calls.
11994 (wait_for_inferior): New inferior parameter. Handle it. Use
11995 do_target_wait_1 instead of do_target_wait.
11996 (fetch_inferior_event): Adjust. Switch to representative
11997 inferior. Pass target down.
11998 (set_last_target_status): Add process_stratum_target parameter.
11999 Save target in global.
12000 (get_last_target_status): Add process_stratum_target parameter and
12001 handle it.
12002 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12003 (context_switch): Check inferior_ptid == null_ptid before calling
12004 inferior_thread().
12005 (get_inferior_stop_soon): Pass down target.
12006 (wait_one): Rename to ...
12007 (poll_one_curr_target): ... this.
12008 (struct wait_one_event): New.
12009 (wait_one): New.
12010 (stop_all_threads): Adjust.
12011 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12012 event's target.
12013 (switch_back_to_stepped_thread): Also consider target.
12014 (print_stop_event): Update.
12015 (normal_stop): Update. Also consider the resume target.
12016 * infrun.h (wait_for_inferior): Remove declaration.
12017 (user_visible_resume_target): New declaration.
12018 (get_last_target_status, set_last_target_status): New
12019 process_stratum_target parameter.
12020 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12021 process_stratum_target parameter, and use it.
12022 (clear_inline_frame_state (thread_info*)): New.
12023 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12024 process_stratum_target parameter.
12025 (clear_inline_frame_state (thread_info*)): Declare.
12026 * linux-fork.c (delete_checkpoint_command): Pass target down to
12027 find_thread_ptid.
12028 (checkpoint_command): Adjust.
12029 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12030 instead of just tweaking inferior_ptid.
12031 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12032 (exit_lwp): Pass target down to find_thread_ptid.
12033 (attach_proc_task_lwp_callback): Pass target down to
12034 add_thread/set_running/set_executing.
12035 (linux_nat_target::attach): Pass target down to
12036 thread_change_ptid.
12037 (get_detach_signal): Pass target down to find_thread_ptid.
12038 Consider last target status's target.
12039 (linux_resume_one_lwp_throw, resume_lwp)
12040 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12041 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12042 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12043 (linux_nat_target::async_wait_fd): New.
12044 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12045 target down.
12046 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12047 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12048 * linux-thread-db.c (struct thread_db_info::process_target): New
12049 field.
12050 (add_thread_db_info): Save target.
12051 (get_thread_db_info): New process_stratum_target parameter. Also
12052 match target.
12053 (delete_thread_db_info): New process_stratum_target parameter.
12054 Also match target.
12055 (thread_from_lwp): Adjust to pass down target.
12056 (thread_db_notice_clone): Pass down target.
12057 (check_thread_db_callback): Pass down target.
12058 (try_thread_db_load_1): Always push the thread_db target.
12059 (try_thread_db_load, record_thread): Pass target down.
12060 (thread_db_target::detach): Pass target down. Always unpush the
12061 thread_db target.
12062 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12063 target down. Always unpush the thread_db target.
12064 (find_new_threads_callback, thread_db_find_new_threads_2)
12065 (thread_db_target::update_thread_list): Pass target down.
12066 (thread_db_target::pid_to_str): Pass current inferior down.
12067 (thread_db_target::get_thread_local_address): Pass target down.
12068 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12069 target down.
12070 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12071 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12072 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12073 (procfs_init_inferior): Rename to ...
12074 (procfs_target::procfs_init_inferior): ... this and adjust.
12075 (procfs_target::create_inferior, procfs_notice_thread)
12076 (procfs_do_thread_registers): Adjust.
12077 * ppc-fbsd-tdep.c: Include "inferior.h".
12078 (ppcfbsd_get_thread_local_address): Pass down target.
12079 * proc-service.c (ps_xfer_memory): Switch current inferior and
12080 program space as well.
12081 (get_ps_regcache): Pass target down.
12082 * process-stratum-target.c
12083 (process_stratum_target::thread_address_space)
12084 (process_stratum_target::thread_architecture): Pass target down.
12085 * process-stratum-target.h
12086 (process_stratum_target::threads_executing): New field.
12087 (as_process_stratum_target): New.
12088 * ravenscar-thread.c
12089 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12090 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12091 down.
12092 * record-btrace.c (record_btrace_target::info_record): Adjust.
12093 (record_btrace_target::record_method)
12094 (record_btrace_target::record_is_replaying)
12095 (record_btrace_target::fetch_registers)
12096 (get_thread_current_frame_id, record_btrace_target::resume)
12097 (record_btrace_target::wait, record_btrace_target::stop): Pass
12098 target down.
12099 * record-full.c (record_full_wait_1): Switch to event thread.
12100 Pass target down.
12101 * regcache.c (regcache::regcache)
12102 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12103 process_stratum_target parameter and handle it.
12104 (current_thread_target): New global.
12105 (get_thread_regcache): Add process_stratum_target parameter and
12106 handle it. Switch inferior before calling target method.
12107 (get_thread_regcache): Pass target down.
12108 (get_thread_regcache_for_ptid): Pass target down.
12109 (registers_changed_ptid): Add process_stratum_target parameter and
12110 handle it.
12111 (registers_changed_thread, registers_changed): Pass target down.
12112 (test_get_thread_arch_aspace_regcache): New.
12113 (current_regcache_test): Define a couple local test_target_ops
12114 instances and use them for testing.
12115 (readwrite_regcache): Pass process_stratum_target parameter.
12116 (cooked_read_test, cooked_write_test): Pass mock_target down.
12117 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12118 (get_thread_arch_aspace_regcache): Add process_stratum_target
12119 parameter.
12120 (regcache::target): New method.
12121 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12122 (regcache::registers_changed_ptid): Add process_stratum_target
12123 parameter.
12124 (regcache::m_target): New field.
12125 (registers_changed_ptid): Add process_stratum_target parameter.
12126 * remote.c (remote_state::supports_vCont_probed): New field.
12127 (remote_target::async_wait_fd): New method.
12128 (remote_unpush_and_throw): Add remote_target parameter.
12129 (get_current_remote_target): Adjust.
12130 (remote_target::remote_add_inferior): Push target.
12131 (remote_target::remote_add_thread)
12132 (remote_target::remote_notice_new_inferior)
12133 (get_remote_thread_info): Pass target down.
12134 (remote_target::update_thread_list): Skip threads of inferiors
12135 bound to other targets. (remote_target::close): Don't discard
12136 inferiors. (remote_target::add_current_inferior_and_thread)
12137 (remote_target::process_initial_stop_replies)
12138 (remote_target::start_remote)
12139 (remote_target::remote_serial_quit_handler): Pass down target.
12140 (remote_target::remote_unpush_target): New remote_target
12141 parameter. Unpush the target from all inferiors.
12142 (remote_target::remote_unpush_and_throw): New remote_target
12143 parameter. Pass it down.
12144 (remote_target::open_1): Check whether the current inferior has
12145 execution instead of checking whether any inferior is live. Pass
12146 target down.
12147 (remote_target::remote_detach_1): Pass down target. Use
12148 remote_unpush_target.
12149 (extended_remote_target::attach): Pass down target.
12150 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12151 (remote_target::append_resumption): Pass down target.
12152 (remote_target::append_pending_thread_resumptions)
12153 (remote_target::remote_resume_with_hc, remote_target::resume)
12154 (remote_target::commit_resume): Pass down target.
12155 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12156 (remote_target::interrupt_query)
12157 (remote_target::remove_new_fork_children)
12158 (remote_target::check_pending_events_prevent_wildcard_vcont)
12159 (remote_target::remote_parse_stop_reply)
12160 (remote_target::process_stop_reply): Pass down target.
12161 (first_remote_resumed_thread): New remote_target parameter. Pass
12162 it down.
12163 (remote_target::wait_as): Pass down target.
12164 (unpush_and_perror): New remote_target parameter. Pass it down.
12165 (remote_target::readchar, remote_target::remote_serial_write)
12166 (remote_target::getpkt_or_notif_sane_1)
12167 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12168 down target.
12169 (remote_target::mourn_inferior): Pass down target. Use
12170 remote_unpush_target.
12171 (remote_target::core_of_thread)
12172 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12173 (remote_target::pid_to_exec_file)
12174 (remote_target::thread_handle_to_thread_info): Pass down target.
12175 (remote_target::async_wait_fd): New.
12176 * riscv-fbsd-tdep.c: Include "inferior.h".
12177 (riscv_fbsd_get_thread_local_address): Pass down target.
12178 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12179 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12180 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12181 Adjust.
12182 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12183 * solib-svr4.c (enable_break): Pass down target.
12184 * spu-multiarch.c (parse_spufs_run): Pass down target.
12185 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12186 * target-delegates.c: Regenerate.
12187 * target.c (g_target_stack): Delete.
12188 (current_top_target): Return the current inferior's top target.
12189 (target_has_execution_1): Refer to the passed-in inferior's top
12190 target.
12191 (target_supports_terminal_ours): Check whether the initial
12192 inferior was already created.
12193 (decref_target): New.
12194 (target_stack::push): Incref/decref the target.
12195 (push_target, push_target, unpush_target): Adjust.
12196 (target_stack::unpush): Defref target.
12197 (target_is_pushed): Return bool. Adjust to refer to the current
12198 inferior's target stack.
12199 (dispose_inferior): Delete, and inline parts ...
12200 (target_preopen): ... here. Only dispose of the current inferior.
12201 (target_detach): Hold strong target reference while detaching.
12202 Pass target down.
12203 (target_thread_name): Add assertion.
12204 (target_resume): Pass down target.
12205 (target_ops::beneath, find_target_at): Adjust to refer to the
12206 current inferior's target stack.
12207 (get_dummy_target): New.
12208 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12209 has a thread running.
12210 (initialize_targets): Rename to ...
12211 (_initialize_target): ... this.
12212 * target.h: Include "gdbsupport/refcounted-object.h".
12213 (struct target_ops): Inherit refcounted_object.
12214 (target_ops::shortname, target_ops::longname): Make const.
12215 (target_ops::async_wait_fd): New method.
12216 (decref_target): Declare.
12217 (struct target_ops_ref_policy): New.
12218 (target_ops_ref): New typedef.
12219 (get_dummy_target): Declare function.
12220 (target_is_pushed): Return bool.
12221 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12222 (all_matching_threads_iterator::all_matching_threads_iterator):
12223 Handle filter target.
12224 * thread-iter.h (struct all_matching_threads_iterator, struct
12225 all_matching_threads_range, class all_non_exited_threads_range):
12226 Filter by target too. Remove explicit.
12227 * thread.c (threads_executing): Delete.
12228 (inferior_thread): Pass down current inferior.
12229 (clear_thread_inferior_resources): Pass down thread pointer
12230 instead of ptid_t.
12231 (add_thread_silent, add_thread_with_info, add_thread): Add
12232 process_stratum_target parameter. Use it for thread and inferior
12233 searches.
12234 (is_current_thread): New.
12235 (thread_info::deletable): Use it.
12236 (find_thread_ptid, thread_count, in_thread_list)
12237 (thread_change_ptid, set_resumed, set_running): New
12238 process_stratum_target parameter. Pass it down.
12239 (set_executing): New process_stratum_target parameter. Pass it
12240 down. Adjust reference to 'threads_executing'.
12241 (threads_are_executing): New process_stratum_target parameter.
12242 Adjust reference to 'threads_executing'.
12243 (set_stop_requested, finish_thread_state): New
12244 process_stratum_target parameter. Pass it down.
12245 (switch_to_thread): Also match inferior.
12246 (switch_to_thread): New process_stratum_target parameter. Pass it
12247 down.
12248 (update_threads_executing): Reimplement.
12249 * top.c (quit_force): Pop targets from all inferior.
12250 (gdb_init): Don't call initialize_targets.
12251 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12252 Declare.
12253 (windows_add_thread, windows_delete_thread): Adjust.
12254 (get_windows_debug_event): Rename to ...
12255 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12256 * tracefile-tfile.c (tfile_target_open): Pass down target.
12257 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12258 Forward declare.
12259 (switch_to_thread): Add process_stratum_target parameter.
12260 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12261 parameter. Use it.
12262 (mi_on_resume): Pass target down.
12263 * nat/fork-inferior.c (startup_inferior): Add
12264 process_stratum_target parameter. Pass it down.
12265 * nat/fork-inferior.h (startup_inferior): Add
12266 process_stratum_target parameter.
12267 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12268
75c6c844
PA
122692020-01-10 Pedro Alves <palves@redhat.com>
12270
12271 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12272 directly. Instead find the first thread in the thread list and
12273 use switch_to_thread.
12274
78f2c40a
PA
122752020-01-10 Pedro Alves <palves@redhat.com>
12276
12277 * remote.c (remote_target::remote_add_inferior): Don't bind a
12278 process to the current inferior if the current inferior is already
12279 bound to a process.
12280
e7af6c70
TBA
122812020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12282 Pedro Alves <palves@redhat.com>
12283
12284 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12285 If no process is specified, return null_ptid instead of
12286 inferior_ptid.
12287 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12288 TARGET_WAITKIND_SIGNALLED with no pid.
12289
31ba933e
PA
122902020-01-10 Pedro Alves <palves@redhat.com>
12291
12292 * remote.c (first_remote_resumed_thread): New.
12293 (remote_target::wait_as): Use it as default event_ptid instead of
12294 inferior_ptid.
12295
735fc2ca
PA
122962020-01-10 Pedro Alves <palves@redhat.com>
12297
12298 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12299
c17e02e1
PA
123002020-01-10 Pedro Alves <palves@redhat.com>
12301
12302 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12303 not -1.
12304
ab1ddbcf
PA
123052020-01-10 Pedro Alves <palves@redhat.com>
12306
12307 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12308 ptid to get_last_target_status.
12309 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12310 ptid to get_last_target_status.
12311 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12312 get_last_target_status.
12313 (info_program_command): Don't pass a target_waitstatus to
12314 get_last_target_status.
12315 * infrun.c (init_wait_for_inferior): Use
12316 nullify_last_target_wait_ptid.
12317 (get_last_target_status): Handle nullptr arguments.
12318 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12319 (print_stop_event): Don't pass a ptid to get_last_target_status.
12320 (normal_stop): Don't pass a ptid to get_last_target_status.
12321 * infrun.h (get_last_target_status, set_last_target_status): Move
12322 comments here and update.
12323 (nullify_last_target_wait_ptid): Declare.
12324 * linux-fork.c (fork_load_infrun_state): Remove local extern
12325 declaration of nullify_last_target_wait_ptid.
12326 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12327 to get_last_target_status.
12328
f3f8ece4
PA
123292020-01-10 Pedro Alves <palves@redhat.com>
12330
12331 * gdbthread.h (scoped_restore_current_thread)
12332 <dont_restore, restore, m_dont_restore>: Declare.
12333 * thread.c (thread_alive): Add assertion. Return bool.
12334 (switch_to_thread_if_alive): New.
12335 (prune_threads): Switch inferior/thread.
12336 (print_thread_info_1): Switch thread before calling target methods.
12337 (scoped_restore_current_thread::restore): New, factored out from
12338 ...
12339 (scoped_restore_current_thread::~scoped_restore_current_thread):
12340 ... this.
12341 (scoped_restore_current_thread::scoped_restore_current_thread):
12342 Add assertion.
12343 (thread_apply_all_command, thread_select): Use
12344 switch_to_thread_if_alive.
12345 * infrun.c (proceed, restart_threads, handle_signal_stop)
12346 (switch_back_to_stepped_thread): Switch current thread before
12347 calling target methods.
12348
db2d40f7
PA
123492020-01-10 Pedro Alves <palves@redhat.com>
12350
12351 * inferior.c (switch_to_inferior_no_thread): New function,
12352 factored out from ...
12353 (inferior_command): ... here.
12354 * inferior.h (switch_to_inferior_no_thread): Declare.
12355 * mi/mi-main.c (run_one_inferior): Use
12356 switch_to_inferior_no_thread.
12357
bd420a2d
PA
123582020-01-10 Pedro Alves <palves@redhat.com>
12359
12360 * infcmd.c (kill_command): Remove dead code.
12361
ddf5db90
PA
123622020-01-10 Pedro Alves <palves@redhat.com>
12363
12364 * remote.c (remote_target::mourn_inferior): No longer check
12365 whether the target is running.
12366
5018ce90
PA
123672020-01-10 Pedro Alves <palves@redhat.com>
12368
12369 * corelow.c (core_target::has_execution): Change parameter type to
12370 inferior pointer.
12371 * inferior.c (number_of_live_inferiors): Use
12372 inferior::has_execution instead of target_has_execution_1.
12373 * inferior.h (inferior::has_execution): New.
12374 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12375 inferior::has_execution instead of target_has_execution_1.
12376 * process-stratum-target.c
12377 (process_stratum_target::has_execution): Change parameter type to
12378 inferior pointer. Check the inferior's PID instead of
12379 inferior_ptid.
12380 * process-stratum-target.h
12381 (process_stratum_target::has_execution): Change parameter type to
12382 inferior pointer.
12383 * record-full.c (record_full_core_target::has_execution): Change
12384 parameter type to inferior pointer.
12385 * target.c (target_has_execution_1): Change parameter type to
12386 inferior pointer.
12387 (target_has_execution_current): Adjust.
12388 * target.h (target_ops::has_execution): Change parameter type to
12389 inferior pointer.
12390 (target_has_execution_1): Change parameter type to inferior
12391 pointer. Change return type to bool.
12392 * tracefile.h (tracefile_target::has_execution): Change parameter
12393 type to inferior pointer.
12394
74375d18
PA
123952020-01-10 Pedro Alves <palves@redhat.com>
12396
12397 * exceptions.c (print_flush): Remove current_top_target() check.
12398
acdf84a6
PA
123992020-01-10 Pedro Alves <palves@redhat.com>
12400
12401 * remote.c (show_remote_exec_file): Show the current inferior's
12402 exec-file instead of the command variable's value.
12403
ec506636
PA
124042020-01-10 Pedro Alves <palves@redhat.com>
12405
12406 * record-full.c (record_full_resume_ptid): New global.
12407 (record_full_target::resume): Set it.
12408 (record_full_wait_1): Use record_full_resume_ptid instead of
12409 inferior_ptid.
12410
873657b9
PA
124112020-01-10 Pedro Alves <palves@redhat.com>
12412
12413 * gdbthread.h (scoped_restore_current_thread)
12414 <dont_restore, restore, m_dont_restore>: Declare.
12415 * thread.c (thread_alive): Add assertion. Return bool.
12416 (switch_to_thread_if_alive): New.
12417 (prune_threads): Switch inferior/thread.
12418 (print_thread_info_1): Switch thread before calling target methods.
12419 (scoped_restore_current_thread::restore): New, factored out from
12420 ...
12421 (scoped_restore_current_thread::~scoped_restore_current_thread):
12422 ... this.
12423 (scoped_restore_current_thread::scoped_restore_current_thread):
12424 Add assertion.
12425 (thread_apply_all_command, thread_select): Use
12426 switch_to_thread_if_alive.
12427
7f0ae84c
GB
124282020-01-10 George Barrett <bob@bob131.so>
12429
12430 * stap-probe.c (stap_modify_semaphore): Don't check for null
12431 semaphores.
12432 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12433 for null semaphores.
12434
f5a7c406
AB
124352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12436
12437 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12438 all source windows, and maintain horizontal scroll status while
12439 doing so.
12440
9ae6bf64
TT
124412020-01-09 Tom Tromey <tom@tromey.com>
12442
12443 PR tui/18932:
12444 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12445 update_source_window, not print_source_lines.
12446
b2efe70c
AB
124472020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12448
12449 * tui/tui.c (tui_enable): Register tui hooks after calling
12450 tui_display_main.
12451
5f23a082
CB
124522020-01-09 Christian Biesinger <cbiesinger@google.com>
12453
12454 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12455
3061113b
SM
124562020-01-08 Simon Marchi <simon.marchi@efficios.com>
12457
12458 * thread.c (print_thread_info_1): Fix indentation.
12459
57d75002
CB
124602020-01-09 Christian Biesinger <cbiesinger@google.com>
12461
12462 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12463 unique_xmalloc_ptr outside the if to always free the demangled name.
12464
6a053cb1
TT
124652020-01-08 Tom Tromey <tromey@adacore.com>
12466
12467 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12468 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12469 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12470 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12471 Remove.
12472 (section_offsets): New typedef.
12473 * symtab.c (fixup_section, get_msymbol_address): Update.
12474 * symmisc.c (dump_msymbols): Update.
12475 * symfile.h (relative_addr_info_to_section_offsets)
12476 (symfile_map_offsets_to_segments): Update.
12477 * symfile.c (build_section_addr_info_from_objfile)
12478 (init_objfile_sect_indices): Update.
12479 (struct place_section_arg): Change type of "offsets".
12480 (place_section): Update.
12481 (relative_addr_info_to_section_offsets): Change type of
12482 "section_offsets". Remove "num_sections" parameter.
12483 (default_symfile_offsets, syms_from_objfile_1)
12484 (set_objfile_default_section_offset): Update.
12485 (reread_symbols): No need to preserve section offsets by hand.
12486 (symfile_map_offsets_to_segments): Change type of "offsets".
12487 * stap-probe.c (relocate_address): Update.
12488 * stabsread.h (process_one_symbol): Update.
12489 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12490 (solib_target_relocate_section_addresses): Update.
12491 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12492 Update.
12493 * solib-frv.c (frv_relocate_main_executable): Update.
12494 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12495 * solib-aix.c (solib_aix_get_section_offsets): Change return
12496 type.
12497 (solib_aix_solib_create_inferior_hook): Update.
12498 * remote.c (remote_target::get_offsets): Update.
12499 * psymtab.c (find_pc_sect_psymtab): Update.
12500 * psympriv.h (struct partial_symbol) <address, text_low,
12501 text_high>: Update.
12502 * objfiles.h (obj_section_offset): Update.
12503 (struct objfile) <section_offsets>: Change type.
12504 <num_sections>: Remove.
12505 (objfile_relocate): Update.
12506 * objfiles.c (entry_point_address_query): Update
12507 (relocate_one_symbol): Change type of "section_offsets".
12508 (objfile_relocate1, objfile_relocate1): Change type of
12509 "new_offsets".
12510 (objfile_rebase1): Update.
12511 * mipsread.c (mipscoff_symfile_read): Update.
12512 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12513 parameter.
12514 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12515 (parse_external, psymtab_to_symtab_1): Update.
12516 * machoread.c (macho_symfile_offsets): Update.
12517 * ia64-tdep.c (ia64_find_unwind_table): Update.
12518 * hppa-tdep.c (read_unwind_info): Update.
12519 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12520 * dwarf2read.c (create_addrmap_from_index)
12521 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12522 (process_psymtab_comp_unit_reader, add_partial_symbol)
12523 (add_partial_subprogram, process_full_comp_unit)
12524 (read_file_scope, read_func_scope, read_lexical_block_scope)
12525 (read_call_site_scope, dwarf2_rnglists_process)
12526 (dwarf2_ranges_process, dwarf2_ranges_read)
12527 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12528 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12529 Update.
12530 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12531 Update.
12532 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12533 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12534 (process_one_symbol): Change type of "section_offsets".
12535 * ctfread.c (get_objfile_text_range): Update.
12536 * coffread.c (coff_symtab_read, enter_linenos)
12537 (process_coff_symbol): Update.
12538 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12539 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12540
456e800a
TT
125412020-01-08 Tom Tromey <tromey@adacore.com>
12542
12543 * dwarf2read.c (parse_macro_definition): Use std::string.
12544 (parse_macro_definition): Likewise.
12545
6dfa2fc2
TT
125462020-01-08 Tom Tromey <tromey@adacore.com>
12547
12548 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12549 (ATTR_ALLOC_CHUNK): Remove.
12550
421d1616
TT
125512020-01-08 Tom Tromey <tromey@adacore.com>
12552
12553 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12554
43816ebc
TT
125552020-01-08 Tom Tromey <tromey@adacore.com>
12556
12557 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12558 (dwarf2_compute_name, open_dwo_file): Likewise.
12559 (process_enumeration_scope): Use std::vector.
12560 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12561 (partial_die_info::fixup, dwarf2_start_subfile)
12562 (guess_full_die_structure_name, dwarf2_name): Likewise.
12563 (determine_prefix): Update.
12564 (guess_full_die_structure_name): Make return type const.
12565 (partial_die_full_name): Return unique_xmalloc_ptr.
12566 (DW_FIELD_ALLOC_CHUNK): Remove.
12567
4212d509
TT
125682020-01-07 Tom Tromey <tromey@adacore.com>
12569
12570 PR build/24937:
12571 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12572
06a6207a
JT
125732020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12574
12575 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12576
153d79c4
AB
125772020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12578
12579 * stack.c (print_frame_info): Move disassemble_next_line code
12580 inside source_print block.
12581
66182876
EZ
125822020-01-06 Eli Zaretskii <eliz@gnu.org>
12583
12584 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12585 gdb/signals.h, as we are now using native signal symbols.
12586
cbfa8581
SV
125872020-01-06 Shahab Vahedi <shahab@synopsys.com>
12588
12589 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12590 overflow by an early check of content vs threshold.
aac66a4c 12591 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12592 Likewise.
12593
3f602821
EZ
125942020-01-06 Eli Zaretskii <eliz@gnu.org>
12595
12596 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12597
a08c904d
JT
125982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12599
12600 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12601 export table if no section contains it's RVA.
12602
89a65580
EZ
126032020-01-06 Eli Zaretskii <eliz@gnu.org>
12604
12605 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12606
8b7fcda2
HD
126072020-01-06 Hannes Domani <ssbssa@yahoo.de>
12608
12609 * source.c (print_source_lines_base): Set last_line_listed.
12610
a61b4f69
SV
126112020-01-06 Shahab Vahedi <shahab@synopsys.com>
12612
12613 * tui/tui-disasm.c: Remove trailing spaces.
12614
559e7e50
EZ
126152020-01-06 Eli Zaretskii <eliz@gnu.org>
12616 Pedro Alves <palves@redhat.com>
12617
12618 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12619 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12620 (windows_gdb_signal_to_target): New function, uses the above
12621 enumeration to convert GDB internal signal codes to equivalent
12622 Windows codes.
12623 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12624 * windows-nat.c: Include "gdb_wait.h".
12625 (get_windows_debug_event): Extract the fatal exception from the
12626 exit status and convert to the equivalent Posix signal number.
12627 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12628 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12629 * gdbsupport/gdb_wait.c: New file, implements
12630 windows_status_to_termsig.
12631 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12632 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12633
f2302a34
AB
126342020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12635
12636 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12637 show_layout.
12638
6a5206eb
LM
126392020-01-05 Luis Machado <luis.machado@linaro.org>
12640
12641 * aarch64-linux-nat.c
12642 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12643 and bfd_mach_aarch64.
12644
6ec1d75e
PW
126452020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12646
12647 * ui-file.c (stdio_file::can_emit_style_escape)
12648 (tee_file::can_emit_style_escape): Ensure style is used also on
12649 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12650 to gdb_stdout.
12651 * main.c (set_gdb_data_directory): Use file style to output the
12652 warning that the given pathname is not a directory.
12653 * top.c (show_history_filename, gdb_safe_append_history)
12654 (show_gdb_datadir): Use file style.
12655
44f81a76
HD
126562020-01-03 Hannes Domani <ssbssa@yahoo.de>
12657
12658 * solib-target.c (struct lm_info_target):
12659 Change offsets to be a unique_xmalloc_ptr.
12660 (solib_target_relocate_section_addresses): Update.
12661
25057eb0
HD
126622020-01-03 Hannes Domani <ssbssa@yahoo.de>
12663
12664 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12665
6e2118f5
BE
126662020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12667
12668 * MAINTAINERS (Write After Approval): Add myself.
12669
8133c7dc
LM
126702020-01-02 Luis Machado <luis.machado@linaro.org>
12671
12672 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12673 Cell BE architecture.
12674 * target.h (struct target_ops) <thread_architecture>: Likewise.
12675
48189bec
HD
126762020-01-01 Hannes Domani <ssbssa@yahoo.de>
12677
12678 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12679
ead1063b
HD
126802020-01-01 Hannes Domani <ssbssa@yahoo.de>
12681
12682 * MAINTAINERS (Write After Approval): Add myself.
12683
e5d78223
JB
126842020-01-01 Joel Brobecker <brobecker@adacore.com>
12685
12686 * gdbarch.sh: Update copyright year range of generated files.
12687
b811d2c2
JB
126882020-01-01 Joel Brobecker <brobecker@adacore.com>
12689
12690 Update copyright year range in all GDB files.
12691
5f4def5c
JB
126922020-01-01 Joel Brobecker <brobecker@adacore.com>
12693
12694 * copyright.py: Convert to Python 3.
12695
51fd4002
JB
126962020-01-01 Joel Brobecker <brobecker@adacore.com>
12697
12698 * copyright.py: Adapt after move of gnulib directory from gdb
12699 directory to toplevel directory.
12700
5fb651f2
JB
127012020-01-01 Joel Brobecker <brobecker@adacore.com>
12702
12703 * copyright.py (main): Exit if run from the wrong directory.
12704
5dd8bf88
JB
127052020-01-01 Joel Brobecker <brobecker@adacore.com>
12706
12707 * top.c (print_gdb_version): Change copyright year to 2020.
12708
9f71dacb 127092020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12710
9f71dacb 12711 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12712
9f71dacb 12713For older changes see ChangeLog-2019.
c906108c
SS
12714\f
12715Local Variables:
12716mode: change-log
12717left-margin: 8
12718fill-column: 74
12719version-control: never
57da7796 12720coding: utf-8
c906108c 12721End: