]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_UNSIGNED
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c6d940a9
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4 type::is_unsigned.
5
653223d3
SM
62020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
9 methods.
10 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
11 sites to use type::set_is_unsigned.
12
55ea94da
FH
132020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
14 Adam Renquinha <arenquinha@cimeq.qc.ca>
15
16 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
17 pointer and stack frame offset when unwinding.
18
6791b117
PA
192020-09-13 Pedro Alves <pedro@palves.net>
20
21 * NEWS: Document "-break-insert --qualified".
22 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
23
77f2120b
PA
242020-09-13 Pedro Alves <pedro@palves.net>
25
26 * linespec.c (classify_mtype, compare_msyms): Delete.
27 (search_minsyms_for_name): Remove classification logic. Instead
28 filter out trampoline symbols if we also found an external
29 function of the same name.
30
ed6a896c
JB
312020-09-13 Joel Brobecker <brobecker@adacore.com>
32
33 * NEWS: Create a new section for the next release branch.
34 Rename the section of the current branch, now that it has
35 been cut.
36
32aea73e
JB
372020-09-13 Joel Brobecker <brobecker@adacore.com>
38
39 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
40 * version.in: Bump version to 11.0.50.DATE-git.
41
8087c3fa
JB
422020-09-12 Joel Brobecker <brobecker@adacore.com>
43
44 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
45
2a67f09d
FW
462020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
47 Felix Willgerodt <Felix.Willgerodt@intel.com>
48
49 * gdbarch.sh: Added bfloat16 type.
50 * gdbarch.c: Regenerated.
51 * gdbarch.h: Regenerated.
52 * gdbtypes.c (floatformats_bfloat16): New struct.
53 (gdbtypes_post_init): Add builtin_bfloat16.
54 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
55 (floatformats_bfloat16): New struct.
56 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
57 (i386_ymm_type): Add field "v16_bfloat16"
58 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
59 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
60 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
61 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
62 * features/i386/64bit-avx512.xml: Add bfloat16 type.
63 * features/i386/64bit-avx512.c: Regenerated.
64 * features/i386/64bit-sse.xml: Add bfloat16 type.
65 * features/i386/64bit-sse.c: Regenerated.
66
1347d111
FW
672020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
68
69 * i386-tdep.c (i386_zmm_type): Fix field names.
70 (i386_ymm_type): Fix field names.
71
7a4e8e7d
TBA
722020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
73
74 * breakpoint.c: Fix typo in the help message of the
75 "set breakpoint condition-evaluation" command.
76
cf4ac4be
KR
772020-09-10 Kamil Rytarowski <n54@gmx.com>
78
79 * nbsd-nat.c: Include "nat/netbsd-nat.h".
80 * (nbsd_nat_target::pid_to_exec_file)
81 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
82 (nbsd_nat_target::post_startup_inferior)
83 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
84 (nbsd_add_threads): Switch local code to common gdb/nat functions.
85 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
86 * (nbsd_thread_lister): Remove.
87
f404573e
KR
882020-09-10 Kamil Rytarowski <n54@gmx.com>
89
90 * fork-inferior.c (startup_inferior): Avoid double free.
91
1ccb2c17
KR
922020-09-10 Kamil Rytarowski <n54@gmx.com>
93
94 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
95 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
96
feedfcc7
KR
972020-09-10 Kamil Rytarowski <n54@gmx.com>
98
99 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
100 * netbsd-nat.c: Include <sys/ptrace.h>.
101 * (netbsd_nat::enable_proc_events): Add.
102
c489f8c6
KR
1032020-09-10 Kamil Rytarowski <n54@gmx.com>
104
105 * netbsd-nat.h: Include "gdbsupport/function-view.h".
106 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
107 (netbsd_nat::for_each_thread): Add.
108 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
109 "gdbsupport/common-debug.h".
110 * (netbsd_nat::netbsd_thread_lister)
111 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
112 (netbsd_nat::for_each_thread): Add.
113
330662f6
KR
1142020-09-10 Kamil Rytarowski <n54@gmx.com>
115
116 * netbsd-nat.h: Include <unistd.h>.
117 * (netbsd_nat::pid_to_exec_file): Add.
118 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
119 * (netbsd_nat::pid_to_exec_file) Add.
120
70b67307
KR
1212020-09-10 Kamil Rytarowski <n54@gmx.com>
122
123 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
124
99cf6da6
KR
1252020-09-10 Kamil Rytarowski <n54@gmx.com>
126
127 * netbsd-nat.h: New file.
128 * netbsd-nat.c: Likewise.
129
1b788fb6
TT
1302020-09-09 Tom Tromey <tromey@adacore.com>
131
132 * ada-lang.c (remove_extra_symbols): Do not increment when
133 removing an element
134
03b0a45f
TT
1352020-09-08 Tom Tromey <tromey@adacore.com>
136
137 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
138
3cae4447
TT
1392020-09-08 Tom Tromey <tromey@adacore.com>
140
141 PR win32/25302:
142 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
143 (gdb_bfd_init_data): New function.
144 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
145
7f08fd51
TBA
1462020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
147
148 * infrun.c (fetch_inferior_event): Use
149 `switch_to_target_no_thread` to switch the target.
150
3e6ff933
TT
1512020-09-06 Tom Tromey <tom@tromey.com>
152
153 * symfile.h (dwarf2_free_objfile): Don't declare.
154
e56798df
AKS
1552020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
156
157 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
158 to match 16 byte real/complex type generated by Flang compiler.
159
8f5c6526
TV
1602020-09-03 Tom de Vries <tdevries@suse.de>
161
162 PR breakpoint/26546
163 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
164 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
165
c5065df0
SM
1662020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * maint.c (index_digits): New function.
169 (struct maint_print_section_data): Remove.
170 (print_bfd_section_info): Remove print_data parameter, add arg
171 and index_digits.
172 (print_objfile_section_info): Likewise.
173 (print_bfd_section_info_maybe_relocated): Likewise (plus
174 objfile).
175 (maintenance_info_sections): Adjust calls.
176
02c6f3f1
TT
1772020-09-02 Tom Tromey <tromey@adacore.com>
178
179 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
180 for null pointers.
181 (ada_varobj_adjust_for_child_access): Special-case null pointers.
182
ef5e5b0b
SM
1832020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * bcache.h (struct bcache) <insert>: Change type of `added` to
186 pointer to bool.
187 * bcache.c (bcache::insert): Likewise.
188 * gdbtypes.c (check_types_worklist): Adjust.
189 * psymtab.c (add_psymbol_to_bcache): Adjust.
190
973695d6
KB
1912020-08-31 Kevin Buettner <kevinb@redhat.com>
192
193 * corelow.c (unordered_set): Include.
194 (class core_target): Add field 'm_core_unavailable_mappings'.
195 (core_target::build_file_mappings): Print only one warning
196 per inaccessible file. Add unavailable/broken mappings
197 to m_core_unavailable_mappings.
198 (core_target::xfer_partial): Call...
199 (core_target::xfer_memory_via_mappings): New method.
200
264fc0e2
SM
2012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
204 type to bool.
205
2de01bdb
SM
2062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * dwarf2/read.c (struct field_info): Fix indentation.
209
f3bd50f1
SM
2102020-08-31 Simon Marchi <simon.marchi@efficios.com>
211
212 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
213 ordering in comment.
214 * frame.c (frame_id_eq): Fix indentation.
215
22b9b4b0
SL
2162020-08-31 Scott Linder <scott@scottlinder.com>
217 Simon Marchi <simon.marchi@efficios.com>
218
219 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
220 inline frame ids in outer frame.
221
84154d16
SM
2222020-08-31 Simon Marchi <simon.marchi@efficios.com>
223
224 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
225 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
226 (outer_frame_id): Use FID_STACK_OUTER instead of
227 FID_STACK_INVALID.
228 (frame_id_p): Don't check for outer_frame_id.
229
8efaf6b3
SM
2302020-08-31 Simon Marchi <simon.marchi@efficios.com>
231
232 * frame-unwind.c (frame_unwind_got_optimized): Don't set
233 regnum/frame in value. Call allocate_value_lazy.
234 * frame.c (frame_unwind_register_value): Use
235 val_print_not_saved.
236
fe1fe7ea
SM
2372020-08-31 Simon Marchi <simon.marchi@efficios.com>
238
239 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
240
f7c7700d
PA
2412020-08-29 Pedro Alves <pedro@palves.net>
242
243 * progspace.c (print_program_space): Use all_inferiors. Switch to
244 the inferior before calling target_pid_to_str.
245
e0814aae
TT
2462020-08-28 Tom Tromey <tom@tromey.com>
247
248 * xcoffread.c (xcoff_end_psymtab): Update comment.
249 * dbxread.c (dbx_end_psymtab): Update comment.
250
626d2320
TV
2512020-08-28 Tom de Vries <tdevries@suse.de>
252
253 PR breakpoint/26544
254 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
255 event_location.
256 (create_breakpoint): Same.
257 (base_breakpoint_decode_location): Same.
258 (bkpt_create_sals_from_location): Same.
259 (bkpt_decode_location): Same.
260 (bkpt_probe_create_sals_from_location): Same.
261 (bkpt_probe_decode_location): Same.
262 (tracepoint_create_sals_from_location): Same.
263 (tracepoint_decode_location): Same.
264 (tracepoint_probe_decode_location): Same.
265 (strace_marker_create_sals_from_location): Same.
266 (strace_marker_decode_location): Same.
267 (create_sals_from_location_default): Same.
268 (decode_location_default): Same.
269 * breakpoint.h (struct breakpoint_ops): Same.
270 (create_breakpoint): Same.
271 * linespec.h (decode_line_full): Same.
272 * linespec.c (decode_line_full): Same. Throw error if
273 result.size () == 0.
274
df631783
PA
2752020-08-27 Pedro Alves <pedro@palves.net>
276
277 PR gdb/26524
278 * breakpoint.c (until_break_fsm) <location_breakpoint,
279 caller_breakpoint>: Delete fields.
280 <breakpoints>: New field.
281 <until_break_fsm>: Adjust to save a breakpoint vector instead of
282 two individual breakpoints.
283 (until_break_fsm::should_stop): Loop over breakpoints in the
284 breakpoint vector.
285 (until_break_fsm::clean_up): Adjust to clear the breakpoints
286 vector.
287 (until_break_command): Handle location expanding into multiple
288 sals.
289
b2b38aa4
PA
2902020-08-27 Pedro Alves <pedro@palves.net>
291
292 PR gdb/26523
293 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
294 bp_until breakpoints user-specified locations. Update intro
295 comment.
296
b886559f
SM
2972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
300 gdb_bfd_sections): New.
301 * maint.c (print_bfd_section_info): Change param type to
302 maint_print_section_data.
303 (print_objfile_section_info): Likewise.
304 (print_bfd_section_info_maybe_relocated): Likewise.
305 (maintenance_info_sections): Use gdb_bfd_sections.
306
4c6e63bf
SV
3072020-08-25 Shahab Vahedi <shahab@synopsys.com>
308
309 * MAINTAINERS: Add ARC target and maintainer.
310
8d7f0635
AK
3112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
312
313 * configure.tgt: ARC support for GNU/Linux.
314 * Makefile.in (ALL_TARGET_OBJS): Likewise.
315 * arc-linux-tdep.c: New file.
316 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
317 * arc-tdep.c (arc_write_pc): Use it.
318
fdd8731b
SV
3192020-08-25 Shahab Vahedi <shahab@synopsys.com>
320
321 * arc-tdep.c (arc_check_for_hardware_loop): New.
322 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
323
22459524
SV
3242020-08-25 Shahab Vahedi <shahab@synopsys.com>
325
326 * arc-tdep.h: Include "gdbarch.h".
327
995d3a19
SV
3282020-08-25 Shahab Vahedi <shahab@synopsys.com>
329
330 * arch/arc.h
331 (arc_gdbarch_features): New class to stir the selection of target XML.
332 (arc_create_target_description): Use FEATURES to choose XML target.
333 (arc_lookup_target_description): Use arc_create_target_description
334 to create _new_ target descriptions or return the already created
335 ones if the FEATURES is the same.
336 * arch/arc.c: Implementation of prototypes described above.
337 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
338 (arc_gdbarch_features_init): Initialize the FEATURES struct.
339 * arc-tdep.c (*_feature_name): Make feature names consistent.
340 (arc_register_feature): A new struct to hold information about
341 registers of a particular target/feature.
342 (arc_check_tdesc_feature): Check if XML provides registers in
343 compliance with ARC_REGISTER_FEATURE structs.
344 (arc_update_acc_reg_names): Add aliases for r58 and r59.
345 (determine_*_reg_feature_set): Which feature name to look for.
346 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
347 (mach_type_to_arc_isa): Convert from a set of binutils machine types
348 to expected ISA enums to be used in arc_gdbarch_features structs.
349 * features/Makefile (FEATURE_XMLFILES): Add new files.
350 * gdb/features/arc/v1-aux.c: New file.
351 * gdb/features/arc/v1-aux.xml: Likewise.
352 * gdb/features/arc/v1-core.c: Likewise.
353 * gdb/features/arc/v1-core.xml: Likewise.
354 * gdb/features/arc/v2-aux.c: Likewise.
355 * gdb/features/arc/v2-aux.xml: Likewise.
356 * gdb/features/arc/v2-core.c: Likewise.
357 * gdb/features/arc/v2-core.xml: Likewise.
358 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
359
3945d2d7
GM
3602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
361 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 PR m2/26372
fc5d6901 364 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
365 an assert. Remove single element array indexing pattern as the
366 MULTI_SUBSCRIPT support will handle this case too.
367
2677f2d3
SM
3682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * value.h (valprint_check_validity): Move declaration from
371 here...
372 * valprint.h (valprint_check_validity): ... to here.
373
c426fddb
SM
3742020-08-24 Simon Marchi <simon.marchi@efficios.com>
375
376 * debug.h: New file.
377 * debug.c (debug_prefixed_vprintf): New function.
378 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
379 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
380
1eb8556f
SM
3812020-08-24 Simon Marchi <simon.marchi@efficios.com>
382
383 * infrun.h (infrun_debug_printf_1): New function declaration.
384 (infrun_debug_printf): New macro.
385 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
386 throughout.
387 (infrun_debug_printf): New function.
388 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
389 (handle_jit_event): Likewise.
390
b8fff44e
MW
3912020-08-21 Mark Wielaard <mark@klomp.org>
392
393 * ada-lex.l: Extend register warnings diagnostics comment for g++.
394
d19c3068
SM
3952020-08-22 Simon Marchi <simon.marchi@efficios.com>
396
397 * frame.c (enum class frame_id_status): New.
398 (struct frame_info) <this_id::p>: Change type to frame_id_status.
399 (fprintf_frame): Update.
400 (compute_frame_id): Set frame id status to "computing" on entry.
401 Set it back to "not_computed" on failure and to "computed" on
402 success.
403 (get_frame_id): Assert the frame id is not being computed.
404 (create_sentinel_frame): Use frame_id_status::COMPUTED.
405 (create_new_frame): Likewise.
406 (frame_cleanup_after_sniffer): Update assert.
407
b70e516e
SM
4082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * regcache.c (pid_ptid_regcache_map): New type.
411 (target_ptid_regcache_map): Remove.
412 (target_pid_ptid_regcache_map): New type.
413 (regcaches): Change type to target_pid_ptid_regcache_map.
414 (get_thread_arch_aspace_regcache): Update.
415 (regcache_thread_ptid_changed): Update, handle pid-like ptid
416 case.
417 (regcaches_size): Update.
418 (regcache_count): Update.
419 (registers_changed_ptid_target_pid_test): New.
420 (_initialize_regcache): Register new test.
421
cdd9148a
SM
4222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * regcache.c (regcache_count): New.
425 (struct regcache_test_data): New.
426 (regcache_test_data_up): New.
427 (populate_regcaches_for_test): New.
428 (regcaches_test): Remove.
429 (get_thread_arch_aspace_regcache_test): New.
430 (registers_changed_ptid_all_test): New.
431 (registers_changed_ptid_target_test): New.
432 (registers_changed_ptid_target_ptid_test): New.
433 (regcache_thread_ptid_changed): Remove regcache_count lambda.
434 (_initialize_regcache): Register new tests.
435
dd125343
SM
4362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
439 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
440 gdbarch and aspace parameter. Use current inferior's aspace.
441 Validate regcache's arch value.
442 (regcaches_test): Update.
443
3ee93972
SM
4442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * regcache.c (regcaches_test): Call registers_changed.
447
33bf4c5c
TBA
4482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
449
450 * infrun.c (process_event_stop_test): Fix typo "breapoint".
451
c2fd7fae
AKS
4522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
453
454 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
455 to find the end of prologue for flang compiled binaries.
456 * arm-tdep.c (arm_skip_prologue): Likewise.
457 * i386-tdep.c (i386_skip_prologue): Likewise.
458 * producer.c (producer_is_llvm): New function.
459 (producer_parsing_tests): Added new tests for clang/flang.
460 * producer.h (producer_is_llvm): New declaration.
461
9327494e
SM
4622020-08-18 Simon Marchi <simon.marchi@efficios.com>
463
464 * linux-nat.c (linux_nat_debug_printf): New function.
465 (linux_nat_debug_printf_1): New macro. Use throughout the file.
466
d138725a
AM
4672020-08-18 Aaron Merey <amerey@redhat.com>
468
469 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
470 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
471 (CLIBS): Add DEBUGINFOD_LIBS.
472
f9b11e6b
ST
4732020-08-17 Sergei Trofimovich <siarheit@google.com>
474
475 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
476 'gdbarch_num_regs'.
477
3ae7ab99
TT
4782020-08-17 Tom Tromey <tromey@adacore.com>
479
480 * ada-varobj.c (ada_varobj_decode_var): Handle case where
481 ada_get_decoded_value returns NULL.
482
b017825f
TT
4832020-08-17 Tom Tromey <tromey@adacore.com>
484
485 * python/py-inferior.c (infpy_search_memory): Use
486 gdb_py_object_from_ulongest.
487 * python/py-infevents.c (create_inferior_call_event_object)
488 (create_memory_changed_event_object): Use
489 gdb_py_object_from_ulongest.
490 * python/py-linetable.c (ltpy_entry_get_pc): Use
491 gdb_py_object_from_ulongest.
492
7635cf79
SM
4932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
494
495 * loc.c (class symbol_needs_eval_context): Fix indentation.
496
f54be24b
SM
4972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
500 bool.
501
53d5a2a5
TV
5022020-08-17 Tom de Vries <tdevries@suse.de>
503
504 PR gdb/26393
505 * gdbtypes.c (dump_dynamic_prop): New function.
506 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
507
547ce8f0
TV
5082020-08-15 Tom de Vries <tdevries@suse.de>
509
510 PR backtrace/26390
511 * stack.c (print_frame_args): Temporarily set the selected
512 frame to FRAME while printing the frame's arguments.
513
6ea815e7
PFC
5142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
515
516 PR breakpoints/26385
517 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
518 Always clear watchpoint with PTRACE_SET_DEBUGREG.
519
6e562fa3
PFC
5202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
521
522 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
523 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
524 and >= to check return value instead of == -1 and != -1.
525
d369b608
SM
5262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * utils.h (class gdb_argv) <as_array_view>: New method.
529 * utils.c (gdb_argv_as_array_view_test): New.
530 (_initialize_utils): Register selftest.
531 * maint.c (maintenance_selftest): Use the new method.
532
b31488a3
KR
5332020-08-13 Kamil Rytarowski <n54@gmx.com>
534
535 * target.h (supports_dumpcore, dumpcore): New
536 function declarations.
537 * target.c (supports_dumpcore, dumpcore): New
538 functions.
539 * target-delegates.c: Rebuild.
540 * gcore.c (gcore_command): Use target_supports_dumpcore ()
541 and target_dumpcore ().
542
002a3166
AM
5432020-08-13 Aaron Merey <amerey@redhat.com>
544
545 * debuginfod-support.c: Replace global variables with user_data.
546
ece5bc8a
SM
5472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * maint.c (maintenance_selftest): Split args and pass array_view
550 to run_tests.
551
6d8a0a5e
LM
5522020-08-12 Luis Machado <luis.machado@linaro.org>
553
554 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
555 type's length.
556 Use %s and pulongest to print the length.
557
7cf663a9
PA
5582020-08-12 Pedro Alves <palves@redhat.com>
559
560 * NEWS: Move "Multi-target debugging support" item to the
561 "Changes since GDB 9" section.
562
27c7b875
PA
5632020-08-12 Pedro Alves <palves@redhat.com>
564
565 PR gdb/26336
566 * progspace.c (program_space::remove_objfile): Invalidate the
567 frame cache.
568
1796a2a1
TV
5692020-08-11 Tom de Vries <tdevries@suse.de>
570
571 * MAINTAINERS: Mark ms1 as deleted.
572
f8e3fe0d
LM
5732020-08-10 Luis Machado <luis.machado@linaro.org>
574
575 PR gdb/26310
576
577 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
578 act accordingly.
579 (aarch64_analyze_prologue_test): Add more unit tests to exercise
580 movz/str/stur/stp skipping behavior.
581
cc308722
LM
5822020-08-10 Luis Machado <luis.machado@linaro.org>
583
584 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
585 struct user_sve_header instead of struct sve_context.
586
041d9819
SM
5872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * read.h (dwarf2_fetch_die_loc_sect_off,
590 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
591 `void *` parameter with function_view.
592 * read.c (dwarf2_fetch_die_loc_sect_off,
593 dwarf2_fetch_die_loc_cu_off): Likewise.
594 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
595 (per_cu_dwarf_call): Adjust.
596 (get_frame_address_in_block_wrapper): Remove.
597 (indirect_synthetic_pointer): Adjust.
598 (get_ax_pc): Remove.
599 (dwarf2_compile_expr_to_ax): Adjust.
600
38f8aa06
TV
6012020-08-08 Tom de Vries <tdevries@suse.de>
602
603 PR build/26344
604 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
605 constructor.
606 * regcache.c (get_thread_arch_aspace_regcache): Same.
607
a52b3ae2
TT
6082020-08-07 Tom Tromey <tromey@adacore.com>
609
610 * ravenscar-thread.c
611 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
612 New method.
613 (ravenscar_thread_target::wait): Check
614 runtime_initialized.
615 (ravenscar_thread_target::prepare_to_store)
616 (ravenscar_thread_target::stopped_by_sw_breakpoint)
617 (ravenscar_thread_target::stopped_by_hw_breakpoint)
618 (ravenscar_thread_target::stopped_by_watchpoint)
619 (ravenscar_thread_target::stopped_data_address)
620 (ravenscar_thread_target::core_of_thread): Use
621 scoped_restore_current_thread and
622 set_base_thread_from_ravenscar_task.
623
0e29517d
TT
6242020-08-07 Tom Tromey <tromey@adacore.com>
625
626 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
627
592f9bd7
TT
6282020-08-07 Tom Tromey <tromey@adacore.com>
629
630 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
631 update_inferior_ptid before update_thread_list.
632 (temporarily_change_regcache_ptid): New class.
633 (ravenscar_thread_target::fetch_registers)
634 (ravenscar_thread_target::store_registers)
635 (ravenscar_thread_target::prepare_to_store): Use base thread when
636 forwarding operation.
637
39e2018a
TT
6382020-08-07 Tom Tromey <tromey@adacore.com>
639
640 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
641 "is_pid" case.
642
2080266b
TT
6432020-08-07 Tom Tromey <tromey@adacore.com>
644
645 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
646 New methods.
647 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
648 first.
649 (ravenscar_thread_target::add_thread): Rename from
650 ravenscar_add_thread.
651 (ravenscar_thread_target::update_thread_list): Use a lambda.
652 (ravenscar_thread_target::xfer_partial): New method.
653
78c02f21
TT
6542020-08-07 Tom Tromey <tromey@adacore.com>
655
656 * ada-lang.h (ada_task_list_iterator_ftype): Now a
657 gdb::function_view.
658 (iterate_over_live_ada_tasks): Change type of argument.
659 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
660 of argument.
661
d5d833af
TT
6622020-08-07 Tom Tromey <tromey@adacore.com>
663
664 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
665 Remove.
666 (ravenscar_thread_target::extra_thread_info): Remove.
667 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
668 defer to target beneath for non-Ravenscar threads.
669
a8ac85bb
TT
6702020-08-07 Tom Tromey <tromey@adacore.com>
671
672 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
673 get_base_thread_from_ravenscar_task>: Now methods.
674 <m_cpu_map>: New member.
675 (ravenscar_thread_target::get_thread_base_cpu): Rename from
676 ravenscar_get_thread_base_cpu. Check m_cpu_map.
677 (ravenscar_thread_target::task_is_currently_active): Update.
678 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
679 Now a method.
680 (ravenscar_thread_target::add_active_thread): Put initial thread
681 into the m_cpu_map.
682
550ab58d
TT
6832020-08-07 Tom Tromey <tromey@adacore.com>
684
685 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
686 event_ptid.
687
e9546579
TT
6882020-08-07 Tom Tromey <tromey@adacore.com>
689
690 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
691 runtime_initialized.
692
3d4470e5
TT
6932020-08-07 Tom Tromey <tromey@adacore.com>
694
695 * ravenscar-thread.c (ravenscar_thread_target): Don't call
696 add_active_thread.
697 (ravenscar_thread_target::add_active_thread): Now public.
698 (ravenscar_inferior_created): Call add_active_thread after pushing
699 the target.
700
888bdb2b
SM
7012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * regcache.c (ptid_regcache_map): New type.
704 (target_ptid_regcache_map): New type.
705 (regcaches): Change type to target_ptid_regcache_map.
706 (get_thread_arch_aspace_regcache): Update to regcaches' new
707 type.
708 (regcache_thread_ptid_changed): Likewise.
709 (registers_changed_ptid): Likewise.
710 (regcaches_size): Likewise.
711 (regcaches_test): Update.
712 (regcache_thread_ptid_changed): Update.
713 * regcache.h (regcache_up): New type.
714 * gdbsupport/ptid.h (hash_ptid): New struct.
715
b161a60d
SM
7162020-08-07 Simon Marchi <simon.marchi@efficios.com>
717
718 * observable.h (thread_ptid_changed): Add parameter
719 `process_stratum_target *`.
720 * infrun.c (infrun_thread_ptid_changed): Add parameter
721 `process_stratum_target *` and use it.
722 (selftests): New namespace.
723 (infrun_thread_ptid_changed): New function.
724 (_initialize_infrun): Register selftest.
725 * regcache.c (regcache_thread_ptid_changed): Add parameter
726 `process_stratum_target *` and use it.
727 (regcache_thread_ptid_changed): New function.
728 (_initialize_regcache): Register selftest.
729 * thread.c (thread_change_ptid): Pass target to
730 thread_ptid_changed observable.
731
d2854d8d
CT
7322020-08-06 Caroline Tice <cmtice@google.com>
733
fe4c3d43
SM
734 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
735 (struct dwp_sections): Update field comments. Add loclists and
736 rnglists fields.
737 (struct virtual_v2_dwo_sections): Rename struct to
738 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
739 size & offset fields for loclists and rnglists.
740 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
741 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
742 skipping dummy type units.
743 (create_dwp_hash_table): Update the large comment above the function to
744 discuss Version 5 DWP files as well, with references. Update all the
745 version checks in the function to check for version 5 as well. Add new
746 section at the end to create dwp hash table for version 5.
747 (create_dwp_v2_section): Rename function to
748 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
749 Add V5 to error message text.
750 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
751 into calls to create_dwp_v2_or_v5_section.
752 (create_dwo_unit_in_dwp_v5): New function.
753 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
754 check for version2; add else clause to handle version 5.
755 (open_and_init_dwo_file): Add code to check dwarf version & only call
756 create_debug_types_hash_table (with sections.types) if version is not 5;
757 else call create_debug_type_hash_table, with sections.info.
758 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
759 version 5.
760 (dwarf2_locate_v5_dwp_sections): New function.
761 (open_and_init_dwp_file): Add else-if clause for version 5 to call
762 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 763
159ed7d9
SM
7642020-08-06 Simon Marchi <simon.marchi@efficios.com>
765
766 * regcache.h (class regcache): Remove friend
767 registers_changed_ptid.
768 <regcache_thread_ptid_changed>: Remove.
769 <regcaches>: Remove.
770 * regcache.c (regcache::regcaches): Rename to...
771 (regcaches): ... this. Make static.
772 (get_thread_arch_aspace_regcache): Update.
773 (regcache::regcache_thread_ptid_changed): Rename to...
774 (regcache_thread_ptid_changed): ... this. Update.
775 (class regcache_access): Remove.
776 (regcaches_test): Update.
777 (_initialize_regcache): Update.
778 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
779 <forward_list>.
780
174981ae
SM
7812020-08-06 Simon Marchi <simon.marchi@efficios.com>
782
783 * regcache.h (class regcache) <current_regcache>: Rename to...
784 <regcaches>: ... this. Move doc here.
785 * regcache.c (regcache::current_regcache) Rename to...
786 (regcache::regcaches): ... this. Move doc to header.
787 (get_thread_arch_aspace_regcache): Update.
788 (regcache::regcache_thread_ptid_changed): Update.
789 (registers_changed_ptid): Update.
790 (class regcache_access) <current_regcache_size>: Rename to...
791 <regcaches_size>: ... this.
792 (current_regcache_test): Rename to...
793 (regcaches_test): ... this.
794 (_initialize_regcache): Update.
795
ed908db6
VC
7962020-08-06 Victor Collod <vcollod@nvidia.com>
797
798 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
799
b5582ab7
KB
8002020-08-05 Kevin Buettner <kevinb@redhat.com>
801
802 * corelow.c (core_target::build_file_mappings): Don't output
803 null pathname in warning.
804
ea946b86
SM
8052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
806
807 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
808 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
809 gdb.dwarf2/dw2-single-line-discriminators.exp,
810 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
811
57d02173
TT
8122020-08-05 Tom Tromey <tromey@adacore.com>
813
814 PR rust/26197:
815 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
816 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
817 Fix off-by-one and type size errors in ordinary case.
818
5555c86d
TV
8192020-08-05 Tom de Vries <tdevries@suse.de>
820
821 * gdbtypes.c (type_not_allocated, type_not_associated): Use
822 "prop->const_val () == 0" instead of "prop->const_val () != 0".
823
97916bfe
SM
8242020-08-04 Simon Marchi <simon.marchi@efficios.com>
825
826 * frame.h (frame_id_p): Return bool.
827 (frame_id_artificial_p): Return bool.
828 (frame_id_eq): Return bool.
829 (has_stack_frames): Return bool.
830 (get_selected_frame): Fix typo in comment.
831 (get_frame_pc_if_available): Return bool.
832 (get_frame_address_in_block_if_available): Return bool.
833 (get_frame_func_if_available): Return bool.
834 (read_frame_register_unsigned): Return bool.
835 (get_frame_register_bytes): Return bool.
836 (safe_frame_unwind_memory): Return bool.
837 (deprecated_frame_register_read): Return bool.
838 (frame_unwinder_is): Return bool.
839 * frame.c (struct frame_info) <prev_arch::p>: Change type to
840 bool.
841 <this_id::p>: Likewise.
842 <prev_p>: Likewise.
843 (frame_stash_add): Return bool.
844 (get_frame_id): Use bool.
845 (frame_id_build_special) Use bool.
846 (frame_id_build_unavailable_stack): Use bool.
847 (frame_id_build): Use bool.
848 (frame_id_p): Return bool, use true/false instead of 1/0.
849 (frame_id_artificial_p): Likewise.
850 (frame_id_eq): Likewise.
851 (frame_id_inner): Likewise.
852 (get_frame_func_if_available): Likewise.
853 (read_frame_register_unsigned): Likewise.
854 (deprecated_frame_register_read): Likewise.
855 (get_frame_register_bytes): Likewise.
856 (has_stack_frames): Likewise.
857 (inside_main_func): Likewise.
858 (inside_entry_func): Likewise.
859 (get_frame_pc_if_available): Likewise.
860 (get_frame_address_in_block_if_available): Likewise.
861 (frame_unwinder_is): Likewise.
862 (safe_frame_unwind_memory): Likewise.
863 (frame_unwind_arch): Likewise.
864
fedfee88
SM
8652020-08-04 Simon Marchi <simon.marchi@efficios.com>
866
867 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
868 type to cached_copy_status.
869 (fprintf_frame): Adjust.
870 (get_frame_func_if_available): Adjust.
871 (frame_cleanup_after_sniffer): Adjust.
872
6cfa9b59
MW
8732020-08-04 Mark Wielaard <mark@klomp.org>
874
875 * MAINTAINERS (Write After Approval): Update email address.
876
66d6346b
SM
8772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
880 dynamic_prop::const_val.
881
8a6d5e35
SM
8822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
885 dynamic_prop::kind.
886
51d6067d
SM
8872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
890
b26e2ae7
JM
8912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
892
893 * configure.tgt: Set gdb_sim for bpf-*-* targets.
894
39791af2
JM
8952020-08-04 Weimin Pan <weimin.pan@oracle.com>
896 Jose E. Marchesi <jose.marchesi@oracle.com>
897
898 * configure.tgt: Add entry for bpf-*-*.
899 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
900 (ALLDEPFILES): Add bpf-tdep.c.
901 * bpf-tdep.c: New file.
902 * MAINTAINERS: Add bpf target and maintainer.
903 * NEWS: Mention the support for the new target.
904
521894aa
TV
9052020-08-04 Tom de Vries <tdevries@suse.de>
906
907 PR symtab/23270
908 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
909 Error.
910
5d6356e9
JB
9112020-08-03 John Baldwin <jhb@FreeBSD.org>
912
913 * syscalls/freebsd.xml: Regenerate.
914
0cf82b81
JB
9152020-08-03 John Baldwin <jhb@FreeBSD.org>
916
917 * syscalls/update-freebsd.sh: Fix usage and year range.
918
8f34b746
TV
9192020-08-03 Tom de Vries <tdevries@suse.de>
920
921 PR symtab/26333
922 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
923 DW_LNE_lo_user/DW_LNE_hi_user range.
924
5e500d33
SM
9252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
926
927 PR ada/26318
928 * ada-lang.c (ada_modulus): Return 0 if property is not of const
929 kind.
930
78319c15
TBA
9312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
934
4c55e970
TBA
9352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936
937 * breakpoint.c (set_breakpoint_condition): Update the condition
938 expressions after checking that the input condition string parses
939 successfully and does not contain junk at the end.
940
1e620590
TBA
9412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 * breakpoint.c (set_breakpoint_condition): Update the
944 condition string after parsing the new condition successfully.
945
c8693053
RO
9462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
947
948 * proc-api.c (_STRUCTURED_PROC): Don't define.
949 * proc-events.c: Likewise.
950 * proc-flags.c: Likewise.
951 * proc-why.c: Likewise.
952 * procfs.c: Likewise.
953
954 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
955 * configure, config.in: Regenerate.
956
5a99adb8
TV
9572020-07-30 Tom de Vries <tdevries@suse.de>
958
959 PR build/26320
960 * ui-style.h (struct ui_file_style::color): Wrap m_value and
961 m_red/m_green/m_blue in a union.
962
8ba83e91
TV
9632020-07-29 Tom de Vries <tdevries@suse.de>
964
965 PR tdep/26280
966 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
967
f75a0693
AB
9682020-07-28 Tom Tromey <tromey@adacore.com>
969
970 PR symtab/26270:
971 * symtab.h (find_pc_partial_function_sym): Declare.
972 * cli/cli-cmds.c (disassemble_command): Use
973 find_pc_partial_function_sym. Check asm_demangle.
974 * blockframe.c (cache_pc_function_sym): New global.
975 (cache_pc_function_name): Remove.
976 (clear_pc_function_cache): Update.
977 (find_pc_partial_function_sym): New function, from
978 find_pc_partial_function.
979 (find_pc_partial_function): Rewrite using
980 find_pc_partial_function_sym.
981
16f3242c
TT
9822020-07-28 Tom Tromey <tromey@adacore.com>
983
984 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
985 help. Add usage.
986
4888741a
TT
9872020-07-28 Tom Tromey <tromey@adacore.com>
988
989 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
990 <DW_OP_GNU_variable_value>: Cast to address type.
991
4d46f402
KR
9922020-07-28 Kamil Rytarowski <n54@gmx.com>
993
994 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
995 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
996 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
997 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
998 (nbsd_get_siginfo_type): New.
999 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1000 (_initialize_nbsd_tdep): New.
1001
d70f978b
L
10022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1003
1004 PR binutils/26301
1005 * configure: Regenerated.
1006
377170fa
L
10072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1008
1009 PR binutils/26301
1010 * configure: Regenerated.
1011
43d5901d
AB
10122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * python/py-frame.c: Remove 'user-regs.h' include.
1015 (frapy_read_register): Rewrite to make use of
1016 gdbpy_parse_register_id.
1017 * python/py-registers.c (gdbpy_parse_register_id): New function,
1018 moved here from python/py-unwind.c. Updated the return type, and
1019 also accepts register descriptor objects.
1020 * python/py-unwind.c: Remove 'user-regs.h' include.
1021 (pyuw_parse_register_id): Moved to python/py-registers.c.
1022 (unwind_infopy_add_saved_register): Update to use
1023 gdbpy_parse_register_id.
1024 (pending_framepy_read_register): Likewise.
1025 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1026
14fa8fb3
AB
10272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * python/py-registers.c: Add 'user-regs.h' include.
1030 (register_descriptor_iter_find): New function.
1031 (register_descriptor_iterator_object_methods): New static global
1032 methods array.
1033 (register_descriptor_iterator_object_type): Add pointer to methods
1034 array.
1035
ddce1758
JB
10362020-07-27 John Baldwin <jhb@FreeBSD.org>
1037
1038 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1039 for all architectures on FreeBSD 11.3 and later.
1040
a4089f52
TT
10412020-07-27 Tom Tromey <tromey@adacore.com>
1042
1043 * gcore.h (load_corefile): Don't declare.
1044
95420d30
TV
10452020-07-27 Tom de Vries <tdevries@suse.de>
1046
1047 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1048 * config.in: Regenerate.
1049 * configure: Regenerate.
1050
05a6b8c2
EZ
10512020-07-26 Eli Zaretskii <eliz@gnu.org>
1052
1053 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1054 ws2tcpip.h. When checking whether socklen_t type is defined, use
1055 ws2tcpip.h if it is available and sys/socket.h isn't.
1056 * configure: Regenerate.
1057 * config.in: Regenerate.
1058
e79eb02f
AB
10592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 PR fortran/23051
1062 PR fortran/26139
1063 * valops.c (value_ind): Pass address to
1064 readjust_indirect_value_type.
1065 * value.c (readjust_indirect_value_type): Make parameter
1066 non-const, and add extra address parameter. Resolve original type
1067 before using it.
1068 * value.h (readjust_indirect_value_type): Update function
1069 signature and comment.
1070
876518dd
TV
10712020-07-25 Tom de Vries <tdevries@suse.de>
1072
1073 PR symtab/26243
1074 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1075 entries.
1076
f6720b1c
AM
10772020-07-24 Aaron Merey <amerey@redhat.com>
1078
1079 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1080 * configure: Rebuild.
1081
513487e1
KB
10822020-07-23 Kevin Buettner <kevinb@redhat.com>
1083
1084 PR corefiles/26294
1085 * corelow.c (_initialize_corelow): Add period to help text
1086 for "maintenance print core-file-backed-mappings".
1087
e7bc9db8
PA
10882020-07-23 Pedro Alves <pedro@palves.net>
1089
1090 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1091 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1092 meanwhile.
1093 * frame.c (frame_cache_generation, get_frame_cache_generation):
1094 New.
1095 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1096 (get_prev_frame_if_no_cycle): On exception, don't touch
1097 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1098 * frame.h (get_frame_cache_generation): Declare.
1099
90fcc466
TV
11002020-07-23 Tom de Vries <tdevries@suse.de>
1101
1102 PR tui/26282
1103 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1104 New default constructor.
1105
78344df7
AB
11062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1109 exclude non-statement entries.
1110
b089853a
KB
11112020-07-22 Kevin Buettner <kevinb@redhat.com>
1112
1113 * NEWS (New commands): Mention new command
1114 "maintenance print core-file-backed-mappings".
1115
09c2f5d4
KB
11162020-07-22 Kevin Buettner <kevinb@redhat.com>
1117
1118 * corelow.c (gdbcmd.h): Include.
1119 (core_target::info_proc_mappings): New method.
1120 (get_current_core_target): New function.
1121 (maintenance_print_core_file_backed_mappings): New function.
1122 (_initialize_corelow): Add core-file-backed-mappings to
1123 "maint print" commands.
1124
9c5ec5c2 11252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1126
9c5ec5c2
KB
1127 * linux-tdep.c (dump_note_entry_p): New function.
1128 (linux_dump_mapping_p_ftype): New typedef.
1129 (linux_find_memory_regions_full): Add new parameter,
1130 should_dump_mapping_p.
1131 (linux_find_memory_regions): Adjust call to
1132 linux_find_memory_regions_full.
1133 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1134 call to linux_find_memory_regions_full.
1135
db082f59
KB
11362020-07-22 Kevin Buettner <kevinb@redhat.com>
1137
1138 * corelow.c (solist.h, unordered_map): Include.
1139 (class core_target): Add field m_core_file_mappings and
1140 method build_file_mappings.
1141 (core_target::core_target): Call build_file_mappings.
1142 (core_target::~core_target): Free memory associated with
1143 m_core_file_mappings.
1144 (core_target::build_file_mappings): New method.
1145 (core_target::xfer_partial): Use m_core_file_mappings
1146 for memory transfers.
1147 * linux-tdep.c (linux_read_core_file_mappings): New
1148 function.
1149 (linux_core_info_proc_mappings): Rewrite to use
1150 linux_read_core_file_mappings.
1151 (linux_init_abi): Register linux_read_core_file_mappings.
1152
7e183d27
KB
11532020-07-22 Kevin Buettner <kevinb@redhat.com>
1154
1155 * arch-utils.c (default_read_core_file_mappings): New function.
1156 * arch-utils.c (default_read_core_file_mappings): Declare.
1157 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1158 * gdbarch.h, gdbarch.c: Regenerate.
1159
2735d421
KB
11602020-07-22 Kevin Buettner <kevinb@redhat.com>
1161
1162 PR corefiles/25631
1163 * corelow.c (core_target:xfer_partial): Revise
1164 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1165 case after first checking the stratum beneath the core
1166 target.
1167 (has_all_memory): Return true.
1168 * target.c (raw_memory_xfer_partial): Revise comment
1169 regarding use of has_all_memory.
1170
e56cb451
KB
11712020-07-22 Kevin Buettner <kevinb@redhat.com>
1172
1173 * exec.h (section_table_xfer_memory): Revise declaration,
1174 replacing section name parameter with an optional callback
1175 predicate.
1176 * exec.c (section_table_xfer_memory): Likewise.
1177 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1178 of section_table_xfer_memory.
1179
32fa152e
TT
11802020-07-22 Tom Tromey <tromey@adacore.com>
1181
1182 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1183 lookup_symbol_search_name.
1184
a67a1c41
AB
11852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1188 redundant local variable.
1189 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1190 reference, not pointer, update code accordingly.
1191
a7b4ff4f
SM
11922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1193 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1194
1195 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1196 * jit.c (jit_breakpoint_re_set_internal): Use the
1197 `skip_jit_symbol_lookup` field.
1198
2340e834
SM
11992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1200 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1201
1202 * jit.c (jit_read_descriptor): Define the descriptor address once,
1203 use twice.
1204 (jit_breakpoint_deleted): Move the declaration of the loop variable
1205 `iter` into the loop header.
1206 (jit_breakpoint_re_set_internal): Move the declaration of the local
1207 variable `objf_data` to the first point of definition.
1208 (jit_event_handler): Move the declaration of local variables
1209 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1210 Rename `objf` to `jited`.
1211
c1072906
SM
12122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1215 Remove.
1216 * jit.c (get_jiter_objfile_data): Update.
1217
c8474dc3
TBA
12182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 * jit.c (struct jit_program_space_data): Remove.
1222 (jit_program_space_key): Remove.
1223 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1224 stuff.
1225 (get_jit_program_space_data): Remove.
1226 (jit_breakpoint_deleted): Iterate on all of the program space's
1227 objfiles.
1228 (jit_inferior_init): Likewise.
1229 (jit_breakpoint_re_set_internal): Likewise. Also change return
1230 type to void.
1231 (jit_breakpoint_re_set): Pass current_program_space to
1232 jit_breakpoint_re_set_internal.
1233
77208eb7
SM
12342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * jit.h (struct jiter_objfile_data) <cached_code_address,
1237 jit_breakpoint>: Move to here from ...
1238 * jit.c (jit_program_space_data): ... here.
1239 (jiter_objfile_data::~jiter_objfile_data): Update.
1240 (jit_breakpoint_deleted): Update.
1241 (jit_breakpoint_re_set_internal): Update.
1242
8c1c720f
SM
12432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1246 checks.
1247 (jit_read_descriptor): Remove NULL check.
1248 (jit_event_handler): Add an assertion.
1249
0e74a041
SM
12502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * jit.h (struct jit_objfile_data): Split into...
1253 (struct jiter_objfile_data): ... this ...
1254 (struct jited_objfile_data): ... and this.
1255 * objfiles.h (struct objfile) <jit_data>: Remove.
1256 <jiter_data, jited_data>: New fields.
1257 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1258 (jiter_objfile_data::~jiter_objfile_data): ... this.
1259 (get_jit_objfile_data): Rename to ...
1260 (get_jiter_objfile_data): ... this.
1261 (add_objfile_entry): Update.
1262 (jit_read_descriptor): Use get_jiter_objfile_data.
1263 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1264 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1265 (jit_inferior_exit_hook): Use objfile's jited_data field.
1266
238b5c9f
SM
12672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * jit.h: Forward-declare `struct minimal_symbol`.
1270 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1271 constructor, destructor, and an objfile* field.
1272 * jit.c (jit_objfile_data): Remove.
1273 (struct jit_objfile_data): Migrate from here to jit.h.
1274 (jit_objfile_data::~jit_objfile_data): New destructor
1275 implementation with code moved from free_objfile_data.
1276 (free_objfile_data): Delete.
1277 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1278 (jit_find_objf_with_entry_addr): Ditto.
1279 (jit_inferior_exit_hook): Ditto.
1280 (_initialize_jit): Remove the call to
1281 register_objfile_data_with_cleanup.
1282 * objfiles.h (struct objfile) <jit_data>: New field.
1283
fe053b9e
TBA
12842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285
1286 * jit.h: Forward-declare `struct objfile`.
1287 (jit_event_handler): Add a second parameter, the JITer objfile.
1288 * jit.c (jit_read_descriptor): Change the signature to take the
1289 JITer objfile as an argument instead of the jit_program_space_data.
1290 (jit_inferior_init): Update the call to jit_read_descriptor.
1291 (jit_event_handler): Use the new JITer objfile argument when calling
1292 jit_read_descriptor.
1293 * breakpoint.c (handle_jit_event): Update the call to
1294 jit_event_handler to pass the JITer objfile.
1295
4cec0c66
JB
12962020-07-21 John Baldwin <jhb@FreeBSD.org>
1297
1298 * gdbarch.c: Regenerate.
1299 * gdbarch.h: Regenerate.
1300 * gdbarch.sh (handle_segmentation_fault): Remove method.
1301 * infrun.c (handle_segmentation_fault): Remove.
1302 (print_signal_received_reason): Remove call to
1303 handle_segmentation_fault.
1304
0e42f66a
JB
13052020-07-21 John Baldwin <jhb@FreeBSD.org>
1306
1307 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1308 Rename to sparc64_linux_report_signal_info and add siggnal
1309 argument.
1310 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1311 instead of sparc64_linux_handle_segmentation_fault.
1312
77bdfeb2
JB
13132020-07-21 John Baldwin <jhb@FreeBSD.org>
1314
1315 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1316 i386_linux_report_signal_info instead of
1317 i386_linux_handle_segmentation_fault.
1318 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1319 to i386_linux_report_signal_info and add siggnal argument.
1320 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1321 of i386_linux_handle_segmentation_fault.
1322 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1323 to i386_linux_report_signal_info and add siggnal argument.
1324
ad97bfc5
JB
13252020-07-21 John Baldwin <jhb@FreeBSD.org>
1326
1327 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1328 hook if present.
1329
272bb05c
JB
13302020-07-21 John Baldwin <jhb@FreeBSD.org>
1331
1332 * gdbarch.c: Regenerate.
1333 * gdbarch.h: Regenerate.
1334 * gdbarch.sh (report_signal_info): New method.
1335 * infrun.c (print_signal_received_reason): Invoke gdbarch
1336 report_signal_info hook if present.
1337
baf8791e
AB
13382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * python/py-registers.c : Add 'unordered_map' include.
1341 (gdbpy_new_reggroup): Renamed to...
1342 (gdbpy_get_reggroup): ...this. Update to only create register
1343 group descriptors when needed.
1344 (gdbpy_reggroup_iter_next): Update.
1345
f7306dac
AB
13462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1347
1348 * python/py-registers.c (gdbpy_register_object_data): New static
1349 global.
1350 (gdbpy_register_object_data_init): New function.
1351 (gdbpy_new_register_descriptor): Renamed to...
1352 (gdbpy_get_register_descriptor): ...this, and update to reuse
1353 existing register descriptors where possible.
1354 (gdbpy_register_descriptor_iter_next): Update.
1355 (gdbpy_initialize_registers): Register new gdbarch data.
1356
05c309a8
SM
13572020-07-21 Simon Marchi <simon.marchi@efficios.com>
1358
1359 * linux-nat.c (stopped_pids): Make static.
1360
d1fd641e
SM
13612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 PR ada/26235
1364 * gdbtypes.c (ada_discrete_type_low_bound,
1365 ada_discrete_type_high_bound): Handle undefined bounds.
1366
1de14d77
KR
13672020-07-21 Kamil Rytarowski <n54@gmx.com>
1368
1369 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1370 declaration.
1371 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1372 function.
1373
ed810cc7
JB
13742020-07-20 John Baldwin <jhb@FreeBSD.org>
1375
1376 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1377 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1378 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1379 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1380 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1381 method.
1382
ae5369e7
LC
13832020-07-20 Ludovic Courtès <ludo@gnu.org>
1384
1385 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1386 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1387 which are deprecated in Guile 3.0.
1388 * configure.ac (try_guile_versions): Add "guile-3.0".
1389 * configure (try_guile_versions): Regenerate.
1390 * NEWS: Update entry.
1391
68cf161c
LC
13922020-07-20 Ludovic Courtès <ludo@gnu.org>
1393 Doug Evans <dje@google.com>
1394
1395 PR gdb/21104
1396 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1397 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1398 USING_GUILE_BEFORE_2_2.
1399 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1400 Change type to 'scm_t_port_type *'.
1401 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1402 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1403 parameter and honor it. Update callers.
1404 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1405 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1406 functions.
1407 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1408 USING_GUILE_BEFORE_2_2.
1409 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1410 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1411 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1412 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1413 and 'SCM_PORT_TYPE'.
1414 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1415 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1416 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1417 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1418 [!USING_GUILE_BEFORE_2_2]: New functions.
1419 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1420 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1421 'gdbscm_memory_port_read'.
1422 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1423 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1424 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1425 function.
1426 (ioscm_init_memory_port): Remove.
1427 (ioscm_init_memory_port_stream): New function
1428 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1429 function.
1430 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1431 Return scm_from_uint (0).
1432 (gdbscm_set_memory_port_read_buffer_size_x)
1433 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1434 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1435 Return scm_from_uint (0).
1436 (gdbscm_set_memory_port_write_buffer_size_x)
1437 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1438 * configure.ac (try_guile_versions): Add "guile-2.2".
1439 * configure: Regenerate.
1440 * NEWS: Add entry.
1441
aee91db3
TT
14422020-07-18 Tom Tromey <tom@tromey.com>
1443
1444 * linux-nat.c (linux_multi_process): Remove.
1445 (linux_nat_target::supports_multi_process): Return true.
1446
0e267416
AB
14472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1450 (riscv_lookup_target_description): Return pointer out of
1451 unique_ptr.
1452 * target-descriptions.c (allocate_target_description): Add
1453 comment.
1454 (target_desc_deleter::operator()): Likewise.
1455 * target-descriptions.h (struct target_desc_deleter): Moved to
1456 gdbsupport/tdesc.h.
1457 (target_desc_up): Likewise.
1458
f80c8ec4
TT
14592020-07-17 Tom Tromey <tromey@adacore.com>
1460
1461 * linux-nat.c (linux_nat_target::supports_non_stop)
1462 (linux_nat_target::always_non_stop_p): Use "true".
1463 (linux_nat_target::supports_disable_randomization): Use "true" and
1464 "false".
1465
d0ce17d8
CT
14662020-07-16 Caroline Tice <cmtice@google.com>
1467
1468 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1469 (RNGLIST_HEADER_SIZE64): New constant definition.
1470 (struct dwop_section_names): Add rnglists_dwo.
1471 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1472 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1473 (struct dwo_sections): Add rnglists field.
1474 (read_attribut_reprocess): Add tag parameter.
1475 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1476 (cu_debug_rnglists_section): New function (decl & definition).
1477 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1478 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1479 die whose range is being checked; get rnglist section from
1480 cu_debug_rnglists_section, to get from either objfile or dwo file as
1481 appropriate. Add cases for DW_RLE_base_addressx,
1482 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1483 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1484 test inside if-condition and updating complaint message.
1485 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1486 dwarf2_rnglists_process.
1487 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1488 dwarf2_ranges_process.
1489 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1490 need_ranges_base and update comment appropriately. Also pass die tag
1491 to dwarf2_ranges_read.
1492 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1493 need_ranges_base and update comment appropriately. Also pass die tag
1494 to dwarf2_ranges_process.
1495 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1496 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1497 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1498 need_ranges_base and update comment appropriately. Also pass die tag
1499 to read_attribute_reprocess and dwarf2_ranges_read.
1500 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1501 and update function comment appropriately.
1502 (read_loclist_index): Call read_loclists_rnglists_header instead of
1503 read_loclist_header.
1504 (read_rnglist_index): New function.
1505 (read_attribute_reprocess): Add tag parameter. Add code for
1506 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1507 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1508
3dcc261c
AB
15092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1512 being resolved.
1513
ccb9eba6
AB
15142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * arch-utils.c (show_architecture): Update formatting of messages.
1517
cf88be68
SM
15182020-07-12 Simon Marchi <simon.marchi@efficios.com>
1519
1520 * gdbtypes.h (struct type) <bounds>: Handle array and string
1521 types.
1522 * ada-lang.c (assign_aggregate): Use type::bounds on
1523 array/string type.
1524 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1525 * c-varobj.c (c_number_of_children): Likewise.
1526 (c_describe_child): Likewise.
1527 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1528 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1529 (f_type_print_base): Likewise.
1530 * f-valprint.c (f77_array_offset_tbl): Likewise.
1531 (f77_get_upperbound): Likewise.
1532 (f77_print_array_1): Likewise.
1533 * guile/scm-type.c (gdbscm_type_range): Likewise.
1534 * m2-typeprint.c (m2_array): Likewise.
1535 (m2_is_long_set_of_type): Likewise.
1536 * m2-valprint.c (get_long_set_bounds): Likewise.
1537 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1538 * python/py-type.c (typy_range): Likewise.
1539 * rust-lang.c (rust_internal_print_type): Likewise.
1540 * type-stack.c (type_stack::follow_types): Likewise.
1541 * valarith.c (value_subscripted_rvalue): Likewise.
1542 * valops.c (value_cast): Likewise.
1543
509971ae
SM
15442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1547 callers to use the equivalent accessor methods.
1548
107406b7
SM
15492020-07-12 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1552 (struct type) <bit_stride>: New method.
1553 (TYPE_BIT_STRIDE): Remove.
1554 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1555
bb789949
SM
15562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1559 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1560 callers to use the equivalent accessor methods instead.
1561
39498edb
SM
15622020-07-12 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1565 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1566 callers to use the equivalent accessor methods instead.
1567
3b606f38
SM
15682020-07-12 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1571 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1572 to use dynamic_prop::kind.
1573
064d9cb9
SM
15742020-07-12 Simon Marchi <simon.marchi@efficios.com>
1575
1576 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1577 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1578 to get the bound property's kind and check against
1579 PROP_UNDEFINED.
1580
5537ddd0
SM
15812020-07-12 Simon Marchi <simon.marchi@efficios.com>
1582
1583 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1584 all callers to use type::range_bounds followed by
1585 dynamic_prop::{low,high}.
1586
8c2e4e06
SM
15872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1590 const_val, set_const_val, baton, set_locexpr, set_loclist,
1591 set_addr_offset, variant_parts, set_variant_parts,
1592 original_type, set_original_type>: New methods.
1593 <kind>: Rename to...
1594 <m_kind>: ... this. Update all users to use the new methods
1595 instead.
1596 <data>: Rename to...
1597 <m_data>: ... this. Update all users to use the new methods
1598 instead.
1599
7c6f2712
SM
16002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * gdbtypes.c (get_discrete_bounds): Return failure if
1603 the range type's bounds are not both defined and constant
1604 values.
1605 (get_array_bounds): Update comment. Remove undefined bound check.
1606
599088e3
SM
16072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1610 the type::bounds method directly.
1611
c4dfcb36
SM
16122020-07-12 Simon Marchi <simon.marchi@efficios.com>
1613
1614 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1615 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1616 are used to set the range type's bounds to use set_bounds.
1617
0a278aa7
PW
16182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1619
1620 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1621
cce20f10
PA
16222020-07-10 Pedro Alves <pedro@palves.net>
1623
1624 * gdbthread.h (inferior_ref): Define.
1625 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1626 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1627 * thread.c
1628 (scoped_restore_current_thread::restore):
1629 Adjust to gdb::ref_ptr.
1630 (scoped_restore_current_thread::~scoped_restore_current_thread):
1631 Remove manual decref handling.
1632 (scoped_restore_current_thread::scoped_restore_current_thread):
1633 Adjust to use
1634 inferior_ref::new_reference/thread_info_ref::new_reference.
1635 Incref the thread before calling get_frame_id instead of after.
1636 Let TARGET_CLOSE_ERROR propagate.
1637
6d7aa592
PA
16382020-07-10 Pedro Alves <pedro@palves.net>
1639
1640 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1641 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1642 NOT_AVAILABLE_ERROR.
1643 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1644 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1645
b3e3a4c1
SM
16462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1647 Pedro Alves <pedro@palves.net>
1648
1649 PR gdb/26199
1650 * infrun.c (threads_are_resumed_pending_p): Delete.
1651 (do_target_wait): Remove threads_are_executing and
1652 threads_are_resumed_pending_p checks from the inferior_matches
1653 lambda. Update comments.
1654
d6cc5d98
PA
16552020-07-10 Pedro Alves <pedro@palves.net>
1656
1657 PR gdb/26199
1658 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1659 executing threads.
1660
7d3badc6
PA
16612020-07-10 Pedro Alves <pedro@palves.net>
1662
1663 PR gdb/26199
1664 * infrun.c (handle_no_resumed): Handle multiple targets.
1665
42bd97a6
PA
16662020-07-10 Pedro Alves <pedro@palves.net>
1667
1668 PR gdb/26199
1669 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1670 target_is_async_p.
1671
43667cc6
PA
16722020-07-10 Pedro Alves <pedro@palves.net>
1673
1674 PR gdb/26199
1675 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1676 threads, not all threads.
1677
96118d11
PA
16782020-07-10 Pedro Alves <pedro@palves.net>
1679
1680 PR gdb/26199
1681 * remote.c (remote_target::open_1): Pass remote target pointer as
1682 data to create_async_event_handler.
1683 (remote_async_inferior_event_handler): Mark async event handler
1684 before returning if the remote target still has either pending
1685 events or unacknowledged notifications.
1686
54904d81
JB
16872020-07-10 John Baldwin <jhb@FreeBSD.org>
1688
1689 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1690 declaration.
1691 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1692 function.
1693
f37e5866
JB
16942020-07-09 John Baldwin <jhb@FreeBSD.org>
1695
1696 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1697 inferior_ptid.
1698
fc238d4a
JB
16992020-07-09 John Baldwin <jhb@FreeBSD.org>
1700
1701 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1702 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1703 AT_FREEBSD_PS_STRINGS.
1704
6e2469ff
HD
17052020-07-08 Hannes Domani <ssbssa@yahoo.de>
1706
1707 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1708 of debugfile path on Windows.
1709
d1076c41
JB
17102020-07-08 John Baldwin <jhb@FreeBSD.org>
1711
1712 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1713 argument to 'data'.
1714
15f3b077
TT
17152020-07-08 Tom Tromey <tromey@adacore.com>
1716
1717 * ada-lang.c (ada_exception_message_1): Use read_memory.
1718
9fc501fd
AB
17192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 PR python/22748
1722 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1723 special handling for inline frames.
1724 * findvar.c (value_of_register_lazy): Skip inline frames when
1725 creating lazy register values.
1726 * frame.c (frame_id_computed_p): Delete definition.
1727 * frame.h (frame_id_computed_p): Delete declaration.
1728
64cb3757
AB
17292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * NEWS: Mention additions to Python API.
1732 * python/py-arch.c (archpy_register_groups): New function.
1733 (arch_object_methods): Add 'register_groups' method.
1734 * python/py-registers.c (reggroup_iterator_object): New struct.
1735 (reggroup_object): New struct.
1736 (gdbpy_new_reggroup): New function.
1737 (gdbpy_reggroup_to_string): New function.
1738 (gdbpy_reggroup_name): New function.
1739 (gdbpy_reggroup_iter): New function.
1740 (gdbpy_reggroup_iter_next): New function.
1741 (gdbpy_new_reggroup_iterator): New function
1742 (gdbpy_initialize_registers): Register new types.
1743 (reggroup_iterator_object_type): Define new Python type.
1744 (gdbpy_reggroup_getset): New static global.
1745 (reggroup_object_type): Define new Python type.
1746 * python/python-internal.h
1747
0f767f94
AB
17482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1751 * python/py-arch.c (archpy_registers): New function.
1752 (arch_object_methods): Add 'registers' method.
1753 * python/py-registers.c: New file.
1754 * python/python-internal.h
1755 (gdbpy_new_register_descriptor_iterator): Declare.
1756 (gdbpy_initialize_registers): Declare.
1757 * python/python.c (do_start_initialization): Call
1758 gdbpy_initialize_registers.
1759 * NEWS: Mention additions to the Python API.
1760
87dbc774
AB
17612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * NEWS: Mention new Python API method.
1764 * python/py-unwind.c (pending_framepy_architecture): New function.
1765 (pending_frame_object_methods): Add architecture method.
1766
3bc98c0c
AB
17672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * gdbarch.c: Regenerate.
1770 * gdbarch.h: Regenerate.
1771 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1772 (gdbarch_data): Use internal_error for the case where
1773 deprecated_set_gdbarch_data was originally needed.
1774 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1775 and use passed in obstack.
1776 (libunwind_frame_set_descr): Should no longer get back NULL from
1777 gdbarch_data.
1778 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1779 type.
1780 * user-regs.c (user_regs_init): Update parameters, and use passed
1781 in obstack.
1782 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1783 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1784
d8cc8af6
TV
17852020-07-06 Tom de Vries <tdevries@suse.de>
1786
1787 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1788 End-Of-Sequence in lte_is_less_than.
1789 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1790 "gdb: Don't reorder line table entries too much when sorting".
1791
947f7597
TV
17922020-07-06 Tom de Vries <tdevries@suse.de>
1793
1794 PR tui/26205
1795 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1796
1e7c1b22
TV
17972020-07-05 Tom de Vries <tdevries@suse.de>
1798
1799 PR build/26187
1800 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1801 std::uncaught_exceptions instead of deprecated
1802 std::uncaught_exception.
1803
a36158ec
SM
18042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1805
1806 * macroexp.h (macro_stringify): Return
1807 gdb::unique_xmalloc_ptr<char>.
1808 * macroexp.c (macro_stringify): Likewise.
1809 * macrotab.c (fixup_definition): Update.
1810
14d960c8
SM
18112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1814 (lex_one_token): Update.
1815 * macroexp.c (struct macro_buffer) <release>: Return
1816 gdb::unique_xmalloc_ptr<char>.
1817 (macro_stringify): Update.
1818 (macro_expand): Update.
1819 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1820 * macroexp.h (macro_expand_next): Likewise.
1821
211d5b1c
SM
18222020-07-02 Simon Marchi <simon.marchi@efficios.com>
1823
1824 * macroexp.h (macro_lookup_ftype): Remove.
1825 (macro_expand, macro_expand_once, macro_expand_next): Remove
1826 lookup function parameters, add scope parameter.
1827 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1828 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1829 * macroscope.h (standard_macro_lookup): Change parameter type
1830 to macro_scope.
1831 * macroscope.c (standard_macro_lookup): Likewise.
1832 * c-exp.y (lex_one_token): Update.
1833 * macrocmd.c (macro_expand_command): Likewise.
1834 (macro_expand_once_command): Likewise.
1835
b1a35af2
SM
18362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * inf-loop.c (inferior_event_handler): Remove client_data param.
1839 * inf-loop.h (inferior_event_handler): Likewise.
1840 * infcmd.c (step_1): Adjust.
1841 * infrun.c (proceed): Adjust.
1842 (fetch_inferior_event): Remove client_data param.
1843 (infrun_async_inferior_event_handler): Adjust.
1844 * infrun.h (fetch_inferior_event): Remove `void *` param.
1845 * linux-nat.c (handle_target_event): Adjust.
1846 * record-btrace.c (record_btrace_handle_async_inferior_event):
1847 Adjust.
1848 * record-full.c (record_full_async_inferior_event_handler):
1849 Adjust.
1850 * remote.c (remote_async_inferior_event_handler): Adjust.
1851
1cdf9e33
TT
18522020-07-01 Tom Tromey <tom@tromey.com>
1853
1854 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1855 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1856
32c1e210
TT
18572020-07-01 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1860 tui_gen_win_info.
1861 (tui_win_info::make_window): Merge with
1862 tui_gen_win_info::make_window.
1863 (tui_win_info::make_visible): Move from tui_gen_win_info.
1864 * tui/tui-win.c (tui_win_info::max_width): Move from
1865 tui_gen_win_info.
1866 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1867 type.
1868 <window_factory>: Likewise.
1869 * tui/tui-layout.c (tui_win_info::resize): Move from
1870 tui_gen_win_info.
1871 (make_standard_window): Change return type.
1872 (get_locator_window, tui_get_window_by_name): Likewise.
1873 (tui_layout_window::apply): Remove a cast.
1874 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1875 (struct tui_win_info): Merge with tui_gen_win_info.
1876 (struct tui_gen_win_info): Remove.
1877
a30cb6da
TT
18782020-07-01 Tom Tromey <tom@tromey.com>
1879
1880 * tui/tui-stack.h (struct tui_locator_window): Derive from
1881 tui_win_info.
1882 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1883 <can_box>: New method.
1884
1eb2161f
TT
18852020-07-01 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1888
7134f2eb
TT
18892020-07-01 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-regs.c (tui_data_window::display_registers_from)
1892 (tui_data_window::display_registers_from)
1893 (tui_data_window::first_data_item_displayed)
1894 (tui_data_window::delete_data_content_windows): Update.
1895 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1896 Remove.
1897 (tui_data_window::check_register_values): Update.
1898 (tui_data_item_window::rerender): Add parameters. Update.
1899 (tui_data_item_window::refresh_window): Remove.
1900 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1901 virtual.
1902 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1903 tui_gen_win_info.
1904 <refresh_window, max_height, min_height>: Remove.
1905 <rerender>: Add parameters.
1906 <x, y, visible>: New members.
1907 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1908 <m_item_width>: New member.
1909
22b7b041
TT
19102020-07-01 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-regs.c (tui_data_window::show_register_group)
1913 (tui_data_window::check_register_values): Update.
1914 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1915 from item_no.
1916
c9753adb
TT
19172020-07-01 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1920 useless "if".
1921
9ab26b4a
TT
19222020-07-01 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1925 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1926
e555083f
TT
19272020-07-01 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1930 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1931 (struct tui_line_or_address): Move from tui-data.h.
1932 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1933 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1934 (tui_cmd_window, tui_source_window_base, tui_source_window)
1935 (tui_disasm_window): Don't declare.
1936 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1937 to tui-winsource.h.
1938 (SINGLE_KEY): Move to tui-stack.c.
1939
7a02bab7
TT
19402020-07-01 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1943 std::string.
1944 * tui/tui-regs.c (class tab_expansion_file): New.
1945 (tab_expansion_file::write): New method.
1946 (tui_register_format): Change return type. Use
1947 tab_expansion_file.
1948 (tui_get_register, tui_data_window::display_registers_from)
1949 (tui_data_item_window::rerender): Update.
1950 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1951 * tui/tui-io.c (tui_expand_tabs): Remove.
1952
ea68593b
TT
19532020-07-01 Tom Tromey <tom@tromey.com>
1954
1955 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1956
a8caed5d
FS
19572020-07-01 Fangrui Song <maskray@google.com>
1958
1959 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1960
9cdf9820
AKS
19612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1962
1963 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1964 forms for DW_AT_associated and DW_AT_allocated attributes,
1965 which is already checked in function attr_to_dynamic_prop.
1966
a1520ad8
TT
19672020-06-30 Tom Tromey <tromey@adacore.com>
1968
1969 * dwarf2/read.c (quirk_rust_enum): Correctly call
1970 alloc_rust_variant for default-less enum.
1971
5ac58899
TT
19722020-06-30 Tom Tromey <tromey@adacore.com>
1973
1974 PR build/26183:
1975 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1976 gdb::to_string.
1977
19b187a9
SM
19782020-06-29 Simon Marchi <simon.marchi@efficios.com>
1979
1980 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1981 * gdbarch.h: Re-generate.
1982
cd4c4c07
TT
19832020-06-28 Tom Tromey <tom@tromey.com>
1984
1985 * command.h (cmd_types): Remove.
1986 (cmd_type): Don't declare.
1987 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1988 typedef.
1989 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1990 * cli/cli-decode.c (cmd_type): Remove.
1991
05779d57
PA
19922020-06-27 Pedro Alves <palves@redhat.com>
1993
1994 * fork-child.c (prefork_hook): Adjust.
1995 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1996 Delete.
1997 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1998 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1999 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2000 Remove declarations.
2001 (struct inferior) <set_tty, tty>: New methods.
2002 (struct inferior) <terminal>: Rename to ...
2003 (struct inferior) <m_terminal>: ... this and make private.
2004 * main.c (captured_main_1): Adjust.
2005 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2006 (mi_cmd_inferior_tty_show): Adjust.
2007 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2008 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2009
1776e3e5
NA
20102020-06-26 Nick Alcock <nick.alcock@oracle.com>
2011
2012 * configure.ac: Add --enable-libctf: handle --disable-static
2013 properly.
2014 * acinclude.m4: sinclude ../config/enable.m4.
2015 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2016 (LIBCTF): Substitute in.
2017 (CTF_DEPS): New, likewise.
2018 (CLIBS): libctf needs symbols from libbfd: move earlier.
2019 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2020 flags.
2021 * ctfread.c: Surround in ENABLE_LIBCTF.
2022 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2023 * configure: Regenerate.
2024 * config.in: Likewise.
2025
58373b80
SM
20262020-06-25 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2029
277474ee
SM
20302020-06-25 Simon Marchi <simon.marchi@efficios.com>
2031
2032 * inferior.h (struct inferior) <terminal>: Change type to
2033 gdb::unique_xmalloc_ptr<char>.
2034 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2035 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2036 field, adjust to unique pointer.
2037 (get_inferior_io_terminal): Adjust to unique pointer.
2038
6d74da72
AB
20392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2042 registers, not just the known core set of registers.
2043
2e52d038
AB
20442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2047 fflags, frm, and fcsr registers.
2048 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2049 restore groups.
2050 (riscv_tdesc_unknown_reg): New function.
2051 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2052 tdesc_use_registers.
2053 * riscv-tdep.h (struct gdbarch_tdep): Add
2054 unknown_csrs_first_regnum, unknown_csrs_count,
2055 duplicate_fflags_regnum, duplicate_frm_regnum, and
2056 duplicate_fcsr_regnum fields.
2057
be64fd07
AB
20582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2061 callback, use the callback (when not null) to help number unknown
2062 registers.
2063 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2064 (tdesc_use_registers): Add extra parameter to declaration.
2065
3b9fce96
AB
20662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2069 in the file.
2070 (class riscv_pending_register_alias): Likewise.
2071 (riscv_register_feature::register_info): Change 'required_p' field
2072 to 'required', and change its type. Add 'check' member function.
2073 (riscv_register_feature::register_info::check): Define new member
2074 function.
2075 (riscv_xreg_feature): Change initialisation of 'required' field.
2076 (riscv_freg_feature): Likewise.
2077 (riscv_virtual_feature): Likewise.
2078 (riscv_csr_feature): Likewise.
2079 (riscv_check_tdesc_feature): Take extra parameter, the csr
2080 tdesc_feature, rewrite the function to use the new
2081 riscv_register_feature::register_info::check function.
2082 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2083
865bad26
AB
20842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * features/Makefile: Remove all references to the deleted files
2087 below.
2088 * features/riscv/32bit-csr.c: Deleted.
2089 * features/riscv/32bit-csr.xml: Deleted.
2090 * features/riscv/64bit-csr.c: Deleted.
2091 * features/riscv/64bit-csr.xml: Deleted.
2092 * features/riscv/rebuild-csr-xml.sh: Deleted.
2093
ed69cbc8
AB
20942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2097 whitespace error for declaration of names member variable.
2098 (struct riscv_register_feature): Add new prefer_first_name member
2099 variable, and fix whitespace error in declaration of registers.
2100 (riscv_xreg_feature): Initialize prefer_first_name field.
2101 (riscv_freg_feature): Likewise.
2102 (riscv_virtual_feature): Likewise.
2103 (riscv_csr_feature): Likewise.
2104 (riscv_register_name): Expand on comments. Remove register name
2105 modifications for CSR and virtual registers.
2106
4445e8f5
AB
21072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2110 errors.
2111
767a879e
AB
21122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2115 riscv-opc.h.
2116 (class riscv_pending_register_alias): New class.
2117 (riscv_check_tdesc_feature): Take vector of pending aliases and
2118 populate it as appropriate.
2119 (riscv_setup_register_aliases): Delete.
2120 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2121 to riscv_check_tdesc_feature in all cases. Use the vector to
2122 create the register aliases.
2123
bb6e55f3
RO
21242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2125
2126 * sol2-tdep.c (sol2_static_transform_name): Remove.
2127 (sol2_init_abi): Don't register it.
2128 * gdbarch.sh (static_transform_name): Remove.
2129 * gdbarch.c, gdbarch.h: Regenerate.
2130
2131 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2132 gdbarch_static_transform_name.
2133 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2134 * stabsread.c (define_symbol) <'X'>: Remove.
2135 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2136 handling.
2137 <'V'>: Likewise.
2138 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2139 <'S'>: Remove call to gdbarch_static_transform_name.
2140
c6d36836
RO
21412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2142
2143 * procfs.c (procfs_pre_trace): New function.
2144 (procfs_target::create_inferior): Pass it to fork_inferior.
2145
a7e6196b
RO
21462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2147
2148 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2149 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2150 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2151 sol2-tdep.o, sparc-sol2-tdep.o.
2152 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2153 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2154 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2155 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2156
d412e696
RO
21572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2158
2159 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2160 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2161 Call sol2_init_abi.
2162 Remove calls to set_gdbarch_skip_solib_resolver,
2163 set_gdbarch_core_pid_to_str.
2164 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2165 (i386_sol2_static_transform_name): Remove.
2166 (i386_sol2_init_abi): Call sol2_init_abi.
2167 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2168 set_gdbarch_static_transform_name,
2169 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2170 Use sol2_sigtramp_p.
2171 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2172 (sol2_sigtramp_p): New function.
2173 (sol2_static_transform_name): New function.
2174 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2175 (sol2_init_abi): New function.
2176 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2177 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2178 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2179 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2180 (sparc_sol2_static_transform_name): Remove.
2181 (sparc32_sol2_init_abi): Call sol2_init_abi.
2182 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2183 set_gdbarch_static_transform_name,
2184 set_gdbarch_skip_solib_resolver,
2185 set_gdbarch_core_pid_to_str.
2186 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2187 (sparc_sol2_static_transform_name): Remove
2188 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2189 call sol2_sigtramp_p.
2190 (sparc64_sol2_init_abi): Call sol2_init_abi.
2191 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2192 set_gdbarch_static_transform_name,
2193 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2194
a8654e7d
PW
21952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2196
2197 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2198 * exec.c (validate_exec_file): If from_tty, set both
2199 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2200 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2201 and from_tty, unconditionally ask a confirmation.
2202
caa7fd04
AB
22032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * target-descriptions.c (tdesc_architecture_name): Protect against
2206 NULL pointer dereference.
2207 (maint_print_xml_tdesc_cmd): New function.
2208 (_initialize_target_descriptions): Register new 'maint print
2209 xml-tdesc' command and give it the filename completer.
2210 * NEWS: Mention new 'maint print xml-tdesc' command.
2211
fbf42f4e
AB
22122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * target-descriptions.c (class tdesc_compatible_info): New class.
2215 (struct target_desc): Change type of compatible vector.
2216 (tdesc_compatible_p): Update for change in type of
2217 target_desc::compatible.
2218 (tdesc_compatible_info_list): New function.
2219 (tdesc_compatible_info_arch_name): New function.
2220 (tdesc_add_compatible): Update for change in type of
2221 target_desc::compatible.
2222 (print_c_tdesc::visit_pre): Likewise.
2223
20821f4e
AB
22242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2227 whitespace to underscore.
2228 (maint_print_c_tdesc_cmd): Use fake filename for target
2229 descriptions that came from the target.
2230 (_initialize_target_descriptions): Add filename command completion
2231 for 'maint print c-tdesc'.
2232
1fb5ee62
SM
22332020-06-23 Simon Marchi <simon.marchi@efficios.com>
2234
2235 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2236 lines.
2237
fc3ecb3e
SM
22382020-06-23 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2241 lines.
2242 (dwarf2_find_location_expression): Likewise.
2243 (call_site_parameter_matches): Likewise.
2244 (dwarf2_compile_expr_to_ax): Likewise.
2245 (disassemble_dwarf_expression): Likewise.
2246 (loclist_describe_location): Likewise.
2247
236ef034
PA
22482020-06-23 Pedro Alves <palves@redhat.com>
2249
2250 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2251 progspace-and-thread.h. Include scoped-mock-context.h instead.
2252 (register_to_value_test): Use scoped_mock_context.
2253 * regcache.c: Include "scoped-mock-context.h".
2254 (cooked_read_test): Don't error out if a target is already pushed.
2255 Use scoped_mock_context. Adjust.
2256 * scoped-mock-context.h: New file.
2257
39e7ecca
AB
22582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2259
2260 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2261 initializer.
2262 (ada_language::is_string_type_p): New member function.
2263 * c-lang.c (c_language_data): Delete la_is_string_type_p
2264 initializer.
2265 (cplus_language_data): Likewise.
2266 (asm_language_data): Likewise.
2267 (minimal_language_data): Likewise.
2268 * d-lang.c (d_language_data): Likewise.
2269 * f-lang.c (f_is_string_type_p): Delete function, implementation
2270 moved to f_language::is_string_type_p.
2271 (f_language_data): Delete la_is_string_type_p initializer.
2272 (f_language::is_string_type_p): New member function,
2273 implementation from f_is_string_type_p.
2274 * go-lang.c (go_is_string_type_p): Delete function, implementation
2275 moved to go_language::is_string_type_p.
2276 (go_language_data): Delete la_is_string_type_p initializer.
2277 (go_language::is_string_type_p): New member function,
2278 implementation from go_is_string_type_p.
2279 * language.c (language_defn::is_string_type_p): Define new member
2280 function.
2281 (default_is_string_type_p): Make static, add comment copied from
2282 header file.
2283 (unknown_language_data): Delete la_is_string_type_p initializer.
2284 (unknown_language::is_string_type_p): New member function.
2285 (auto_language_data): Delete la_is_string_type_p initializer.
2286 (auto_language::is_string_type_p): New member function.
2287 * language.h (language_data): Delete la_is_string_type_p field.
2288 (language_defn::is_string_type_p): Declare new function.
2289 (default_is_string_type_p): Delete desclaration, move comment to
2290 definition.
2291 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2292 moved to m2_language::is_string_type_p.
2293 (m2_language_data): Delete la_is_string_type_p initializer.
2294 (m2_language::is_string_type_p): New member function,
2295 implementation from m2_is_string_type_p.
2296 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2297 initializer.
2298 * opencl-lang.c (opencl_language_data): Likewise.
2299 * p-lang.c (pascal_is_string_type_p): Delete function,
2300 implementation moved to pascal_language::is_string_type_p.
2301 (pascal_language_data): Delete la_is_string_type_p initializer.
2302 (pascal_language::is_string_type_p): New member function,
2303 implementation from pascal_is_string_type_p.
2304 * rust-lang.c (rust_is_string_type_p): Delete function,
2305 implementation moved to rust_language::is_string_type_p.
2306 (rust_language_data): Delete la_is_string_type_p initializer.
2307 (rust_language::is_string_type_p): New member function,
2308 implementation from rust_is_string_type_p.
2309 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2310 is_string_type_p.
2311
4ffc13fb
AB
23122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 * ada-lang.c (ada_language_data): Delete la_print_typedef
2315 initializer.
2316 (ada_language::print_typedef): New member function.
2317 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2318 (cplus_language_data): Likewise.
2319 (asm_language_data): Likewise.
2320 (minimal_language_data): Likewise.
2321 * d-lang.c (d_language_data): Likewise.
2322 * f-lang.c (f_language_data): Likewise.
2323 (f_language::print_typedef): New member function.
2324 * go-lang.c (go_language_data): Delete la_print_typedef
2325 initializer.
2326 * language.c (language_defn::print_typedef): Define member
2327 function.
2328 (unknown_language_data): Delete la_print_typedef initializer.
2329 (unknown_language::print_typedef): New member function.
2330 (auto_language_data): Delete la_print_typedef initializer.
2331 (auto_language::print_typedef): New member function.
2332 * language.h (language_data): Delete la_print_typedef field.
2333 (language_defn::print_typedef): Declare new member function.
2334 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2335 (default_print_typedef): Delete declaration.
2336 * m2-lang.c (m2_language_data): Delete la_print_typedef
2337 initializer.
2338 (m2_language::print_typedef): New member function.
2339 * objc-lang.c (objc_language_data): Delete la_print_typedef
2340 initializer.
2341 * opencl-lang.c (opencl_language_data): Likewise.
2342 * p-lang.c (pascal_language_data): Likewise.
2343 (pascal_language::print_typedef): New member function.
2344 * rust-lang.c (rust_print_typedef): Delete function,
2345 implementation moved to rust_language::print_typedef.
2346 (rust_language): Delete la_print_typedef initializer.
2347 (rust_language::print_typedef): New member function,
2348 implementation from rust_print_typedef.
2349 * typeprint.c (default_print_typedef): Delete.
2350
d711ee67
AB
23512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2354 (ada_language::printstr): New member function.
2355 * c-lang.c (c_language_data): Delete la_printstr initializer.
2356 (cplus_language_data): Likewise.
2357 (asm_language_data): Likewise.
2358 (minimal_language_data): Likewise.
2359 * d-lang.c (d_language_data): Likewise.
2360 * f-lang.c (f_printstr): Rename to f_language::printstr.
2361 (f_language_data): Delete la_printstr initializer.
2362 (f_language::printstr): New member function, implementation from
2363 f_printstr.
2364 * go-lang.c (go_language_data): Delete la_printstr initializer.
2365 * language.c (language_defn::printstr): Define new member
2366 function.
2367 (unk_lang_printstr): Delete.
2368 (unknown_language_data): Delete la_printstr initializer.
2369 (unknown_language::printstr): New member function.
2370 (auto_language_data): Delete la_printstr initializer.
2371 (auto_language::printstr): New member function.
2372 * language.h (language_data): Delete la_printstr field.
2373 (language_defn::printstr): Declare new member function.
2374 (LA_PRINT_STRING): Update call to printstr.
2375 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2376 (m2_language_data): Delete la_printstr initializer.
2377 (m2_language::printstr): New member function, implementation from
2378 m2_printstr.
2379 * objc-lang.c (objc_language_data): Delete la_printstr
2380 initializer.
2381 * opencl-lang.c (opencl_language_data): Likewise.
2382 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2383 (pascal_language_data): Delete la_printstr initializer.
2384 (pascal_language::printstr): New member function, implementation
2385 from pascal_printstr.
2386 * p-lang.h (pascal_printstr): Delete declaration.
2387 * rust-lang.c (rust_printstr): Update header comment.
2388 (rust_language_data): Delete la_printstr initializer.
2389 (rust_language::printstr): New member function.
2390
52b50f2c
AB
23912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2394 (ada_language::printchar): New member function.
2395 * c-lang.c (c_language_data): Delete la_printchar initializer.
2396 (cplus_language_data): Likewise.
2397 (asm_language_data): Likewise.
2398 (minimal_language_data): Likewise.
2399 * d-lang.c (d_language_data): Likewise.
2400 * f-lang.c (f_printchar): Rename to f_language::printchar.
2401 (f_language_data): Delete la_printchar initializer.
2402 (f_language::printchar): New member function, implementation from
2403 f_printchar.
2404 * go-lang.c (go_language_data): Delete la_printchar initializer.
2405 * language.c (unk_lang_printchar): Delete.
2406 (language_defn::printchar): Define new member function.
2407 (unknown_language_data): Delete la_printchar initializer.
2408 (unknown_language::printchar): New member function.
2409 (auto_language_data): Delete la_printchar initializer.
2410 (auto_language::printchar): New member function.
2411 * language.h (language_data): Delete la_printchar field.
2412 (language_defn::printchar): Declare new member function.
2413 (LA_PRINT_CHAR): Update call to printchar.
2414 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2415 (m2_language::printchar): New member function.
2416 * objc-lang.c (objc_language_data): Delete la_printchar
2417 initializer.
2418 * opencl-lang.c (opencl_language_data): Likewise.
2419 * p-lang.c (pascal_language_data): Delete la_printchar
2420 initializer.
2421 (pascal_language::printchar): New member function.
2422 * rust-lang.c (rust_printchar): Rename to
2423 rust_language::printchar.
2424 (rust_language_data): Delete la_printchar initializer.
2425 (rust_language::printchar): New member function, implementation
2426 from rust_printchar.
2427
ec8cec5b
AB
24282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2431 (ada_language_data): Delete la_emitchar initializer.
2432 (ada_language::emitchar): New member function, implementation from
2433 emit_char.
2434 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2435 (cplus_language_data): Likewise.
2436 (asm_language_data): Likewise.
2437 (minimal_language_data): Likewise.
2438 * d-lang.c (d_language_data): Likewise.
2439 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2440 (f_language_data): Delete la_emitchar initializer.
2441 (f_language::emitchar): New member function, implementation from
2442 f_emit_char.
2443 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2444 * language.c (unk_lang_emit_char): Delete.
2445 (language_defn::emitchar): New member function definition.
2446 (unknown_language_data): Delete la_emitchar initializer.
2447 (unknown_language::emitchar): New member function.
2448 (auto_language_data): Delete la_emitchar initializer.
2449 (auto_language::emitchar): New member function.
2450 * language.h (language_data): Delete la_emitchar field.
2451 (language_defn::emitchar): New member field declaration.
2452 (LA_EMIT_CHAR): Update call to emitchar.
2453 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2454 (m2_language_data): Delete la_emitchar initializer.
2455 (m2_language::emitchar): New member function, implementation from
2456 m2_emit_char.
2457 * objc-lang.c (objc_language_data): Delete la_emitchar
2458 initializer.
2459 * opencl-lang.c (opencl_language_data): Likewise.
2460 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2461 (pascal_language_data): Delete la_emitchar initializer.
2462 (pascal_language::emitchar): New member function, implementation
2463 from pascal_emit_char.
2464 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2465 (rust_language_data): Delete la_emitchar initializer.
2466 (rust_language::emitchar): New member function, implementation
2467 from rust_emitchar.
2468
1bf9c363
AB
24692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2472 (ada_language_data): Delete la_post_parser initializer.
2473 (ada_language::post_parser): New member function.
2474 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2475 (cplus_language_data): Likewise.
2476 (asm_language_data): Likewise.
2477 (minimal_language_data): Likewise.
2478 * d-lang.c (d_language_data): Likewise.
2479 * f-lang.c (f_language_data): Likewise.
2480 * go-lang.c (go_language_data): Likewise.
2481 * language.c (unknown_language_data): Likewise.
2482 (auto_language_data): Likewise.
2483 * language.h (language_data): Delete la_post_parser field.
2484 (language_defn::post_parser): New member function.
2485 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2486 * objc-lang.c (objc_language_data): Likewise.
2487 * opencl-lang.c (opencl_language_data): Likewise.
2488 * p-lang.c (pascal_language_data): Likewise.
2489 * parse.c (parse_exp_in_context): Update call to post_parser.
2490 (null_post_parser): Delete definition.
2491 * parser-defs.h (null_post_parser): Delete declaration.
2492 * rust-lang.c (rust_language_data): Delete la_post_parser
2493 initializer.
2494
87afa652
AB
24952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * ada-lang.c (parse): Rename to ada_language::parser.
2498 (ada_language_data): Delete la_parser initializer.
2499 (ada_language::parser): New member function, implementation from
2500 parse.
2501 * c-lang.c (c_language_data): Delete la_parser initializer.
2502 (cplus_language_data): Likewise.
2503 (asm_language_data): Likewise.
2504 (minimal_language_data): Likewise.
2505 * d-lang.c (d_language_data): Likewise.
2506 (d_language::parser): New member function.
2507 * f-lang.c (f_language_data): Delete la_parser initializer.
2508 (f_language::parser): New member function.
2509 * go-lang.c (go_language_data): Delete la_parser initializer.
2510 (go_language::parser): New member function.
2511 * language.c (unk_lang_parser): Delete.
2512 (language_defn::parser): Define new member function.
2513 (unknown_language_data): Delete la_parser initializer.
2514 (unknown_language::parser): New member function.
2515 (auto_language_data): Delete la_parser initializer.
2516 (auto_language::parser): New member function.
2517 * language.h (language_data): Delete la_parser field.
2518 (language_defn::parser): Declare new member function.
2519 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2520 (m2_language::parser): New member function.
2521 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2522 * opencl-lang.c (opencl_language_data): Likewise.
2523 * p-lang.c (pascal_language_data): Likewise.
2524 (pascal_language::parser): New member function.
2525 * parse.c (parse_exp_in_context): Update call to parser.
2526 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2527 (rust_language::parser): New member function.
2528
37825800
AB
25292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * top.c (print_gdb_configuration): Print --with-python-libdir
2532 configuration value.
2533
5b860c93
PW
25342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2535
2536 * NEWS: Mention change to the alias command.
2537
cf00cd6f
PW
25382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2539
2540 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2541 (alias_command_completer)
2542 (make_alias_options_def_group): New functions.
2543 (alias_opts, alias_option_defs): New struct and array.
2544 (alias_usage_error): Update usage.
2545 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2546 Use option framework.
2547 (_initialize_cli_cmds): Update alias command help.
2548 Update aliases command help.
2549 (show_user):
2550 Add NULL for new default_args lookup_cmd argument.
2551 (valid_command_p): Rename to validate_aliased_command.
2552 Add NULL for new default_args lookup_cmd argument. Verify that the
2553 aliased_command has no default args.
2554 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2555 (lookup_cmd_1, lookup_cmd): New argument default_args.
2556 (add_alias_cmd):
2557 Add NULL for new default_args lookup_cmd argument.
2558 (print_help_for_command): Show default args under the layout
2559 alias some_alias = some_aliased_cmd some_alias_default_arg.
2560 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2561 xfree default_args in destructor.
2562 * cli/cli-script.c (process_next_line, do_define_command):
2563 Add NULL for new default_args lookup_cmd argument.
2564 * command.h: Declare new default_args argument in lookup_cmd
2565 and lookup_cmd_1.
2566 * completer.c (complete_line_internal_1):
2567 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2568 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2569 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2570 Likewise.
2571 * infcmd.c (_initialize_infcmd): Likewise.
2572 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2573 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2574 * python/py-param.c (add_setshow_generic): Likewise.
2575 * remote.c (_initialize_remote): Likewise.
2576 * top.c (execute_command): Prepend default_args if command has some.
2577 (set_verbose):
2578 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2579 * tracepoint.c (validate_actionline, encode_actions_1):
2580 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2581
bd920864
TBA
25822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2583
2584 * jit.c (jit_read_descriptor): Use bool as the return type.
2585 (jit_breakpoint_re_set_internal): Use bool as the return type.
2586 Invert the return value logic; return true if the jit breakpoint
2587 has been successfully initialized.
2588 (jit_inferior_init): Update the call to
2589 jit_breakpoint_re_set_internal.
2590
f8098322
PA
25912020-06-22 Pedro Alves <palves@redhat.com>
2592
2593 PR gdb/25939
2594 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2595 Use the current inferior instead. Don't return
2596 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2597 wait again.
2598 * sol-thread.c (sol_thread_target::wait): Don't reference
2599 inferior_ptid.
2600 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2601 (sol_update_thread_list_callback): Use the current inferior's pid
2602 instead of inferior_ptid.
2603
196535a6
RO
26042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2605
2606 * procfs.c: Cleanup many comments.
2607
2608 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2609 (AFTER_WATCHFLAG): Replace by value.
2610
2611 (MAIN_PROC_NAME_FORMAT): Inline ...
2612 (create_procinfo): ... here.
2613
2614 (procfs_debug_inferior): Remove SYS_exec handling.
2615 (syscall_is_exec): Likewise.
2616 (procfs_set_exec_trap): Likewise.
2617
2618 (syscall_is_lwp_exit): Inline in callers.
2619 (syscall_is_exit): Likewise.
2620 (syscall_is_exec): Likewise.
2621 (syscall_is_lwp_create): Likewise.
2622
2623 (invalidate_cache): Remove #if 0 code.
2624
2625 (make_signal_thread_runnable): Remove.
2626 (procfs_target::resume): Remove #if 0 code.
2627
cf6f3e86
RO
26282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2629
2630 PR gdb/25939
2631 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2632 call ...
2633 (procfs_target::create_inferior): ... here.
2634
48e9cc84
PW
26352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2636
2637 * exec.c (validate_exec_file): Ensure the build-id is up to
2638 date by calling reopen_exec_file (that checks file timestamp
2639 to decide to re-read the file).
2640
3922b302
PA
26412020-06-18 Pedro Alves <palves@redhat.com>
2642
2643 PR gdb/25412
2644 * gdbthread.h (delete_thread, delete_thread_silent)
2645 (find_thread_ptid): Update comments.
2646 * thread.c (current_thread_): New global.
2647 (is_current_thread): Move higher, and reimplement.
2648 (inferior_thread): Reimplement.
2649 (set_thread_exited): Use bool. Add assertions.
2650 (add_thread_silent): Simplify thread-reuse handling by always
2651 calling delete_thread.
2652 (delete_thread): Remove intro comment.
2653 (find_thread_ptid): Skip exited threads.
2654 (switch_to_thread_no_regs): Write to current_thread_.
2655 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2656 INFERIOR_PTID. Clear current_thread_.
2657
6dbdab44
PA
26582020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * aix-thread.c (pd_update): Use switch_to_thread.
2661
2da4b788
PA
26622020-06-18 Pedro Alves <palves@redhat.com>
2663
2664 * ravenscar-thread.c (ravenscar_thread_target): Update.
2665 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2666 (ravenscar_thread_target::add_active_thread): ... this. Don't
2667 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2668 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2669
50838d1b
PA
26702020-06-18 Pedro Alves <palves@redhat.com>
2671
2672 * nat/windows-nat.c (current_windows_thread): Remove.
2673 * nat/windows-nat.h (current_windows_thread): Remove.
2674 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2675 Adjust.
2676 (display_selectors): Adjust to fetch the current
2677 windows_thread_info based on inferior_ptid.
2678 (fake_create_process): No longer write to current_windows_thread.
2679 (windows_nat_target::get_windows_debug_event):
2680 Don't set inferior_ptid or current_windows_thread.
2681 (windows_nat_target::wait): Adjust to not rely on
2682 current_windows_thread.
2683 (do_initial_windows_stuff): Now a method of windows_nat_target.
2684 Switch to the last_ptid thread.
2685 (windows_nat_target::attach): Adjust.
2686 (windows_nat_target::detach): Use switch_to_no_thread instead of
2687 writing to inferior_ptid directly.
2688 (windows_nat_target::create_inferior): Adjust.
2689
31ce04e9
PA
26902020-06-18 Pedro Alves <palves@redhat.com>
2691
2692 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2693
1ee1a363
PA
26942020-06-18 Pedro Alves <palves@redhat.com>
2695
2696 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2697 after creating it, instead of writing to inferior_ptid. Don't
2698 write to inferior_ptid.
2699
6d350754
PA
27002020-06-18 Pedro Alves <palves@redhat.com>
2701
2702 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2703
5d971d48
PA
27042020-06-18 Pedro Alves <palves@redhat.com>
2705
2706 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2707 it, instead of writing to inferior_ptid.
2708
86e57d1b
PA
27092020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2712 to inferior_ptid.
2713
f2e1c129
PA
27142020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2717 instead of writing to inferior_ptid directly.
2718
60db1b85
PA
27192020-06-18 Pedro Alves <palves@redhat.com>
2720
2721 * corelow.c (core_target::close): Use switch_to_no_thread instead
2722 of writing to inferior_ptid directly.
2723 (add_to_thread_list, core_target_open): Use switch_to_thread
2724 instead of writing to inferior_ptid directly.
2725
fe7d6a8d
PA
27262020-06-18 Pedro Alves <palves@redhat.com>
2727
2728 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2729 inferior_ptid.
2730 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2731 inferior_ptid.
2732 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2733 inferior_ptid directly.
2734 (darwin_nat_target::init_thread_list): Switch to thread, instead
2735 of writing to inferior_ptid.
2736 (darwin_nat_target::attach): Don't write to inferior_ptid.
2737 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2738
975f8708
PA
27392020-06-18 Pedro Alves <palves@redhat.com>
2740
2741 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2742 thread.
2743 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2744 Instead use switch_to_thread.
2745 (gnu_nat_target::detach): Use switch_to_no_thread
2746 instead of writing to inferior_ptid directly. Used passed-in
2747 inferior instead of looking up the inferior by pid.
2748
1a204730
PA
27492020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2752 inferior_ptid.
2753
ebe84f23
PA
27542020-06-18 Pedro Alves <palves@redhat.com>
2755
2756 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2757 inferior_ptid.
2758 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2759 thread.
2760 (nto_procfs_target::detach): Avoid referencing
2761 inferior_ptid. Use switch_to_no_thread instead of writing to
2762 inferior_ptid directly.
2763 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2764 instead of writing to inferior_ptid directly.
2765 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2766 to thread.
2767
191f02e5
PA
27682020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2771 after creating it, instead of writing to inferior_ptid.
2772 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2773 to inferior_ptid directly.
2774 (gdbsim_target::wait): Don't write to inferior_ptid.
2775
0ac55310
PA
27762020-06-18 Pedro Alves <palves@redhat.com>
2777
2778 * remote.c (remote_target::remote_notice_new_inferior): Use
2779 switch_to_thread instead of writing to inferior_ptid directly.
2780 (remote_target::add_current_inferior_and_thread): Use
2781 switch_to_no_thread instead of writing to inferior_ptid directly.
2782 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2783 and switch_to_thread instead of using set_current_inferior or
2784 writing to inferior_ptid directly.
2785
5233f39b
PA
27862020-06-18 Pedro Alves <palves@redhat.com>
2787
2788 * tracectf.c (ctf_target_open): Switch to added thread instead of
2789 writing to inferior_ptid directly.
2790 (ctf_target::close): Use switch_to_no_thread instead of writing to
2791 inferior_ptid directly.
2792
087e161b
PA
27932020-06-18 Pedro Alves <palves@redhat.com>
2794
2795 * tracefile-tfile.c (tfile_target_open): Don't write to
2796 inferior_ptid directly, instead switch to added thread.
2797 (tfile_target::close): Use switch_to_no_thread instead of writing
2798 to inferior_ptid directly.
2799
7fb43e53
PA
28002020-06-18 Pedro Alves <palves@redhat.com>
2801
2802 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2803 (procfs_target::detach): Use switch_to_no_thread
2804 instead of writing to inferior_ptid directly.
2805 (do_attach): Change return type to void. Switch to the added
2806 thread.
2807 (procfs_target::create_inferior): Switch to the added thread.
2808 (procfs_do_thread_registers): Don't write to inferior_ptid.
2809
18493a00
PA
28102020-06-18 Pedro Alves <palves@redhat.com>
2811
2812 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2813 of writing to inferior_ptid.
2814 (scoped_restore_exited_inferior): Delete.
2815 (handle_vfork_child_exec_or_exit): Simplify using
2816 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2817 instead of writing to inferior_ptid.
2818 (THREAD_STOPPED_BY): Delete.
2819 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2820 (thread_stopped_by_hw_breakpoint): Delete.
2821 (save_waitstatus): Use
2822 scoped_restore_current_thread+switch_to_thread, and call
2823 target_stopped_by_watchpoint instead of
2824 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2825 instead of thread_stopped_by_sw_breakpoint, and
2826 target_stopped_by_hw_breakpoint instead of
2827 thread_stopped_by_hw_breakpoint.
2828 (handle_inferior_event)
2829 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2830 inferior_ptid directly, nor
2831 set_current_inferior/set_current_program_space. Use
2832 switch_to_thread / switch_to_inferior_no_thread instead.
2833
a0776b13
PA
28342020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2837 instead of writing to inferior_ptid.
2838
6155c136
PA
28392020-06-18 Pedro Alves <palves@redhat.com>
2840
2841 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2842 added thread.
2843 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2844 to the added thread.
2845 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2846 instead of writing to inferior_ptid.
2847
c5316fc6
PA
28482020-06-18 Pedro Alves <palves@redhat.com>
2849
2850 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2851 (register_to_value_test): Mock a program_space too. Heap-allocate
2852 the address space. Don't write to inferior_ptid. Use
2853 switch_to_thread instead.
2854
8df01799
PA
28552020-06-18 Pedro Alves <palves@redhat.com>
2856
2857 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2858 Delete.
2859 (find_signalled_thread()): New, factored out from
2860 linux_make_corefile_notes and adjusted to handle exited threads.
2861 (linux_make_corefile_notes): Adjust to use the new
2862 find_signalled_thread.
2863
41792d68
PA
28642020-06-18 Pedro Alves <palves@redhat.com>
2865
2866 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2867 of saving/restoring inferior_ptid.
2868
612f258a
TT
28692020-06-17 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2872 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2873 declare.
2874 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2875
efb763a5
SM
28762020-06-15 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2879 of partial symtabs.
2880
2951f6c0
SM
28812020-06-17 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * regformats/reg-arm.dat: Remove.
2884 * regformats/reg-bfin.dat: Remove.
2885 * regformats/reg-cris.dat: Remove.
2886 * regformats/reg-crisv32.dat: Remove.
2887 * regformats/reg-m32r.dat: Remove.
2888 * regformats/reg-tilegx.dat: Remove.
2889 * regformats/reg-tilegx32.dat: Remove.
2890
7d458ea5
SM
28912020-06-17 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * features/Makefile (WHICH): Remove arm files.
2894 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2895 * regformats/arm/arm-with-neon.dat: Remove.
2896 * regformats/arm/arm-with-vfpv2.dat: Remove.
2897 * regformats/arm/arm-with-vfpv3.dat: Remove.
2898
3af96c0d
SM
28992020-06-17 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * features/Makefile (XMLTOC): Remove rx.xml.
2902
b25e22fd
PA
29032020-06-17 Pedro Alves <palves@redhat.com>
2904
2905 * gdbthread.h (thread_control_state) <trap_expected> Update
2906 comments.
2907
a78a19b1
AB
29082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2911 ada_language::lookup_symbol_nonlocal.
2912 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2913 (ada_language::lookup_symbol_nonlocal): New member function,
2914 implementation from ada_lookup_symbol_nonlocal.
2915 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2916 initializer.
2917 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2918 initializer.
2919 (cplus_language::lookup_symbol_nonlocal): New member function.
2920 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2921 (minimal_language_data) Likewise.
2922 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2923 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2924 initializer.
2925 (d_language::lookup_symbol_nonlocal): New member function.
2926 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2927 initializer.
2928 (f_language::lookup_symbol_nonlocal): New member function.
2929 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2930 initializer.
2931 * language.c (unknown_language_data): Likewise.
2932 (auto_language_data): Likewise.
2933 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2934 field.
2935 (language_defn::lookup_symbol_nonlocal): New member function.
2936 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2937 initializer.
2938 * objc-lang.c (objc_language_data): Likewise.
2939 * opencl-lang.c (opencl_language_data): Likewise.
2940 * p-lang.c (pascal_language_data): Likewise.
2941 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2942 rust_language::lookup_symbol_nonlocal.
2943 (rust_language_data): Delete la_lookup_symbol_nonlocal
2944 initializer.
2945 (rust_language::lookup_symbol_nonlocal): New member function,
2946 implementation from rust_lookup_symbol_nonlocal.
2947 * symtab.c (lookup_symbol_aux): Update call to
2948 lookup_symbol_nonlocal.
2949 (basic_lookup_symbol_nonlocal): Rename to...
2950 (language_defn::lookup_symbol_nonlocal): ...this, and update
2951 header comment. Remove language_defn parameter, and replace with
2952 uses of `this'.
2953 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2954
ebe2334e
AB
29552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2958 initializer.
2959 (ada_language::value_print_inner): New member function.
2960 * c-lang.c (c_language_data): Delete la_value_print_inner
2961 initializer.
2962 (cplus_language_data): Likewise.
2963 (asm_language_data): Likewise.
2964 (minimal_language_data): Likewise.
2965 * d-lang.c (d_language_data): Likewise.
2966 (d_language::value_print_inner): New member function.
2967 * f-lang.c (f_language_data): Delete la_value_print_inner
2968 initializer.
2969 (f_language::value_print_inner): New member function.
2970 * f-lang.h (f_value_print_innner): Rename to...
2971 (f_value_print_inner): ...this (note spelling of 'inner').
2972 * f-valprint.c (f_value_print_innner): Rename to...
2973 (f_value_print_inner): ...this (note spelling of 'inner').
2974 * go-lang.c (go_language_data): Delete la_value_print_inner
2975 initializer.
2976 (go_language::value_print_inner): New member function.
2977 * language.c (language_defn::value_print_inner): Define new member
2978 function.
2979 (unk_lang_value_print_inner): Delete.
2980 (unknown_language_data): Delete la_value_print_inner initializer.
2981 (unknown_language::value_print_inner): New member function.
2982 (auto_language_data): Delete la_value_print_inner initializer.
2983 (auto_language::value_print_inner): New member function.
2984 * language.h (language_data): Delete la_value_print_inner field.
2985 (language_defn::value_print_inner): Delcare new member function.
2986 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2987 initializer.
2988 (m2_language::value_print_inner): New member function.
2989 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2990 initializer.
2991 * opencl-lang.c (opencl_language_data): Likewise.
2992 * p-lang.c (pascal_language_data): Likewise.
2993 (pascal_language::value_print_inner): New member function.
2994 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2995 initializer.
2996 (rust_language::value_print_inner): New member function.
2997 * valprint.c (do_val_print): Update call to value_print_inner.
2998
a1d1fa3e
AB
29992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * ada-lang.c (ada_language_data): Delete la_value_print
3002 initializer.
3003 (ada_language::value_print): New member function.
3004 * c-lang.c (c_language_data): Delete la_value_print initializer.
3005 (cplus_language_data): Likewise.
3006 (asm_language_data): Likewise.
3007 (minimal_language_data): Likewise.
3008 * d-lang.c (d_language_data): Likewise.
3009 * f-lang.c (f_language_data): Likewise.
3010 * go-lang.c (go_language_data): Likewise.
3011 * language.c (unk_lang_value_print): Delete.
3012 (language_defn::value_print): Define new member function.
3013 (unknown_language_data): Delete la_value_print initializer.
3014 (unknown_language::value_print): New member function.
3015 (auto_language_data): Delete la_value_print initializer.
3016 (auto_language::value_print): New member function.
3017 * language.h (language_data): Delete la_value_print field.
3018 (language_defn::value_print): Declare new member function.
3019 (LA_VALUE_PRINT): Update call to value_print.
3020 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3021 * objc-lang.c (objc_language_data): Likewise.
3022 * opencl-lang.c (opencl_language_data): Likewise.
3023 * p-lang.c (pascal_language_data): Likewise.
3024 (pascal_language::value_print): New member function.
3025 * rust-lang.c (rust_language_data): Delete la_value_print
3026 initializer.
3027
f16a9f57
AB
30282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3029
3030 * ada-lang.c (ada_watch_location_expression): Rename to
3031 ada_language::watch_location_expression.
3032 (ada_language_data): Delete la_watch_location_expression
3033 initializer.
3034 (ada_language::watch_location_expression): New member function,
3035 implementation from ada_watch_location_expression.
3036 * breakpoint.c (watch_command_1): Update call to
3037 watch_location_expression.
3038 * c-lang.c (c_watch_location_expression): Rename to
3039 language_defn::watch_location_expression.
3040 (c_language_data): Delete la_watch_location_expression
3041 initializer.
3042 (cplus_language_data): Likewise.
3043 (asm_language_data): Likewise.
3044 (minimal_language_data): Likewise.
3045 * c-lang.h (c_watch_location_expression): Delete declaration.
3046 * d-lang.c (d_language_data): Delete la_watch_location_expression
3047 initializer.
3048 * f-lang.c (f_language_data): Likewise.
3049 * go-lang.c (go_language_data): Likewise.
3050 * language.c (language_defn::watch_location_expression): Member
3051 function implementation from c_watch_location_expression.
3052 (unknown_language_data): Delete la_watch_location_expression
3053 initializer.
3054 (auto_language_data): Likewise.
3055 * language.h (language_data): Delete la_watch_location_expression
3056 field.
3057 (language_defn::watch_location_expression): Declare new member
3058 function.
3059 * m2-lang.c (m2_language_data): Delete
3060 la_watch_location_expression initializer.
3061 * objc-lang.c (objc_language_data): Likewise.
3062 * opencl-lang.c (opencl_language_data): Likewise.
3063 * p-lang.c (pascal_language_data): Likewise.
3064 * rust-lang.c (rust_watch_location_expression): Rename to
3065 rust_language::watch_location_expression.
3066 (rust_language_data): Delete la_watch_location_expression
3067 initializer.
3068 (rust_language::watch_location_expression): New member function,
3069 implementation from rust_watch_location_expression.
3070
7e56227d
AB
30712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3074 ada_language::collect_symbol_completion_matches.
3075 (ada_language_data): Delete la_collect_symbol_completion_matches
3076 initializer.
3077 (ada_language::collect_symbol_completion_matches): New member
3078 function, implementation from
3079 ada_collect_symbol_completion_matches.
3080 * c-lang.c (c_language_data): Delete
3081 la_collect_symbol_completion_matches initializer.
3082 (cplus_language_data): Likewise.
3083 (asm_language_data): Likewise.
3084 (minimal_language_data): Likewise.
3085 * d-lang.c (d_language_data): Likewise.
3086 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3087 f_language::collect_symbol_completion_matches.
3088 (f_language_data): Delete la_collect_symbol_completion_matches
3089 initializer.
3090 (f_language::collect_symbol_completion_matches) New member
3091 function, implementation from f_collect_symbol_completion_matches.
3092 * go-lang.c (go_language_data): Delete
3093 la_collect_symbol_completion_matches initializer.
3094 * language.c (unknown_language_data): Likewise.
3095 (auto_language_data): Likewise.
3096 * language.h (language_data): Delete
3097 la_collect_symbol_completion_matches field.
3098 (language_defn::collect_symbol_completion_matches): New member
3099 function.
3100 * m2-lang.c (m2_language_data): Delete
3101 la_collect_symbol_completion_matches initializer.
3102 * objc-lang.c (objc_language_data): Likewise.
3103 * opencl-lang.c (opencl_language_data): Likewise.
3104 * p-lang.c (pascal_language_data): Likewise.
3105 * rust-lang.c (rust_language_data): Likewise.
3106 * symtab.c (default_collect_symbol_completion_matches): Delete.
3107 (collect_symbol_completion_matches): Update call to
3108 collect_symbol_completion_matches.
3109 (collect_symbol_completion_matches_type): Likewise.
3110 * symtab.h (default_collect_symbol_completion_matches): Delete
3111 declaration.
3112
53fc67f8
AB
31132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3116 (ada_language_data): Delete la_word_break_characters initializer.
3117 (ada_language::word_break_characters): New member function.
3118 * c-lang.c (c_language_data): Delete la_word_break_characters
3119 initializer.
3120 (cplus_language_data): Likewise.
3121 (asm_language_data): Likewise.
3122 (minimal_language_data): Likewise.
3123 * completer.c: Update global comment.
3124 (advance_to_expression_complete_word_point): Update call to
3125 word_break_characters.
3126 (complete_files_symbols): Likewise.
3127 (complete_line_internal_1): Likewise.
3128 (default_completer_handle_brkchars): Likewise.
3129 (skip_quoted_chars): Likewise.
3130 * d-lang.c (d_language_data): Delete la_word_break_characters
3131 initializer.
3132 * f-lang.c (f_word_break_characters): Delete.
3133 (f_language_data): Delete la_word_break_characters initializer.
3134 (f_language::word_break_characters): New member function.
3135 * go-lang.c (go_language_data): Delete la_word_break_characters
3136 initializer.
3137 * language.c (unknown_language_data): Likewise.
3138 (auto_language_data): Likewise.
3139 * language.h (default_word_break_characters): Move declaration to
3140 earlier in the file.
3141 (language_data): Delete la_word_break_characters field.
3142 (language_defn::word_break_characters): New member function.
3143 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3144 initializer.
3145 * objc-lang.c (objc_language_data): Likewise.
3146 * opencl-lang.c (opencl_language_data): Likewise.
3147 * p-lang.c (pascal_language_data): Likewise.
3148 * rust-lang.c (rust_language_data): Likewise.
3149
c9debfb9
AB
31502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3153 (ada_language_data): Delete la_get_symbol_name_matcher
3154 initializer.
3155 (language_defn::get_symbol_name_matcher_inner): New member
3156 function.
3157 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3158 initializer.
3159 (cplus_language_data): Likewise.
3160 (cplus_language::get_symbol_name_matcher_inner): New member
3161 function.
3162 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3163 (minimal_language_data): Likewise.
3164 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3165 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3166 initializer.
3167 * dictionary.c (iter_match_first_hashed): Update call to
3168 get_symbol_name_matcher.
3169 (iter_match_next_hashed): Likewise.
3170 (iter_match_next_linear): Likewise.
3171 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3172 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3173 initializer.
3174 (f_language::get_symbol_name_matcher_inner): New member function.
3175 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3176 initializer.
3177 * language.c (default_symbol_name_matcher): Update header comment,
3178 make static.
3179 (language_defn::get_symbol_name_matcher): New definition.
3180 (language_defn::get_symbol_name_matcher_inner): Likewise.
3181 (get_symbol_name_matcher): Delete.
3182 (unknown_language_data): Delete la_get_symbol_name_matcher
3183 initializer.
3184 (auto_language_data): Likewise.
3185 * language.h (language_data): Delete la_get_symbol_name_matcher
3186 field.
3187 (language_defn::get_symbol_name_matcher): New member function.
3188 (language_defn::get_symbol_name_matcher_inner): Likewise.
3189 (default_symbol_name_matcher): Delete declaration.
3190 * linespec.c (find_methods): Update call to
3191 get_symbol_name_matcher.
3192 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3193 initializer.
3194 * minsyms.c (lookup_minimal_symbol): Update call to
3195 get_symbol_name_matcher.
3196 (iterate_over_minimal_symbols): Likewise.
3197 * objc-lang.c (objc_language_data): Delete
3198 la_get_symbol_name_matcher initializer.
3199 * opencl-lang.c (opencl_language_data): Likewise.
3200 * p-lang.c (pascal_language_data): Likewise.
3201 * psymtab.c (psymbol_name_matches): Update call to
3202 get_symbol_name_matcher.
3203 * rust-lang.c (rust_language_data): Delete
3204 la_get_symbol_name_matcher initializer.
3205 * symtab.c (symbol_matches_search_name): Update call to
3206 get_symbol_name_matcher.
3207 (compare_symbol_name): Likewise.
3208
9a49ad8c
AB
32092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (ada_language_data): Delete la_compute_program
3212 initializer.
3213 * c-lang.c (c_language_data): Likewise.
3214 (c_language::compute_program): New member function.
3215 (cplus_language_data): Delete la_compute_program initializer.
3216 (cplus_language::compute_program): New member function.
3217 (asm_language_data): Delete la_compute_program initializer.
3218 (minimal_language_data): Likewise.
3219 * c-lang.h (c_compute_program): Update comment.
3220 (cplus_compute_program): Likewise.
3221 * compile/compile-c-support.c (c_compute_program): Likewise.
3222 (cplus_compute_program): Likewise.
3223 * compile/compile.c (compile_to_object): Update call to
3224 la_compute_program.
3225 * d-lang.c (d_language_data): Delete la_compute_program
3226 initializer.
3227 * f-lang.c (f_language_data): Likewise.
3228 * go-lang.c (go_language_data): Likewise.
3229 * language.c (unknown_language_data): Likewise.
3230 (auto_language_data): Likewise.
3231 * language.h (language_data): Delete la_compute_program field.
3232 (language_defn::compute_program): New member function.
3233 * m2-lang.c (m2_language_data): Delete la_compute_program
3234 initializer.
3235 * objc-lang.c (objc_language_data): Likewise.
3236 * opencl-lang.c (opencl_language_data): Likewise.
3237 * p-lang.c (pascal_language_data): Likewise.
3238 * rust-lang.c (rust_language_data): Likewise.
3239
eff93b4d
AB
32402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * ada-lang.c (ada_language_data) Delete
3243 la_class_name_from_physname initializer.
3244 * c-lang.c (c_language_data): Likewise.
3245 (cplus_language_data): Likewise.
3246 (cplus_language::class_name_from_physname): New member function.
3247 (asm_language_data): Delete la_class_name_from_physname
3248 initializer.
3249 (minimal_language_data): Likewise.
3250 * d-lang.c (d_language_data): Likewise.
3251 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3252 method on language_defn class.
3253 (guess_full_die_structure_name): Likewise.
3254 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3255 initializer.
3256 * go-lang.c (go_language_data): Likewise.
3257 * language.c (language_class_name_from_physname): Delete.
3258 (unk_lang_class_name): Delete.
3259 (unknown_language_data): Delete la_class_name_from_physname
3260 initializer.
3261 (auto_language_data): Likewise.
3262 * language.h (language_data): Delete la_class_name_from_physname
3263 field.
3264 (language_defn::class_name_from_physname): New function.
3265 (language_class_name_from_physname): Delete declaration.
3266 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3267 initializer.
3268 * objc-lang.c (objc_language_data): Likewise.
3269 * opencl-lang.c (opencl_language_data): Likewise.
3270 * p-lang.c (pascal_language_data): Likewise.
3271 * rust-lang.c (rust_language_data): Likewise.
3272
de543742
TT
32732020-06-16 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-data.h (STATUS_NAME): New macro.
3276 * tui/tui-layout.c (tui_remove_some_windows)
3277 (initialize_known_windows, tui_register_window)
3278 (tui_layout_split::remove_windows, initialize_layouts)
3279 (tui_new_layout_command): Don't use hard-coded window names.
3280
a350efd4
TT
32812020-06-16 Tom Tromey <tom@tromey.com>
3282
3283 PR tui/25348:
3284 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3285 tui_initialize_readline. Only run once. Call rl_initialize.
3286 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3287 tui_initialize_readline.
3288 * tui/tui-io.c (tui_setup_io): Call
3289 tui_ensure_readline_initialized.
3290 * tui/tui-interp.c (tui_interp::init): Update.
3291
39ec0490
TT
32922020-06-16 Tom Tromey <tom@tromey.com>
3293
3294 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3295 Also preserve the status window.
3296
d2d1ea20
TT
32972020-06-16 Tom Tromey <tom@tromey.com>
3298
3299 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3300 where m_window==nullptr.
3301
66920317
TT
33022020-06-15 Tom Tromey <tromey@adacore.com>
3303
3304 * windows-nat.c (windows_nat::handle_output_debug_string):
3305 Update.
3306 (windows_nat::handle_ms_vc_exception): Update.
3307 * target.h (target_read_string): Change API.
3308 * target.c (target_read_string): Change API.
3309 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3310 Update.
3311 * solib-frv.c (frv_current_sos): Update.
3312 * solib-dsbt.c (dsbt_current_sos): Update.
3313 * solib-darwin.c (darwin_current_sos): Update.
3314 * linux-thread-db.c (inferior_has_bug): Update.
3315 * expprint.c (print_subexp_standard): Update.
3316 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3317 (ada_exception_message_1): Update.
3318
a5d871dd
TT
33192020-06-15 Tom Tromey <tromey@adacore.com>
3320
3321 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3322
670e35fa
TT
33232020-06-15 Tom Tromey <tromey@adacore.com>
3324
3325 * valprint.c (read_string): Update comment.
3326 * target.c (MIN): Remove.
3327 (target_read_string): Rewrite.
3328
f5272a3b
TT
33292020-06-15 Tom Tromey <tromey@adacore.com>
3330
3331 * corefile.c (read_memory_string): Remove.
3332 * ada-valprint.c (ada_value_print_ptr): Update.
3333 * ada-lang.h (ada_tag_name): Change return type.
3334 * ada-lang.c (type_from_tag): Update.
3335 (ada_tag_name_from_tsd): Change return type. Use
3336 target_read_string.
3337 (ada_tag_name): Likewise.
3338 * gdbcore.h (read_memory_string): Don't declare.
3339
2c074f49
HD
33402020-06-14 Hannes Domani <ssbssa@yahoo.de>
3341
3342 * symtab.c (rbreak_command): Ignore Windows drive colon.
3343
6a17d503
SM
33442020-06-12 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * NEWS: Mention removed GDBserver host support.
3347
453c733f
NC
33482020-06-12 Nelson Chu <nelson.chu@sifive.com>
3349
3350 * features/riscv/rebuild-csr-xml.sh: Updated.
3351
2b4e6a3f
TT
33522020-06-11 Tom Tromey <tom@tromey.com>
3353
3354 PR gdb/18318:
3355 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3356
4412332f
JG
33572020-06-09 Jonny Grant <jg@jguk.org>
33582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3359
3360 * main.c (captured_main_1): Don't print new line after help.
3361 (print_gdb_help): add mailing list and IRC channel information
3362 to --help. Add new lines between items in the footer. Remove
3363 quotes around bug url.
3364
2f33032a
KS
33652020-06-11 Keith Seitz <keiths@redhat.com>
3366
3367 PR gdb/21356
3368 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3369 Resolve typedefs for type length calculations.
3370
7ab96794
TV
33712020-06-10 Tom de Vries <tdevries@suse.de>
3372
3373 PR ada/24713
3374 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3375 (write_psymbols): Enable .gdb_index for ada.
3376 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3377 ada.
3378
e5f3ece2
TV
33792020-06-10 Tom de Vries <tdevries@suse.de>
3380
3381 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3382 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3383 namei" instead of "const char *name" argument.
3384 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3385 dw2_symtab_iter_init.
3386
940da03e
SM
33872020-06-08 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3390 to use type::field and field::type instead.
3391
b6cdac4b
SM
33922020-06-08 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3395 to use field::type instead.
3396
5d14b6e5
SM
33972020-06-08 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * gdbtypes.h (struct field) <type, set_type>: New methods.
3400 Rename `type` field to...
3401 <m_type>: ... this. Change references throughout to use type or
3402 set_type methods.
3403 (FIELD_TYPE): Use field::type. Change call sites that modify
3404 the field's type to use field::set_type instead.
3405
3d967001
SM
34062020-06-08 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3409 to use type::index_type instead.
3410
262abc0d
SM
34112020-06-08 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3414 methods.
3415 (TYPE_INDEX_TYPE): Use type::index_type.
3416 * gdbtypes.c (create_array_type_with_stride): Likewise.
3417
82836c92
TT
34182020-06-07 Tom Tromey <tom@tromey.com>
3419
3420 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3421 parameter.
3422 (generic_value_print): Update.
3423
940dace9
AB
34242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 Revert commit 982a38f60b0.
3427 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3428
982a38f6
AB
34292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3432 avoid use after free.
3433
82f06518
TV
34342020-06-05 Tom de Vries <tdevries@suse.de>
3435
3436 * NEWS: Fix typos.
3437
f8c41851
SM
34382020-06-04 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3441 the per_bfd object.
3442 (dwarf2_read_debug_names): Likewise.
3443 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3444 object when re-using a per_bfd object with an index.
3445
f9b5d5ea
TV
34462020-06-03 Tom de Vries <tdevries@suse.de>
3447
3448 PR symtab/26046
3449 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3450 children for C++.
3451 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3452 DW_TAG_subprogram.
3453
f6eee2d0
AB
34542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_language_data): Delete skip_trampoline
3457 initializer.
3458 * c-lang.c (c_language_data): Likewise.
3459 (cplus_language_data): Likewise.
3460 (cplus_language::skip_trampoline): New member function.
3461 (asm_language_data): Delete skip_trampoline initializer.
3462 (minimal_language_data): Likewise.
3463 * d-lang.c (d_language_data): Likewise.
3464 * f-lang.c (f_language_data): Likewise.
3465 * go-lang.c (go_language_data): Likewise.
3466 * language.c (unk_lang_trampoline): Delete function.
3467 (skip_language_trampoline): Update.
3468 (unknown_language_data): Delete skip_trampoline initializer.
3469 (auto_language_data): Likewise.
3470 * language.h (language_data): Delete skip_trampoline field.
3471 (language_defn::skip_trampoline): New function.
3472 * m2-lang.c (m2_language_data): Delete skip_trampoline
3473 initializer.
3474 * objc-lang.c (objc_skip_trampoline): Delete function, move
3475 implementation to objc_language::skip_trampoline.
3476 (objc_language_data): Delete skip_trampoline initializer.
3477 (objc_language::skip_trampoline): New member function with
3478 implementation from objc_skip_trampoline.
3479 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3480 initializer.
3481 * p-lang.c (pascal_language_data): Likewise.
3482 * rust-lang.c (rust_language_data): Likewise.
3483
0a50df5d
AB
34842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3487 (ada_language::demangle): New member function.
3488 * c-lang.c (c_language_data): Delete la_demangle initializer.
3489 (cplus_language_data): Delete la_demangle initializer.
3490 (cplus_language::demangle): New member function.
3491 (asm_language_data): Delete la_demangle initializer.
3492 (minimal_language_data): Delete la_demangle initializer.
3493 * d-lang.c (d_language_data): Delete la_demangle initializer.
3494 (d_language::demangle): New member function.
3495 * f-lang.c (f_language_data): Delete la_demangle initializer.
3496 (f_language::demangle): New member function.
3497 * go-lang.c (go_language_data): Delete la_demangle initializer.
3498 (go_language::demangle): New member function.
3499 * language.c (language_demangle): Update.
3500 (unk_lang_demangle): Delete.
3501 (unknown_language_data): Delete la_demangle initializer.
3502 (unknown_language::demangle): New member function.
3503 (auto_language_data): Delete la_demangle initializer.
3504 (auto_language::demangle): New member function.
3505 * language.h (language_data): Delete la_demangle field.
3506 (language_defn::demangle): New function.
3507 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3508 * objc-lang.c (objc_language_data): Delete la_demangle
3509 initializer.
3510 (objc_language::demangle): New member function.
3511 * opencl-lang.c (opencl_language_data): Delete la_demangle
3512 initializer.
3513 * p-lang.c (pascal_language_data): Likewise.
3514 * rust-lang.c (rust_language_data): Likewise.
3515 (rust_language::demangle): New member function.
3516
fbfb0a46
AB
35172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * ada-lang.c (ada_language_data): Delete la_print_type
3520 initializer.
3521 (ada_language::print_type): New member function.
3522 * c-lang.c (c_language_data): Delete la_print_type initializer.
3523 (c_language::print_type): New member function.
3524 (cplus_language_data): Delete la_print_type initializer.
3525 (cplus_language::print_type): New member function.
3526 (asm_language_data): Delete la_print_type initializer.
3527 (asm_language::print_type): New member function.
3528 (minimal_language_data): Delete la_print_type initializer.
3529 (minimal_language::print_type): New member function.
3530 * d-lang.c (d_language_data): Delete la_print_type initializer.
3531 (d_language::print_type): New member function.
3532 * f-lang.c (f_language_data): Delete la_print_type initializer.
3533 (f_language::print_type): New member function.
3534 * go-lang.c (go_language_data): Delete la_print_type initializer.
3535 (go_language::print_type): New member function.
3536 * language.c (unk_lang_print_type): Delete.
3537 (unknown_language_data): Delete la_print_type initializer.
3538 (unknown_language::print_type): New member function.
3539 (auto_language_data): Delete la_print_type initializer.
3540 (auto_language::print_type): New member function.
3541 * language.h (language_data): Delete la_print_type field.
3542 (language_defn::print_type): New function.
3543 (LA_PRINT_TYPE): Update.
3544 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3545 (m2_language::print_type): New member function.
3546 * objc-lang.c (objc_language_data): Delete la_print_type
3547 initializer.
3548 (objc_language::print_type): New member function.
3549 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3550 to opencl_language::print_type.
3551 (opencl_language_data): Delete la_print_type initializer.
3552 (opencl_language::print_type): New member function, implementation
3553 from opencl_print_type.
3554 * p-lang.c (pascal_language_data): Delete la_print_type
3555 initializer.
3556 (pascal_language::print_type): New member function.
3557 * rust-lang.c (rust_print_type): Delete, implementation moved to
3558 rust_language::print_type.
3559 (rust_language_data): Delete la_print_type initializer.
3560 (rust_language::print_type): New member function, implementation
3561 from rust_print_type.
3562
6f827019
AB
35632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3564
3565 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3566 implementation moves to...
3567 (ada_language::sniff_from_mangled_name): ...here. Update return
3568 type.
3569 (ada_language_data): Delete la_sniff_from_mangled_name
3570 initializer.
3571 * c-lang.c (c_language_data): Likewise.
3572 (cplus_language_data): Likewise.
3573 (cplus_language::sniff_from_mangled_name): New member function,
3574 implementation taken from gdb_sniff_from_mangled_name.
3575 (asm_language_data): Delete la_sniff_from_mangled_name
3576 initializer.
3577 (minimal_language_data): Likewise.
3578 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3579 implementation moves to cplus_language::sniff_from_mangled_name.
3580 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3581 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3582 moves to...
3583 (d_language::sniff_from_mangled_name): ...here.
3584 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3585 * f-lang.c (f_language_data): Likewise.
3586 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3587 moves to...
3588 (go_language::sniff_from_mangled_name): ...here.
3589 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3590 * language.c (language_sniff_from_mangled_name): Delete.
3591 (unknown_language_data): Delete la_sniff_from_mangled_name
3592 initializer.
3593 (auto_language_data): Likewise.
3594 * language.h (language_data): Delete la_sniff_from_mangled_name
3595 field.
3596 (language_defn::sniff_from_mangled_name): New function.
3597 (language_sniff_from_mangled_name): Delete declaration.
3598 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3599 field.
3600 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3601 implementation moves to...
3602 (objc_language::sniff_from_mangled_name): ...here.
3603 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3604 * opencl-lang.c (opencl_language_data): Likewise.
3605 * p-lang.c (pascal_language_data): Likewise.
3606 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3607 implementation moves to...
3608 (rust_language::sniff_from_mangled_name): ...here.
3609 (rust_language_data): Delete la_sniff_from_mangled_name
3610 initializer.
3611 * symtab.c (symbol_find_demangled_name): Call
3612 sniff_from_mangled_name member function.
3613
fb8006fd
AB
36142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3617 initializer.
3618 * c-lang.c (c_language_data): Likewise.
3619 (cplus_language_data): Likewise.
3620 (cplus_language::search_name_hash): New member function.
3621 (asm_language_data): Delete la_search_name_hash initializer.
3622 (minimal_language_data): Likewise.
3623 * d-lang.c (d_language_data): Likewise.
3624 * dictionary.c (default_search_name_hash): Rename to...
3625 (language_defn::search_name_hash): ...this.
3626 * f-lang.c (f_language_data): Likewise.
3627 (f_language::search_name_hash): New member function.
3628 * go-lang.c (go_language_data): Delete la_search_name_hash
3629 initializer.
3630 * language.c (unknown_language_data): Likewise.
3631 (auto_language_data): Likewise.
3632 * language.h (struct language_data): Delete la_search_name_hash
3633 field.
3634 (language_defn::search_name_hash): Declare new member function.
3635 (default_search_name_hash): Delete declaration.
3636 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3637 initializer.
3638 * objc-lang.c (objc_language_data): Likewise.
3639 * opencl-lang.c (opencl_language_data): Likewise.
3640 * p-lang.c (pascal_language_data): Likewise.
3641 * rust-lang.c (rust_language_data): Likewise.
3642 * symtab.c (search_name_hash): Update call.
3643
8e25bafe
AB
36442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3647 initializer.
3648 * c-lang.c (class compile_instance): Declare.
3649 (c_language_data): Delete la_get_compile_instance initializer.
3650 (c_language::get_compile_instance): New member function.
3651 (cplus_language_data): Delete la_get_compile_instance initializer.
3652 (cplus_language::get_compile_instance): New member function.
3653 (asm_language_data): Delete la_get_compile_instance initializer.
3654 (minimal_language_data): Likewise.
3655 * c-lang.h (c_get_compile_context): Update comment.
3656 (cplus_get_compile_context): Update comment.
3657 * compile/compile.c (compile_to_object): Update calls, don't rely
3658 on function pointer being NULL.
3659 * d-lang.c (d_language_data): Delete la_get_compile_instance
3660 initializer.
3661 * f-lang.c (f_language_data): Likewise.
3662 * go-lang.c (go_language_data): Likewise.
3663 * language.c (unknown_language_data): Likewise.
3664 (auto_language_data): Likewise.
3665 * language.h (language_data): Delete la_get_compile_instance field.
3666 (language_defn::get_compile_instance): New member function.
3667 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3668 initializer.
3669 * objc-lang.c (objc_language_data): Likewise.
3670 * opencl-lang.c (opencl_language_data): Likewise.
3671 * p-lang.c (pascal_language_data): Likewise.
3672 * rust-lang.c (rust_language_data): Likewise.
3673
4009ee92
AB
36742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * ada-lang.c (ada_add_all_symbols): Update comment.
3677 (ada_iterate_over_symbols): Delete, move implementation to...
3678 (ada_language::iterate_over_symbols): ...here, a new member
3679 function, rewrite to use range based for loop.
3680 (ada_language_data): Delete la_iterate_over_symbols initializer.
3681 * c-lang.c (c_language_data): Likewise.
3682 (cplus_language_data): Likewise.
3683 (asm_language_data): Likewise.
3684 (minimal_language_data): Likewise.
3685 * d-lang.c (d_language_data): Likewise.
3686 * f-lang.c (f_language_data): Likewise.
3687 * go-lang.c (go_language_data): Likewise.
3688 * language.c (unknown_language_data): Likewise.
3689 (auto_language_data): Likewise.
3690 * language.h (language_data): Delete la_iterate_over_symbols field.
3691 (language_defn::iterate_over_symbols): New member function.
3692 (LA_ITERATE_OVER_SYMBOLS): Update.
3693 * linespec.c (iterate_over_all_matching_symtabs): Update.
3694 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3695 initializer.
3696 * objc-lang.c (objc_language_data): Likewise.
3697 * opencl-lang.c (opencl_language_data): Likewise.
3698 * p-lang.c (pascal_language_data): Likewise.
3699 * rust-lang.c (rust_language_data): Likewise.
3700
54f4ca46
AB
37012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Delete
3704 la_lookup_transparent_type initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (cplus_language_data): Likewise.
3707 (cplus_language::lookup_transparent_type): New member function.
3708 (asm_language_data): Delete la_lookup_transparent_type
3709 initializer.
3710 (minimal_language_data): Likewise.
3711 * d-lang.c (d_language_data): Likewise.
3712 * f-lang.c (f_language_data): Likewise.
3713 * go-lang.c (go_language_data): Likewise.
3714 * language.c (unknown_language_data): Likewise.
3715 (auto_language_data): Likewise.
3716 * language.h (struct language_data): Delete
3717 la_lookup_transparent_type field.
3718 (language_defn::lookup_transparent_type): New member function.
3719 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3720 initializer.
3721 * objc-lang.c (objc_language_data): Likewise.
3722 * opencl-lang.c (opencl_language_data): Likewise.
3723 * p-lang.c (pascal_language_data): Likewise.
3724 * rust-lang.c (rust_language_data): Likewise.
3725 * symtab.c (symbol_matches_domain): Update call.
3726
1fb314aa
AB
37272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * ada-lang.c (ada_language_arch_info): Delete function, move
3730 implementation to...
3731 (ada_language::language_arch_info): ...here, a new member
3732 function.
3733 (ada_language_data): Delete la_language_arch_info.
3734 * c-lang.c (c_language_data): Likewise.
3735 (c_language::language_arch_info): New member function.
3736 (cplus_language_arch_info): Delete function, move
3737 implementation to...
3738 (cplus_language::language_arch_info): ...here, a new member
3739 function.
3740 (cplus_language_data): Delete la_language_arch_info.
3741 (asm_language_data): Likewise.
3742 (asm_language::language_arch_info): New member function.
3743 (minimal_language_data): Delete la_language_arch_info.
3744 (minimal_language::language_arch_info): New member function.
3745 * d-lang.c (d_language_arch_info): Delete function, move
3746 implementation to...
3747 (d_language::language_arch_info): ...here, a new member
3748 function.
3749 (d_language_data): Delete la_language_arch_info.
3750 * f-lang.c (f_language_arch_info): Delete function, move
3751 implementation to...
3752 (f_language::language_arch_info): ...here, a new member
3753 function.
3754 (f_language_data): Delete la_language_arch_info.
3755 * go-lang.c (go_language_arch_info): Delete function, move
3756 implementation to...
3757 (go_language::language_arch_info): ...here, a new member
3758 function.
3759 (go_language_data): Delete la_language_arch_info.
3760 * language.c (unknown_language_data): Likewise.
3761 (unknown_language::language_arch_info): New member function.
3762 (auto_language_data): Delete la_language_arch_info.
3763 (auto_language::language_arch_info): New member function.
3764 (language_gdbarch_post_init): Update call to
3765 la_language_arch_info.
3766 * language.h (language_data): Delete la_language_arch_info
3767 function pointer.
3768 (language_defn::language_arch_info): New function.
3769 * m2-lang.c (m2_language_arch_info): Delete function, move
3770 implementation to...
3771 (m2_language::language_arch_info): ...here, a new member
3772 function.
3773 (m2_language_data): Delete la_language_arch_info.
3774 * objc-lang.c (objc_language_arch_info): Delete function, move
3775 implementation to...
3776 (objc_language::language_arch_info): ...here, a new member
3777 function.
3778 (objc_language_data): Delete la_language_arch_info.
3779 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3780 implementation to...
3781 (opencl_language::language_arch_info): ...here, a new member
3782 function.
3783 (opencl_language_data): Delete la_language_arch_info.
3784 * p-lang.c (pascal_language_arch_info): Delete function, move
3785 implementation to...
3786 (pascal_language::language_arch_info): ...here, a new member
3787 function.
3788 (pascal_language_data): Delete la_language_arch_info.
3789 * rust-lang.c (rust_language_arch_info): Delete function, move
3790 implementation to...
3791 (rust_language::language_arch_info): ...here, a new member
3792 function.
3793 (rust_language_data): Delete la_language_arch_info.
3794
48448202
AB
37952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3798 initializer.
3799 * c-lang.c (c_language_data): Likewise.
3800 (cplus_language_data): Likewise.
3801 (cplus_language::pass_by_reference_info): New method.
3802 (asm_language_data): Delete la_pass_by_reference initializer.
3803 (minimal_language_data): Likewise.
3804 * cp-abi.c (cp_pass_by_reference): Remove use of
3805 default_pass_by_reference.
3806 * d-lang.c (d_language_data): Likewise.
3807 * f-lang.c (f_language_data): Likewise.
3808 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3809 default_pass_by_reference.
3810 * go-lang.c (go_language_data): Likewise.
3811 * language.c (language_pass_by_reference): Update.
3812 (default_pass_by_reference): Delete.
3813 (unknown_language_data): Delete la_pass_by_reference
3814 initializer.
3815 (auto_language_data): Likewise.
3816 * language.h (struct language_data): Delete la_pass_by_reference
3817 field.
3818 (language_defn::pass_by_reference_info): New member function.
3819 (default_pass_by_reference): Delete declaration.
3820 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3821 initializer.
3822 * objc-lang.c (objc_language_data): Likewise.
3823 * opencl-lang.c (opencl_language_data): Likewise.
3824 * p-lang.c (pascal_language_data): Likewise.
3825 * rust-lang.c (rust_language_data): Likewise.
3826
15e5fd35
AB
38272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_read_var_value): Delete function, move
3830 implementation to...
3831 (ada_language::read_var_value): ...here.
3832 (ada_language_data): Delete la_read_var_value initializer.
3833 * c-lang.c (c_language_data): Likewise.
3834 (cplus_language_data): Likewise.
3835 (minimal_language_data): Likewise.
3836 * d-lang.c (d_language_data): Likewise.
3837 * f-lang.c (f_language_data): Likewise.
3838 * findvar.c (default_read_var_value): Rename to...
3839 (language_defn::read_var_value): ...this.
3840 * findvar.c (read_var_value): Update header comment, and change to
3841 call member function instead of function pointer.
3842 * go-lang.c (go_language_data): Likewise.
3843 * language.c (unknown_language_data): Delete la_read_var_value
3844 initializer.
3845 (auto_language_data): Likewise.
3846 * language.h (struct language_data): Delete la_read_var_value
3847 field.
3848 (language_defn::read_var_value): New member function.
3849 (default_read_var_value): Delete declaration.
3850 * m2-lang.c (m2_language_data): Delete la_read_var_value
3851 initializer.
3852 * objc-lang.c (objc_language_data): Likewise.
3853 * opencl-lang.c (opencl_language_data): Likewise.
3854 * p-lang.c (pascal_language_data): Likewise.
3855 * rust-lang.c (rust_language_data): Likewise.
3856 * value.h (default_read_var_value): Delete declaration.
3857
5bd40f2a
AB
38582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * ada-lang.c (ada_print_array_index): Delete function, move
3861 implementation to...
3862 (ada_language::print_array_index): ...here.
3863 (ada_language_data): Delete la_print_array_index initializer.
3864 * c-lang.c (c_language_data): Likewise.
3865 (cplus_language_data): Likewise.
3866 (minimal_language_data): Likewise.
3867 * d-lang.c (d_language_data): Likewise.
3868 * f-lang.c (f_language_data): Likewise.
3869 * go-lang.c (go_language_data): Likewise.
3870 * language.c (default_print_array_index): Delete function, move
3871 implementation to...
3872 (language_defn::print_array_index): ...here.
3873 (unknown_language_data): Delete la_print_array_index initializer.
3874 (auto_language_data): Likewise.
3875 * language.h (struct language_data): Delete la_print_array_index
3876 field.
3877 (language_defn::print_array_index): New member function.
3878 (LA_PRINT_ARRAY_INDEX): Update.
3879 (default_print_array_index): Delete declaration.
3880 * m2-lang.c (m2_language_data): Delete la_print_array_index
3881 initializer.
3882 * objc-lang.c (objc_language_data): Likewise.
3883 * opencl-lang.c (opencl_language_data): Likewise.
3884 * p-lang.c (pascal_language_data): Likewise.
3885 * rust-lang.c (rust_language_data): Likewise.
3886
0874fd07
AB
38872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * gdb/ada-lang.c (ada_language_defn): Convert to...
3890 (ada_language_data): ...this.
3891 (class ada_language): New class.
3892 (ada_language_defn): New static global.
3893 * gdb/c-lang.c (c_language_defn): Convert to...
3894 (c_language_data): ...this.
3895 (class c_language): New class.
3896 (c_language_defn): New static global.
3897 (cplus_language_defn): Convert to...
3898 (cplus_language_data): ...this.
3899 (class cplus_language): New class.
3900 (cplus_language_defn): New static global.
3901 (asm_language_defn): Convert to...
3902 (asm_language_data): ...this.
3903 (class asm_language): New class.
3904 (asm_language_defn): New static global.
3905 (minimal_language_defn): Convert to...
3906 (minimal_language_data): ...this.
3907 (class minimal_language): New class.
3908 (minimal_language_defn): New static global.
3909 * gdb/d-lang.c (d_language_defn): Convert to...
3910 (d_language_data): ...this.
3911 (class d_language): New class.
3912 (d_language_defn): New static global.
3913 * gdb/f-lang.c (f_language_defn): Convert to...
3914 (f_language_data): ...this.
3915 (class f_language): New class.
3916 (f_language_defn): New static global.
3917 * gdb/go-lang.c (go_language_defn): Convert to...
3918 (go_language_data): ...this.
3919 (class go_language): New class.
3920 (go_language_defn): New static global.
3921 * gdb/language.c (unknown_language_defn): Remove declaration.
3922 (current_language): Initialize to nullptr, real initialization is
3923 moved to _initialize_language.
3924 (languages): Delete global.
3925 (language_defn::languages): Define.
3926 (set_language_command): Use language_defn::languages.
3927 (set_language): Likewise.
3928 (range_error): Likewise.
3929 (language_enum): Likewise.
3930 (language_def): Likewise.
3931 (add_set_language_command): Use language_def::languages for the
3932 language list, and language_def to lookup language pointers.
3933 (skip_language_trampoline): Use language_defn::languages.
3934 (unknown_language_defn): Convert to...
3935 (unknown_language_data): ...this.
3936 (class unknown_language): New class.
3937 (unknown_language_defn): New static global.
3938 (auto_language_defn): Convert to...
3939 (auto_language_data): ...this.
3940 (class auto_language): New class.
3941 (auto_language_defn): New static global.
3942 (language_gdbarch_post_init): Use language_defn::languages.
3943 (_initialize_language): Initialize current_language.
3944 * gdb/language.h (struct language_defn): Rename to...
3945 (struct language_data): ...this.
3946 (struct language_defn): New.
3947 (auto_language_defn): Delete.
3948 (unknown_language_defn): Delete.
3949 (minimal_language_defn): Delete.
3950 (ada_language_defn): Delete.
3951 (asm_language_defn): Delete.
3952 (c_language_defn): Delete.
3953 (cplus_language_defn): Delete.
3954 (d_language_defn): Delete.
3955 (f_language_defn): Delete.
3956 (go_language_defn): Delete.
3957 (m2_language_defn): Delete.
3958 (objc_language_defn): Delete.
3959 (opencl_language_defn): Delete.
3960 (pascal_language_defn): Delete.
3961 (rust_language_defn): Delete.
3962 * gdb/m2-lang.c (m2_language_defn): Convert to...
3963 (m2_language_data): ...this.
3964 (class m2_language): New class.
3965 (m2_language_defn): New static global.
3966 * gdb/objc-lang.c (objc_language_defn): Convert to...
3967 (objc_language_data): ...this.
3968 (class objc_language): New class.
3969 (objc_language_defn): New static global.
3970 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3971 (opencl_language_data): ...this.
3972 (class opencl_language): New class.
3973 (opencl_language_defn): New static global.
3974 * gdb/p-lang.c (pascal_language_defn): Convert to...
3975 (pascal_language_data): ...this.
3976 (class pascal_language): New class.
3977 (pascal_language_defn): New static global.
3978 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3979 language pointer, update comment format.
3980 * gdb/rust-lang.c (rust_language_defn): Convert to...
3981 (rust_language_data): ...this.
3982 (class rust_language): New class.
3983 (rust_language_defn): New static global.
3984
1313c56e
AB
39852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3988 member variable.
3989 <m_stmt_at_address>: New member variable.
3990 (lnp_state_machine::record_line): Don't record some lines, update
3991 tracking of is_stmt at the same address.
3992 (lnp_state_machine::lnp_state_machine): Initialise new member
3993 variables.
3994
b7ed9f3d
ST
39952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3996
3997 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3998 "-include gnu-nat-mig.h".
3999 * gnu-nat-mig.h: New file.
4000 * gnu-nat.c: Include "gnu-nat-mig.h".
4001 (exc_server, msg_reply_server, notify_server,
4002 process_reply_server): Remove declarations.
4003
14a8ad62
ST
40042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4005
4006 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4007 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4008 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4009 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4010 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4011 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4012 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4013 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4014 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4015 to gnu_nat_target class.
4016 * gnu-nat.c: Likewise.
4017 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4018 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4019 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4020 object.
4021 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4022 instead of `gnu_target'.
4023
0af5e106
ST
40242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4025
4026 * i386-gnu-tdep.c: Include "gdbcore.h"
4027 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4028 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4029 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4030 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4031 i386_gnu_sigcontext_addr): New functions
4032 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4033 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4034 tdep.
4035
078f2fc9
ST
40362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4037
4038 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4039 before fork_inferior call. Avoid calling it if target_is_pushed returns
4040 true.
4041
53dff92c
ST
40422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4043
4044 * gnu-nat.h (gnu_target): New variable declaration.
4045 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4046 gnu_target.
4047 * gnu-nat.c (gnu_target): New variable.
4048 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4049 add_thread_silent, and add_thread calls.
4050 (gnu_nat_target::create_inferior): Pass gnu_target to
4051 add_thread_silent, thread_change_ptid call.
4052 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4053 call.
4054
5a8b8627
ST
40552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4056
4057 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4058 (gnu_nat_target::find_memory_regions): Remove unused
4059 `old_address' variable.
4060
366f550a
ST
40612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4062
4063 * gnu-nat.c: Include "gdbarch.h".
4064
f14871bf
ST
40652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * reply_mig_hack.awk (Error return): Cast function through
4068 void *, to bypass compiler function call check.
4069
c6887cfb
ST
40702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4071
4072 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4073 $(srcdir)/reply_mig_hack.awk.
4074
6930bffe
ST
40752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4076
4077 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4078
112c22ed
JG
40792020-05-30 Jonny Grant <jg@jguk.org>
4080
4081 * configure.ac (ACX_BUGURL): change bug URL to https.
4082
f68f85b5
PA
40832020-05-30 Pedro Alves <palves@redhat.com>
4084
4085 * cp-support.c (replace_typedefs_template): New.
4086 (replace_typedefs_qualified_name): Handle
4087 DEMANGLE_COMPONENT_TEMPLATE.
4088
976ca316
SM
40892020-05-29 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4092 dwarf2/index-cache.h, dwarf2/index-write.c,
4093 dwarf2/index-write.h, dwarf2/line-header.c,
4094 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4095 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4096 variables and fields from `dwarf2_per_objfile` to just
4097 `per_objfile` throughout.
4098
989ade05
SM
40992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4100
4101 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4102 <push_dwarf_reg_entry_value>: Add comment.
4103
c47bae85
KB
41042020-05-28 Kevin Buettner <kevinb@redhat.com>
4105 Keith Seitz <keiths@redhat.com>
4106
4107 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4108 instead of PyEval_ReleaseLock.
4109 (class gdbpy_gil): Move to earlier in file.
4110 (finalize_python): Set gdb_python_initialized.
4111 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4112 when not initialized.
4113
44486dcf
SM
41142020-05-28 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4117 <push_dwarf_reg_entry_value>: Remove assert. Override
4118 per_objfile with caller_per_objfile.
4119
f030440d
TV
41202020-05-28 Tom de Vries <tdevries@suse.de>
4121
4122 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4123 PR gold/15646 workaround to symbol kind "type".
4124
f0fbb768
TT
41252020-05-27 Tom Tromey <tromey@adacore.com>
4126
4127 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4128
af0b2a3e
TT
41292020-05-27 Tom Tromey <tromey@adacore.com>
4130
4131 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4132 Use htab_find_with_hash.
4133 <add_abbrev>: Remove "abbrev_number" parameter.
4134 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4135 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4136 (hash_abbrev): Add comment.
4137 (abbrev_table::lookup_abbrev): Move to header file.
4138 (abbrev_table::read): Update.
4139
7d00ffec
TT
41402020-05-27 Tom Tromey <tromey@adacore.com>
4141
4142 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4143 method.
4144 <canonical_name>: New member.
4145 <raw_name>: Rename from "name".
4146 (partial_die_info): Initialize canonical_name.
4147 (scan_partial_symbols): Check raw_name.
4148 (partial_die_parent_scope, partial_die_full_name)
4149 (add_partial_symbol, add_partial_subprogram)
4150 (add_partial_enumeration, load_partial_dies): Use "name" method.
4151 (partial_die_info::name): New method.
4152 (partial_die_info::read, guess_partial_die_structure_name)
4153 (partial_die_info::fixup): Update.
4154
697bba18
TT
41552020-05-27 Tom Tromey <tromey@adacore.com>
4156
4157 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4158 <get_ref_die_offset>: Inline.
4159 <get_ref_die_offset_complaint>: New method.
4160 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4161 (attribute::get_ref_die_offset_complaint): Rename from
4162 get_ref_die_offset. Just issue complaint.
4163
c17ace43
HD
41642020-05-27 Hannes Domani <ssbssa@yahoo.de>
4165
4166 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4167
96445f0b
HD
41682020-05-27 Hannes Domani <ssbssa@yahoo.de>
4169
4170 * exec.c (exec_file_attach): Use errno value of first openp failure.
4171
ac637ec3
HD
41722020-05-27 Hannes Domani <ssbssa@yahoo.de>
4173
4174 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4175 Don't close thread handle.
4176
17ee85fc
TT
41772020-05-27 Tom Tromey <tom@tromey.com>
4178 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4181 shared_ptr.
4182 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4183 member.
4184 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4185 dwarf2_per_bfd_objfile_data_key>: New globals.
4186 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4187 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4188 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4189 shared.
4190 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4191 short-circuit when sharing.
4192 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4193 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4194
39b16f87
SM
41952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4198 to...
4199 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4200 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4201
fcf23d5b
SM
42022020-05-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4205 build_name_components, find_name_components_bounds>:
4206 Add per_objfile parameter.
4207 (struct mapped_index) <symbol_name_at>: Likewise.
4208 (struct mapped_debug_names): Remove constructor.
4209 <dwarf2_per_objfile>: Remove field.
4210 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4211 (mapped_index_base::find_name_components_bounds,
4212 mapped_index_base::build_name_components,
4213 dw2_expand_symtabs_matching_symbol): Likewise.
4214 (class mock_mapped_index) <symbol_name_at>: Likewise.
4215 (check_match): Likewise.
4216 (check_find_bounds_finds): Likewise.
4217 (test_mapped_index_find_name_component_bounds): Update.
4218 (CHECK_MATCH): Update.
4219 (dw2_expand_symtabs_matching): Update.
4220 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4221 per_objfile parameter.
4222 <find_vec_in_debug_names>: Likewise.
4223 <m_per_objfile>: New field.
4224 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4225 parameter.
4226 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4227 (dw2_debug_names_iterator::next): Update.
4228 (dw2_debug_names_lookup_symbol): Update.
4229 (dw2_debug_names_expand_symtabs_for_function): Update.
4230 (dw2_debug_names_map_matching_symbols): Update.
4231 (dw2_debug_names_expand_symtabs_matching): Update.
4232 (dwarf2_read_debug_names): Update.
4233
7188ed02
SM
42342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4237 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4238 move to dwarf2_per_objfile.
4239 <read_in_chain>: Remove.
4240 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4241 remove_all_cus, age_comp_units>: New methods.
4242 <m_dwarf2_cus>: New member.
4243 (struct dwarf2_per_cu_data) <cu>: Remove.
4244 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4245 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4246 moved to methods of dwarf2_per_objfile.
4247 (dwarf2_clear_marks): Remove.
4248 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4249 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4250 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4251 (dwarf2_per_objfile::remove_all_cus): New.
4252 (class free_cached_comp_units) <~free_cached_comp_units>:
4253 Update.
4254 (load_cu): Update.
4255 (dw2_do_instantiate_symtab): Adjust.
4256 (fill_in_sig_entry_from_dwo_entry): Adjust.
4257 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4258 (cutu_reader::cutu_reader): Likewise.
4259 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4260 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4261 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4262 and dwarf2_per_objfile::age_comp_units.
4263 (load_partial_comp_unit): Update.
4264 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4265 (process_queue): Likewise.
4266 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4267 backlink.
4268 (dwarf2_read_addr_index): Likewise.
4269 (follow_die_offset): Likewise.
4270 (dwarf2_fetch_die_loc_sect_off): Likewise.
4271 (dwarf2_fetch_constant_bytes): Likewise.
4272 (dwarf2_fetch_die_type_sect_off): Likewise.
4273 (follow_die_sig_1): Likewise.
4274 (load_full_type_unit): Likewise.
4275 (read_signatured_type): Likewise.
4276 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4277 (dwarf2_cu::~dwarf2_cu): Remove.
4278 (dwarf2_per_objfile::get_cu): New.
4279 (dwarf2_per_objfile::set_cu): New.
4280 (age_cached_comp_units): Rename to...
4281 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4282 to std::unordered_map.
4283 (free_one_cached_comp_unit): Rename to...
4284 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4285 to std::unordered_map.
4286 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4287 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4288 a dwarf2_per_objfile in data.
4289 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4290 (dwarf2_clear_marks): Remove.
4291
2e671100
SM
42922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4295 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4296 (init_tu_and_read_dwo_dies): Likewise.
4297 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4298 (cutu_reader::cutu_reader): Likewise.
4299 (load_partial_comp_unit): Likewise.
4300 (process_psymtab_comp_unit): Update.
4301 (build_type_psymtabs_1): Update.
4302 (process_skeletonless_type_unit): Update.
4303 (load_full_comp_unit): Update.
4304 (find_partial_die): Update.
4305 (dwarf2_read_addr_index): Update.
4306 (read_signatured_type): Update.
4307
2e6a9f79
SM
43082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4311 m_header_read_in>: New fields.
4312 <get_header>: New method.
4313 * dwarf2/read.c (per_cu_header_read_in): Remove.
4314 (dwarf2_per_cu_data::get_header): New.
4315 (dwarf2_per_cu_data::addr_size): Update.
4316 (dwarf2_per_cu_data::offset_size): Update.
4317 (dwarf2_per_cu_data::ref_addr_size): Update.
4318
1b555f17
SM
43192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4320
4321 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4322 (dw2_do_instantiate_symtab): Update.
4323 (queue_and_load_all_dwo_tus): Change parameter from
4324 dwarf2_per_cu_data to dwarf2_cu.
4325 (dwarf2_fetch_die_loc_sect_off): Update.
4326 (dwarf2_fetch_constant_bytes): Update.
4327 (dwarf2_fetch_die_type_sect_off): Update.
4328
8fc0b21d
SM
43292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * dwarf2/read.c (process_full_comp_unit,
4332 process_full_type_unit): Remove per_cu, per_objfile paramters.
4333 Add dwarf2_cu parameter.
4334 (process_queue): Update.
4335
168c9250
SM
43362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4337
4338 * dwarf2/read.c (create_cu_from_index_list): Replace
4339 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4340 (create_cus_from_index_list): Likewise.
4341 (create_cus_from_index): Likewise.
4342 (create_signatured_type_table_from_index): Likewise.
4343 (create_cus_from_debug_names_list): Likewise.
4344 (create_cus_from_debug_names): Likewise.
4345 (dwarf2_read_gdb_index): Update.
4346 (dwarf2_read_debug_names): Update.
4347
e286671b
TT
43482020-05-27 Tom Tromey <tom@tromey.com>
4349 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * dwarf2/read.h (struct dwarf2_per_objfile)
4352 <get_type_for_signatured_type, set_type_for_signatured_type>:
4353 New methods.
4354 <m_type_map>: New member.
4355 (struct signatured_type) <type>: Remove.
4356 * dwarf2/read.c
4357 (dwarf2_per_objfile::get_type_for_signatured_type,
4358 dwarf2_per_objfile::set_type_for_signatured_type): New.
4359 (get_signatured_type): Use new methods.
4360
8adb8487
TT
43612020-05-27 Tom Tromey <tom@tromey.com>
4362 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4365 (struct dwarf2_per_objfile) <type_units>: New member.
4366 <get_type_unit_group_unshareable>: New method.
4367 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4368 num_symtabs, symtabs>: Remove; move to
4369 type_unit_group_unshareable.
4370 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4371 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4372 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4373
127bbf4b
SM
43742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * dwarf2/read.h (struct dwarf2_per_cu_data):
4377 <dwarf2_per_objfile>: Remove.
4378 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4379 dwarf2_per_objfile.
4380 (create_signatured_type_table_from_index): Likewise.
4381 (create_signatured_type_table_from_debug_names): Likewise.
4382 (create_debug_type_hash_table): Likewise.
4383 (fill_in_sig_entry_from_dwo_entry): Likewise.
4384 (create_type_unit_group): Likewise.
4385 (read_comp_units_from_section): Likewise.
4386 (create_cus_hash_table): Likewise.
4387
f6e649dd
SM
43882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4391 dwarf2_per_cu_data::dwarf2_per_objfile.
4392 (compute_compunit_symtab_includes): Likewise.
4393 (dwarf2_cu::start_symtab): Likewise.
4394
aa66c379
SM
43952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4398 parameter.
4399 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4400 (read_namespace_alias): Update.
4401 (lookup_die_type): Update.
4402 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4403 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4404 Update.
4405 (disassemble_dwarf_expression): Update.
4406
120ce1b5
SM
44072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.h (struct dwarf2_queue_item): Add
4410 dwarf2_per_objfile parameter, assign new parameter.
4411 <per_objfile>: New field.
4412 * dwarf2/read.c (free_one_cached_comp_unit): Add
4413 dwarf2_per_objfile parameter.
4414 (queue_comp_unit): Likewise.
4415 (dw2_do_instantiate_symtab): Update.
4416 (process_psymtab_comp_unit): Update.
4417 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4418 (process_imported_unit_die): Update.
4419 (queue_and_load_dwo_tu): Update.
4420 (follow_die_offset): Update.
4421 (follow_die_sig_1): Update.
4422
9f47c707
SM
44232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4426 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4427 (read_call_site_scope): Assign per_objfile.
4428 (dwarf2_per_cu_data::objfile): Remove.
4429 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4430 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4431 dwarf2_per_objfile parameter.
4432 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4433 dwarf2_per_objfile parameter.
4434 (dwarf_expr_reg_to_entry_parameter): Add output
4435 dwarf2_per_objfile parameter.
4436 (locexpr_get_frame_base): Update.
4437 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4438 <push_dwarf_reg_entry_value>: Update.
4439 <call_site_to_target_addr>: Update.
4440 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4441 parameter.
4442 (value_of_dwarf_reg_entry): Update.
4443 (rw_pieced_value): Update.
4444 (indirect_synthetic_pointer): Update.
4445 (dwarf2_evaluate_property): Update.
4446 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4447 parameter.
4448 (locexpr_read_variable): Update.
4449 (locexpr_get_symbol_read_needs): Update.
4450 (loclist_read_variable): Update.
4451
14095eb3
SM
44522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4455 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4456 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4457 parameter.
4458 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4460 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4461 parameter.
4462 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4463 sect_variable_value): Add dwarf2_per_objfile parameter.
4464 (class dwarf_evaluate_loc_desc) <dwarf_call,
4465 dwarf_variable_value>: Update.
4466 (fetch_const_value_from_synthetic_pointer): Add
4467 dwarf2_per_objfile parameter.
4468 (fetch_const_value_from_synthetic_pointer): Update.
4469 (coerced_pieced_ref): Update.
4470 (class symbol_needs_eval_context) <dwarf_call,
4471 dwarf_variable_value>: Update.
4472 (dwarf2_compile_expr_to_ax): Update.
4473
3c3cd3d4
SM
44742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4477 parameter.
4478 (dwarf2_evaluate_loc_desc_full): Update.
4479
82ca3f51
SM
44802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4483 parameter.
4484 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4485 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4486 dwarf2_per_objfile parameter.
4487 (decode_debug_loc_dwo_addresses): Likewise.
4488 (dwarf2_find_location_expression): Update.
4489 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4490 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4491 parameter.
4492 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4493 parameter.
4494 (locexpr_describe_location_1): Likewise.
4495 (locexpr_describe_location): Update.
4496
4b167ea1
SM
44972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4500 Remove.
4501 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4502 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4503 (dwarf2_compile_property_to_c): Update.
4504 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4505 use text offset from objfile.
4506 (locexpr_tracepoint_var_ref): Update.
4507 (locexpr_generate_c_location): Update.
4508 (loclist_describe_location): Update.
4509 (loclist_tracepoint_var_ref): Update.
4510 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4511 dwarf2_per_objfile parameter.
4512 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4513 use text offset from objfile.
4514 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4515
89b07335
SM
45162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * dwarf2/expr.h (struct dwarf_expr_context)
4519 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4520 <offset>: Remove.
4521 <per_objfile>: New member.
4522 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4523 dwarf2_per_objfile parameter. Don't set offset, set
4524 per_objfile.
4525 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4526 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4527 a dwarf2_per_objfile object instead of an offset.
4528 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4529 constructor.
4530 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4531 to dwarf2_expr_executor constructor. Don't set offset.
4532 (dwarf2_fetch_cfa_info): Update.
4533 (struct dwarf2_frame_cache) <text_offset>: Remove.
4534 <per_objfile>: New field.
4535 (dwarf2_frame_cache): Update.
4536 (dwarf2_frame_prev_register): Update.
4537 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4538 <dwarf_evaluate_loc_desc>: Add constructor.
4539 (dwarf2_evaluate_loc_desc_full): Update.
4540 (dwarf2_locexpr_baton_eval): Update.
4541 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4542 Add constructor.
4543 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4544
293e7e51
SM
45452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4548 addr_sized_int_type>: Move to dwarf2_cu.
4549 <int_type>: Move to dwarf2_per_objfile.
4550 (struct dwarf2_per_objfile) <int_type>: Move here.
4551 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4552 addr_sized_int_type>: Move here.
4553 (read_func_scope): Update.
4554 (read_array_type): Update.
4555 (read_tag_string_type): Update.
4556 (attr_to_dynamic_prop): Update.
4557 (dwarf2_per_cu_data::int_type): Rename to...
4558 (dwarf2_per_objfile::int_type): ... this.
4559 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4560 (dwarf2_cu::addr_sized_int_type): ... this.
4561 (read_subrange_type): Update.
4562 (dwarf2_per_cu_data::addr_type): Rename to...
4563 (dwarf2_cu::addr_type): ... this.
4564 (set_die_type): Update.
4565
64874a40
SM
45662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4569 data through per_cu->cu.
4570
4ab09049
SM
45712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4574 dwarf2_per_cu_data parameter fo dwarf2_cu.
4575 (lookup_dwo_type_unit): Likewise.
4576 (read_cutu_die_from_dwo): Likewise.
4577 (lookup_dwo_unit): Likewise.
4578 (open_and_init_dwo_file): Likewise.
4579 (lookup_dwo_cutu): Likewise.
4580 (lookup_dwo_comp_unit): Likewise.
4581 (lookup_dwo_type_unit): Likewise.
4582 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4583 (cutu_reader::cutu_reader): Update.
4584
47b14e86
SM
45852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4588 parameter.
4589 (process_full_type_unit): Likewise.
4590 (process_queue): Update.
4591
43182c09
SM
45922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c (recursively_compute_inclusions): Add
4595 dwarf2_per_objfile parameter.
4596 (compute_compunit_symtab_includes): Likewise.
4597 (process_cu_includes): Update.
4598
7aa104c4
SM
45992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4602 parameter.
4603 (create_type_unit_group): Update.
4604 (process_psymtab_comp_unit_reader): Update.
4605 (build_type_psymtabs_reader): Update.
4606
e3beb21d
SM
46072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4610 object through m_this_cu->cu.
4611
d460f660
SM
46122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4615 the info parameter.
4616 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4617
ab432490
SM
46182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4619
4620 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4621 per_objfile parameter.
4622 (load_full_type_unit): Add per_objfile parameter.
4623 (read_signatured_type): Likewise.
4624 (load_full_comp_unit): Likewise.
4625 (load_cu): Likewise.
4626 (dw2_do_instantiate_symtab): Likewise.
4627 (dw2_get_file_names): Likewise.
4628 (dw2_map_symtabs_matching_filename): Update.
4629 (dw_expand_symtabs_matching_file_matcher): Update.
4630 (dw2_map_symbol_filenames): Update.
4631 (process_psymtab_comp_unit): Add per_objfile parameter.
4632 (build_type_psymtabs_1): Update.
4633 (process_skeletonless_type_unit): Update.
4634 (dwarf2_build_psymtabs_hard): Update.
4635 (load_partial_comp_unit): Add per_objfile parameter.
4636 (scan_partial_symbols): Update.
4637 (load_full_comp_unit): Add per_objfile parameter.
4638 (process_imported_unit_die): Update.
4639 (create_cus_hash_table): Update.
4640 (find_partial_die): Update.
4641 (dwarf2_read_addr_index): Update.
4642 (follow_die_offset): Update.
4643 (dwarf2_fetch_die_loc_sect_off): Update.
4644 (dwarf2_fetch_constant_bytes): Update.
4645 (dwarf2_fetch_die_type_sect_off): Update.
4646 (follow_die_sig_1): Update.
4647 (load_full_type_unit): Add per_objfile parameter.
4648 (read_signatured_type): Likewise.
4649
313bad1b
SM
46502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4653 of objfile_name.
4654
c3699833
SM
46552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4656
4657 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4658 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4659 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4660 field.
4661 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4662 (create_cus_from_index): Update.
4663 (dwarf2_read_gdb_index): Update.
4664 (create_cus_from_debug_names): Update.
4665 (dwarf2_read_debug_names): Update.
4666 (get_abbrev_section_for_cu): Update.
4667 (create_all_comp_units): Update.
4668 (read_attribute_value): Update.
4669 (get_debug_line_section): Update.
4670 * dwarf2/index-cache.c (index_cache::store): Update.
4671 * dwarf2/index-write.c (save_gdb_index_command): Update.
4672 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4673
1859c670
SM
46742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4675
4676 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4677 member.
4678 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4679 dwarf2_per_cu_data::per_bfd.
4680 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4681 (create_type_unit_group): Likewise.
4682 (queue_comp_unit): Remove reference to
4683 per_cu->dwarf2_per_objfile.
4684 (maybe_queue_comp_unit): Likewise.
4685 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4686 (create_cus_hash_table): Assign new field.
4687
5e22e966
SM
46882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2/read.c: Replace
4691 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4692 dwarf2_cu->per_objfile throughout.
4693
97a1449a
SM
46942020-05-27 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4697 parameter, don't use per_cu->dwarf2_per_objfile.
4698 (dw2_instantiate_symtab): Likewise.
4699 (dw2_find_last_source_symtab): Update.
4700 (dw2_map_expand_apply): Update.
4701 (dw2_lookup_symbol): Update.
4702 (dw2_expand_symtabs_for_function): Update.
4703 (dw2_expand_all_symtabs): Update.
4704 (dw2_expand_symtabs_with_fullname): Update.
4705 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4706 don't use per_cu->dwarf2_per_objfile.
4707 (dw2_expand_marked_cus): Update.
4708 (dw2_find_pc_sect_compunit_symtab): Update.
4709 (dw2_debug_names_lookup_symbol): Update.
4710 (dw2_debug_names_expand_symtabs_for_function): Update.
4711 (dw2_debug_names_map_matching_symbols): Update.
4712 (dwarf2_psymtab::expand_psymtab): Update.
4713
9e021579
SM
47142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4715
4716 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4717 <per_objfile>: New member.
4718 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4719 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4720 call to dwarf2_cu.
4721 (cutu_reader::cutu_reader): Update.
4722 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4723
ae090bdb
SM
47242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4727 struct dwarf2_per_objfile.
4728 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4729 dwarf2_per_bfd.
4730 * dwarf2/read.c (set_die_type): Update.
4731 (get_die_type_at_offset): Update.
4732
af758d11
SM
47332020-05-27 Tom Tromey <tom@tromey.com>
4734 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4737 method.
4738 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4739 get_symtab, set_symtab>: New methods.
4740 <m_symtabs>: New field.
4741 (struct dwarf2_psymtab): Derive from partial_symtab.
4742 <readin_p, get_compunit_symtab>: Declare methods.
4743 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4744 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4745 New methods.
4746 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4747 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4748 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4749 (dw2_symtab_iter_next, dw2_print_stats)
4750 (dw2_expand_symtabs_with_fullname)
4751 (dw2_expand_symtabs_matching_one)
4752 (dw_expand_symtabs_matching_file_matcher)
4753 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4754 (dw2_debug_names_iterator::next)
4755 (dw2_debug_names_map_matching_symbols)
4756 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4757 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4758 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4759 New methods.
4760 (get_compunit_symtab, process_full_comp_unit)
4761 (process_full_type_unit): Update.
4762 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4763
5989a64e
SM
47642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4765
4766 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4767 then introduce a new dwarf2_per_objfile type.
4768 <read_line_string>: Move to the new dwarf2_per_objfile type.
4769 <objfile>: Likewise.
4770 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4771 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4772 dwarf2_per_objfile->per_bfd.
4773 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4774 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4775 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4776 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4777 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4778 (dwarf2_per_objfile::locate_sections): Rename to...
4779 (dwarf2_per_bfd::locate_sections): ... this.
4780 (dwarf2_per_objfile::get_cutu): Rename to...
4781 (dwarf2_per_bfd::get_cutu): ... this.
4782 (dwarf2_per_objfile::get_cu): Rename to...
4783 (dwarf2_per_bfd::get_cu): ... this.
4784 (dwarf2_per_objfile::get_tu): Rename to...
4785 (dwarf2_per_bfd::get_tu): ... this.
4786 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4787 (dwarf2_per_bfd::allocate_per_cu): ... this.
4788 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4789 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4790 (get_gdb_index_contents_ftype): Change parameter from
4791 dwarf2_per_objfile to dwarf2_per_bfd.
4792 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4793 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4794
a50264ba
TT
47952020-05-27 Tom Tromey <tom@tromey.com>
4796 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4799 (allocate_piece_closure): Set "per_objfile" member.
4800 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4801 (locexpr_describe_location, loclist_describe_location): Use new
4802 member.
4803 * dwarf2/read.c (read_call_site_scope)
4804 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4805 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4806 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4807 handle_data_member_location): Set per_objfile member.
4808 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4809 member.
4810 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4811
d3473f0c
TT
48122020-05-27 Tom Tromey <tom@tromey.com>
4813
4814 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4815 allocate_signatured_type>: Declare new methods.
4816 <m_num_psymtabs>: New member.
4817 (struct dwarf2_per_cu_data) <index>: New member.
4818 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4819 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4820 (create_cu_from_index_list): Use allocate_per_cu.
4821 (create_signatured_type_table_from_index)
4822 (create_signatured_type_table_from_debug_names)
4823 (create_debug_type_hash_table, add_type_unit)
4824 (read_comp_units_from_section): Use allocate_signatured_type.
4825
5717c425
TT
48262020-05-27 Tom Tromey <tom@tromey.com>
4827
4828 * psymtab.c (partial_map_expand_apply)
4829 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4830 (psym_lookup_global_symbol_language)
4831 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4832 (psym_print_stats, psym_expand_symtabs_for_function)
4833 (psym_map_symbol_filenames, psym_map_matching_symbols)
4834 (psym_expand_symtabs_matching)
4835 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4836 (maintenance_check_psymtabs): Update.
4837 * psympriv.h (struct partial_symtab) <readin_p,
4838 get_compunit_symtab>: Add objfile parameter.
4839 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4840 Likewise.
4841 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4842 get_compunit_symtab>: Likewise.
4843 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4844
45940949
TT
48452020-05-27 Tom Tromey <tom@tromey.com>
4846
4847 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4848 member.
4849 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4850 (create_cu_from_index_list)
4851 (create_signatured_type_table_from_index)
4852 (create_signatured_type_table_from_debug_names)
4853 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4854 (dwarf2_create_include_psymtab)
4855 (create_debug_type_hash_table, add_type_unit)
4856 (create_type_unit_group, read_comp_units_from_section)
4857 (dwarf2_compute_name, create_cus_hash_table)
4858 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4859 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4860 obstack.
4861 (dw2_get_real_path): Likewise. Change argument to
4862 dwarf2_per_objfile.
4863
f8c6d152
LM
48642020-05-27 Luis Machado <luis.machado@linaro.org>
4865
4866 PR tdep/26000
4867 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4868 for ldrd (immediate).
4869
e98d2e6d
PW
48702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4871
4872 * command.h: Add comment giving the name of class_tui.
4873 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4874 create the fake command for the help for class_tui.
4875
53a47a3e
TT
48762020-05-26 Tom Tromey <tromey@adacore.com>
4877
4878 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4879 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4880 (val_atr): New function.
4881 (value_val_atr): Use it.
4882 * ada-valprint.c (print_optional_low_bound): Change low bound
4883 handling for enums.
4884 (val_print_packed_array_elements): Don't call discrete_position.
4885 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4886 discrete_position for enum types.
4887 * language.c (default_print_array_index): Change type.
4888 * language.h (struct language_defn) <la_print_array_index>: Add
4889 index_type parameter, change type of index_value.
4890 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4891 (default_print_array_index): Update.
4892 * valprint.c (maybe_print_array_index): Don't call
4893 value_from_longest. Update.
4894 (value_print_array_elements): Don't call discrete_position.
4895
0bc2354b
TT
48962020-05-26 Tom Tromey <tromey@adacore.com>
4897
4898 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4899 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4900
1218a4bf
CDA
49012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4902
4903 PR gdb/13519
4904 * avr-tdep.c (avr_integer_to_address): Return data or code
4905 address accordingly to the second 'type' argument of the
4906 function.
4907
92651b1d
MW
49082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4909
4910 * infcmd.c, inferior.h: (construct_inferior_arguments):
4911 Moved function from here to gdbsupport/common-inferior.{h,cc}
4912
0a4f5f8c
TT
49132020-05-23 Tom Tromey <tom@tromey.com>
4914
4915 Revert commit eca1f90c:
4916 * NEWS: Remove entry for completion styling.
4917 * completer.c (_rl_completion_prefix_display_length): Move
4918 declaration later.
4919 (gdb_fnprint): Revert.
4920 (gdb_display_match_list_1): Likewise.
4921 * cli/cli-style.c (completion_prefix_style)
4922 (completion_difference_style, completion_suffix_style): Remove.
4923 (_initialize_cli_style): Revert.
4924 * cli/cli-style.h (completion_prefix_style)
4925 (completion_difference_style, completion_suffix_style): Don't
4926 declare.
4927
e08bd6c5
PA
49282020-05-24 Pedro Alves <palves@redhat.com>
4929
4930 * symtab.c (completion_list_add_name): Return boolean indication
4931 of whether the symbol matched.
4932 (completion_list_add_symbol): Don't try to remove C++ aliases if
4933 the symbol didn't match in the first place.
4934 * symtab.h (completion_list_add_name): Return bool.
4935
ceacbf6e
SM
49362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4937
4938 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4939 type::field.
4940
26f16254
JB
49412020-05-23 Joel Brobecker <brobecker@adacore.com>
4942
4943 GDB 9.2 released.
4944
eca1f90c
TT
49452020-05-23 Tom Tromey <tom@tromey.com>
4946
4947 * NEWS: Add entry for completion styling.
4948 * completer.c (_rl_completion_prefix_display_length): Move
4949 declaration earlier.
4950 (gdb_fnprint): Use completion_style.
4951 (gdb_display_match_list_1): Likewise.
4952 * cli/cli-style.c (completion_prefix_style)
4953 (completion_difference_style, completion_suffix_style): New
4954 globals.
4955 (_initialize_cli_style): Register new globals.
4956 * cli/cli-style.h (completion_prefix_style)
4957 (completion_difference_style, completion_suffix_style): Declare.
4958
51e2cfa2
PA
49592020-05-23 Pedro Alves <palves@redhat.com>
4960
4961 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4962 (parse_escape): Use ISDIGIT instead of isdigit.
4963 (puts_debug): Use gdb_isprint instead of isprint.
4964 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4965 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4966 ISSPACE instead of isspace.
4967 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4968 instead of isspace.
4969 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4970 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4971 instead of isxdigit and ISDIGIT instead of isdigit.
4972
80fc5e77
SM
49732020-05-22 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * gdbtypes.h (struct type) <field>: New method.
4976 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4977 or type::field.
4978
3cabb6b0
SM
49792020-05-22 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4982 (TYPE_FIELDS): Use type::fields. Change all call sites that
4983 modify the propery to use type::set_fields instead.
4984
1f704f76
SM
49852020-05-22 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4988 type::num_fields instead.
4989
5e33d5f4
SM
49902020-05-22 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4993 methods.
4994 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4995 that modify the number of fields to use type::set_num_fields
4996 instead.
4997
9392ebb3
TT
49982020-05-22 Tom Tromey <tromey@adacore.com>
4999
5000 * compile/compile-object-load.h (munmap_list_free): Don't
5001 declare.
5002
7c13f4e8
AB
50032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * annotate.c (annotate_source_line): Update return type, add call
5006 to update current symtab and line.
5007 * annotate.h (annotate_source_line): Update return type, and
5008 extend header comment.
5009 * source.c (info_line_command): Check annotation_level before
5010 calling annotate_source_line.
5011 * stack.c (print_frame_info): If calling annotate_source_line
5012 returns true, then don't print any other source line information.
5013
aa370940
SM
50142020-05-21 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5017
84d53fa9
SM
50182020-05-21 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * coffread.c (patch_type): Remove NULL check before xfree.
5021 * corefile.c (set_gnutarget): Likewise.
5022 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5023 * exec.c (build_section_table): Likewise.
5024 * remote.c (remote_target::pass_signals): Likewise.
5025 * utils.c (n_spaces): Likewise.
5026 * cli/cli-script.c (document_command): Likewise.
5027 * i386-windows-tdep.c (core_process_module_section): Likewise.
5028 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5029
9d428aae
SM
50302020-05-20 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * symfile.c (reread_symbols): Clear objfile's section_offsets
5033 vector and section indices, re-compute them by calling
5034 sym_offsets.
5035
250106a7
TT
50362020-05-20 Tom Tromey <tromey@adacore.com>
5037
5038 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5039 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5040
9a0bacfb
TV
50412020-05-20 Tom de Vries <tdevries@suse.de>
5042
5043 PR symtab/25833
5044 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5045
7b958a48
AM
50462020-05-20 Alan Modra <amodra@gmail.com>
5047
5048 PR 25993
5049 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5050 bfd_set_filename.
5051 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5052 passed to bfd_set_filename.
5053 * symfile-mem.c (add_vsyscall_page): Likewise for string
5054 passed to symbol_file_add_from_memory.
5055 (symbol_file_add_from_memory): Make name param a const char* and
5056 don't strdup.
5057
c7e97679
AM
50582020-05-20 Alan Modra <amodra@gmail.com>
5059
5060 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5061 rather than accessing bfd->filename directly.
5062 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5063 and use bfd_section_name.
5064 * dwarf2/frame.c (decode_frame_entry): Likewise.
5065 * exec.c (exec_set_section_address): Likewise.
5066 * solib-aix.c (solib_aix_bfd_open): Likewise.
5067 * stap-probe.c (get_stap_base_address): Likewise.
5068 * symfile.c (reread_symbols): Likewise.
5069
563c591b
TT
50702020-05-19 Tom Tromey <tromey@adacore.com>
5071
5072 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5073
f408d82c
SM
50742020-05-19 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5077
98c59b52
PA
50782020-05-19 Pedro Alves <palves@redhat.com>
5079
5080 * NEWS (set exec-file-mismatch): Adjust entry.
5081 * exec.c: Include "build-id.h".
5082 (validate_exec_file): Try to match build IDs instead of filenames.
5083 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5084 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5085 and pass down 'warn_if_slow'.
5086 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5087 gdb_bfd_open_closure to pass it down.
5088 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5089
4111f652
PA
50902020-05-19 Pedro Alves <palves@redhat.com>
5091
5092 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5093 * target.c (target_fileio_open_1): Rename to target_fileio_open
5094 and make extern. Use bool.
5095 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5096 (target_fileio_read_alloc_1): Adjust.
5097 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5098 (target_fileio_open_warn_if_slow): Delete declaration.
5099
ad80db5b
PA
51002020-05-19 Pedro Alves <palves@redhat.com>
5101
5102 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5103 Adjust all callers.
5104
1d6ce4d3
YS
51052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5106
5107 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5108 whether disp is negative.
5109
9005fbbb
SM
51102020-05-19 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * symfile.h (struct symfile_segment_data)
5113 <~symfile_segment_data>: Remove.
5114 <segment_info>: Change to std::vector.
5115 * symfile.c (default_symfile_segments): Update.
5116 * elfread.c (elf_symfile_segments): Update.
5117
68b888ff
SM
51182020-05-19 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5121 <segments>: New.
5122 <segment_bases, segment_sizes>: Remove.
5123 * symfile.c (default_symfile_segments): Update.
5124 * elfread.c (elf_symfile_segments): Update.
5125 * remote.c (remote_target::get_offsets): Update.
5126 * solib-target.c (solib_target_relocate_section_addresses):
5127 Update.
5128
62982abd
SM
51292020-05-19 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * symfile.h (struct symfile_segment_data): Initialize fields.
5132 <~symfile_segment_data>: Add.
5133 (symfile_segment_data_up): New.
5134 (struct sym_fns) <sym_segments>: Return a
5135 symfile_segment_data_up.
5136 (default_symfile_segments): Return a symfile_segment_data_up.
5137 (free_symfile_segment_data): Remove.
5138 (get_symfile_segment_data): Return a symfile_segment_data_up.
5139 * symfile.c (default_symfile_segments): Likewise.
5140 (get_symfile_segment_data): Likewise.
5141 (free_symfile_segment_data): Remove.
5142 (symfile_find_segment_sections): Update.
5143 * elfread.c (elf_symfile_segments): Return a
5144 symfile_segment_data_up.
5145 * remote.c (remote_target::get_offsets): Update.
5146 * solib-target.c (solib_target_relocate_section_addresses):
5147 Update.
5148 * symfile-debug.c (debug_sym_segments): Return a
5149 symfile_segment_data_up.
5150
7f204339
RO
51512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5152
e52a0f1b
RO
5153 PR build/25981
5154 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5155 Hardcode register numbers.
5156
7f204339
RO
5157 PR build/25981
5158 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5159 procfs_find_LDT_entry): Remove.
5160 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5161 procfs_find_LDT_entry): Remove.
5162 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5163 Remove.
5164
7f32a4d5
PA
51652020-05-17 Pedro Alves <palves@redhat.com>
5166 Andrew Burgess <andrew.burgess@embecosm.com>
5167 Keno Fischer <keno@juliacomputing.com>
5168
5169 PR gdb/25741
5170 * breakpoint.c (build_target_condition_list): Update comments.
5171 (build_target_command_list): Update comments and skip matching
5172 locations.
5173 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5174 a separate function. Simplify "set breakpoint auto-hw off"
5175 handling.
5176 (insert_breakpoints): Update comment.
5177 (tracepoint_locations_match): New parameter. For breakpoints,
5178 compare location types too, if the caller wants to.
5179 (handle_automatic_hardware_breakpoints): New functions.
5180 (bp_location_is_less_than): Also sort by location type and
5181 hardware breakpoint length.
5182 (update_global_location_list): Handle "set breakpoint auto-hw on"
5183 here.
5184 (update_breakpoint_locations): Ask breakpoint_locations_match to
5185 ignore location types.
5186
7d93a1e0
SM
51872020-05-16 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5190 type::name instead.
5191
d0e39ea2
SM
51922020-05-16 Simon Marchi <simon.marchi@efficios.com>
5193
5194 * gdbtypes.h (struct type) <name, set_name>: New methods.
5195 (TYPE_CODE): Use type::name. Change all call sites used to set
5196 the name to use type::set_name instead.
5197
2dab0c7b
TT
51982020-05-16 Tom Tromey <tom@tromey.com>
5199
5200 * top.c (quit_force): Update.
5201 * infrun.c (handle_no_resumed): Update.
5202 * top.h (all_uis): New function.
5203 (ALL_UIS): Remove.
5204
59f7bd8d
SM
52052020-05-16 Simon Marchi <simon.marchi@efficios.com>
5206
5207 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5208
9bf058f0
PA
52092020-05-16 Pedro Alves <palves@redhat.com>
5210
5211 * ia64-linux-nat.c
5212 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5213 Declare method.
5214 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5215
8f86ae1a
SM
52162020-05-15 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5219 (sparc64_adi_info): Likewise.
5220
d6bc0792
TT
52212020-05-15 Tom Tromey <tom@tromey.com>
5222
5223 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5224 block_objfile.
5225 (lookup_objfile_from_block): Remove.
5226 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5227 (lookup_global_symbol): Use block_objfile.
5228 * symtab.h (lookup_objfile_from_block): Don't declare.
5229 * printcmd.c (clear_dangling_display_expressions): Use
5230 block_objfile.
5231 * parse.c (operator_check_standard): Use block_objfile.
5232
8c14c3a3
TT
52332020-05-15 Tom Tromey <tom@tromey.com>
5234
5235 * language.c (language_alloc_type_symbol): Set
5236 SYMBOL_SECTION.
5237 * symtab.c (initialize_objfile_symbol): Remove.
5238 (allocate_symbol): Remove.
5239 (allocate_template_symbol): Remove.
5240 * dwarf2/read.c (fixup_go_packaging): Use "new".
5241 (new_symbol): Use "new".
5242 (read_variable): Don't call initialize_objfile_symbol. Use
5243 "new".
5244 (read_func_scope): Use "new".
5245 * xcoffread.c (process_xcoff_symbol): Don't call
5246 initialize_objfile_symbol.
5247 (SYMBOL_DUP): Remove.
5248 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5249 "new".
5250 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5251 (allocate_template_symbol): Don't declare.
5252 (struct symbol): Add copy constructor. Change defaults.
5253 * jit.c (finalize_symtab): Use "new".
5254 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5255 Use "new".
5256 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5257 (common_block_end): Use "new".
5258 * mdebugread.c (parse_symbol): Use "new".
5259 (new_symbol): Likewise.
5260
5b4a1a8d
PW
52612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * NEWS: Mention changes to help and apropos.
5264
57b4f16e
PW
52652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5266
5267 * command.h (enum command_class): Improve comments, document
5268 that class_alias is for user-defined aliases, give the class
5269 name for each class, remove unused class_xdb.
5270 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5271 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5272 by a precise class.
5273 * infcmd.c (_initialize_infcmd): Likewise.
5274 * reverse.c (_initialize_reverse): Likewise.
5275 * stack.c (_initialize_stack): Likewise.
5276 * symfile.c (_initialize_symfile): Likewise.
5277 * tracepoint.c (_initialize_tracepoint): Likewise.
5278
7c05caf7
PW
52792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5280
5281 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5282 when their aliased command is traversed.
5283 (help_cmd): Add fput_command_names_styled call to
5284 output command name and aliases when command has an alias.
5285
3b3aaacb
PW
52862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5287
5288 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5289 * cli/cli-decode.c (help_cmd_list): Declare as static,
5290 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5291 a command together with the command.
5292 (fput_command_name_styled, fput_command_names_styled): New functions.
5293 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5294 fput_command_name_styled.
5295 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5296 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5297
7aa1b46f
PW
52982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5299
5300 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5301 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5302 * command.h (cmd_show_list): Likewise.
5303 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5304 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5305
89bcba74
PW
53062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5307
5308 * unittests/command-def-selftests.c (traverse_command_structure):
5309 Verify all commands of a list have the same prefix command and
5310 that only the top cmdlist commands have a null prefix.
5311
3f4d92eb
PW
53122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313
5314 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5315 as prefix, not one of its aliases.
5316 (set_cmd_prefix): Remove.
5317 (do_add_cmd): Centralize the setting of the prefix of a command, when
5318 command is defined after its full chain of prefix commands.
5319 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5320 (add_setshow_cmd_full): Likewise.
5321 (update_prefix_field_of_prefixed_commands): New function.
5322 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5323 update_prefix_field_of_prefixed_commands.
5324 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5325 addresses of remote_set_cmdlist and remote_show_cmdlist given
5326 as argument, not the address of an argument.
5327 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5328 * gdb/remote.c (_initialize_remote): Likewise.
5329
0605465f
PW
53302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5331
5332 * cli/cli-cmds.c (alias_command): Check for an existing alias
5333 using lookup_cmd_composition, as valid_command_p is too strict
5334 and forbids aliases that are the prefix of an existing alias
5335 or command.
5336 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5337 command is properly recognised as a valid command.
5338
58e6ac70
PW
53392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5340
5341 * unittests/help-doc-selftests.c: Rename to
5342 unittests/command-def-selftests.c
5343 * unittests/command-def-selftests.c (help_doc_tests): Update some
5344 comments.
5345 (command_structure_tests, traverse_command_structure): New namespace
5346 and function.
5347 (command_structure_invariants_tests): New function.
5348 (_initialize_command_def_selftests) Renamed from
5349 _initialize_help_doc_selftests, register command_structure_invariants
5350 selftest.
5351
a7b9ceb8
PW
53522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5353
5354 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5355 an alias of 'show'.
5356
b2188a06
JB
53572020-05-15 Joel Brobecker <brobecker@adacore.com>
5358
5359 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5360 ada_is_fixed_point_type. Update all callers.
5361 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5362 all callers.
5363 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5364 Update all callers.
5365 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5366 print_fixed_point_type. Update all callers.
5367 * ada-valprint.c (ada_value_print_num): Replace call to
5368 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5369
a51951c2
KB
53702020-05-14 Kevin Buettner <kevinb@redhat.com>
5371
5372 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5373 processors.
5374 (cpu_supports_bts): Add CV_AMD case.
5375
29d6859f
LM
53762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5377 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * infrun.c (stop_all_threads): Collect multiple wait events at
5380 each pass.
5381
78134374
SM
53822020-05-14 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5385 type::code instead.
5386
67607e24
SM
53872020-05-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (struct type) <code, set_code>: New methods.
5390 (TYPE_CODE): Use type::code. Change all call sites used to set
5391 the code to use type::set_code instead.
5392
a05575d3
TBA
53932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5394 Tom de Vries <tdevries@suse.de>
5395 Pedro Alves <palves@redhat.com>
5396
5397 PR threads/25478
5398 * infrun.c (stop_all_threads): Do NOT ignore
5399 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5400 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5401 received.
5402 (handle_no_resumed): Remove code handling a live inferior with no
5403 threads.
5404 * remote.c (has_single_non_exited_thread): New.
5405 (remote_target::update_thread_list): Do not delete a thread if is
5406 the last thread of the process.
5407 * thread.c (thread_select): Call delete_exited_threads instead of
5408 prune_threads.
5409
6ad82919
TBA
54102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5411
5412 * infrun.c (stop_all_threads): Enable/disable thread events of all
5413 targets. Move a debug message denoting the end of the function
5414 into the SCOPED_EXIT block.
5415
d890404b
TBA
54162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5417
5418 * process-stratum-target.h: Include <set>.
5419 (all_non_exited_process_targets, switch_to_target_no_thread): New
5420 function declarations.
5421 * process-stratum-target.c (all_non_exited_process_targets)
5422 (switch_to_target_no_thread): New function implementations.
5423
293b3ebc
TBA
54242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5425
5426 * infrun.c (handle_inferior_event): Extract out a piece of code
5427 into...
5428 (mark_non_executing_threads): ...this new function.
5429
7ca9b62a
TBA
54302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5431
5432 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5433 use.
5434
fc75c28b
TBA
54352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5436
5437 * regcache.c (regcache_read_pc_protected): New function
5438 implementation that returns 0 if the PC cannot read via
5439 'regcache_read_pc'.
5440 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5441 instead of 'regcache_read_pc'.
5442 (keep_going_pass_signal): Ditto.
5443
a89febbd
TT
54442020-05-13 Tom Tromey <tromey@adacore.com>
5445
5446 * ada-lang.c (align_value): Remove.
5447 (ada_template_to_fixed_record_type_1): Use align_up.
5448
f7e23710
TBA
54492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5450
5451 * async-event.c: Update the copyright year.
5452 * async-event.h: Update the copyright year.
5453
02ff80c2
SM
54542020-05-12 Simon Marchi <simon.marchi@efficios.com>
5455
5456 * objfiles.h (is_addr_in_objfile,
5457 shared_objfile_contains_address_p): Return bool.
5458 * objfile.c (is_addr_in_objfile,
5459 shared_objfile_contains_address_p): Return bool.
5460
4fd6c7e8
TT
54612020-05-11 Tom Tromey <tromey@adacore.com>
5462
5463 * cli/cli-cmds.c (info_command): Restore.
5464 (_initialize_cli_cmds): Use add_prefix_command for "info".
5465 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5466
5eb68a39
TT
54672020-05-11 Tom Tromey <tromey@adacore.com>
5468
5469 * ada-lang.c (ada_value_primitive_field): Now public.
5470 * ada-lang.h (ada_value_primitive_field): Declare.
5471 * ada-valprint.c (print_field_values): Use
5472 ada_value_primitive_field for wrapper fields.
5473
7666722f
TV
54742020-05-11 Tom de Vries <tdevries@suse.de>
5475
5476 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5477 MODULE_DOMAIN.
5478
3ee6bb11
TV
54792020-05-11 Tom de Vries <tdevries@suse.de>
5480
5481 PR symtab/25941
5482 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5483 with length 0, if not gdb-produced.
5484 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5485
43434996
TV
54862020-05-09 Tom de Vries <tdevries@suse.de>
5487
5488 PR gdb/25955
5489 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5490 calculation.
5491
2f78cffc
TT
54922020-05-09 Tom Tromey <tom@tromey.com>
5493
5494 * top.c (server_command): Now bool.
5495 * top.h (server_command): Now bool.
5496
4f7bc5ed
TT
54972020-05-08 Tom Tromey <tromey@adacore.com>
5498
5499 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5500 already being processed.
5501
8be4b118
TT
55022020-05-08 Tom Tromey <tom@tromey.com>
5503
5504 * printcmd.c (struct display) <next>: Remove.
5505 <display>: New constructor.
5506 <exp_string>: Now a std::string.
5507 <enabled_p>: Now a bool.
5508 (display_number): Move definition earlier.
5509 (displays): Rename from display_chain. Now a std::vector.
5510 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5511 (display_command): Update.
5512 (do_one_display, disable_display)
5513 (enable_disable_display_command, do_enable_disable_display):
5514 Update.
5515 (free_display): Remove.
5516 (clear_displays): Rewrite.
5517 (delete_display): Update.
5518 (map_display_numbers): Use function_view. Remove "data"
5519 parameter. Update.
5520 (do_delete_display): Remove.
5521 (undisplay_command): Update.
5522 (do_one_display, do_displays, disable_display)
5523 (info_display_command): Update.
5524 (do_enable_disable_display): Remove.
5525 (enable_disable_display_command)
5526 (clear_dangling_display_expressions): Update.
5527
94c93c35
TT
55282020-05-08 Tom Tromey <tom@tromey.com>
5529
5530 * symtab.c (set_symbol_cache_size)
5531 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5532 (maintenance_print_symbol_cache_statistics): Update.
5533 * symmisc.c (print_symbol_bcache_statistics)
5534 (print_objfile_statistics, maintenance_print_objfiles)
5535 (maintenance_info_symtabs, maintenance_check_symtabs)
5536 (maintenance_expand_symtabs, maintenance_info_line_tables):
5537 Update.
5538 * symfile-debug.c (set_debug_symfile): Update.
5539 * source.c (forget_cached_source_info): Update.
5540 * python/python.c (gdbpy_progspaces): Update.
5541 * psymtab.c (maintenance_info_psymtabs): Update.
5542 * probe.c (parse_probes): Update.
5543 * linespec.c (iterate_over_all_matching_symtabs)
5544 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5545 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5546 * exec.c (exec_target::close): Update.
5547 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5548 * breakpoint.c (print_one_breakpoint_location)
5549 (create_longjmp_master_breakpoint)
5550 (create_std_terminate_master_breakpoint): Update.
5551 * progspace.c (program_spaces): Now a std::vector.
5552 (maybe_new_address_space): Update.
5553 (add_program_space): Remove.
5554 (program_space::program_space): Update.
5555 (remove_program_space): Update.
5556 (number_of_program_spaces): Remove.
5557 (print_program_space, update_address_spaces): Update.
5558 * progspace.h (program_spaces): Change type.
5559 (ALL_PSPACES): Remove.
5560 (number_of_program_spaces): Don't declare.
5561 (struct program_space) <next>: Remove.
5562
a1fd1ac9
TT
55632020-05-08 Tom Tromey <tom@tromey.com>
5564
5565 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5566 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5567 (enable_break): Update.
5568 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5569 (frv_fdpic_find_canonical_descriptor): Update.
5570 (frv_fetch_objfile_link_map): Update.
5571 * progspace.c (program_space::free_all_objfiles): Update.
5572 (program_space::solibs): New method.
5573 * progspace.h (struct program_space) <solibs>: New method.
5574 * solist.h (master_so_list): Don't declare.
5575 (ALL_SO_LIBS): Remove.
5576 * solib.h (so_list_head): Remove.
5577 (update_solib_list): Update comment.
5578 * solib.c (master_so_list): Remove.
5579 (solib_used, update_solib_list, solib_add)
5580 (info_sharedlibrary_command, clear_solib)
5581 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5582
38eae084
TT
55832020-05-08 Tom Tromey <tom@tromey.com>
5584
5585 * extension.c (extension_languages): Now a std::array.
5586 (ALL_EXTENSION_LANGUAGES): Remove.
5587 (get_ext_lang_defn, get_ext_lang_of_file)
5588 (eval_ext_lang_from_control_command): Update.
5589 (finish_ext_lang_initialization)
5590 (auto_load_ext_lang_scripts_for_objfile)
5591 (ext_lang_type_printers::ext_lang_type_printers)
5592 (apply_ext_lang_type_printers)
5593 (ext_lang_type_printers::~ext_lang_type_printers)
5594 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5595 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5596 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5597 (get_matching_xmethod_workers, ext_lang_colorize)
5598 (ext_lang_before_prompt): Update.
5599 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5600
596dc4ad
TT
56012020-05-08 Tom Tromey <tom@tromey.com>
5602
5603 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5604 overload.
5605 <swap_string, m_string>: Remove.
5606 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5607 Update.
5608 * stabsread.c (define_symbol, read_type): Update.
5609 * linespec.c (find_linespec_symbols): Update.
5610 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5611 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5612 * dbxread.c (read_dbx_symtab): Update.
5613 * cp-support.h (cp_canonicalize_string_full)
5614 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5615 Return unique_xmalloc_ptr.
5616 * cp-support.c (inspect_type): Update.
5617 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5618 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5619 Likewise.
5620 * c-typeprint.c (print_name_maybe_canonical): Update.
5621 * break-catch-throw.c (check_status_exception_catchpoint):
5622 Update.
5623
bf4cb9be
TV
56242020-05-08 Tom de Vries <tdevries@suse.de>
5625
5626 * infrun.c (follow_fork): Copy current_line and current_symtab to
5627 child thread.
5628
a1b68f28
SM
56292020-05-07 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * async-event.c (struct async_signal_handler, struct
5632 async_event_handler): Reformat, remove typedef.
5633
98d48915
SM
56342020-05-07 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5637 access thistype->main_type->dyn_prop_list directly.
5638
7aa91313
SM
56392020-05-07 Simon Marchi <simon.marchi@efficios.com>
5640
5641 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5642 (remove_dyn_prop): Remove. Update all users to use
5643 type::remove_dyn_prop.
5644 * gdbtypes.c (remove_dyn_prop): Rename to...
5645 (type::remove_dyn_prop): ... this.
5646
5c54719c
SM
56472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5648
5649 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5650 (add_dyn_prop): Remove. Update all users to use
5651 type::add_dyn_prop.
5652 * gdbtypes.c (add_dyn_prop): Rename to...
5653 (type::add_dyn_prop): ... this.
5654
24e99c6c
SM
56552020-05-07 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5658 (get_dyn_prop): Remove. Update all users to use
5659 type::dyn_prop.
5660 * gdbtypes.c (get_dyn_prop): Rename to...
5661 (type::dyn_prop): ... this.
5662
0d4bf016
SM
56632020-05-06 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5666
ac4a4f1c
SM
56672020-05-06 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5670 instruction, skip it if it's there.
5671
a3bbacc1
SM
56722020-05-05 Simon Marchi <simon.marchi@efficios.com>
5673
5674 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5675
c3236f84
SM
56762020-05-04 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5679 * gdbtypes.c (recursive_dump_type): Remove use of
5680 TYPE_INCOMPLETE.
5681
3b6acaee
TT
56822020-05-03 Tom Tromey <tom@tromey.com>
5683
5684 * breakpoint.c (catch_command, tcatch_command): Remove.
5685 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5686 add_show_prefix_cmd.
5687 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5688 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5689 Remove.
5690 (add_internal_problem_command): Use add_basic_prefix_cmd,
5691 add_show_prefix_cmd.
5692 * mips-tdep.c (set_mipsfpu_command): Remove.
5693 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5694 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5695 (_initialize_index_cache): Use add_basic_prefix_cmd.
5696 * memattr.c (dummy_cmd): Remove.
5697 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5698 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5699 (_initialize_tui_win): Use add_basic_prefix_cmd,
5700 add_show_prefix_cmd.
5701 * cli/cli-logging.c (set_logging_command): Remove.
5702 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5703 add_show_prefix_cmd.
5704 (show_logging_command): Remove.
5705 * target.c (target_command): Remove.
5706 (add_target): Use add_basic_prefix_cmd.
5707
a51119cd
HD
57082020-05-02 Hannes Domani <ssbssa@yahoo.de>
5709
5710 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5711
652fc23a 57122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5713
652fc23a
PW
5714 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5715 info_command.
5716
117539e6
KR
57172020-04-30 Kamil Rytarowski <n54@gmx.com>
5718
5719 * nbsd-nat.c (nbsd_enable_proc_events)
5720 (nbsd_nat_target::post_startup_inferior): Add.
5721 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5722 (nbsd_nat_target::update_thread_list): Rewrite.
5723 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5724 "PTRACE_LWP_CREATE".
5725 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5726
102e38eb 57272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5728
102e38eb
PW
5729 * stack.c (_initialize_stack): Remove duplicated creation
5730 of "frame" command and "f" alias.
5731
ee9d1e5f
HD
57322020-04-30 Hannes Domani <ssbssa@yahoo.de>
5733
5734 PR gdb/18706
5735 * gdbtypes.c (check_typedef): Calculate size of array of
5736 stubbed type.
5737
627c7fb8
HD
57382020-04-30 Hannes Domani <ssbssa@yahoo.de>
5739
5740 PR gdb/15559
5741 * i386-tdep.c (i386_push_dummy_call): Call
5742 i386_thiscall_push_dummy_call.
5743 (i386_thiscall_push_dummy_call): New function.
5744 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5745 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5746 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5747
ffc2844e
SM
57482020-04-29 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * gdbarch.sh (do_read): Add shellcheck disable directive for
5751 warning SC2162.
5752
1207375d
SM
57532020-04-29 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5756 "referenced but not assigned" warning.
5757
9fdb2916
SM
57582020-04-29 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbarch.sh: Remove code that sets fallbackdefault.
5761
759cea5e
SM
57622020-04-29 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbarch.sh: Use shell operators && and || instead of
5765 -a and -o.
5766
cb02ab24
SM
57672020-04-29 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * gdbarch.sh: Use $(...) instead of `...`.
5770
a6fc5ffc
SM
57712020-04-29 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * gdbarch.sh: Use double quotes around variables.
5774
8d113d13
SM
57752020-04-29 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * gdbarch.sh: Use %s with printf, instead of variables in the
5778 format string.
5779
ed6acedd
TT
57802020-04-29 Tom Tromey <tromey@adacore.com>
5781
5782 PR ada/25875:
5783 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5784 type fields here.
5785 (read_enumeration_type): Call
5786 update_enumeration_type_from_children later. Update comments.
5787 (process_enumeration_scope): Don't create type fields.
5788
b68b1b58
KR
57892020-04-29 Kamil Rytarowski <n54@gmx.com>
5790
5791 * nbsd-tdep.c: Include "xml-syscall.h".
5792 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5793
f94b2e03
KR
57942020-04-29 Kamil Rytarowski <n54@gmx.com>
5795
5796 * nbsd-nat.c: Include "sys/wait.h".
5797 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5798 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5799 (nbsd_nat_target::remove_exec_catchpoint)
5800 (nbsd_nat_target::set_syscall_catchpoint): Add.
5801 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5802 (nbsd_nat_target::insert_exec_catchpoint)
5803 (nbsd_nat_target::remove_exec_catchpoint)
5804 (nbsd_nat_target::set_syscall_catchpoint): Add.
5805 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5806 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5807 `nbsd_get_syscall_number'.
5808
fc49bc72
TT
58092020-04-29 Tom Tromey <tom@tromey.com>
5810
5811 * stack.c (print_block_frame_labels): Remove.
5812
d642b692
HD
58132020-04-29 Hannes Domani <ssbssa@yahoo.de>
5814
5815 PR gdb/17320
5816 * ada-valprint.c (val_print_packed_array_elements): Move array
5817 end bracket to new line.
5818 (ada_val_print_string): Remove extra spaces before first array
5819 element.
5820 * c-valprint.c (c_value_print_array): Likewise.
5821 * m2-valprint.c (m2_print_array_contents): Likewise.
5822 (m2_value_print_inner): Likewise.
5823 * p-valprint.c (pascal_value_print_inner): Likewise.
5824 * valprint.c (generic_val_print_array): Likewise.
5825 (value_print_array_elements): Move first array element and array
5826 end bracket to new line.
5827
ea90f227
TV
58282020-04-29 Tom de Vries <tdevries@suse.de>
5829
5830 PR symtab/25889
5831 * linespec.c (find_method): Fix ix calculation.
5832
4498ef4f
KR
58332020-04-28 Kamil Rytarowski <n54@gmx.com>
5834
5835 * syscalls/update-netbsd.sh: New file.
5836 * syscalls/netbsd.xml: Regenerate.
5837 * data-directory/Makefile.in: Register `netbsd.xml' in
5838 `SYSCALLS_FILES'.
5839
a55e30b5
SM
58402020-04-28 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * syscalls/update-freebsd.sh: Add double quotes.
5843
2b2fbab8
TT
58442020-04-28 Tom Tromey <tom@tromey.com>
5845
5846 * NEWS: Update.
5847 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5848 (cmdpy_init): Allow class_tui.
5849
a65189c9
TV
58502020-04-28 Mark Williams <mark@myosotissp.com>
5851
5852 PR gdb/24480
5853 * dwarf2read.c: Add missing assingments to list_in_scope when
5854 start_symtab was already called.
5855
1b95cdb7
SM
58562020-04-28 Simon Marchi <simon.marchi@efficios.com>
5857
5858 PR gdb/25881
5859 * dwarf2/read.c (offset_map_type): Use
5860 gdb:hash_enum<sect_offset> as hash function.
5861
15cd93d0
TV
58622020-04-28 Tom de Vries <tdevries@suse.de>
5863
5864 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5865 with DW_AT_signature.
5866
1eb39914
SM
58672020-04-27 Simon Marchi <simon.marchi@efficios.com>
5868
5869 * configure.ac: Remove check for fs_base/gs_base in
5870 user_regs_struct.
5871 * configure: Re-generate.
5872 * config.in: Re-generate.
5873 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5874 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5875 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5876
991a3e2e
LM
58772020-04-27 Luis Machado <luis.machado@linaro.org>
5878
5879 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5880 problematic inline frame unwinding situation.
5881 * frame.c (frame_id_computed_p): New function.
5882 * frame.h (frame_id_computed_p): New prototype.
5883
361ba0e8
TT
58842020-04-26 Tom Tromey <tom@tromey.com>
5885
5886 * command.h (enum command_class) <class_pseudo>: Remove.
5887
bc3609fd
PW
58882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5889
5890 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5891 and whitespace.
5892
b9771db7
KR
58932020-04-25 Kamil Rytarowski <n54@gmx.com>
5894
ec16513e
SM
5895 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5896 `PT_GET_PROCESS_STATE' block.
b9771db7 5897
7151c1af
TT
58982020-04-24 Tom Tromey <tom@tromey.com>
5899
5900 * symtab.h (symbol_get_demangled_name): Don't declare.
5901 * symtab.c (symbol_get_demangled_name): Remove.
5902 (general_symbol_info::natural_name)
5903 (general_symbol_info::demangled_name): Update.
5904
906bb4c5
TT
59052020-04-24 Tom Tromey <tom@tromey.com>
5906
5907 PR rust/25025:
5908 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5909
bcfe6157
TT
59102020-04-24 Tom Tromey <tom@tromey.com>
5911
5912 PR symtab/12707:
5913 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5914 exists.
5915 (new_symbol): Likewise.
5916 * compile/compile-object-load.c (get_out_value_type): Use
5917 symbol_matches_search_name.
5918
f049a313
TT
59192020-04-24 Tom Tromey <tom@tromey.com>
5920
5921 * dwarf2/read.c (add_partial_symbol): Do not call
5922 compute_and_set_names.
5923
76e288d1
TT
59242020-04-24 Tom Tromey <tom@tromey.com>
5925
5926 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5927 overload.
5928
2467f4f6
TT
59292020-04-24 Tom Tromey <tom@tromey.com>
5930
5931 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5932 (add_psymbol_to_list): New overload. Make old overload call new
5933 one.
5934 * psympriv.h (add_psymbol_to_list): New overload.
5935
e61108c9
TT
59362020-04-24 Tom Tromey <tom@tromey.com>
5937
5938 * dwarf2/read.c (partial_die_info::read) <case
5939 DW_AT_linkage_name>: Use value_as_string.
5940 (dwarf2_string_attr): Use value_as_string.
5941 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5942 method.
5943 * dwarf2/attribute.c (attribute::value_as_string): New method.
5944
8c87a452
TT
59452020-04-24 Tom Tromey <tom@tromey.com>
5946
5947 * symtab.c (general_symbol_info::natural_name)
5948 (general_symbol_info::demangled_name): Check for language_rust.
5949
787de330
TT
59502020-04-24 Tom Tromey <tom@tromey.com>
5951
5952 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5953 (dwarf2_physname): ... from here.
5954 (partial_die_info::read): Add Rust "{" hack.
5955
ff985671
TT
59562020-04-24 Tom Tromey <tom@tromey.com>
5957
5958 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5959 method.
5960 (symbol_set_demangled_name): Don't declare.
5961 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5962 symbol_set_demangled_name.
5963 (general_symbol_info::set_language)
5964 (general_symbol_info::compute_and_set_names): Update.
5965 * minsyms.c (minimal_symbol_reader::install): Update.
5966 * dwarf2/read.c (new_symbol): Update.
5967
1acda803
TT
59682020-04-24 Tom Tromey <tromey@adacore.com>
5969
5970 PR python/23662:
5971 * python/py-type.c (convert_field): Handle
5972 FIELD_LOC_KIND_DWARF_BLOCK.
5973 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5974 (typy_get_dynamic): Nw function.
5975 (type_object_getset): Add "dynamic".
5976 * NEWS: Add entry.
5977
d656f129
TT
59782020-04-24 Tom Tromey <tromey@adacore.com>
5979
5980 * ada-typeprint.c (print_choices, print_variant_part)
5981 (print_record_field_types_dynamic): New functions.
5982 (print_record_field_types): Use print_record_field_types_dynamic.
5983
7d79de9a
TT
59842020-04-24 Tom Tromey <tromey@adacore.com>
5985
5986 * dwarf2/read.c (handle_data_member_location): New overload.
5987 (dwarf2_add_field): Use it.
5988 (decode_locdesc): Add "computed" parameter. Update comment.
5989 * gdbtypes.c (is_dynamic_type_internal): Also look for
5990 FIELD_LOC_KIND_DWARF_BLOCK.
5991 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5992 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5993 virtual base classes.
5994 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5995 FIELD_LOC_KIND_DWARF_BLOCK.
5996
f8e89861
TT
59972020-04-24 Tom Tromey <tromey@adacore.com>
5998
5999 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6000 * gdbtypes.c (is_dynamic_type_internal): Check
6001 TYPE_HAS_DYNAMIC_LENGTH.
6002 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6003 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6004 New macros.
6005 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6006 constant.
6007
9c6a1327
TT
60082020-04-24 Tom Tromey <tromey@adacore.com>
6009
6010 * dwarf2/read.c (struct variant_field): Rewrite.
6011 (struct variant_part_builder): New.
6012 (struct nextfield): Remove "variant" field. Add "offset".
6013 (struct field_info): Add "current_variant_part" and
6014 "variant_parts".
6015 (alloc_discriminant_info): Remove.
6016 (alloc_rust_variant): New function.
6017 (quirk_rust_enum): Update.
6018 (dwarf2_add_field): Set "offset" member. Don't handle
6019 DW_TAG_variant_part.
6020 (offset_map_type): New typedef.
6021 (convert_variant_range, create_one_variant)
6022 (create_one_variant_part, create_variant_parts)
6023 (add_variant_property): New functions.
6024 (dwarf2_attach_fields_to_type): Call add_variant_property.
6025 (read_structure_type): Don't handle DW_TAG_variant_part.
6026 (handle_variant_part, handle_variant): New functions.
6027 (handle_struct_member_die): Use them.
6028 (process_structure_scope): Don't handle variant parts.
6029 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6030 (struct discriminant_info): Remove.
6031 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6032 (struct main_type) <flag_discriminated_union>: Remove.
6033 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6034 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6035 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6036 Update.
6037 * valops.c (value_union_variant): Remove.
6038 * value.h (value_union_variant): Don't declare.
6039
b249d2c2
TT
60402020-04-24 Tom Tromey <tromey@adacore.com>
6041
6042 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6043 (ada_value_primitive_packed_val): Update.
6044 * ada-valprint.c (ada_value_print_1): Update.
6045 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6046 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6047 just an address. Use evaluate_for_locexpr_baton.
6048 (dwarf2_evaluate_property): Update.
6049 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6050 array_view.
6051 * findvar.c (default_read_var_value): Update.
6052 * gdbtypes.c (compute_variant_fields_inner)
6053 (resolve_dynamic_type_internal): Update.
6054 (resolve_dynamic_type): Change type of valaddr parameter.
6055 * gdbtypes.h (resolve_dynamic_type): Update.
6056 * valarith.c (value_subscripted_rvalue): Update.
6057 * value.c (value_from_contents_and_address): Update.
6058
61122aa9
TT
60592020-04-24 Tom Tromey <tromey@adacore.com>
6060
6061 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6062 "push_initial_value" parameter.
6063 (dwarf2_evaluate_property): Likewise.
6064 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6065
ef83a141
TT
60662020-04-24 Tom Tromey <tromey@adacore.com>
6067
6068 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6069 (variant::matches, compute_variant_fields_recurse)
6070 (compute_variant_fields_inner, compute_variant_fields): New
6071 functions.
6072 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6073 Use resolved_type after type is made.
6074 (operator==): Add new cases.
6075 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6076 (struct discriminant_range, struct variant, struct variant_part):
6077 New.
6078 (union dynamic_prop_data) <variant_parts, original_type>: New
6079 members.
6080 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6081 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6082 constants.
6083 * value.c (unpack_bits_as_long): Now public.
6084 * value.h (unpack_bits_as_long): Declare.
6085
675127ec
TT
60862020-04-24 Tom Tromey <tromey@adacore.com>
6087
6088 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6089 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6090
9852ceef
HD
60912020-04-24 Hannes Domani <ssbssa@yahoo.de>
6092
6093 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6094
7632c6ce
KR
60952020-04-24 Kamil Rytarowski <n54@gmx.com>
6096
6097 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6098 (remove_fork_catchpoint, post_startup_inferior)
6099 (post_attach): Move...
6100 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6101 (remove_fork_catchpoint, post_startup_inferior)
6102 (post_attach): ...here.
6103 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6104 (remove_fork_catchpoint, post_startup_inferior)
6105 (post_attach): Move...
6106 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6107 (remove_fork_catchpoint, post_startup_inferior)
6108 (post_attach): ...here.
6109
7be2bb4f
TT
61102020-04-24 Tom Tromey <tromey@adacore.com>
6111
6112 * nat/windows-nat.h (struct windows_thread_info)
6113 <pc_adjusted>: New member.
6114 * windows-nat.c (windows_fetch_one_register): Check
6115 pc_adjusted.
6116 (windows_nat_target::get_windows_debug_event)
6117 (windows_nat_target::wait): Set pc_adjusted.
6118
f80cb3b4
TV
61192020-04-24 Tom de Vries <tdevries@suse.de>
6120
6121 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6122 Run gdb-add-index inside temp dir.
6123
29514b87
TT
61242020-04-23 Tom Tromey <tromey@adacore.com>
6125
6126 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6127 in loop.
6128
5939967b
LM
61292020-04-23 Luis Machado <luis.machado@linaro.org>
6130
6131 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6132 get_frame_register instead of gdbarch_unwind_pc.
6133
70bc38f5
TV
61342020-04-23 Tom de Vries <tdevries@suse.de>
6135
6136 * symtab.c (lookup_global_symbol): Prefer def over decl.
6137
de82891c
TV
61382020-04-23 Tom de Vries <tdevries@suse.de>
6139
6140 PR symtab/25807
6141 * block.c (best_symbol, better_symbol): Promote to external.
6142 * block.h (best_symbol, better_symbol): Declare.
6143 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6144 decl.
6145
ecc6c606
TT
61462020-04-23 Tom Tromey <tromey@adacore.com>
6147
6148 PR ada/25837:
6149 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6150 "const char *", not a "const std::string &".
6151 <name_and_matcher::operator==>: Update.
6152 * unittests/lookup_name_info-selftests.c: Change type of
6153 "result".
6154
740480b8
TT
61552020-04-23 Tom Tromey <tom@tromey.com>
6156
6157 * inferior.h (iterate_over_inferiors): Don't declare.
6158 * inferior.c (iterate_over_inferiors): Remove.
6159 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6160 Remove.
6161 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6162 use iterate_over_inferiors.
6163 (darwin_resume_inferior_it)
6164 (struct resume_inferior_threads_param)
6165 (darwin_resume_inferior_threads_it): Remove.
6166 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6167
ae3ab1f0
TV
61682020-04-23 Tom de Vries <tdevries@suse.de>
6169
6170 * blockframe.c (find_pc_partial_function): Use
6171 find_pc_sect_compunit_symtab rather than
6172 objfile->sf->qf->find_pc_sect_compunit_symtab.
6173
317d2668
TV
61742020-04-22 Tom de Vries <tdevries@suse.de>
6175
6176 PR symtab/25764
6177 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6178 in psymtabs.
6179
eea9e357
TV
61802020-04-22 Tom de Vries <tdevries@suse.de>
6181
6182 PR symtab/25801
6183 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6184 symtabs.
6185
3d5afab3
TV
61862020-04-22 Tom de Vries <tdevries@suse.de>
6187
6188 PR symtab/25700
6189 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6190 CU if already created.
6191
d43b7a2d
TBA
61922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6193
6194 * infrun.c (displaced_step_fixup): Switch to the event_thread
6195 before calling displaced_step_restore, not after.
6196
d89edf9b
MM
61972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6198
6199 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6200 its inferior is not recorded by us.
6201 (record_btrace_target_open): Replace call to
6202 all_non_exited_threads () with call to current_inferior
6203 ()->non_exited_threads ().
6204 (record_btrace_target::stop_recording): Likewise.
6205 (record_btrace_target::close): Likewise.
6206 (record_btrace_target::wait): Likewise.
6207 (record_btrace_target::record_stop_replaying): Likewise.
6208
5897fd49
MM
62092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6210
6211 * btrace.c (btrace_enable): Throw an error on double enables and
6212 when enabling recording fails.
6213 (btrace_disable): Throw an error if the thread is not recorded.
6214
1a476b6d
MM
62152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6216
6217 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6218 request if we do not have a thread_info.
6219
4778a5f8
TV
62202020-04-21 Tom de Vries <tdevries@suse.de>
6221
6222 PR gdb/25471
6223 * thread.c
6224 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6225 exception in get_frame_id.
6226
0fa7617d
TT
62272020-04-20 Tom Tromey <tromey@adacore.com>
6228
6229 * python/python.c (struct gdbpy_event): Mark move constructor as
6230 noexcept.
6231 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6232 constructor as noexcept.
6233 * completer.h (struct completion_result): Mark move constructor as
6234 noexcept.
6235 * completer.c (completion_result::completion_result): Use
6236 initialization style. Don't call reset_match_list.
6237
ad23bda0
MS
62382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6239
6240 * MAINTAINERS (Write After Approval): Add myself.
6241
45e1f031
TT
62422020-04-18 Tom Tromey <tom@tromey.com>
6243
6244 * windows-tdep.c (init_w32_command_list)
6245 (w32_prefix_command_valid): Restore.
6246 (_initialize_windows_tdep): Call init_w32_command_list.
6247
08feed99
TT
62482020-04-18 Tom Tromey <tom@tromey.com>
6249
6250 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6251 * value.c (value_fn_field): Update.
6252 * valops.c (find_function_in_inferior)
6253 (value_allocate_space_in_inferior): Update.
6254 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6255 Update.
6256 * tui/tui-source.c (tui_source_window::set_contents): Update.
6257 * symtab.c (lookup_global_or_static_symbol)
6258 (find_function_start_sal_1, skip_prologue_sal)
6259 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6260 * symmisc.c (dump_msymbols, dump_symtab_1)
6261 (maintenance_print_one_line_table): Update.
6262 * symfile.c (init_entry_point_info, section_is_mapped)
6263 (list_overlays_command, simple_read_overlay_table)
6264 (simple_overlay_update_1): Update.
6265 * stap-probe.c (handle_stap_probe): Update.
6266 * stabsread.c (dbx_init_float_type, define_symbol)
6267 (read_one_struct_field, read_enum_type, read_range_type): Update.
6268 * source.c (info_line_command): Update.
6269 * python/python.c (gdbpy_source_objfile_script)
6270 (gdbpy_execute_objfile_script): Update.
6271 * python/py-type.c (save_objfile_types): Update.
6272 * python/py-objfile.c (py_free_objfile): Update.
6273 * python/py-inferior.c (python_new_objfile): Update.
6274 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6275 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6276 (maintenance_check_psymtabs): Update.
6277 * printcmd.c (info_address_command): Update.
6278 * objfiles.h (struct objfile) <arch>: New method, from
6279 get_objfile_arch.
6280 (get_objfile_arch): Don't declare.
6281 * objfiles.c (get_objfile_arch): Remove.
6282 (filter_overlapping_sections): Update.
6283 * minsyms.c (msymbol_is_function): Update.
6284 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6285 (output_nondebug_symbol): Update.
6286 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6287 (mdebug_expand_psymtab): Update.
6288 * machoread.c (macho_add_oso_symfile): Update.
6289 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6290 Update.
6291 * linux-fork.c (checkpoint_command): Update.
6292 * linespec.c (convert_linespec_to_sals): Update.
6293 * jit.c (finalize_symtab): Update.
6294 * infrun.c (insert_exception_resume_from_probe): Update.
6295 * ia64-tdep.c (ia64_find_unwind_table): Update.
6296 * hppa-tdep.c (internalize_unwinds): Update.
6297 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6298 Update.
6299 * gcore.c (call_target_sbrk): Update.
6300 * elfread.c (record_minimal_symbol, elf_symtab_read)
6301 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6302 (elf_gnu_ifunc_resolve_by_got): Update.
6303 * dwarf2/read.c (create_addrmap_from_index)
6304 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6305 (read_debug_names_from_section)
6306 (process_psymtab_comp_unit_reader, add_partial_symbol)
6307 (add_partial_subprogram, process_full_comp_unit)
6308 (read_file_scope, read_func_scope, read_lexical_block_scope)
6309 (read_call_site_scope, dwarf2_ranges_read)
6310 (dwarf2_record_block_ranges, dwarf2_add_field)
6311 (mark_common_block_symbol_computed, read_tag_pointer_type)
6312 (read_tag_string_type, dwarf2_init_float_type)
6313 (dwarf2_init_complex_target_type, read_base_type)
6314 (partial_die_info::read, partial_die_info::read)
6315 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6316 (dwarf2_fetch_die_loc_sect_off): Update.
6317 * dwarf2/loc.c (dwarf2_find_location_expression)
6318 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6319 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6320 (dwarf2_loc_desc_get_symbol_read_needs)
6321 (locexpr_describe_location_piece, locexpr_describe_location_1)
6322 (loclist_describe_location): Update.
6323 * dwarf2/index-write.c (write_debug_names): Update.
6324 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6325 * dtrace-probe.c (dtrace_process_dof): Update.
6326 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6327 (process_one_symbol): Update.
6328 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6329 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6330 (coff_read_enum_type): Update.
6331 * cli/cli-cmds.c (edit_command, list_command): Update.
6332 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6333 * breakpoint.c (create_overlay_event_breakpoint)
6334 (create_longjmp_master_breakpoint)
6335 (create_std_terminate_master_breakpoint)
6336 (create_exception_master_breakpoint, get_sal_arch): Update.
6337 * block.c (block_gdbarch): Update.
6338 * annotate.c (annotate_source_line): Update.
6339
0743fc83
TT
63402020-04-17 Tom Tromey <tromey@adacore.com>
6341
6342 * auto-load.c (show_auto_load_cmd): Remove.
6343 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6344 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6345 (maintenance_print_arc_command): Remove.
6346 * tui/tui-win.c (tui_command): Remove.
6347 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6348 * tui/tui-layout.c (tui_layout_command): Remove.
6349 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6350 * python/python.c (user_set_python, user_show_python): Remove.
6351 (_initialize_python): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6354 (install_gdb_commands): Use add_basic_prefix_cmd,
6355 add_show_prefix_cmd.
6356 (info_guile_command): Remove.
6357 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6358 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6359 add_show_prefix_cmd.
6360 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6361 Remove do_set and do_show parameters.
6362 * cli/cli-style.c (set_style, show_style): Remove.
6363 (_initialize_cli_style): Use add_basic_prefix_cmd,
6364 add_show_prefix_cmd.
6365 (cli_style_option::add_setshow_commands): Remove do_set and
6366 do_show parameters.
6367 (cli_style_option::add_setshow_commands): Use
6368 add_basic_prefix_cmd, add_show_prefix_cmd.
6369 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6370 (set_style_name): Remove.
6371 * cli/cli-dump.c (dump_command, append_command): Remove.
6372 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6373 (tekhex_dump_command, binary_dump_command)
6374 (binary_append_command): Remove.
6375 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6376 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6377 (init_w32_command_list): Remove; move into ...
6378 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6379 * valprint.c (set_print, show_print, set_print_raw)
6380 (show_print_raw): Remove.
6381 (_initialize_valprint): Use add_basic_prefix_cmd,
6382 add_show_prefix_cmd.
6383 * typeprint.c (set_print_type, show_print_type): Remove.
6384 (_initialize_typeprint): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 * record.c (set_record_command, show_record_command): Remove.
6387 (_initialize_record): Use add_basic_prefix_cmd,
6388 add_show_prefix_cmd.
6389 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6390 add_show_prefix_cmd.
6391 (info_command, show_command, set_debug, show_debug): Remove.
6392 * top.h (set_history, show_history): Don't declare.
6393 * top.c (set_history, show_history): Remove.
6394 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6395 (unset_tdesc_cmd): Remove.
6396 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6397 add_show_prefix_cmd.
6398 * symtab.c (info_module_command): Remove.
6399 (_initialize_symtab): Use add_basic_prefix_cmd.
6400 * symfile.c (overlay_command): Remove.
6401 (_initialize_symfile): Use add_basic_prefix_cmd.
6402 * sparc64-tdep.c (info_adi_command): Remove.
6403 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6404 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6405 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6406 add_show_prefix_cmd.
6407 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6408 (_initialize_serial): Use add_basic_prefix_cmd,
6409 add_show_prefix_cmd.
6410 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6411 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6412 add_show_prefix_cmd.
6413 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6414 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6415 add_show_prefix_cmd.
6416 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6417 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6418 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6419 add_show_prefix_cmd.
6420 * remote.c (remote_command, set_remote_cmd): Remove.
6421 (_initialize_remote): Use add_basic_prefix_cmd.
6422 * record-full.c (set_record_full_command)
6423 (show_record_full_command): Remove.
6424 (_initialize_record_full): Use add_basic_prefix_cmd,
6425 add_show_prefix_cmd.
6426 * record-btrace.c (cmd_set_record_btrace)
6427 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6428 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6429 (cmd_show_record_btrace_pt): Remove.
6430 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6431 add_show_prefix_cmd.
6432 * ravenscar-thread.c (set_ravenscar_command)
6433 (show_ravenscar_command): Remove.
6434 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * mips-tdep.c (show_mips_command, set_mips_command)
6437 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 * maint.c (maintenance_command, maintenance_info_command)
6440 (maintenance_check_command, maintenance_print_command)
6441 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6442 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 (show_per_command_cmd): Remove.
6445 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6446 Remove.
6447 (maintenance_show_test_settings_cmd): Remove.
6448 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6449 add_show_prefix_cmd.
6450 * maint-test-options.c (maintenance_test_options_command):
6451 Remove.
6452 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6453 * macrocmd.c (macro_command): Remove
6454 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6455 * language.c (set_check, show_check): Remove.
6456 (_initialize_language): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * infcmd.c (unset_command): Remove.
6459 (_initialize_infcmd): Use add_basic_prefix_cmd.
6460 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6461 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 * go32-nat.c (go32_info_dos_command): Remove.
6464 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6465 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6466 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6467 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6468 (_initialize_frame): Use add_basic_prefix_cmd,
6469 add_show_prefix_cmd.
6470 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6471 (_initialize_dcache): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * cp-support.c (maint_cplus_command): Remove.
6474 (_initialize_cp_support): Use add_basic_prefix_cmd.
6475 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6476 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6477 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6478 add_basic_prefix_cmd, add_show_prefix_cmd.
6479 * breakpoint.c (save_command): Remove.
6480 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6481 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6482 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6483 add_show_prefix_cmd.
6484 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6485 (set_ada_command, show_ada_command): Remove.
6486 (_initialize_ada_language): Use add_basic_prefix_cmd,
6487 add_show_prefix_cmd.
6488 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6489
3557f442
KR
64902020-04-16 Kamil Rytarowski <n54@gmx.com>
6491
6492 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6493 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6494
16197208
SM
64952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6498 warning messages.
6499
00ac85d3
SM
65002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6503 import table is not at beginning of .idata section.
6504
381ce63f
PA
65052020-04-16 Pedro Alves <palves@redhat.com>
6506
6507 * inferior.c (delete_inferior): Use delete operator directly
6508 instead of delete_program_space.
6509 * progspace.c (add_program_space): New, factored out from
6510 program_space::program_space.
6511 (remove_program_space): New, factored out from
6512 delete_program_space.
6513 (program_space::program_space): Remove intro comment. Rewrite.
6514 (program_space::~program_space): Remove intro comment. Call
6515 remove_program_space.
6516 (delete_program_space): Delete.
6517 * progspace.h (program_space::program_space): Make explicit. Move
6518 intro comment here, adjusted.
6519 (program_space::~program_space): Move intro comment here,
6520 adjusted.
6521 (delete_program_space): Remove.
6522
a010605f
TT
65232020-04-16 Tom Tromey <tromey@adacore.com>
6524
6525 * windows-nat.c (windows_nat::handle_access_violation): New
6526 function.
6527 * nat/windows-nat.h (handle_access_violation): Declare.
6528 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6529 windows-nat.c. Call handle_access_violation.
6530
efba5c23
TV
65312020-04-16 Tom de Vries <tdevries@suse.de>
6532
6533 PR symtab/25791
6534 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6535 CUs without psymtab.
6536
97ed802d
KB
65372020-04-16 Kevin Buettner <kevinb@redhat.com>
6538
6539 * python/python.c (do_start_initialization): Don't call
6540 PyEval_InitThreads for Python 3.9 and beyond.
6541
c7d64809
KR
65422020-04-15 Kamil Rytarowski <n54@gmx.com>
6543
6544 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6545 thread functions.
6546 (obsd_nat_target::wait): Likewise.
6547
ce127a96
TT
65482020-04-15 Tom Tromey <tromey@adacore.com>
6549
6550 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6551 (DEBUG_EXCEPT): Use debug_printf.
6552
99f1bc6a
AB
65532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6554
6555 * completer.c (class completion_tracker::completion_hash_entry)
6556 <hash_name>: New member function.
6557 (completion_tracker::discard_completions): New callback to hash a
6558 completion_hash_entry, pass this to htab_create_alloc.
6559
a0e9b532
JT
65602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6561
6562 * windows-nat.c (windows_make_so): Warn rather than stopping with
6563 an error if realpath() fails.
6564
06ca5dd4
KR
65652020-04-14 Kamil Rytarowski <n54@gmx.com>
6566
6567 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6568 (nbsd_nat_target::info_proc): Add do_status.
6569
194d088f
TV
65702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6571 Tom de Vries <tdevries@suse.de>
6572
6573 PR symtab/25718
6574 * psympriv.h (struct partial_symtab::read_symtab)
6575 (struct partial_symtab::expand_psymtab)
6576 (struct partial_symtab::read_dependencies): Update comments.
6577 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6578 read_symtab for includer.
6579 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6580 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6581 (struct dwarf2_include_psymtab::m_readin): Remove.
6582 (struct dwarf2_include_psymtab::includer): New member function.
6583 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6584
c1a66c06
TV
65852020-04-14 Tom de Vries <tdevries@suse.de>
6586
6587 PR symtab/25720
6588 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6589 with NULL symbol_matcher and lookup_name.
6590 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6591 and lookup_name.
6592 * dwarf2/read.c (dw2_expand_symtabs_matching)
6593 (dw2_debug_names_expand_symtabs_matching): Same.
6594 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6595 Make lookup_name a pointer. Update comment.
6596 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6597 lookup_name being a pointer.
6598 * symfile.c (expand_symtabs_matching): Same.
6599 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6600 * linespec.c (iterate_over_all_matching_symtabs): Same.
6601
400b5eca
TT
66022020-04-13 Tom Tromey <tom@tromey.com>
6603
6604 * run-on-main-thread.c: Update include.
6605 * unittests/main-thread-selftests.c: Update include.
6606 * tui/tui-win.c: Update include.
6607 * tui/tui-io.c: Update include.
6608 * tui/tui-interp.c: Update include.
6609 * tui/tui-hooks.c: Update include.
6610 * top.h: Update include.
6611 * top.c: Update include.
6612 * ser-base.c: Update include.
6613 * remote.c: Update include.
6614 * remote-notif.c: Update include.
6615 * remote-fileio.c: Update include.
6616 * record-full.c: Update include.
6617 * record-btrace.c: Update include.
6618 * python/python.c: Update include.
6619 * posix-hdep.c: Update include.
6620 * mingw-hdep.c: Update include.
6621 * mi/mi-main.c: Update include.
6622 * mi/mi-interp.c: Update include.
6623 * main.c: Update include.
6624 * linux-nat.c: Update include.
6625 * interps.c: Update include.
6626 * infrun.c: Update include.
6627 * inf-loop.c: Update include.
6628 * event-top.c: Update include.
6629 * event-loop.c: Move to ../gdbsupport/.
6630 * event-loop.h: Move to ../gdbsupport/.
6631 * async-event.h: Update include.
6632 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6633
93b54c8e
TT
66342020-04-13 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-win.c: Include async-event.h.
6637 * remote.c: Include async-event.h.
6638 * remote-notif.c: Include async-event.h.
6639 * record-full.c: Include async-event.h.
6640 * record-btrace.c: Include async-event.h.
6641 * infrun.c: Include async-event.h.
6642 * event-top.c: Include async-event.h.
6643 * event-loop.h: Move some declarations to async-event.h.
6644 * event-loop.c: Don't include ser-event.h or top.h. Move some
6645 code to async-event.c.
6646 * async-event.h: New file.
6647 * async-event.c: New file.
6648 * Makefile.in (COMMON_SFILES): Add async-event.c.
6649 (HFILES_NO_SRCDIR): Add async-event.h.
6650
c1cd3163
TT
66512020-04-13 Tom Tromey <tom@tromey.com>
6652
6653 * utils.c (flush_streams): New function.
6654 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6655
29f2bf4f
TT
66562020-04-13 Tom Tromey <tom@tromey.com>
6657
6658 * event-loop.c (handle_file_event): Use warning, not
6659 printf_unfiltered.
6660
98029d02
TT
66612020-04-13 Tom Tromey <tom@tromey.com>
6662
6663 * event-loop.c: Include <chrono>.
6664
06cc9596
TT
66652020-04-13 Tom Tromey <tom@tromey.com>
6666
6667 * gdb_select.h: Move to ../gdbsupport/.
6668 * event-loop.c: Update include path.
6669 * top.c: Update include path.
6670 * ser-base.c: Update include path.
6671 * ui-file.c: Update include path.
6672 * ser-tcp.c: Update include path.
6673 * guile/scm-ports.c: Update include path.
6674 * posix-hdep.c: Update include path.
6675 * ser-unix.c: Update include path.
6676 * gdb_usleep.c: Update include path.
6677 * mingw-hdep.c: Update include path.
6678 * inflow.c: Update include path.
6679 * infrun.c: Update include path.
6680 * event-top.c: Update include path.
6681
8ae8e197
TT
66822020-04-13 Tom Tromey <tom@tromey.com>
6683
6684 * configure: Rebuild.
6685 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6686
58cf28e8
TT
66872020-04-13 Tom Tromey <tom@tromey.com>
6688
6689 * event-loop.h (start_event_loop): Don't declare.
6690 * event-loop.c (start_event_loop): Move...
6691 * main.c (start_event_loop): ...here. Now static.
6692
b7f999ae
SDJ
66932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6694
6695 * MAINTAINERS: Update my email address.
6696
1085dfd4
KR
66972020-04-12 Kamil Rytarowski <n54@gmx.com>
6698
6699 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6700 IP_ALL.
6701
49d1d1f5
KR
67022020-04-12 Kamil Rytarowski <n54@gmx.com>
6703
6704 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6705 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6706
b4848d2a
KR
67072020-04-12 Kamil Rytarowski <n54@gmx.com>
6708
6709 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6710 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6711
51c133d5
KR
67122020-04-12 Kamil Rytarowski <n54@gmx.com>
6713
6714 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6715
54b8cbd0
KR
67162020-04-11 Kamil Rytarowski <n54@gmx.com>
6717
6718 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6719 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6720 (nbsd_nat_target::info_proc): New functions.
6721 * nbsd-nat.c (kinfo_get_vmmap): New function.
6722 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6723 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6724 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6725 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6726 functions.
6727 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6728 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6729 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6730 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6731 (KINFO_VME_FLAG_GROWS_DOWN): New.
6732
cf83625d
AS
67332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6734
6735 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6736 bit shift.
6737
0c4311ab
TT
67382020-04-10 Tom Tromey <tromey@adacore.com>
6739
6740 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6741
3e65b3e9
TT
67422020-04-10 Tom Tromey <tromey@adacore.com>
6743
6744 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6745 separate debug files.
6746
13302e95
HD
67472020-04-10 Hannes Domani <ssbssa@yahoo.de>
6748
6749 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6750 Move to...
6751 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6752 ... here.
6753 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6754 Check for STATUS_WX86_BREAKPOINT.
6755 (windows_nat_target::wait): Same.
6756
bdfc1e8a
TV
67572020-04-10 Tom de Vries <tdevries@suse.de>
6758
6759 PR cli/25808
6760 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6761
f4460aec
SM
67622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6765 (Write After Approval): Remove Tom de Vries.
6766
a25198bb
BE
67672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6768
6769 revert partially:
6770 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6771
aac66a4c
SM
6772 * buildsym.c (record_line): Fix undefined behavior and preserve
6773 lines at eof.
a25198bb 6774
206c98a6
KR
67752020-04-09 Kamil Rytarowski <n54@gmx.com>
6776
6777 * auxv.h (svr4_auxv_parse): New.
6778 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6779 and generic_auxv_parse.
6780 (svr4_auxv_parse): Add.
6781 * obsd-tdep.c: Include "auxv.h".
6782 (obsd_auxv_parse): Remove.
6783 (obsd_init_abi): Remove comment.
6784 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6785 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6786 * nbsd-tdep.c: Include "auxv.h".
6787 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6788
71fbdbaf
TT
67892020-04-08 Tom Tromey <tromey@adacore.com>
6790
6791 * nat/windows-nat.h (last_wait_event): Don't declare.
6792 (wait_for_debug_event): Update comment.
6793 * nat/windows-nat.c (last_wait_event): Now static.
6794
2c1d95e8
TT
67952020-04-08 Tom Tromey <tromey@adacore.com>
6796
6797 * windows-nat.c (wait_for_debug_event): Move to
6798 nat/windows-nat.c.
6799 * nat/windows-nat.h (wait_for_debug_event): Declare.
6800 * nat/windows-nat.c (wait_for_debug_event): Move from
6801 windows-nat.c. No longer static.
6802
d2977bc4
TT
68032020-04-08 Tom Tromey <tromey@adacore.com>
6804
6805 * windows-nat.c (get_windows_debug_event): Use
6806 fetch_pending_stop.
6807 * nat/windows-nat.h (fetch_pending_stop): Declare.
6808 * nat/windows-nat.c (fetch_pending_stop): New function.
6809
e758e19c
TT
68102020-04-08 Tom Tromey <tromey@adacore.com>
6811
6812 * windows-nat.c (windows_continue): Use matching_pending_stop and
6813 continue_last_debug_event.
6814 * nat/windows-nat.h (matching_pending_stop)
6815 (continue_last_debug_event): Declare.
6816 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6817 (matching_pending_stop, continue_last_debug_event): New
6818 functions.
6819
8d30e395
TT
68202020-04-08 Tom Tromey <tromey@adacore.com>
6821
6822 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6823 (handle_exception_result): Move to nat/windows-nat.h.
6824 (DEBUG_EXCEPTION_SIMPLE): Remove.
6825 (windows_nat::handle_ms_vc_exception): New function.
6826 (handle_exception): Move to nat/windows-nat.c.
6827 (get_windows_debug_event): Update.
6828 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6829 nat/windows-nat.c.
6830 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6831 (handle_exception_result): Move from windows-nat.c.
6832 (handle_exception): Declare.
6833 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6834 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6835 windows-nat.c.
6836
29de418d
TT
68372020-04-08 Tom Tromey <tromey@adacore.com>
6838
6839 * windows-nat.c (exception_count, event_count): Remove.
6840 (handle_exception, get_windows_debug_event)
6841 (do_initial_windows_stuff): Update.
6842
a816ba18
TT
68432020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (windows_nat::handle_load_dll)
6846 (windows_nat::handle_unload_dll): Rename. No longer static.
6847 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6848 Declare.
6849
a00caa12
TT
68502020-04-08 Tom Tromey <tromey@adacore.com>
6851
6852 * complaints.h (stop_whining): Declare at top-level.
6853 (complaint): Don't declare stop_whining.
6854
d41b524f
TT
68552020-04-08 Tom Tromey <tromey@adacore.com>
6856
6857 * windows-nat.c (windows_nat::handle_output_debug_string):
6858 Rename. No longer static.
6859 * nat/windows-nat.h (handle_output_debug_string): Declare.
6860
3c76026d
TT
68612020-04-08 Tom Tromey <tromey@adacore.com>
6862
6863 * windows-nat.c (current_process_handle, current_process_id)
6864 (main_thread_id, last_sig, current_event, last_wait_event)
6865 (current_windows_thread, desired_stop_thread_id, pending_stops)
6866 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6867 (display_selectors, fake_create_process)
6868 (get_windows_debug_event): Update.
6869 * nat/windows-nat.h (current_process_handle, current_process_id)
6870 (main_thread_id, last_sig, current_event, last_wait_event)
6871 (current_windows_thread, desired_stop_thread_id, pending_stops)
6872 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6873 * nat/windows-nat.c (current_process_handle, current_process_id)
6874 (main_thread_id, last_sig, current_event, last_wait_event)
6875 (current_windows_thread, desired_stop_thread_id, pending_stops)
6876 (siginfo_er): New globals. Move from windows-nat.c.
6877
9d8679cc
TT
68782020-04-08 Tom Tromey <tromey@adacore.com>
6879
6880 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6881 (handle_load_dll): Update.
6882 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6883
28688adf
TT
68842020-04-08 Tom Tromey <tromey@adacore.com>
6885
6886 * windows-nat.c (enum thread_disposition_type): Move to
6887 nat/windows-nat.h.
6888 (windows_nat::thread_rec): Rename from thread_rec. No longer
6889 static.
6890 (windows_add_thread, windows_nat_target::fetch_registers)
6891 (windows_nat_target::store_registers, handle_exception)
6892 (windows_nat_target::resume, get_windows_debug_event)
6893 (windows_nat_target::get_tib_address)
6894 (windows_nat_target::thread_name)
6895 (windows_nat_target::thread_alive): Update.
6896 * nat/windows-nat.h (enum thread_disposition_type): Move from
6897 windows-nat.c.
6898 (thread_rec): Declare.
6899
4834dad0
TT
69002020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * windows-nat.c: Add "using namespace".
6903 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6904 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6905
65bafd5b
TT
69062020-04-08 Tom Tromey <tromey@adacore.com>
6907
6908 * nat/windows-nat.h (struct windows_thread_info): Declare
6909 destructor.
6910 * nat/windows-nat.c (~windows_thread_info): New.
6911
0a4afda3
TT
69122020-04-08 Tom Tromey <tromey@adacore.com>
6913
6914 PR gdb/22992
6915 * windows-nat.c (current_event): Update comment.
6916 (last_wait_event, desired_stop_thread_id): New globals.
6917 (struct pending_stop): New.
6918 (pending_stops): New global.
6919 (windows_nat_target) <stopped_by_sw_breakpoint>
6920 <supports_stopped_by_sw_breakpoint>: New methods.
6921 (windows_fetch_one_register): Add assertions. Adjust PC.
6922 (windows_continue): Handle pending stops. Suspend other threads
6923 when stepping. Use last_wait_event
6924 (wait_for_debug_event): New function.
6925 (get_windows_debug_event): Use wait_for_debug_event. Handle
6926 pending stops. Queue spurious stops.
6927 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6928 (windows_nat_target::kill): Use wait_for_debug_event.
6929 * nat/windows-nat.h (struct windows_thread_info)
6930 <stopped_at_software_breakpoint>: New field.
6931 * nat/windows-nat.c (windows_thread_info::resume): Clear
6932 stopped_at_software_breakpoint.
6933
8e61ebec
TT
69342020-04-08 Tom Tromey <tromey@adacore.com>
6935
6936 * windows-nat.c (enum thread_disposition_type): New.
6937 (thread_rec): Replace "get_context" parameter with "disposition";
6938 change type.
6939 (windows_add_thread, windows_nat_target::fetch_registers)
6940 (windows_nat_target::store_registers, handle_exception)
6941 (windows_nat_target::resume, get_windows_debug_event)
6942 (windows_nat_target::get_tib_address)
6943 (windows_nat_target::thread_name)
6944 (windows_nat_target::thread_alive): Update.
6945
98a03287
TT
69462020-04-08 Tom Tromey <tromey@adacore.com>
6947
6948 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6949 (windows_continue): Use windows_continue::resume.
6950 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6951 resume>: Declare new methods.
6952 * nat/windows-nat.c: New file.
6953 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6954
7c7411bc
TT
69552020-04-08 Tom Tromey <tromey@adacore.com>
6956
6957 * windows-nat.c (windows_add_thread, windows_delete_thread)
6958 (windows_nat_target::fetch_registers)
6959 (windows_nat_target::store_registers, fake_create_process)
6960 (windows_nat_target::resume, windows_nat_target::resume)
6961 (get_windows_debug_event, windows_nat_target::wait)
6962 (windows_nat_target::pid_to_str)
6963 (windows_nat_target::get_tib_address)
6964 (windows_nat_target::get_ada_task_ptid)
6965 (windows_nat_target::thread_name)
6966 (windows_nat_target::thread_alive): Use lwp, not tid.
6967
2950fdf7
TT
69682020-04-08 Tom Tromey <tromey@adacore.com>
6969
6970 * windows-nat.c (handle_exception)
6971 (windows_nat_target::thread_name): Update.
6972 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6973 <name>: Now unique_xmalloc_ptr.
6974
62fe396b
TT
69752020-04-08 Tom Tromey <tromey@adacore.com>
6976
6977 * windows-nat.c (thread_rec)
6978 (windows_nat_target::fetch_registers): Update.
6979 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6980 Update comment.
6981 <debug_registers_changed, reload_context>: Now bool.
6982
e9534bd2
TT
69832020-04-08 Tom Tromey <tromey@adacore.com>
6984
6985 * windows-nat.c (windows_add_thread): Use new.
6986 (windows_init_thread_list, windows_delete_thread): Use delete.
6987 (get_windows_debug_event): Update.
6988 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6989 destructor, and initializers.
6990
ae1f8880
TT
69912020-04-08 Tom Tromey <tromey@adacore.com>
6992
6993 * windows-nat.c (struct windows_thread_info): Remove.
6994 * nat/windows-nat.h: New file.
6995
55a1e039
TT
69962020-04-08 Tom Tromey <tromey@adacore.com>
6997
6998 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6999 (thread_rec, windows_add_thread, windows_delete_thread)
7000 (windows_continue): Update.
7001
93366324
TT
70022020-04-08 Tom Tromey <tromey@adacore.com>
7003
7004 * windows-nat.c (struct windows_thread_info): Remove typedef.
7005 (thread_head): Remove.
7006 (thread_list): New global.
7007 (thread_rec, windows_add_thread, windows_init_thread_list)
7008 (windows_delete_thread, windows_continue): Update.
7009
0f2265e2
SM
70102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * windows-tdep.h (windows_init_abi): Add comment.
7013 (cygwin_init_abi): New declaration.
7014 * windows-tdep.c: Split signal enumeration in two, one for
7015 Windows and one for Cygwin.
7016 (windows_gdb_signal_to_target): Only deal with signal of the
7017 Windows OS ABI.
7018 (cygwin_gdb_signal_to_target): New function.
7019 (windows_init_abi): Rename to windows_init_abi_common, don't set
7020 gdb_signal_to_target gdbarch method. Add new new function with
7021 this name.
7022 (cygwin_init_abi): New function.
7023 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7024 comment. Don't call windows_init_abi.
7025 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7026 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7027 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7028 i386_windows_init_abi_common, don't call windows_init_abi. Add
7029 a new function of this name.
7030 (i386_cygwin_init_abi): New function.
7031 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7032 OS ABI Cygwin.
7033
3810f182
SM
70342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7035
7036 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7037 parameter.c.
7038 (dwarf2_read_gdb_index): Update.
7039
063f8e80
KR
70402020-04-07 Kamil Rytarowski <n54@gmx.com>
7041
7042 * nbsd-tdep.c: Include "objfiles.h".
7043 (nbsd_skip_solib_resolver): New.
7044 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7045
85a9510c 70462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7047
7048 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7049 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7050 with DW_LLE_base_addressx are being emitted in DWARFv5.
7051 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7052 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7053 unsigned integer.
7054
9fc3eaae 70552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7056
7057 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7058 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7059 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7060 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7061 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7062 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7063 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7064
7065
41144253 70662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7067
7068 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7069 (read_loclist_index): New function definition.
7070 (lookup_loclist_base): New function definition.
7071 (read_loclist_header): New function definition.
7072 (dwarf2_cu): Add loclist_base and loclist_header field.
7073 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7074 (read_full_die_1): Read the value of DW_AT_loclists_base.
7075 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7076 (read_attribute_value): Handle DW_FORM_loclistx.
7077 (skip_one_die): Handle DW_FORM_loclistx.
7078 (loclist_header): New structure declaration.
7079 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7080
9f4e76a4
SM
70812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7082
7083 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7084 constructor. Remove `addr` parameter from other constructor and
7085 add `per_cu` parameter.
7086 * dwarf2/read.c (create_partial_symtab): Update.
7087
25c11aca
TV
70882020-04-07 Tom de Vries <tdevries@suse.de>
7089
7090 PR symtab/25796
7091 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7092 (partial_die_info::fixup): Inherit has_const_value.
7093
5707e24b
TV
70942020-04-07 Tom de Vries <tdevries@suse.de>
7095
7096 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7097 symbols without address.
7098
05f00e22
KR
70992020-04-06 Kamil Rytarowski <n54@gmx.com>
7100
7101 * nbsd-nat.h (struct thread_info): Add forward declaration.
7102 (nbsd_nat_target::thread_alive): Add.
7103 (nbsd_nat_target::thread_name): Likewise.
7104 (nbsd_nat_target::update_thread_list): Likewise.
7105 (update_thread_list::post_attach): Likewise.
7106 (post_attach::pid_to_str): Likewise.
7107 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7108 (nbsd_thread_lister): Add.
7109 (nbsd_nat_target::thread_alive): Likewise.
7110 (nbsd_nat_target::thread_name): Likewise.
7111 (nbsd_add_threads): Likewise.
7112 (update_thread_list::post_attach): Likewise.
7113 (nbsd_nat_target::update_thread_list): Likewise.
7114 (post_attach::pid_to_str): Likewise.
7115
6ee448cc
TT
71162020-04-06 Tom Tromey <tromey@adacore.com>
7117
7118 * ada-valprint.c (print_variant_part): Extract the variant field.
7119 (print_field_values): Use the field as the outer value when
7120 recursing.
7121
dea34e8c
TT
71222020-04-06 Tom Tromey <tromey@adacore.com>
7123
7124 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7125 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7126 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7127 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7128 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7129
93689ce9
TT
71302020-04-06 Tom Tromey <tromey@adacore.com>
7131
7132 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7133 TYPE_CODE_ERROR.
7134
79743962
KR
71352020-04-06 Kamil Rytarowski <n54@gmx.com>
7136
7137 * nbsd-tdep.c: Include "gdbarch.h".
7138 Define enum with NetBSD signal numbers.
7139 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7140 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7141 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7142 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7143 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7144 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7145 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7146 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7147 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7148 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7149 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7150 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7151
9e7c9a03
HD
71522020-04-03 Hannes Domani <ssbssa@yahoo.de>
7153
7154 PR gdb/25325
7155 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7156
d9e49b61
TT
71572020-04-03 Tom Tromey <tromey@adacore.com>
7158
7159 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7160 Read constant block.
7161
e0fc5c3f
SM
71622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7165 (gdb_bfd_get_full_section_contents): New declaration.
7166 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7167 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7168 gdb_bfd_get_full_section_contents.
7169
e2ff18a0
SM
71702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * exec.c (build_section_table): Replace internal_error with
7173 gdb_assert.
7174 (section_table_xfer_memory_partial): Likewise.
7175 * mdebugread.c (parse_partial_symbols): Likewise.
7176 * psymtab.c (lookup_partial_symbol): Likewise.
7177 * utils.c (wrap_here): Likewise.
7178
0830d301
TT
71792020-04-02 Tom Tromey <tromey@adacore.com>
7180
7181 * f-lang.c (build_fortran_types): Use arch_type to initialize
7182 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7183
e7da7f8f
TT
71842020-04-02 Tom Tromey <tromey@adacore.com>
7185
7186 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7187 of attributes.
7188
c90d28ac
AB
71892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7190 Bernd Edlinger <bernd.edlinger@hotmail.de>
7191 Tom Tromey <tromey@adacore.com>
7192
7193 * buildsym.c (buildsym_compunit::record_line): Remove
7194 deduplication code.
7195
1aa98955
TV
71962020-04-02 Tom de Vries <tdevries@suse.de>
7197
7198 PR ada/24671
7199 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7200
d3214198
TV
72012020-04-02 Tom de Vries <tdevries@suse.de>
7202
7203 * dwarf2/read.c (dwarf2_gdb_index_functions,
7204 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7205 NULL.
7206 * psymtab.c (psym_lookup_global_symbol_language): New function.
7207 (psym_functions): Init psym_lookup_global_symbol_language with
7208 psym_lookup_global_symbol_language.
7209 * symfile-debug.c (debug_sym_quick_functions): Init
7210 lookup_global_symbol_language with NULL.
7211 * symfile.c (set_initial_language): Remove fixme comment.
7212 * symfile.h (struct quick_symbol_functions): Add
7213 lookup_global_symbol_language.
7214 * symtab.c (find_quick_global_symbol_language): New function.
7215 (find_main_name): Use find_quick_global_symbol_language.
7216
2836752f
SM
72172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7218
7219 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7220
64dc2d4b
BE
72212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7222
7223 * buildsym.c (record_line): Fix undefined behavior and preserve
7224 lines at eof.
7225
bbe3dc41
BE
72262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7227
7228 * buildsym.c (record_line): Fix the resizing condition.
7229
6b4a335b
TT
72302020-04-01 Tom Tromey <tom@tromey.com>
7231
7232 * value.h (value_literal_complex): Add comment.
7233 * valops.c (value_literal_complex): Refer to value.h.
7234
3638a098
TT
72352020-04-01 Tom Tromey <tom@tromey.com>
7236
7237 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7238 (scalar_type): New rule, from typebase.
7239 (typebase): Use scalar_type. Recognize complex types.
7240 (field_name): Handle FLOAT_KEYWORD.
7241 (ident_tokens): Add _Complex and __complex__.
7242
c34e8714
TT
72432020-04-01 Tom Tromey <tom@tromey.com>
7244
7245 PR exp/25299:
7246 * valarith.c (promotion_type, complex_binop): New functions.
7247 (scalar_binop): Handle complex numbers. Use promotion_type.
7248 (value_pos, value_neg, value_complement): Handle complex numbers.
7249
fa649bb7
TT
72502020-04-01 Tom Tromey <tom@tromey.com>
7251
7252 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7253 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7254 (parse_number): Handle complex numbers.
7255
981c08ce
TT
72562020-04-01 Tom Tromey <tom@tromey.com>
7257
7258 * c-valprint.c (c_decorations): Change complex suffix to "i".
7259
4c99290d
TT
72602020-04-01 Tom Tromey <tom@tromey.com>
7261
7262 * valprint.c (generic_value_print_complex): Use accessors.
7263 * value.h (value_real_part, value_imaginary_part): Declare.
7264 * valops.c (value_real_part, value_imaginary_part): New
7265 functions.
7266 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7267
5b930b45
TT
72682020-04-01 Tom Tromey <tom@tromey.com>
7269
7270 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7271 (read_range_type): Update.
7272 * mdebugread.c (basic_type): Update.
7273 * go-lang.c (build_go_types): Use init_complex_type.
7274 * gdbtypes.h (struct main_type) <complex_type>: New member.
7275 (init_complex_type): Update.
7276 (arch_complex_type): Don't declare.
7277 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7278 Make name if none given. Use alloc_type_copy. Look for cached
7279 complex type.
7280 (arch_complex_type): Remove.
7281 (gdbtypes_post_init): Use init_complex_type.
7282 * f-lang.c (build_fortran_types): Use init_complex_type.
7283 * dwarf2/read.c (read_base_type): Update.
7284 * d-lang.c (build_d_types): Use init_complex_type.
7285 * ctfread.c (read_base_type): Update.
7286
53cccef1
TBA
72872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7288
7289 * infrun.c (stop_all_threads): Update assertion, plus when
7290 stopping threads, take into account that we might be trying
7291 to stop an all-stop target.
7292 (stop_waiting): Call 'stop_all_threads' if there exists a
7293 non-stop target.
7294
a0714d30
TBA
72952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7296
7297 * target.h (exists_non_stop_target): New function declaration.
7298 * target.c (exists_non_stop_target): New function.
7299
60e22c1e
HD
73002020-04-01 Hannes Domani <ssbssa@yahoo.de>
7301
7302 PR gdb/24789
7303 * eval.c (is_integral_or_integral_reference): New function.
7304 (evaluate_subexp_standard): Allow integer references in
7305 pointer arithmetic.
7306
e139a727
TBA
73072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7308
7309 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7310 check for no ptid in the stop reply when the target is non-stop.
7311
e0802d59
TT
73122020-04-01 Tom Tromey <tromey@adacore.com>
7313
7314 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7315 "name" parameter to rvalue reference. Initialize m_name_holder.
7316 <lookup_name_info>: New overloads.
7317 <name>: Return gdb::string_view.
7318 <c_str>: New method.
7319 <make_ignore_params>: Update.
7320 <search_name_hash>: Update.
7321 <language_lookup_name>: Return const char *.
7322 <m_name>: Change type.
7323 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7324 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7325 (lookup_name_info::match_any): Update.
7326 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7327 Update.
7328 * minsyms.c (linkage_name_str): Update.
7329 * language.c (default_symbol_name_matcher): Update.
7330 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7331 Update.
7332 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7333 (ada_lookup_name_info::ada_lookup_name_info): Update.
7334 (literal_symbol_name_matcher): Update.
7335
8c072cb6
TT
73362020-04-01 Tom Tromey <tromey@adacore.com>
7337
7338 * psymtab.c (psymtab_search_name): Remove function.
7339 (psym_lookup_symbol): Create search name and lookup name here.
7340 (lookup_partial_symbol): Remove "name" parameter; add
7341 lookup_name.
7342 (psym_expand_symtabs_for_function): Update.
7343
6f29a534
TT
73442020-03-31 Joel Jones <joelkevinjones@gmail.com>
7345
7346 PR tui/25597:
7347 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7348
af62665e
TT
73492020-03-31 Tom Tromey <tromey@adacore.com>
7350
7351 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7352 memcpy.
7353
d1a89da5
NC
73542020-03-30 Nelson Chu <nelson.chu@sifive.com>
7355
7356 * features/riscv/32bit-csr.xml: Regenerated.
7357 * features/riscv/64bit-csr.xml: Regenerated.
7358
d8af9068
TT
73592020-03-30 Tom Tromey <tromey@adacore.com>
7360
7361 * ada-valprint.c (print_variant_part): Update.
7362 * ada-lang.h (ada_which_variant_applies): Update.
7363 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7364 outer_valaddr parameters; replace with "outer" value parameter.
7365 (to_fixed_variant_branch_type): Update.
7366
227c0bf4
PFC
73672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7368
7369 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7370 <list>. Remove inclusion of observable.h.
7371 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7372 (struct arch_lwp_info): New struct.
7373 (class ppc_linux_dreg_interface): New class.
7374 (struct ppc_linux_process_info): New struct.
7375 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7376 <low_new_clone, low_forget_process, low_prepare_to_resume>
7377 <copy_thread_dreg_state, mark_thread_stale>
7378 <mark_debug_registers_changed, register_hw_breakpoint>
7379 <clear_hw_breakpoint, register_wp, clear_wp>
7380 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7381 <num_memory_accesses, get_trigger_type>
7382 <create_watchpoint_request, hwdebug_point_cmp>
7383 <init_arch_lwp_info, get_arch_lwp_info>
7384 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7385 methods.
7386 <struct ptid_hash>: New inner struct.
7387 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7388 members.
7389 (saved_dabr_value, hwdebug_info, max_slots_number)
7390 (struct hw_break_tuple, struct thread_points, ppc_threads)
7391 (have_ptrace_hwdebug_interface)
7392 (hwdebug_find_thread_points_by_tid)
7393 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7394 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7395 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7396 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7397 use m_dreg_interface.
7398 (hwdebug_point_cmp): Change to...
7399 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7400 reference arguments instead of pointers.
7401 (ppc_linux_nat_target::ranged_break_num_registers): Use
7402 m_dreg_interface.
7403 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7404 m_dreg_interface. Call register_hw_breakpoint.
7405 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7406 m_dreg_interface. Call clear_hw_breakpoint.
7407 (get_trigger_type): Change to...
7408 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7409 comment.
7410 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7411 use m_dreg_interface. Call register_hw_breakpoint.
7412 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7413 use m_dreg_interface. Call clear_hw_breakpoint.
7414 (can_use_watchpoint_cond_accel): Change to...
7415 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7416 method. Update comment, use m_dreg_interface and
7417 m_process_info.
7418 (calculate_dvc): Change to...
7419 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7420 m_dreg_interface.
7421 (num_memory_accesses): Change to...
7422 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7423 (check_condition): Change to...
7424 (ppc_linux_nat_target::check_condition): ...this method.
7425 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7426 comment, use m_dreg_interface.
7427 (create_watchpoint_request): Change to...
7428 (ppc_linux_nat_target::create_watchpoint_request): ...this
7429 method. Use m_dreg_interface.
7430 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7431 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7432 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7433 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7434 (ppc_linux_nat_target::low_forget_process)
7435 (ppc_linux_nat_target::low_new_fork)
7436 (ppc_linux_nat_target::low_new_clone)
7437 (ppc_linux_nat_target::low_delete_thread)
7438 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7439 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7440 only call mark_thread_stale.
7441 (ppc_linux_thread_exit): Remove.
7442 (ppc_linux_nat_target::stopped_data_address): Change to...
7443 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7444 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7445 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7446 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7447 comment. Call low_stopped_data_address.
7448 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7449 m_dreg_interface.
7450 (ppc_linux_nat_target::masked_watch_num_registers): Use
7451 m_dreg_interface.
7452 (ppc_linux_nat_target::copy_thread_dreg_state)
7453 (ppc_linux_nat_target::mark_thread_stale)
7454 (ppc_linux_nat_target::mark_debug_registers_changed)
7455 (ppc_linux_nat_target::register_hw_breakpoint)
7456 (ppc_linux_nat_target::clear_hw_breakpoint)
7457 (ppc_linux_nat_target::register_wp)
7458 (ppc_linux_nat_target::clear_wp)
7459 (ppc_linux_nat_target::init_arch_lwp_info)
7460 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7461 (_initialize_ppc_linux_nat): Remove observer callback.
7462
4db10d8f
PFC
74632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7464
7465 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7466 (ppc_linux_nat_target::auxv_parse)
7467 (ppc_linux_nat_target::read_description)
7468 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7469 Move up.
7470
1310c1b0
PFC
74712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7472
7473 * linux-nat.h (low_new_clone): New method.
7474 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7475
69b037c3
SM
74762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7477
7478 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7479 (dbx_expand_psymtab): ... this.
7480 (start_psymtab): Update.
7481 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7482 (mdebug_expand_psymtab): ... this.
7483 (parse_partial_symbols): Update.
7484 (new_psymtab): Update.
7485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7486 (xcoff_expand_psymtab): ... this.
7487 (xcoff_start_psymtab): Update.
7488
48993951
SM
74892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7490
7491 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7492 <expand_dependencies>: ... this.
7493 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7494 (partial_symtab::expand_dependencies): ... this.
7495 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7496 Update.
7497 (dwarf2_psymtab::expand_psymtab): Update.
7498 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7499 * mdebugread.c (psymtab_to_symtab_1): Update.
7500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7501
3ad83046
SM
75022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7503
7504 * psympriv.h (discard_psymtab): Remove.
7505 * dbxread.c (dbx_end_psymtab): Update.
7506 * xcoffread.c (xcoff_end_psymtab): Update.
7507
4d1b9ab6
TT
75082020-03-28 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7511 comment.
7512
f1749218
TT
75132020-03-28 Tom Tromey <tom@tromey.com>
7514
7515 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7516
ebea7626
HD
75172020-03-27 Hannes Domani <ssbssa@yahoo.de>
7518
7519 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7520
a879b4d5
JB
75212020-03-26 John Baldwin <jhb@FreeBSD.org>
7522
7523 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7524
0826b30a
TT
75252020-03-26 Tom Tromey <tom@tromey.com>
7526
7527 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7528 (mark_common_block_symbol_computed, read_tag_string_type)
7529 (attr_to_dynamic_prop, read_subrange_type): Update.
7530 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7531 to be methods on struct attribute.
7532 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7533 (read_call_site_scope, partial_die_info::read)
7534 (partial_die_info::read, lookup_die_type, follow_die_ref):
7535 Update.
7536 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7537 from dwarf2_get_ref_die_offset.
7538 (attribute::constant_value): New method, from
7539 dwarf2_get_attr_constant_value.
7540 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7541 Declare method.
7542 <constant_value>: New method.
7543
2b2558bf
TT
75442020-03-26 Tom Tromey <tom@tromey.com>
7545
7546 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7547 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7548 (dwarf_type_encoding_name): Move to stringify.c.
7549 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7550 * dwarf2/stringify.c: New file.
7551 * dwarf2/stringify.h: New file.
7552
eeb64781
TT
75532020-03-26 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7556 Rewrite.
7557
a39fdb41
TT
75582020-03-26 Tom Tromey <tom@tromey.com>
7559
7560 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7561 methods.
7562 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7563 (lookup_ranges_base): Likewise.
7564 (read_cutu_die_from_dwo, read_full_die_1): Update.
7565
436c571c
TT
75662020-03-26 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/read.c (read_import_statement, read_file_scope)
7569 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7570 (read_lexical_block_scope, read_call_site_scope)
7571 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7572 (handle_struct_member_die, process_structure_scope)
7573 (update_enumeration_type_from_children)
7574 (process_enumeration_scope, read_array_type, read_common_block)
7575 (read_namespace, read_module, read_subroutine_type): Update.
7576 (sibling_die): Remove.
7577
052c8bb8
TT
75782020-03-26 Tom Tromey <tom@tromey.com>
7579
7580 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7581 (build_type_psymtabs_reader, read_structure_type)
7582 (read_enumeration_type, read_full_die_1): Update.
7583 (dwarf2_attr_no_follow): Move to die.h.
7584 * dwarf2/die.h (struct die_info) <attr>: New method.
7585
2b24b6e4
TT
75862020-03-26 Tom Tromey <tom@tromey.com>
7587
7588 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7589 <base_address>: Now an optional.
7590 (dwarf2_find_base_address, dwarf2_rnglists_process)
7591 (dwarf2_ranges_process, fill_in_loclist_baton)
7592 (dwarf2_symbol_mark_computed): Update.
7593
c2d50fd0
TT
75942020-03-26 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/read.c (struct die_info): Move to die.h.
7597 * dwarf2/die.h: New file.
7598
0df7ad3a
TT
75992020-03-26 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7602 * dwarf2/read.c
7603 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7604 Move to line-header.c.
7605 (read_checked_initial_length_and_offset, read_formatted_entries):
7606 Likewise.
7607 (dwarf_decode_line_header): Split into two.
7608 * dwarf2/line-header.c
7609 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7610 Move from read.c.
7611 (read_checked_initial_length_and_offset, read_formatted_entries):
7612 Likewise.
7613 (dwarf_decode_line_header): New function, split from read.c.
7614
86c0bb4c
TT
76152020-03-26 Tom Tromey <tom@tromey.com>
7616
7617 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7618 Declare method.
7619 * dwarf2/read.c (read_attribute_value): Update.
7620 (dwarf2_per_objfile::read_line_string): Rename from
7621 read_indirect_line_string.
7622 (read_formatted_entries): Update.
7623
2ef46c2f
TT
76242020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7627 variable.
7628
4f9c1eda
TT
76292020-03-26 Tom Tromey <tom@tromey.com>
7630
7631 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7632 const.
7633 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7634 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7635 parameter const.
7636
5a0e026f
TT
76372020-03-26 Tom Tromey <tom@tromey.com>
7638
7639 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7640 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7641 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7642 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7643
8844c11b
TT
76442020-03-26 Tom Tromey <tom@tromey.com>
7645
7646 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7647 file_names_size, file_full_name, file_file_name>: Use const.
7648 <file_name_at, file_names>: Add const overload.
7649 * dwarf2/line-header.c (line_header::file_file_name)
7650 (line_header::file_full_name): Update.
7651
c90ec28a
TT
76522020-03-26 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7655 (macro_start_file, consume_improper_spaces)
7656 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7657 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7658 (dwarf_decode_macros): Move to macro.c.
7659 * dwarf2/macro.c: New file.
7660 * dwarf2/macro.h: New file.
7661 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7662
4f44ae6c
TT
76632020-03-26 Tom Tromey <tom@tromey.com>
7664
7665 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7666 method.
7667 * dwarf2/section.c: New method. From
7668 read_indirect_string_at_offset_from.
7669 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7670 (read_indirect_string_at_offset_from): Move to section.c.
7671 (read_indirect_string_at_offset): Rewrite.
7672 (read_indirect_line_string_at_offset): Remove.
7673 (read_indirect_string, read_indirect_line_string)
7674 (dwarf_decode_macro_bytes): Update.
7675
a0194fa8
TT
76762020-03-26 Tom Tromey <tom@tromey.com>
7677
7678 * dwarf2/section.h (struct dwarf2_section_info)
7679 <overload_complaint>: Declare.
7680 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7681 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7682 Rename from dwarf2_section_buffer_overflow_complaint.
7683 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7684 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7685
3d27bbdb
TT
76862020-03-26 Tom Tromey <tom@tromey.com>
7687
7688 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7689 Declare.
7690 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7691 Move from read.c.
7692 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7693 to section.c.
7694
9eac9650
TT
76952020-03-26 Tom Tromey <tom@tromey.com>
7696
7697 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7698
bf80d710
TT
76992020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7702 "builder".
7703 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7704 parameter.
7705 (dwarf_decode_macros): Update.
7706
0314b390
TT
77072020-03-26 Tom Tromey <tom@tromey.com>
7708
7709 * dwarf2/read.c (read_attribute_value): Update.
7710 (read_indirect_string_from_dwz): Move to dwz.c; change into
7711 method.
7712 (dwarf_decode_macro_bytes): Update.
7713 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7714 * dwarf2/dwz.c: New file.
7715 * Makefile.in (COMMON_SFILES): Add dwz.c.
7716
9fda78b6
TT
77172020-03-26 Tom Tromey <tom@tromey.com>
7718
7719 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7720 * dwarf2/read.c: Add include.
7721 * dwarf2/index-write.c: Add include.
7722 * dwarf2/index-cache.c: Add include.
7723 * dwarf2/dwz.h: New file.
7724
33aa3c10
TT
77252020-03-25 Tom Tromey <tom@tromey.com>
7726
7727 * compile/compile-object-load.c (get_out_value_type): Mention
7728 correct symbol name in error message.
7729
d503b685
HD
77302020-03-25 Hannes Domani <ssbssa@yahoo.de>
7731
7732 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7733
7b1eff95
TV
77342020-03-25 Tom de Vries <tdevries@suse.de>
7735
7736 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7737 * symmisc.c (dump_symtab_1): Print user and includes fields.
7738 (maintenance_info_symtabs): Same.
7739
dd895392
AB
77402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 PR gdb/25534
7743 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7744 (riscv_regcache_cooked_write): New function.
7745 (riscv_push_dummy_call): Use new function.
7746 (riscv_return_value): Likewise.
7747
5ab2fbf1
SM
77482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7749
7750 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7751 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7752 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7753 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7754 * infrun.c (follow_fork): Likewise.
7755 (follow_fork_inferior): Likewise.
7756 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7757 * linux-nat.h (class linux_nat_target): Likewise.
7758 * remote.c (class remote_target) <follow_fork>: Likewise.
7759 (remote_target::follow_fork): Likewise.
7760 * target-delegates.c: Re-generate.
7761 * target.c (default_follow_fork): Likewise.
7762 (target_follow_fork): Likewise.
7763 * target.h (struct target_ops) <follow_fork>: Likewise.
7764 (target_follow_fork): Likewise.
7765
a64fafb5
TV
77662020-03-24 Tom de Vries <tdevries@suse.de>
7767
7768 * psymtab.c (maintenance_info_psymtabs): Print user field.
7769
fe26d3a3
TT
77702020-03-20 Tom Tromey <tromey@adacore.com>
7771
7772 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7773 const.
7774 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7775 const.
7776
c884cc46
SM
77772020-03-20 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * ptrace.m4: Don't check for ptrace declaration.
7780 * config.in: Re-generate.
7781 * configure: Re-generate.
7782 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7783 not defined.
7784
1ff700c2
KR
77852020-03-20 Kamil Rytarowski <n54@gmx.com>
7786
7787 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7788 `PTRACE_TYPE_RET'.
7789 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7790 * sparc-nat.c (gdb_ptrace): Likewise.
7791 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7792
f7d4f0b1
TT
77932020-03-20 Tom Tromey <tromey@adacore.com>
7794
7795 * c-exp.y (lex_one_token): Fix assert.
7796
f67210ff
TT
77972020-03-20 Tom Tromey <tromey@adacore.com>
7798
7799 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7800 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7801 strncpy call.
7802
1773be9e
TT
78032020-03-20 Tom Tromey <tromey@adacore.com>
7804
7805 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7806
70304be9
TT
78072020-03-20 Tom Tromey <tromey@adacore.com>
7808
7809 * ada-valprint.c (print_variant_part): Remove parameters; switch
7810 to value-based API.
7811 (print_field_values): Likewise.
7812 (ada_val_print_struct_union): Likewise.
7813 (ada_value_print_1): Update.
7814
9faa006d
KR
78152020-03-20 Kamil Rytarowski <n54@gmx.com>
7816
7817 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7818 nbsd_nat_target instead of inf_ptrace_target.
7819 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7820 nbsd_nat_target.
7821
4a90f062
KR
78222020-03-20 Kamil Rytarowski <n54@gmx.com>
7823
7824 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7825 it to the ptrace call.
7826 * (store_registers): Likewise.
7827
78282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7829
7830 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7831 it to the ptrace call.
7832 * (store_registers): Likewise.
7833
2d07da27
LM
78342020-03-19 Luis Machado <luis.machado@linaro.org>
7835
7836 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7837 valid, fetch vg value from ptrace.
7838
f09db380
KR
78392020-03-19 Kamil Rytarowski <n54@gmx.com>
7840 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7841 * inf-ptrace.c: Likewise.
7842 * (gdb_ptrace): Add.
7843 * (inf_ptrace_target::resume): Update.
7844 * (inf_ptrace_target::xfer_partial): Likewise.
7845 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7846 * (inf_ptrace_peek_poke): Update.
7847
fcc7376e
KR
78482020-03-19 Kamil Rytarowski <n54@gmx.com>
7849
7850 * x86-bsd-nat.c (gdb_ptrace): New.
7851 * (x86bsd_dr_set): Add new argument `ptid'.
7852 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7853 x86bsd_dr_set_addr): Update.
7854
cada5fc9
AB
78552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * remote.c (remote_target::process_stop_reply): Handle events for
7858 all threads differently.
7859
19a2740f
AB
78602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * completer.c (completion_tracker::remove_completion): Define new
7863 function.
7864 * completer.h (completion_tracker::remove_completion): Declare new
7865 function.
7866 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7867 when adding a C++ function symbol.
7868
724fd9ba
AB
78692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * completer.c (completion_tracker::completion_hash_entry): Define
7872 new class.
7873 (advance_to_filename_complete_word_point): Call
7874 recompute_lowest_common_denominator.
7875 (completion_tracker::completion_tracker): Call discard_completions
7876 to setup the hash table.
7877 (completion_tracker::discard_completions): Allow for being called
7878 from the constructor, pass new equal function, and element deleter
7879 when constructing the hash table. Initialise new class member
7880 variables.
7881 (completion_tracker::maybe_add_completion): Remove use of
7882 m_entries_vec, and store more information into m_entries_hash.
7883 (completion_tracker::recompute_lcd_visitor): New function, most
7884 content taken from...
7885 (completion_tracker::recompute_lowest_common_denominator):
7886 ...here, this now just visits each item in the hash calling the
7887 above visitor.
7888 (completion_tracker::build_completion_result): Remove use of
7889 m_entries_vec, call recompute_lowest_common_denominator.
7890 * completer.h (completion_tracker::have_completions): Remove use
7891 of m_entries_vec.
7892 (completion_tracker::completion_hash_entry): Declare new class.
7893 (completion_tracker::recompute_lowest_common_denominator): Change
7894 function signature.
7895 (completion_tracker::recompute_lcd_visitor): Declare new function.
7896 (completion_tracker::m_entries_vec): Delete.
7897 (completion_tracker::m_entries_hash): Initialize to NULL.
7898 (completion_tracker::m_lowest_common_denominator_valid): New
7899 member variable.
7900 (completion_tracker::m_lowest_common_denominator_max_length): New
7901 member variable.
7902
5a82b8a1
KR
79032020-03-17 Kamil Rytarowski <n54@gmx.com>
7904
7905 * regformats/regdef.h: Put reg in gdb namespace.
7906
fb516a69
KR
79072020-03-17 Kamil Rytarowski <n54@gmx.com>
7908
7909 * i386-bsd-nat.c (gdb_ptrace): New.
7910 * (i386bsd_fetch_inferior_registers,
7911 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7912 * (i386bsd_fetch_inferior_registers,
7913 i386bsd_store_inferior_registers) Use gdb_ptrace.
7914
1c0aa1fb
KR
79152020-03-17 Kamil Rytarowski <n54@gmx.com>
7916
7917 * amd64-bsd-nat.c (gdb_ptrace): New.
7918 * (amd64bsd_fetch_inferior_registers,
7919 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7920 * (amd64bsd_fetch_inferior_registers,
7921 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7922
5ccd2fb7
KR
79232020-03-17 Kamil Rytarowski <n54@gmx.com>
7924
7925 * user-regs.c (user_reg::read): Rename to...
7926 (user_reg::xread): ...this.
7927 * (append_user_reg): Rename argument `read' to `xread'.
7928 * (user_reg_add_builtin): Likewise.
7929 * (user_reg_add): Likewise.
7930 * (value_of_user_reg): Likewise.
7931
2108a63a
KR
79322020-03-17 Kamil Rytarowski <n54@gmx.com>
7933
7934 * sparc-nat.c (gdb_ptrace): New.
7935 * sparc-nat.c (sparc_fetch_inferior_registers)
7936 (sparc_store_inferior_registers) Remove obsolete comment.
7937 * sparc-nat.c (sparc_fetch_inferior_registers)
7938 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7939 * sparc-nat.c (sparc_fetch_inferior_registers)
7940 (sparc_store_inferior_registers) Use gdb_ptrace.
7941
a225c9a8
KR
79422020-03-17 Kamil Rytarowski <n54@gmx.com>
7943
7944 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7945 it to the ptrace call.
7946 * sh-nbsd-nat.c (store_registers): Likewise.
7947
98097623
KR
79482020-03-17 Kamil Rytarowski <n54@gmx.com>
7949
7950 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7951 nbsd_nat_target instead of inf_ptrace_target.
7952 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7953 nbsd_nat_target.
7954
9e38d619
KR
79552020-03-17 Kamil Rytarowski <n54@gmx.com>
7956
7957 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7958
a2ecbe9f
KR
79592020-03-17 Kamil Rytarowski <n54@gmx.com>
7960
7961 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7962 <sys/sysctl.h>.
7963 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7964
58990295
TV
79652020-03-17 Tom de Vries <tdevries@suse.de>
7966
7967 PR gdb/23710
7968 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7969 fields.
7970 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7971 fields.
7972 (process_imported_unit_die): Skip import of c++ CUs.
7973
771dd3a8
TT
79742020-03-16 Tom Tromey <tom@tromey.com>
7975
7976 * p-valprint.c (pascal_object_print_value): Initialize
7977 base_value.
7978
817a7585
AK
79792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7980 Shahab Vahedi <shahab@synopsys.com>
7981
7982 * Makefile.in: Add arch/arc.o
7983 * configure.tgt: Likewise.
7984 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7985 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7986 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7987 * arc-tdep.h (arc_read_description): Add proto type.
7988 * arch/arc.c: New file.
7989 * arch/arc.h: Likewise.
7990 * features/Makefile: Replace old target descriptions with new.
7991 * features/arc-arcompact.c: Remove.
7992 * features/arc-arcompact.xml: Likewise.
7993 * features/arc-v2.c: Likewise
7994 * features/arc-v2.xml: Likewise
7995 * features/arc/aux-arcompact.xml: New file.
7996 * features/arc/aux-v2.xml: Likewise.
7997 * features/arc/core-arcompact.xml: Likewise.
7998 * features/arc/core-v2.xml: Likewise.
7999 * features/arc/aux-arcompact.c: Generate.
8000 * features/arc/aux-v2.c: Likewise.
8001 * features/arc/core-arcompact.c: Likewise.
8002 * features/arc/core-v2.c: Likewise.
8003 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8004
67430cd0
TT
80052020-03-16 Tom Tromey <tromey@adacore.com>
8006
8007 PR gdb/25663:
8008 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8009 putting value into bcache.
8010
30efb6c7
SM
80112020-03-16 Simon Marchi <simon.marchi@efficios.com>
8012
8013 PR gdb/21500
8014 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8015 to...
8016 (amd64_windows_init_abi_common): ... this. Don't set size of
8017 long type.
8018 (amd64_windows_init_abi): New function.
8019 (amd64_cygwin_init_abi): New function.
8020 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8021 the Cygwin OS ABI.
8022 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8023 comment.
8024
8db52437
SM
80252020-03-16 Simon Marchi <simon.marchi@efficios.com>
8026
8027 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8028 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8029 (pe_import_directory_entry): New struct type.
8030 (is_linked_with_cygwin_dll): New function.
8031 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8032 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8033 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8034
5982a56a
SM
80352020-03-16 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8038 i386_cygwin_core_osabi_sniffer.
8039
7a1998df
SM
80402020-03-16 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * i386-cygwin-tdep.c: Rename to...
8043 * i386-windows-tdep.c: ... this.
8044 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8045 i386-windows-tdep.c.
8046 * configure.tgt: Likewise.
8047
053205cc
SM
80482020-03-16 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8051 * osabi.c (gdb_osabi_names): Add "Windows".
8052 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8053 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8054 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8055 i386_cygwin_osabi_sniffer.
8056 (_initialize_i386_cygwin_tdep): Register OS ABI
8057 GDB_OSABI_WINDOWS for i386.
8058 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8059 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8060 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8061 for x86-64.
8062 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8063 when the target matches '*-*-mingw*'.
8064
fe4b2ee6
SM
80652020-03-16 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * defs.h (enum gdb_osabi): Move to...
8068 * osabi.h (enum gdb_osabi): ... here.
8069 * gdbarch.sh: Include osabi.h in gdbarch.h.
8070 * gdbarch.h: Re-generate.
8071
cb9b645d
SM
80722020-03-16 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8075 function.
8076 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8077
3293bbaf
TT
80782020-03-14 Tom Tromey <tom@tromey.com>
8079
8080 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8081 for C++.
8082 (c_type_print_modifier): Likewise. Add "language" parameter.
8083 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8084 (c_type_print_base_1): Update.
8085 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8086 constants.
8087 * type-stack.c (type_stack::insert): Handle tp_atomic and
8088 tp_restrict.
8089 (type_stack::follow_type_instance_flags): Likewise.
8090 (type_stack::follow_types): Likewise. Merge type-following code.
8091 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8092 (space_identifier, cv_with_space_id)
8093 (const_or_volatile_or_space_identifier_noopt)
8094 (const_or_volatile_or_space_identifier): Remove.
8095 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8096 rules.
8097 (ptr_operator, typebase): Update.
8098 (enum token_flag) <FLAG_C>: New constant.
8099 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8100 "_Atomic".
8101 (lex_one_token): Handle FLAG_C.
8102
154151a6
KR
81032020-03-14 Kamil Rytarowski <n54@gmx.com>
8104
8105 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8106 it to the ptrace call.
8107 * m68k-bsd-nat.c (store_registers): Likewise.
8108
bc107784
KR
81092020-03-14 Kamil Rytarowski <n54@gmx.com>
8110
8111 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8112 gdb_byte *.
8113 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8114 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8115 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8116
01a80117
KR
81172020-03-14 Kamil Rytarowski <n54@gmx.com>
8118
8119 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8120 nbsd_nat_target instead of inf_ptrace_target.
8121 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8122 nbsd_nat_target.
8123
f90280ca
KR
81242020-03-14 Kamil Rytarowski <n54@gmx.com>
8125
8126 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8127 register_t.
8128
6def66f1
KR
81292020-03-14 Kamil Rytarowski <n54@gmx.com>
8130
8131 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8132 it to the ptrace call.
8133 * alpha-bsd-nat.c (store_registers): Likewise.
8134
66eaca97
KR
81352020-03-14 Kamil Rytarowski <n54@gmx.com>
8136
8137 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8138 includes.
8139 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8140 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8141 fill_fpregset): Likewise.
8142
4fed520b
KR
81432020-03-14 Kamil Rytarowski <n54@gmx.com>
8144
8145 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8146 nbsd_nat_target instead of inf_ptrace_target.
8147 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8148 nbsd_nat_target.
8149
2190cf06
KR
81502020-03-14 Kamil Rytarowski <n54@gmx.com>
8151
8152 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8153 register_t.
8154
75c56d3d
KR
81552020-03-14 Kamil Rytarowski <n54@gmx.com>
8156
8157 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8158 it to the ptrace call.
8159 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8160 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8161 * arm-nbsd-nat.c (store_register): Likewise.
8162 * arm-nbsd-nat.c (store_regs): Likewise.
8163 * arm-nbsd-nat.c (store_fp_register): Likewise.
8164 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8165
6018d381
KR
81662020-03-14 Kamil Rytarowski <n54@gmx.com>
8167
8168 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8169 nbsd_nat_target instead of inf_ptrace_target.
8170 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8171 nbsd_nat_target.
8172
013f99f0
KR
81732020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8176 it to the ptrace call.
8177 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8178
12753073
KR
81792020-03-14 Kamil Rytarowski <n54@gmx.com>
8180
6227b330
KR
8181 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8182 it to the ptrace call.
8183 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8184
81852020-03-14 Kamil Rytarowski <n54@gmx.com>
8186
8187 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8188 gdb_byte *.
12753073
KR
8189 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8190
d5be5fa4
KR
81912020-03-14 Kamil Rytarowski <n54@gmx.com>
8192
8193 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8194 instead of inf_ptrace_target.
8195 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8196 nbsd_nat_target.
8197
8110f842
KR
81982020-03-14 Kamil Rytarowski <n54@gmx.com>
8199
8200 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8201 register_t.
8202
52feded7
KR
82032020-03-14 Kamil Rytarowski <n54@gmx.com>
8204
8205 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8206 register_t.
8207
25567eee
KR
82082020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8211 register_t.
8212
426a9c18
TT
82132020-03-13 Tom Tromey <tom@tromey.com>
8214
8215 * value.h (val_print): Don't declare.
8216 * valprint.h (val_print_array_elements)
8217 (val_print_scalar_formatted, generic_val_print): Don't declare.
8218 * valprint.c (generic_val_print_array): Take a struct value.
8219 (generic_val_print_ptr, generic_val_print_memberptr)
8220 (generic_val_print_bool, generic_val_print_int)
8221 (generic_val_print_char, generic_val_print_complex)
8222 (generic_val_print): Remove.
8223 (generic_value_print): Update.
8224 (do_val_print): Remove unused parameters. Don't call
8225 la_val_print.
8226 (val_print): Remove.
8227 (common_val_print): Update. Don't call value_check_printable.
8228 (val_print_scalar_formatted, val_print_array_elements): Remove.
8229 * rust-lang.c (rust_val_print): Remove.
8230 (rust_language_defn): Update.
8231 * p-valprint.c (pascal_val_print): Remove.
8232 (pascal_value_print_inner): Update.
8233 (pascal_object_print_val_fields, pascal_object_print_val):
8234 Remove.
8235 (pascal_object_print_static_field): Update.
8236 * p-lang.h (pascal_val_print): Don't declare.
8237 * p-lang.c (pascal_language_defn): Update.
8238 * opencl-lang.c (opencl_language_defn): Update.
8239 * objc-lang.c (objc_language_defn): Update.
8240 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8241 * m2-lang.h (m2_val_print): Don't declare.
8242 * m2-lang.c (m2_language_defn): Update.
8243 * language.h (struct language_defn) <la_val_print>: Remove.
8244 * language.c (unk_lang_value_print_inner): Rename. Change
8245 argument types.
8246 (unknown_language_defn, auto_language_defn): Update.
8247 * go-valprint.c (go_val_print): Remove.
8248 * go-lang.h (go_val_print): Don't declare.
8249 * go-lang.c (go_language_defn): Update.
8250 * f-valprint.c (f_val_print): Remove.
8251 * f-lang.h (f_value_print): Don't declare.
8252 * f-lang.c (f_language_defn): Update.
8253 * d-valprint.c (d_val_print): Remove.
8254 * d-lang.h (d_value_print): Don't declare.
8255 * d-lang.c (d_language_defn): Update.
8256 * cp-valprint.c (cp_print_value_fields)
8257 (cp_print_value_fields_rtti, cp_print_value): Remove.
8258 (cp_print_static_field): Update.
8259 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8260 (c_val_print_struct, c_val_print_union, c_val_print_int)
8261 (c_val_print_memberptr, c_val_print): Remove.
8262 * c-lang.h (c_val_print_array, cp_print_value_fields)
8263 (cp_print_value_fields_rtti): Don't declare.
8264 * c-lang.c (c_language_defn, cplus_language_defn)
8265 (asm_language_defn, minimal_language_defn): Update.
8266 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8267 (ada_val_print_enum): Take a struct value.
8268 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8269 (ada_val_print): Remove.
8270 (ada_value_print_1): Update.
8271 (printable_val_type): Remove.
8272 * ada-lang.h (ada_val_print): Don't declare.
8273 * ada-lang.c (ada_language_defn): Update.
8274
42331a1e
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * valprint.c (do_val_print): Update.
8278 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8279 a struct value.
8280 (value_to_value_object_no_release): Declare.
8281 * python/py-value.c (value_to_value_object_no_release): New
8282 function.
8283 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8284 struct value.
8285 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8286 function.
8287 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8288 a struct value.
8289 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8290 Declare.
8291 (gdbscm_apply_val_pretty_printer): Take a struct value.
8292 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8293 value.
8294 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8295 value.
8296 * extension-priv.h (struct extension_language_ops)
8297 <apply_val_pretty_printer>: Take a struct value.
8298 * cp-valprint.c (cp_print_value): Create a struct value.
8299 (cp_print_value): Update.
8300
3a916a97
TT
83012020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * ada-valprint.c (print_field_values): Call common_val_print.
8304
b59eac37
TT
83052020-03-13 Tom Tromey <tom@tromey.com>
8306
8307 * ada-valprint.c (val_print_packed_array_elements): Remove
8308 bitoffset and val parameters. Call common_val_print.
8309 (ada_val_print_string): Remove offset, address, and original_value
8310 parameters.
8311 (ada_val_print_array): Update.
8312 (ada_value_print_array): New function.
8313 (ada_value_print_1): Call it.
8314
03371129
TT
83152020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * ada-valprint.c (ada_value_print): Use common_val_print.
8318
2e088f8b
TT
83192020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8322
39ef85a8
TT
83232020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * ada-valprint.c (ada_value_print_num): New function.
8326 (ada_value_print_1): Use it.
8327
b9fa6e07
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8331
416595d6
TT
83322020-03-13 Tom Tromey <tom@tromey.com>
8333
8334 * ada-valprint.c (ada_value_print_ptr): New function.
8335 (ada_value_print_1): Use it.
8336
5b5e15ec
TT
83372020-03-13 Tom Tromey <tom@tromey.com>
8338
8339 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8340 call common_val_print.
8341 (ada_val_print_1): Update.
8342 (ada_value_print_1): New function.
8343 (ada_value_print_inner): Rewrite.
8344
fbf54e75
TT
83452020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * cp-valprint.c (cp_print_value_fields): Update.
8348 (cp_print_value): New function.
8349
64b653ca
TT
83502020-03-13 Tom Tromey <tom@tromey.com>
8351
8352 * m2-valprint.c (m2_value_print_inner): Use
8353 cp_print_value_fields.
8354 * cp-valprint.c (cp_print_value_fields): New function.
8355 * c-valprint.c (c_value_print_struct): New function.
8356 (c_value_print_inner): Use c_value_print_struct.
8357 * c-lang.h (cp_print_value_fields): Declare.
8358
6999f067
TT
83592020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * c-valprint.c (c_value_print_array): New function.
8362 (c_value_print_inner): Use it.
8363
ce80b8bd
TT
83642020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * c-valprint.c (c_value_print_memberptr): New function.
8367 (c_value_print_inner): Use it.
8368
2faac269
TT
83692020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * c-valprint.c (c_value_print_int): New function.
8372 (c_value_print_inner): Use it.
8373
da3e2c29
TT
83742020-03-13 Tom Tromey <tom@tromey.com>
8375
8376 * c-valprint.c (c_value_print_ptr): New function.
8377 (c_value_print_inner): Use it.
8378
50836231
TT
83792020-03-13 Tom Tromey <tom@tromey.com>
8380
8381 * c-valprint.c (c_value_print_inner): Rewrite.
8382
4f412b6e
TT
83832020-03-13 Tom Tromey <tom@tromey.com>
8384
8385 * valprint.c (generic_value_print_complex): New function.
8386 (generic_value_print): Use it.
8387
f5354008
TT
83882020-03-13 Tom Tromey <tom@tromey.com>
8389
8390 * valprint.c (generic_val_print_float): Don't call
8391 val_print_scalar_formatted.
8392 (generic_val_print, generic_value_print): Update.
8393
3eec3b05
TT
83942020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * valprint.c (generic_value_print_char): New function
8397 (generic_value_print): Use it.
8398
fdddfccb
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * valprint.c (generic_value_print_int): New function.
8402 (generic_value_print): Use it.
8403
6dde7521
TT
84042020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * valprint.c (generic_value_print_bool): New function.
8407 (generic_value_print): Use it.
8408
4112d2e6
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * valprint.c (generic_val_print_func): Simplify.
8412 (generic_val_print, generic_value_print): Update.
8413
65786af6
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * valprint.c (generic_val_print_flags): Remove.
8417 (generic_val_print, generic_value_print): Update.
8418 (val_print_type_code_flags): Add original_value parameter.
8419
40f3ce18
TT
84202020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * valprint.c (generic_val_print): Update.
8423 (generic_value_print): Update.
8424 * valprint.c (generic_val_print_enum): Don't call
8425 val_print_scalar_formatted.
8426
2a5b130b
TT
84272020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8430 * valprint.c (generic_value_print_ptr): New function.
8431
abc66ce9
TT
84322020-03-13 Tom Tromey <tom@tromey.com>
8433
8434 * valprint.c (generic_value_print): Rewrite.
8435
07a32858
TT
84362020-03-13 Tom Tromey <tom@tromey.com>
8437
8438 * p-valprint.c (pascal_object_print_value_fields)
8439 (pascal_object_print_value): New functions.
8440
64d64d3a
TT
84412020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * p-valprint.c (pascal_value_print_inner): Rewrite.
8444
6a95a1f5
TT
84452020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * f-valprint.c (f_value_print_innner): Rewrite.
8448
59fcdac6
TT
84492020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * m2-valprint.c (m2_print_unbounded_array): New overload.
8452 (m2_print_unbounded_array): Update.
8453 (m2_print_array_contents): Take a struct value.
8454 (m2_value_print_inner): Rewrite.
8455
d133c3e1
TT
84562020-03-13 Tom Tromey <tom@tromey.com>
8457
8458 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8459 (d_value_print_inner): New function.
8460 * d-lang.h (d_value_print_inner): Declare.
8461 * d-lang.c (d_language_defn): Use d_value_print_inner.
8462
23b0f06b
TT
84632020-03-13 Tom Tromey <tom@tromey.com>
8464
8465 * go-valprint.c (go_value_print_inner): New function.
8466 * go-lang.h (go_value_print_inner): Declare.
8467 * go-lang.c (go_language_defn): Use go_value_print_inner.
8468
5f56f7cb
TT
84692020-03-13 Tom Tromey <tom@tromey.com>
8470
8471 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8472 API.
8473 (rust_val_print): Rewrite.
8474 (rust_value_print_inner): New function, from rust_val_print.
8475 (rust_language_defn): Use rust_value_print_inner.
8476
26792ee0
TT
84772020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * ada-valprint.c (ada_value_print_inner): New function.
8480 * ada-lang.h (ada_value_print_inner): Declare.
8481 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8482
24051bbe
TT
84832020-03-13 Tom Tromey <tom@tromey.com>
8484
8485 * f-valprint.c (f_value_print_innner): New function.
8486 * f-lang.h (f_value_print_innner): Declare.
8487 * f-lang.c (f_language_defn): Use f_value_print_innner.
8488
c0941be6
TT
84892020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * p-valprint.c (pascal_value_print_inner): New function.
8492 * p-lang.h (pascal_value_print_inner): Declare.
8493 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8494
62c4663d
TT
84952020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * m2-valprint.c (m2_value_print_inner): New function.
8498 * m2-lang.h (m2_value_print_inner): Declare.
8499 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8500
62182190
TT
85012020-03-13 Tom Tromey <tom@tromey.com>
8502
8503 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8504 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8505 * c-valprint.c (c_value_print_inner): New function.
8506 * c-lang.h (c_value_print_inner): Declare.
8507 * c-lang.c (c_language_defn, cplus_language_defn)
8508 (asm_language_defn, minimal_language_defn): Use
8509 c_value_print_inner.
8510
1e592a8a
TT
85112020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * p-valprint.c (pascal_object_print_value_fields): Now static.
8514 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8515
7fe471e9
TT
85162020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * c-valprint.c (c_val_print_array): Simplify.
8519
d121c6ce
TT
85202020-03-13 Tom Tromey <tom@tromey.com>
8521
8522 * valprint.c (value_print_array_elements): New function.
8523 * valprint.h (value_print_array_elements): Declare.
8524
4dba70ee
TT
85252020-03-13 Tom Tromey <tom@tromey.com>
8526
8527 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8528 * mips-tdep.c (mips_print_register): Use
8529 value_print_scalar_formatted.
8530
4f9ae810
TT
85312020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * valprint.h (value_print_scalar_formatted): Declare.
8534 * valprint.c (value_print_scalar_formatted): New function.
8535
156bfec9
TT
85362020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * valprint.h (generic_value_print): Declare.
8539 * valprint.c (generic_value_print): New function.
8540
2b4e573d
TT
85412020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * valprint.c (do_val_print): Call la_value_print_inner, if
8544 available.
8545 * rust-lang.c (rust_language_defn): Update.
8546 * p-lang.c (pascal_language_defn): Update.
8547 * opencl-lang.c (opencl_language_defn): Update.
8548 * objc-lang.c (objc_language_defn): Update.
8549 * m2-lang.c (m2_language_defn): Update.
8550 * language.h (struct language_defn) <la_value_print_inner>: New
8551 member.
8552 * language.c (unknown_language_defn, auto_language_defn): Update.
8553 * go-lang.c (go_language_defn): Update.
8554 * f-lang.c (f_language_defn): Update.
8555 * d-lang.c (d_language_defn): Update.
8556 * c-lang.c (c_language_defn, cplus_language_defn)
8557 (asm_language_defn, minimal_language_defn): Update.
8558 * ada-lang.c (ada_language_defn): Update.
8559
a1f6a07c
TT
85602020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * c-valprint.c (c_value_print): Use common_val_print.
8563
410cf315
TT
85642020-03-13 Tom Tromey <tom@tromey.com>
8565
8566 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8567
72a45c93
TT
85682020-03-13 Tom Tromey <tom@tromey.com>
8569
8570 * f-valprint.c (f77_print_array_1, f_val_print): Use
8571 common_val_print.
8572
040f66bd
TT
85732020-03-13 Tom Tromey <tom@tromey.com>
8574
8575 * riscv-tdep.c (riscv_print_one_register_info): Use
8576 common_val_print.
8577
a6e05a6c
TT
85782020-03-13 Tom Tromey <tom@tromey.com>
8579
8580 * mi/mi-main.c (output_register): Use common_val_print.
8581
3444c526
TT
85822020-03-13 Tom Tromey <tom@tromey.com>
8583
8584 * infcmd.c (default_print_one_register_info): Use
8585 common_val_print.
8586
c2a44efe
TT
85872020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * valprint.h (common_val_print_checked): Declare.
8590 * valprint.c (common_val_print_checked): New function.
8591 * stack.c (print_frame_arg): Use common_val_print_checked.
8592
b0c26e99
TT
85932020-03-13 Tom Tromey <tom@tromey.com>
8594
8595 * valprint.c (do_val_print): New function, from val_print.
8596 (val_print): Use do_val_print.
8597 (common_val_print): Use do_val_print.
8598
ce3acbe9
TT
85992020-03-13 Tom Tromey <tom@tromey.com>
8600
8601 * valprint.c (value_print): Use scoped_value_mark.
8602
96c7f873
TV
86032020-03-13 Tom de Vries <tdevries@suse.de>
8604
8605 PR symtab/25646
8606 * psymtab.c (partial_symtab::partial_symtab): Don't set
8607 globals_offset and statics_offset. Push element onto
8608 current_global_psymbols and current_static_psymbols stacks.
8609 (concat): New function.
8610 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8611 element from current_global_psymbols and current_static_psymbols
8612 stacks. Concat popped elements to global_psymbols and
8613 static_symbols.
8614 (add_psymbol_to_list): Use current_global_psymbols and
8615 current_static_psymbols stacks.
8616 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8617 current_static_psymbols fields.
8618
6ba0a321
CB
86192020-03-12 Christian Biesinger <cbiesinger@google.com>
8620
8621 * corelow.c (sniff_core_bfd): Remove.
8622 (class core_target) <m_core_vec>: Remove.
8623 (core_target::core_target): Update.
8624 (core_file_fns): Remove.
8625 (deprecated_add_core_fns): Remove.
8626 (default_core_sniffer): Remove.
8627 (sniff_core_bfd): Remove.
8628 (default_check_format): Remove.
8629 (gdb_check_format): Remove.
8630 (core_target_open): Update.
8631 (core_target::get_core_register_section): Update.
8632 (get_core_registers_cb): Update.
8633 (core_target::fetch_registers): Update.
8634 * gdbcore.h (struct core_fns): Remove.
8635 (deprecated_add_core_fns): Remove.
8636 (default_core_sniffer): Remove.
8637 (default_check_format): Remove.
8638
227031b2
TT
86392020-03-12 Tom Tromey <tom@tromey.com>
8640
8641 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8642 CORE_ADDR.
8643 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8644
53807e9f
TT
86452020-03-12 Tom Tromey <tom@tromey.com>
8646
8647 * remote.c (remote_target::download_tracepoint)
8648 (remote_target::enable_tracepoint)
8649 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8650 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8651 sprintf_vma.
8652
64f25102
TT
86532020-03-12 Tom Tromey <tom@tromey.com>
8654
8655 * symfile-mem.c: Update CORE_ADDR size assert.
8656
272cd5a3
SM
86572020-03-12 Simon Marchi <simon.marchi@efficios.com>
8658
8659 * selftest.m4: Move to gdbsupport/.
8660 * acinclude.m4: Update path to selftest.m4.
8661
74cd3f9d
SM
86622020-03-12 Simon Marchi <simon.marchi@efficios.com>
8663
8664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8665 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8666 gdbarch-selfselftests.c and selftest-arch.c.
8667 (SUBDIR_UNITTESTS_OBS): Rename to...
8668 (SELFTESTS_OBS): ... this.
8669 (COMMON_SFILES): Remove disasm-selftests.c and
8670 gdbarch-selftests.c.
8671 * configure.ac: Don't add selftest-arch.{c,o} to
8672 CONFIG_{SRCS,OBS}.
8673 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8674 preprocessor conditions.
8675
db6878ac
SM
86762020-03-12 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * configure.ac: Don't source bfd/development.sh.
8679 * selftest.m4: Modify comment.
8680 * configure: Re-generate.
8681
4d696a5c
SM
86822020-03-12 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8685 not "true" or "false".
8686 * configure: Re-generate.
8687
8dd8e1c7
CB
86882020-03-12 Christian Biesinger <cbiesinger@google.com>
8689
8690 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8691 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8692 renamed to arm_nbsd_supply_gregset.
8693 (fetch_register): Update to call arm_nbsd_supply_gregset.
8694 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8695 (arm_netbsd_nat_target::fetch_registers): Update.
8696 (fetch_elfcore_registers): Removed.
8697 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8698 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8699 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8700 not require NetBSD system headers.
8701 (arm_nbsd_regset): New struct.
8702 (arm_nbsd_iterate_over_regset_sections): New function.
8703 (arm_netbsd_init_abi_common): Updated to call
8704 set_gdbarch_iterate_over_regset_sections.
8705 * arm-nbsd-tdep.h: New file.
8706
dd69bf7a
KB
87072020-03-11 Kevin Buettner <kevinb@redhat.com>
8708
8709 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8710 recursion.
8711
a0761e34
SM
87122020-03-11 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * configure: Re-generate.
8715
e7a82140
TT
87162020-03-11 Tom Tromey <tromey@adacore.com>
8717
8718 * ada-typeprint.c (print_choices): Fix comment.
8719
dcc050c8
AB
87202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8723 previous item in the list, when the list has no items.
8724
1c33af77
TV
87252020-03-11 Tom de Vries <tdevries@suse.de>
8726
8727 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8728 PROP_LOCLIST handling code.
8729
8c95582d
AB
87302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * buildsym-legacy.c (record_line): Pass extra parameter to
8733 record_line.
8734 * buildsym.c (buildsym_compunit::record_line): Take an extra
8735 parameter, reduce duplication in the line table, and record the
8736 is_stmt flag in the line table.
8737 * buildsym.h (buildsym_compunit::record_line): Add extra
8738 parameter.
8739 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8740 non-statement lines.
8741 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8742 this to the symtab builder.
8743 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8744 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8745 through to dwarf_record_line_1.
8746 * infrun.c (process_event_stop_test): When stepping, don't stop at
8747 a non-statement instruction, and only refresh the step info when
8748 we land in the middle of a line's range. Also add an extra
8749 comment.
8750 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8751 field.
8752 * record-btrace.c (btrace_find_line_range): Only record lines
8753 marked as is-statement.
8754 * stack.c (frame_show_address): Show the frame address if we are
8755 in a non-statement sal.
8756 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8757 (maintenance_print_one_line_table): Print a header for the is_stmt
8758 column, and include is_stmt information in the output.
8759 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8760 preference to non-statements.
8761 (find_pcs_for_symtab_line): Prefer is-statement entries.
8762 (find_line_common): Likewise.
8763 * symtab.h (struct linetable_entry): Add is_stmt field.
8764 (struct symtab_and_line): Likewise.
8765 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8766 arranging the line table.
8767
e4003a34
TV
87682020-03-07 Tom de Vries <tdevries@suse.de>
8769
8770 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8771 DIE.
8772
e8932576
TT
87732020-03-07 Tom Tromey <tom@tromey.com>
8774
8775 * valops.c (value_literal_complex): Remove obsolete comment.
8776 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8777 comment.
8778
29734269
SM
87792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * infrun.h: Forward-declare thread_info.
8782 (set_step_info): Add thread_info parameter, add doc.
8783 * infrun.c (set_step_info): Add thread_info parameter, move doc
8784 to header.
8785 * infrun.c (process_event_stop_test): Pass thread to
8786 set_step_info call.
8787 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8788 set_step_info.
8789 (prepare_one_step): Add thread_info parameter, pass it to
8790 set_step_frame and prepare_one_step (recursive) call.
8791 (step_1): Pass thread to prepare_one_step call.
8792 (step_command_fsm::should_stop): Pass thread to
8793 prepare_one_step.
8794 (until_next_fsm): Pass thread to set_step_frame call.
8795 (finish_command): Pass thread to set_step_info call.
8796
b7d64b29
HD
87972020-03-06 Hannes Domani <ssbssa@yahoo.de>
8798
8799 * windows-tdep.c (windows_solib_create_inferior_hook):
8800 Check if inferior is running.
8801
09f2921c
TV
88022020-03-06 Tom de Vries <tdevries@suse.de>
8803
8804 * NEWS: Fix "the the".
8805 * ctfread.c: Same.
8806
fd760e79
TV
88072020-03-06 Tom de Vries <tdevries@suse.de>
8808
8809 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8810
20ea4a60
AB
88112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8812
8813 * .dir-locals.el: Add a comment referencing the other copies of
8814 this file.
8815
0afbabf0
JB
88162020-03-05 John Baldwin <jhb@FreeBSD.org>
8817
8818 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8819 psargs.
8820
842806cb
TBA
88212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8822
8823 * .gitattributes: New file.
8824
be1e3d3e
TT
88252020-03-04 Tom Tromey <tom@tromey.com>
8826
8827 * symmisc.c (print_symbol_bcache_statistics)
8828 (print_objfile_statistics): Update.
8829 * symfile.c (allocate_symtab): Use intern.
8830 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8831 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8832 macro_cache>: Remove.
8833 <string_cache>: New member.
8834 (struct objfile) <intern>: New methods.
8835 * elfread.c (elf_symtab_read): Use intern.
8836 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8837 (dwarf2_compute_name, dwarf2_physname)
8838 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8839 names.
8840 (guess_partial_die_structure_name): Update.
8841 (partial_die_info::fixup): Intern name.
8842 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8843 name.
8844 (dwarf2_name): Intern name. Update.
8845 * buildsym.c (buildsym_compunit::get_macro_table): Use
8846 string_cache.
8847
4e7625fd
TT
88482020-03-04 Tom Tromey <tom@tromey.com>
8849
8850 * jit.c (bfd_open_from_target_memory): Make "target" const.
8851 * corefile.c (gnutarget): Now const.
8852 * gdbcore.h (gnutarget): Now const.
8853
46f9f931
HD
88542020-03-04 Hannes Domani <ssbssa@yahoo.de>
8855
8856 * NEWS: Mention support for WOW64 processes.
8857 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8858 (amd64_windows_segment_register_p): Remove static.
8859 (_initialize_amd64_windows_nat): Update.
8860 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8861 * i386-windows-nat.c (context_offset): Update.
8862 (i386_mappings): Rename and remove static.
8863 (i386_windows_segment_register_p): Remove static.
8864 (_initialize_i386_windows_nat): Update.
8865 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8866 (STATUS_WX86_SINGLE_STEP): New macro.
8867 (EnumProcessModulesEx): New macro.
8868 (Wow64SuspendThread): New macro.
8869 (Wow64GetThreadContext): New macro.
8870 (Wow64SetThreadContext): New macro.
8871 (Wow64GetThreadSelectorEntry): New macro.
8872 (windows_set_context_register_offsets): Add static.
8873 (windows_set_segment_register_p): Likewise.
8874 (windows_add_thread): Adapt for WOW64 processes.
8875 (windows_fetch_one_register): Likewise.
8876 (windows_nat_target::fetch_registers): Likewise.
8877 (windows_store_one_register): Likewise.
8878 (display_selector): Likewise.
8879 (display_selectors): Likewise.
8880 (handle_exception): Likewise.
8881 (windows_continue): Likewise.
8882 (windows_nat_target::resume): Likewise.
8883 (windows_add_all_dlls): Likewise.
8884 (do_initial_windows_stuff): Likewise.
8885 (windows_nat_target::attach): Likewise.
8886 (windows_get_exec_module_filename): Likewise.
8887 (windows_nat_target::create_inferior): Likewise.
8888 (windows_xfer_siginfo): Likewise.
8889 (_initialize_loadable): Initialize Wow64SuspendThread,
8890 Wow64GetThreadContext, Wow64SetThreadContext,
8891 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8892 * windows-nat.h (windows_set_context_register_offsets):
8893 Remove declaration.
8894 (windows_set_segment_register_p): Likewise.
8895 (i386_windows_segment_register_p): Add declaration.
8896 (amd64_windows_segment_register_p): Likewise.
8897
440cf44e
LM
88982020-03-04 Luis Machado <luis.machado@linaro.org>
8899
8900 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8901 in "info registers" for AArch64/ARM.
8902
8903 The change caused "info registers" to not print GPR's.
8904
8905 gdb/ChangeLog:
8906
8907 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8908
8909 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8910 when reg->group is empty and reggroup is not.
8911
1009d92f
TT
89122020-03-03 Tom Tromey <tromey@adacore.com>
8913
8914 * dwarf2/frame.c (struct dwarf2_frame_cache)
8915 <checked_tailcall_bottom, entry_cfa_sp_offset,
8916 entry_cfa_sp_offset_p>: Remove members.
8917 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8918 (dwarf2_frame_prev_register): Don't call
8919 dwarf2_tailcall_sniffer_first.
8920 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8921 * frame-unwind.c (add_unwinder): New fuction.
8922 (frame_unwind_init): Use it. Add tailcall unwinder.
8923
5e5d66b6
AB
89242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8925 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8926
8927 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8928 value should be printed as true.
8929
584cf46d
HD
89302020-03-03 Hannes Domani <ssbssa@yahoo.de>
8931
8932 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8933 (windows_init_abi): Set and use windows_so_ops.
8934
7b973adc
SDJ
89352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8936
8937 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8938 when verifying if dealing with a convenience variable.
8939
bb7b70ab
LM
89402020-03-03 Luis Machado <luis.machado@linaro.org>
8941
8942 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8943
9822cb57
SM
89442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8945
8946 * infrun.c (gdbarch_supports_displaced_stepping): New.
8947 (use_displaced_stepping): Break up conditions in smaller pieces.
8948 Use gdbarch_supports_displaced_stepping.
8949 (displaced_step_prepare_throw): Use
8950 gdbarch_supports_displaced_stepping.
8951
63e163f2
AB
89522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8953
8954 * NEWS: Mention new behaviour of the history filename.
8955 * top.c (write_history_p): Add comment.
8956 (show_write_history_p): Add header comment, give a different
8957 message when history writing is on, but the history filename is
8958 empty.
8959 (history_filename): Add comment.
8960 (history_filename_empty): New function.
8961 (show_history_filename): Add header comment, give a different
8962 message when the filename is empty.
8963 (init_history): Compare history_filename against nullptr, and only
8964 read history if the filename is not empty.
8965 (set_history_filename): Add header comment, and only make
8966 non-empty filenames absolute.
8967 (init_main): Make the filename argument to 'set history filename'
8968 optional.
8969
81b86b97
CB
89702020-03-02 Christian Biesinger <cbiesinger@google.com>
8971
8972 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8973 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8974 (fetch_fp_register): Update.
8975 (fetch_fp_regs): Update.
8976 (store_fp_register): Update.
8977 (store_fp_regs): Update.
8978 (arm_netbsd_nat_target::read_description): New function.
8979 (fetch_elfcore_registers): Update.
8980
24ed6739
AB
89812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8982
8983 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8984 general_thread if the stop reply is missing a thread-id.
8985 (remote_target::process_stop_reply): Use the first non-exited
8986 thread if the target didn't pass a thread-id.
8987 * infrun.c (do_target_wait): Move call to
8988 switch_to_inferior_no_thread to ....
8989 (do_target_wait_1): ... here.
8990
a84bb2a0
JT
89912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8992
8993 * debuginfod-support.c: Include defs.h first.
8994
658dadf0
TV
89952020-02-28 Tom de Vries <tdevries@suse.de>
8996
8997 * symfile.c (set_initial_language): Use default language for lookup.
8998
4ebe4877
SM
89992020-02-28 Simon Marchi <simon.marchi@efficios.com>
9000
9001 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9002 reader variable, pass `this` to read_cutu_die_from_dwo.
9003
e5da1139
AM
90042020-02-27 Aaron Merey <amerey@redhat.com>
9005
9006 * source.c (open_source_file): Check for nullptr when computing
9007 srcpath.
9008
317f7127
TT
90092020-02-27 Tom Tromey <tromey@adacore.com>
9010
9011 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9012 member.
9013 (dwarf2_add_field): Don't update nfields.
9014 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9015
3104d9ee
AB
90162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9019 abs.
9020
b83470bf
TT
90212020-02-26 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9024 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9025 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9026 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9027 per_cu_data.
9028
edfe0a0c
TT
90292020-02-26 Tom Tromey <tom@tromey.com>
9030
9031 * dwarf2/index-write.c (psym_index_map): Change type.
9032 (add_address_entry_worker, write_one_signatured_type)
9033 (recursively_count_psymbols, recursively_write_psymbols)
9034 (class debug_names, psyms_seen_size, write_gdbindex)
9035 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9036
0d79cdc4
AM
90372020-02-26 Aaron Merey <amerey@redhat.com>
9038
9039 * Makefile.in: Handle optional debuginfod support.
9040 * NEWS: Update.
9041 * README: Add --with-debuginfod summary.
9042 * config.in: Regenerate.
9043 * configure: Regenerate.
9044 * configure.ac: Handle optional debuginfod support.
9045 * debuginfod-support.c: debuginfod helper functions.
9046 * debuginfod-support.h: Ditto.
9047 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9048 summary.
9049 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9050 when a dwz file cannot be found.
9051 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9052 debuginfo file cannot be found.
9053 * source.c (open_source_file): Query debuginfod servers when a
9054 source file cannot be found.
9055 * top.c (print_gdb_configuration): Include
9056 --{with,without}-debuginfod in the output.
9057
b65ce565
JG
90582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9059
9060 * thread.c (thr_try_catch_cmd): Print thread name.
9061
d4c9a4f8
SM
90622020-02-26 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9065 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9066 dwarf2_fetch_die_type_sect_off): Move to...
9067 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9068 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9069 dwarf2_fetch_die_type_sect_off): ... here.
9070 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9071 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9072 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9073
0dce4280
TV
90742020-02-26 Tom de Vries <tdevries@suse.de>
9075
9076 PR gdb/25603
9077 * symfile.c (set_initial_language): Exit-early if
9078 language_mode == language_mode_manual.
9079
450a1bfc
SM
90802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9081
9082 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9083 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9084 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9085
9e80cfa1
AB
90862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * gdbtypes.c (create_array_type_with_stride): Handle negative
9089 array strides.
9090 * valarith.c (value_subscripted_rvalue): Likewise.
9091
09624f1f
LM
90922020-02-25 Luis Machado <luis.machado@linaro.org>
9093
9094 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9095
8cb5117c
SM
90962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9097
9098 * loc.h (dwarf2_get_die_type): Move to...
9099 * read.h (dwarf2_get_die_type): ... here.
9100 * read.c (dwarf2_get_die_type): Move doc to header.
9101
c325c44e
JB
91022020-02-25 Joel Brobecker <brobecker@adacore.com>
9103
9104 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9105 'gnulib/Makefile.in' to the list.
9106
4ac93832
TT
91072020-02-24 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9110 Remove.
9111 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9112 XOBNEWVEC.
9113
197400e8
TT
91142020-02-24 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9117 New method.
9118 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9119 (dw2_do_instantiate_symtab, dw2_get_file_names)
9120 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9121
76935768
TT
91222020-02-24 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9125 make_scoped_restore.
9126 (dwarf2_psymtab::read_symtab): Don't clear
9127 reading_partial_symbols.
9128
a88ef40d
TV
91292020-02-24 Tom de Vries <tdevries@suse.de>
9130
9131 PR gdb/25592
9132 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9133
c9af6521
TV
91342020-02-24 Tom de Vries <tdevries@suse.de>
9135
9136 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9137 commands layout next/prev/regs.
9138
5707a07a
TT
91392020-02-22 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9142 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9143
3b0fb49e
TT
91442020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9147
283be8bf
TT
91482020-02-22 Tom Tromey <tom@tromey.com>
9149
9150 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9151 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9152 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9153 * tui/tui.c (_initialize_tui): Add usage text.
9154
ca793b96
TT
91552020-02-22 Tom Tromey <tom@tromey.com>
9156
9157 * tui/tui-win.c (tui_set_focus_command)
9158 (tui_set_win_height_command): Use error_no_arg.
9159 (_initialize_tui_win): Update help text.
9160 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9161
432b5c40
TT
91622020-02-22 Tom Tromey <tom@tromey.com>
9163
9164 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9165 * tui/tui-disasm.h (struct tui_disasm_window)
9166 <display_start_addr>: Declare.
9167 * tui/tui-source.h (struct tui_source_window)
9168 <display_start_addr>: Declare.
9169 * tui/tui-winsource.h (struct tui_source_window_base)
9170 <show_source_line, display_start_addr>: New methods.
9171 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9172 Rename and move to protected section.
9173 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9174 (tui_source_window_base::do_erase_source_content): Update.
9175 (tui_source_window_base::show_source_line): Now a method.
9176 (tui_source_window_base::show_source_content)
9177 (tui_source_window_base::tui_source_window_base)
9178 (tui_source_window_base::rerender)
9179 (tui_source_window_base::refill)
9180 (tui_source_window_base::do_scroll_horizontal)
9181 (tui_source_window_base::set_is_exec_point_at)
9182 (tui_source_window_base::update_breakpoint_info)
9183 (tui_source_window_base::update_exec_info): Update.
9184 * tui/tui-source.c (tui_source_window::set_contents)
9185 (tui_source_window::showing_source_p)
9186 (tui_source_window::do_scroll_vertical)
9187 (tui_source_window::location_matches_p)
9188 (tui_source_window::line_is_displayed): Update.
9189 (tui_source_window::display_start_addr): New method.
9190 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9191 (tui_disasm_window::do_scroll_vertical)
9192 (tui_disasm_window::location_matches_p): Update.
9193 (tui_disasm_window::display_start_addr): New method.
9194
01b1af32
TT
91952020-02-22 Tom Tromey <tom@tromey.com>
9196
9197 * NEWS: Add entry for gdb.register_window_type.
9198 * tui/tui-layout.h (window_factory): New typedef.
9199 (tui_register_window): Declare.
9200 * tui/tui-layout.c (saved_tui_windows): New global.
9201 (tui_apply_current_layout): Use it.
9202 (tui_register_window): New function.
9203 * python/python.c (do_start_initialization): Call
9204 gdbpy_initialize_tui.
9205 (python_GdbMethods): Add "register_window_type" function.
9206 * python/python-internal.h (gdbpy_register_tui_window)
9207 (gdbpy_initialize_tui): Declare.
9208 * python/py-tui.c: New file.
9209 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9210
fc96d20b
TT
92112020-02-22 Tom Tromey <tom@tromey.com>
9212
9213 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9214
935c78c0
TT
92152020-02-22 Tom Tromey <tom@tromey.com>
9216
9217 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9218 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9219 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9220 (tui_set_win_focus_to): Move from tui-win.c.
9221
0240c8f1
TT
92222020-02-22 Tom Tromey <tom@tromey.com>
9223
9224 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9225 functions.
9226 (known_window_types): New global.
9227 (tui_get_window_by_name): Reimplement.
9228 (initialize_known_windows): New function.
9229 (validate_window_name): Rewrite.
9230 (_initialize_tui_layout): Call initialize_known_windows.
9231
fdb01f0c
TT
92322020-02-22 Tom Tromey <tom@tromey.com>
9233
9234 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9235 Remove constants.
9236 * tui/tui-winsource.h (struct tui_source_window_base)
9237 <tui_source_window_base>: Remove parameter.
9238 * tui/tui-winsource.c
9239 (tui_source_window_base::tui_source_window_base): Remove
9240 parameter.
9241 (tui_source_window_base::refill): Update.
9242 * tui/tui-stack.h (struct tui_locator_window)
9243 <tui_locator_window>: Update.
9244 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9245 Default the constructor.
9246 * tui/tui-regs.h (struct tui_data_item_window)
9247 <tui_data_item_window>: Default the constructor.
9248 (struct tui_data_window) <tui_data_window>: Likewise.
9249 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9250 Default the constructor.
9251 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9252 Default the constructor.
9253 <type>: Remove.
9254 (struct tui_win_info) <tui_win_info>: Default the constructor.
9255 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9256 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9257 Default the constructor.
9258
865a5aec
TT
92592020-02-22 Tom Tromey <tom@tromey.com>
9260
9261 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9262 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9263 * tui/tui-win.c (tui_resize_all): Don't call
9264 tui_delete_invisible_windows.
9265 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9266 done.
9267 (tui_set_layout): Update.
9268 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9269 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9270 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9271
e098d18c
TT
92722020-02-22 Tom Tromey <tom@tromey.com>
9273
9274 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9275 correctly.
9276
eb9c8874
TT
92772020-02-22 Tom Tromey <tom@tromey.com>
9278
9279 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9280
7eed1a8e
TT
92812020-02-22 Tom Tromey <tom@tromey.com>
9282
9283 * tui/tui-winsource.h (struct tui_source_window_iterator)
9284 <inner_iterator>: New etytypedef.
9285 <tui_source_window_iterator>: Take "end" parameter.
9286 <tui_source_window_iterator>: Take iterator.
9287 <operator*, advance>: Update.
9288 <m_iter>: Change type.
9289 <m_end>: New field.
9290 (struct tui_source_windows) <begin, end>: Update.
9291 * tui/tui-layout.c (tui_windows): New global.
9292 (tui_apply_current_layout): Clear tui_windows.
9293 (tui_layout_window::apply): Update tui_windows.
9294 * tui/tui-data.h (tui_windows): Declare.
9295 (all_tui_windows): Now inline function.
9296 (class tui_window_iterator, struct all_tui_windows): Remove.
9297
7c043ba6
TT
92982020-02-22 Tom Tromey <tom@tromey.com>
9299
9300 PR tui/17850:
9301 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9302 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9303 "height" argument.
9304 (class tui_layout_window) <get_sizes>: Likewise.
9305 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9306 argument.
9307 <get_sizes>: Add "height" argument.
9308 <m_vertical>: New field.
9309 * tui/tui-layout.c (tui_layout_split::clone): Update.
9310 (tui_layout_split::get_sizes): Add "height" argument.
9311 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9312 (tui_new_layout_command): Parse "-horizontal".
9313 (_initialize_tui_layout): Update help string.
9314 (tui_layout_split::specification): Add "-horizontal" when needed.
9315 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9316 argument.
9317 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9318 New methods.
9319
6bc56648
TT
93202020-02-22 Tom Tromey <tom@tromey.com>
9321
9322 * tui/tui-layout.h (enum tui_adjust_result): New.
9323 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9324 (class tui_layout_window) <adjust_size>: Return
9325 tui_adjust_result. Rewrite.
9326 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9327 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9328
c22fef7e
TT
93292020-02-22 Tom Tromey <tom@tromey.com>
9330
9331 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9332 parameter and return types.
9333 (class tui_layout_base) <specification>: Add "depth".
9334 (class tui_layout_window) <specification>: Add "depth".
9335 (class tui_layout_split) <specification>: Add "depth".
9336 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9337 and return types.
9338 (tui_new_layout_command): Parse sub-layouts.
9339 (_initialize_tui_layout): Update help string.
9340 (tui_layout_window::specification): Add "depth".
9341 (add_layout_command): Update.
9342
ee325b61
TT
93432020-02-22 Tom Tromey <tom@tromey.com>
9344
9345 * NEWS: Add "tui new-layout" item.
9346 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9347 Add new-layout command to help text.
9348 (validate_window_name): New function.
9349 (tui_new_layout_command): New function.
9350 (_initialize_tui_layout): Register "new-layout".
9351 (tui_layout_window::specification): New method.
9352 (tui_layout_window::specification): New method.
9353 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9354 method.
9355 (class tui_layout_window) <specification>: New method.
9356 (class tui_layout_split) <specification>: New method.
9357
416eb92d
TT
93582020-02-22 Tom Tromey <tom@tromey.com>
9359
9360 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9361 * tui/tui-win.c (window_name_completer): Update comment.
9362 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9363 Declare method.
9364 (class tui_layout_window) <replace_window>: Likewise.
9365 (class tui_layout_split) <replace_window>: Likewise.
9366 (tui_set_layout): Don't declare.
9367 (tui_set_initial_layout): Declare function.
9368 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9369 (asm_regs_layout): New globals.
9370 (tui_current_layout, show_layout): Remove.
9371 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9372 (find_layout, tui_apply_layout): New function.
9373 (layout_completer): Remove.
9374 (tui_next_layout): Reimplement.
9375 (tui_next_layout_command): New function.
9376 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9377 (tui_regs_layout): Reimplement.
9378 (tui_regs_layout_command): New function.
9379 (extract_display_start_addr): Rewrite.
9380 (next_layout, prev_layout): Remove.
9381 (tui_layout_window::replace_window): New method.
9382 (tui_layout_split::replace_window): New method.
9383 (destroy_layout): New function.
9384 (layout_list): New global.
9385 (add_layout_command): New function.
9386 (initialize_layouts): Update.
9387 (tui_layout_command): New function.
9388 (_initialize_tui_layout): Install "layout" commands.
9389 * tui/tui-data.h (enum tui_layout_type): Remove.
9390 (tui_current_layout): Don't declare.
9391
0dbc2fc7
TT
93922020-02-22 Tom Tromey <tom@tromey.com>
9393
9394 * tui/tui-regs.c (tui_reg_layout): Remove.
9395 (tui_reg_command): Use tui_regs_layout.
9396 * tui/tui-layout.h (tui_reg_command): Declare.
9397 * tui/tui-layout.c (tui_reg_command): New function.
9398
5afe342e
TT
93992020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui.c (tui_rl_delete_other_windows): Call
9402 tui_remove_some_windows.
9403 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9404 Declare method.
9405 (class tui_layout_window) <remove_windows>: New method.
9406 (class tui_layout_split) <remove_windows>: Declare.
9407 (tui_remove_some_windows): Declare.
9408 * tui/tui-layout.c (tui_remove_some_windows): New function.
9409 (tui_layout_split::remove_windows): New method.
9410
427326a8
TT
94112020-02-22 Tom Tromey <tom@tromey.com>
9412
9413 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9414 * tui/tui-layout.h (tui_next_layout): Declare.
9415 * tui/tui-layout.c (tui_next_layout): New function.
9416
3fe12b6d
TT
94172020-02-22 Tom Tromey <tom@tromey.com>
9418
9419 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9420 correct coordinates.
9421
59b8b5d2
TT
94222020-02-22 Tom Tromey <tom@tromey.com>
9423
9424 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9425 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9426 DATA_WIN case.
9427
2a3d458b
TT
94282020-02-22 Tom Tromey <tom@tromey.com>
9429
9430 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9431 TUI_DISASM_WIN, not tui_win_list.
9432
3f0cbb04
TT
94332020-02-22 Tom Tromey <tom@tromey.com>
9434
9435 * valprint.c (generic_val_print_enum_1)
9436 (val_print_type_code_flags): Style member names.
9437 * rust-lang.c (val_print_struct, rust_print_enum)
9438 (rust_print_struct_def, rust_internal_print_type): Style member
9439 names.
9440 * p-valprint.c (pascal_object_print_value_fields): Style member
9441 names. Only call fprintf_symbol_filtered for static members.
9442 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9443 * f-valprint.c (f_val_print): Style member names.
9444 * f-typeprint.c (f_type_print_base): Style member names.
9445 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9446 call fprintf_symbol_filtered for static members.
9447 (cp_print_class_member): Style member names.
9448 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9449 member names.
9450 * ada-valprint.c (ada_print_scalar): Style enum names.
9451 (ada_val_print_enum): Likewise.
9452 * ada-typeprint.c (print_enum_type): Style enum names.
9453
d4d947ae
TT
94542020-02-21 Tom Tromey <tom@tromey.com>
9455
9456 * psympriv.h (struct partial_symtab): Update comment.
9457
e94e944b
TT
94582020-02-21 Tom Tromey <tromey@adacore.com>
9459
9460 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9461 type is CORE_ADDR.
9462
1eb73179
TV
94632020-02-21 Tom de Vries <tdevries@suse.de>
9464
9465 PR gdb/25534
9466 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9467 if dependencies[i]->user != NULL.
9468
4f180d53
AT
94692020-02-21 Ali Tamur <tamur@google.com>
9470
9471 * dwarf2/read.c (dwarf2_name): Add null check.
9472
22b6cd70
TT
94732020-02-20 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9476 ">=", in binary search.
9477 (dwarf2_find_containing_comp_unit): New overload.
9478 (run_test): New self-test.
9479 (_initialize_dwarf2_read): Register new test.
9480
bd0cf5a6
NC
94812020-02-20 Nelson Chu <nelson.chu@sifive.com>
9482
9483 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9484 * riscv-tdep.h: Likewise.
9485 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9486 rv32-only CSR.
9487 * features/riscv/64bit-csr.xml: Regenerated.
9488
3f702acd
SDJ
94892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9490 Tom Tromey <tom@tromey.com>
9491
9492 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9493 of 'fputc_unfiltered'.
9494 (putchar_unfiltered): Call 'fputc_unfiltered'.
9495 (fputc_unfiltered): Call 'fputs_unfiltered'.
9496
d13c7322
AB
94972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * config.in: Regenerate.
9500 * configure: Regenerate.
9501 * configure.ac: Add --with-python-libdir option.
9502 * main.c: Use WITH_PYTHON_LIBDIR.
9503
869d8950
TT
95042020-02-19 Tom Tromey <tom@tromey.com>
9505
9506 * symtab.c (general_symbol_info::compute_and_set_names): Use
9507 obstack_strndup. Simplify call to symbol_set_demangled_name.
9508
298e9637
SM
95092020-02-19 Simon Marchi <simon.marchi@efficios.com>
9510
9511 * dwarf2/read.c (allocate_signatured_type_table,
9512 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9513 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9514 Remove objfile parameter, update all callers.
9515
08410482
DE
95162020-02-19 Doug Evans <dje@google.com>
9517
9518 PR rust/25535
9519 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9520 rust_enum_variant calculation.
9521
dfdeeca1
TT
95222020-02-19 Tom Tromey <tromey@adacore.com>
9523
9524 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9525
2ef5453b
TT
95262020-02-19 Tom Tromey <tromey@adacore.com>
9527
9528 * ada-lang.c (cache_symbol): Use obstack_strdup.
9529
9f1528a1
AB
95302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 * configure: Regenerate.
9533
d3c22fa8
TT
95342020-02-19 Tom Tromey <tromey@adacore.com>
9535
9536 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9537 NULL check.
9538
bf84f706
MR
95392020-02-19 Maciej W. Rozycki <macro@wdc.com>
9540
9541 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9542
d1c9b20f
AB
95432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9546 if GDBSERVER is not defined.
9547 (riscv_tdesc_cache): Likewise, also store const target_desc.
9548 (STATIC_IN_GDB): Define.
9549 (riscv_create_target_description): Update declaration with
9550 STATIC_IN_GDB.
9551 (riscv_lookup_target_description): New function, only define if
9552 GDBSERVER is not defined.
9553 * arch/riscv.h (riscv_create_target_description): Declare only
9554 when GDBSERVER is defined.
9555 (riscv_lookup_target_description): New declaration when GDBSERVER
9556 is not defined.
9557 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9558 (riscv_linux_read_features): ...this, and return
9559 riscv_gdbarch_features instead of target_desc.
9560 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9561 (riscv_linux_read_description): Rename to...
9562 (riscv_linux_read_features): ...this.
9563 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9564 Update to use riscv_gdbarch_features and
9565 riscv_lookup_target_description.
9566 * riscv-tdep.c (riscv_find_default_target_description): Use
9567 riscv_lookup_target_description instead of
9568 riscv_create_target_description.
9569
373d7ac0
SM
95702020-02-18 Simon Marchi <simon.marchi@efficios.com>
9571
9572 * valprint.c (generic_val_print_enum_1): When printing a flag
9573 enum with value 0 and there is no enumerator with value 0, print
9574 just "0" instead of "(unknown: 0x0)".
9575
b29a2df0
SM
95762020-02-18 Simon Marchi <simon.marchi@efficios.com>
9577
9578 * valprint.c (generic_val_print_enum_1): Print unknown part of
9579 flag enum in hex.
9580
6740f0cc
SM
95812020-02-18 Simon Marchi <simon.marchi@efficios.com>
9582
9583 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9584 flag enums to contain duplicate enumerators.
9585 * valprint.c (generic_val_print_enum_1): Update comment.
9586
edd45eb0
SM
95872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * dwarf2/read.c: Include "count-one-bits.h".
9590 (update_enumeration_type_from_children): If an enumerator has
9591 multiple bits set, don't treat the enumeration as a "flag enum".
9592 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9593 of flag enums have 0 or 1 bit set.
9594
6d0cf446
BE
95952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9596
9597 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9598 conversion.
9599 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9600 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9601 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9602 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9603 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9604
7001c1b7
SM
96052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9606
9607 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9608
fdb61c6c
SM
96092020-02-14 Simon Marchi <simon.marchi@efficios.com>
9610
9611 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9612 displaced_step_closure_up.
9613 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9614 (struct displaced_step_closure_up):
9615 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9616 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9617 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9618 Likewise.
9619 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9620 * gdbarch.c, gdbarch.h: Re-generate.
9621 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9622 displaced_step_closure_up.
9623 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9624 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9625 * infrun.h (displaced_step_closure_up): New type alias.
9626 (struct displaced_step_inferior_state) <step_closure>: Change
9627 type to displaced_step_closure_up.
9628 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9629 displaced_step_closure_up.
9630 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9631
a4a38eb4
TT
96322020-02-14 Tom Tromey <tom@tromey.com>
9633
9634 * minidebug.c (gnu_debug_key): New global.
9635 (find_separate_debug_file_in_section): Use it.
9636
e8217e61
SM
96372020-02-14 Simon Marchi <simon.marchi@efficios.com>
9638
9639 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9640 std::unique_ptr.
9641 * gdbarch.c: Re-generate.
9642 * gdbarch.h: Re-generate.
9643 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9644 change.
9645 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9646 type to std::unique_ptr.
9647 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9648 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9649 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9650 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9651 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9652 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9653 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9654 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9655 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9656
d8d83535
SM
96572020-02-14 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9660 std::unique_ptr.
9661 (displaced_step_clear): Rename to...
9662 (displaced_step_reset): ... this. Just call displaced->reset ().
9663 (displaced_step_clear_cleanup): Rename to...
9664 (displaced_step_reset_cleanup): ... this.
9665 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9666 (displaced_step_fixup): Likewise.
9667 (resume_1): Likewise.
9668 (handle_inferior_event): Restore child's memory before calling
9669 displaced_step_fixup on the parent.
9670 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9671 to std::unique_ptr.
9672 <step_closure>: Change type to std::unique_ptr.
9673
5f661e03
SM
96742020-02-14 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * arm-tdep.c: Include count-one-bits.h.
9677 (cleanup_block_store_pc): Use count_one_bits.
9678 (cleanup_block_load_pc): Use count_one_bits.
9679 (arm_copy_block_xfer): Use count_one_bits.
9680 (thumb2_copy_block_xfer): Use count_one_bits.
9681 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9682 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9683 (thumb_get_next_pcs_raw): Use count_one_bits.
9684 (arm_get_next_pcs_raw): Use count_one_bits_l.
9685 * arch/arm.c (bitcount): Remove.
9686 * arch/arm.h (bitcount): Remove.
9687
8084e579
TT
96882020-02-14 Tom Tromey <tromey@adacore.com>
9689
9690 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9691 Update.
9692 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9693 * dwarf2/loc.c (call_site_find_chain_1): Return
9694 unique_xmalloc_ptr.
9695 (call_site_find_chain): Likewise.
9696
258bf0ee
RB
96972020-02-14 Richard Biener <rguenther@suse.de>
9698
9699 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9700 on expression with division operators.
9701
f98a8458
AKS
97022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9703
9704 * MAINTAINERS (Write After Approval): Adding myself.
9705
d1437c0e
TT
97062020-02-12 Tom Tromey <tom@tromey.com>
9707
9708 * event-loop.c (event_data, gdb_event, event_handler_func):
9709 Remove.
9710
3d4560f7
TT
97112020-02-12 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9714 (dwarf2_frame_objfile_data): Add comment.
9715 (find_comp_unit, set_comp_unit): New functions.
9716 (dwarf2_frame_find_fde): Use find_comp_unit.
9717 (dwarf2_build_frame_info): Use set_comp_unit.
9718
21982304
TT
97192020-02-12 Tom Tromey <tom@tromey.com>
9720
9721 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9722 (comp_unit): Don't initialize objfile.
9723 (execute_cfa_program): Add text_offset parameter.
9724 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9725 (dwarf2_frame_cache): Update.
9726 (dwarf2_build_frame_info): Don't set "objfile" member.
9727
4debb237
TT
97282020-02-12 Tom Tromey <tom@tromey.com>
9729
9730 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9731 (decode_frame_entry): Likewise.
9732 (dwarf2_build_frame_info): Update.
9733
0d404d44
TT
97342020-02-12 Tom Tromey <tom@tromey.com>
9735
9736 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9737 (decode_frame_entry_1): Use the comp_unit obstack.
9738
a7a3ae5c
TT
97392020-02-12 Tom Tromey <tom@tromey.com>
9740
9741 * dwarf2/frame.c (struct comp_unit): Add initializers and
9742 constructor.
9743 (dwarf2_frame_objfile_data): Store a comp_unit.
9744 (dwarf2_frame_find_fde): Update.
9745 (dwarf2_build_frame_info): Use "new".
9746
a9d65418
TT
97472020-02-12 Tom Tromey <tom@tromey.com>
9748
9749 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9750 (dwarf2_fde_table): Typedef for std::vector.
9751 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9752 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9753 (decode_frame_entry): Update.
9754 (dwarf2_build_frame_info): Use "new".
9755
7559c217
CB
97562020-02-12 Christian Biesinger <cbiesinger@google.com>
9757
9758 * arm-tdep.c (arm_gdbarch_init): Update.
9759 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9760 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9761 have_neon, is_m>: Change to bool.
9762
aeefc73c
CB
97632020-02-12 Christian Biesinger <cbiesinger@google.com>
9764
9765 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9766
d27b8e5f
TT
97672020-02-12 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9770
cd5900f3
HD
97712020-02-12 Hannes Domani <ssbssa@yahoo.de>
9772
9773 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9774 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9775
f056b22b
TT
97762020-02-11 Tom Tromey <tom@tromey.com>
9777
9778 * psymtab.h: Update comment.
9779
f92ff6b5
TT
97802020-02-11 Tom Tromey <tom@tromey.com>
9781
9782 * gdb_obstack.h (struct auto_obstack): Use
9783 DISABLE_COPY_AND_ASSIGN.
9784
3fd6912b
TT
97852020-02-11 Tom Tromey <tom@tromey.com>
9786
9787 * dwarf2/frame.h (struct objfile): Don't forward declare.
9788
69ed9b74
CB
97892020-02-11 Christian Biesinger <cbiesinger@google.com>
9790
9791 * cris-tdep.c (cris_supply_gregset): Change signature to match
9792 what struct regset expects.
9793 (cris_regset): New struct.
9794 (fetch_core_registers): Remove.
9795 (cris_iterate_over_regset_sections): New function.
9796 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9797 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9798
bda874f6
CB
97992020-02-11 Christian Biesinger <cbiesinger@google.com>
9800
9801 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9802 registers.
9803
754e1564
CB
98042020-02-11 Christian Biesinger <cbiesinger@google.com>
9805
9806 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9807
8ddd8e0e
SM
98082020-02-11 Simon Marchi <simon.marchi@efficios.com>
9809
9810 * configure: Re-generate.
9811
898e7f60
SM
98122020-02-11 Simon Marchi <simon.marchi@efficios.com>
9813
9814 * configure: Re-generate.
9815
58df732b
SM
98162020-02-11 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * acinclude: Update warning.m4 path.
9819 * warning.m4: Move to gdbsupport.
9820
da5bd37e
TT
98212020-02-11 Tom Tromey <tromey@adacore.com>
9822
9823 * remote.c (remote_console_output): Update.
9824 * printcmd.c (printf_command): Update.
9825 * event-loop.c (gdb_wait_for_event): Update.
9826 * linux-nat.c (sigchld_handler): Update.
9827 * remote-sim.c (gdb_os_write_stdout): Update.
9828 (gdb_os_flush_stdout): Update.
9829 (gdb_os_flush_stderr): Update.
9830 (gdb_os_write_stderr): Update.
9831 * exceptions.c (print_exception): Update.
9832 * remote-fileio.c (remote_fileio_func_read): Update.
9833 (remote_fileio_func_write): Update.
9834 * tui/tui.c (tui_enable): Update.
9835 * tui/tui-interp.c (tui_interp::init): Update.
9836 * utils.c (init_page_info): Update.
9837 (putchar_unfiltered, fputc_unfiltered): Update.
9838 (gdb_flush): Update.
9839 (emit_style_escape): Update.
9840 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9841 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9842 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9843 (stderr_file::write): Update.
9844 (stderr_file::puts): Update.
9845 * ui-file.h (ui_file_isatty, ui_file_write)
9846 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9847 (ui_file_puts): Don't declare.
9848
85f0dd3c
TV
98492020-02-10 Tom de Vries <tdevries@suse.de>
9850
9851 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9852 sentinel to char *.
9853
2e927613
TV
98542020-02-09 Tom de Vries <tdevries@suse.de>
9855
9856 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9857 filename if it matches "<artificial>".
9858
6bafc845
HD
98592020-02-09 Hannes Domani <ssbssa@yahoo.de>
9860
9861 * windows-tdep.c (struct enum_value_name): New struct.
9862 (create_enum): New function.
9863 (windows_get_siginfo_type): Create and use enum types.
9864
7928d571
HD
98652020-02-09 Hannes Domani <ssbssa@yahoo.de>
9866
9867 * NEWS: Mention $_siginfo support for Windows.
9868 * windows-nat.c (handle_exception): Set siginfo_er.
9869 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9870 (windows_xfer_siginfo): New function.
9871 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9872 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9873 (init_windows_gdbarch_data): New function.
9874 (get_windows_gdbarch_data): New function.
9875 (windows_get_siginfo_type): New function.
9876 (windows_init_abi): Register windows_get_siginfo_type.
9877 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9878
6751ebae
TT
98792020-02-08 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9882 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9883 <keep>: Declare method.
9884 <m_keep>: Remove member.
9885 <~cutu_reader>: Remove.
9886 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9887 (cutu_reader::cutu_reader): Update.
9888 (cutu_reader::keep): Rename from ~cutu_reader.
9889 (process_psymtab_comp_unit, build_type_psymtabs_1)
9890 (process_skeletonless_type_unit, load_partial_comp_unit)
9891 (load_full_comp_unit, dwarf2_read_addr_index)
9892 (read_signatured_type): Update.
9893
135f5437
TT
98942020-02-08 Tom Tromey <tom@tromey.com>
9895
9896 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9897 "want_partial_unit" parameter.
9898 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9899 Inline check for DW_TAG_partial_unit.
9900 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9901
9f66ff1c
TT
99022020-02-08 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9905 read.c.
9906 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9907 read.c.
9908
c8a7a66f
TT
99092020-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/read.c (read_address): Move to comp-unit.c.
9912 (dwarf2_rnglists_process, dwarf2_ranges_process)
9913 (read_attribute_value, dwarf_decode_lines_1)
9914 (var_decode_location, decode_locdesc): Update.
9915 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9916 read.c. Remove "cu" parameter.
9917 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9918 method.
9919
8266302d
TT
99202020-02-08 Tom Tromey <tom@tromey.com>
9921
9922 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9923 (read_indirect_line_string): Update.
9924 * dwarf2/comp-unit.c (read_offset): Remove.
9925 (read_comp_unit_head): Update.
9926 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9927 method.
9928 (read_offset): Don't declare.
9929
4057dfde
TT
99302020-02-08 Tom Tromey <tom@tromey.com>
9931
9932 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9933 * dwarf2/read.c (struct comp_unit_head): Move to
9934 dwarf2/comp-unit.h.
9935 (enum class rcuh_kind): Move to comp-unit.h.
9936 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9937 (read_comp_unit_head, error_check_comp_unit_head)
9938 (read_and_check_comp_unit_head): Move to comp-unit.c.
9939 (read_offset, dwarf_unit_type_name): Likewise.
9940 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9941 (cutu_reader::cutu_reader, read_call_site_scope)
9942 (find_partial_die, follow_die_offset): Update.
9943 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9944
24aa364d
TT
99452020-02-08 Tom Tromey <tom@tromey.com>
9946
9947 * dwarf2/read.c (read_offset_1): Move to leb.c.
9948 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9949 (dwarf_decode_macro_bytes): Update.
9950 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9951 * dwarf2/leb.h (read_offset): Declare.
9952
2c7d5afc
TT
99532020-02-08 Tom Tromey <tom@tromey.com>
9954
9955 * dwarf2/read.c (dwarf2_section_size): Remove.
9956 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9957 Update.
9958 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9959
4075cb26
TT
99602020-02-08 Tom Tromey <tom@tromey.com>
9961
9962 * dwarf2/read.c (read_initial_length): Move to leb.c.
9963 * dwarf2/leb.h (read_initial_length): Declare.
9964 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9965 handle_nonstd parameter.
9966 * dwarf2/frame.c (read_initial_length): Remove.
9967 (decode_frame_entry_1): Update.
9968
09ba997f
TT
99692020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2/loc.c (dwarf2_find_location_expression)
9972 (dwarf_evaluate_loc_desc::get_tls_address)
9973 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9974 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9975 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9976 (dwarf2_compile_property_to_c)
9977 (dwarf2_loc_desc_get_symbol_read_needs)
9978 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9979 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9980 (loclist_describe_location, loclist_tracepoint_var_ref)
9981 (loclist_generate_c_location): Update.
9982 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9983 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9984 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9985 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9986 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9987 (dwarf2_per_cu_data::addr_size)
9988 (dwarf2_per_cu_data::ref_addr_size)
9989 (dwarf2_per_cu_data::text_offset)
9990 (dwarf2_per_cu_data::addr_type): Now methods.
9991 (per_cu_header_read_in): Make per_cu "const".
9992 (dwarf2_version): Remove.
9993 (dwarf2_per_cu_data::int_type): Now a method.
9994 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9995 (set_die_type, read_array_type, read_subrange_index_type)
9996 (read_tag_string_type, read_subrange_type): Update.
9997 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9998 offset_size, ref_addr_size, text_offset, addr_type, version,
9999 objfile, int_type, addr_sized_int_type>: Declare methods.
10000
96c738c0
TT
100012020-02-08 Tom Tromey <tom@tromey.com>
10002
10003 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10004 Move earlier.
10005
8fdd972c
TT
100062020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.h (dwarf_line_debug): Declare.
10009 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10010 * dwarf2/read.c: Move line_header code to new files.
10011 (dwarf_line_debug): No longer static.
10012 * dwarf2/line-header.c: New file.
10013 * dwarf2/line-header.h: New file.
10014
03075812
TT
100152020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (struct line_header) <file_full_name,
10018 file_file_name>: Return unique_xmalloc_ptr.
10019 (line_header::file_file_name): Update.
10020 (line_header::file_full_name): Update.
10021 (dw2_get_file_names_reader): Update.
10022 (macro_start_file): Update.
10023
bb822404
TT
100242020-02-08 Tom Tromey <tom@tromey.com>
10025
10026 * dwarf2/read.c (struct line_header) <file_full_name,
10027 file_file_name>: Declare methods.
10028 (dw2_get_file_names_reader): Update.
10029 (file_file_name): Now a method.
10030 (file_full_name): Likewise.
10031 (macro_start_file): Update.
10032
009b64fc
TT
100332020-02-08 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/read.c (dwarf_always_disassemble)
10036 (show_dwarf_always_disassemble): Move to loc.c.
10037 (_initialize_dwarf2_read): Move "always-disassemble" registration
10038 to loc.c.
10039 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10040 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10041 static.
10042 (show_dwarf_always_disassemble): Move from read.c.
10043 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10044
5895093f
TT
100452020-02-08 Tom Tromey <tom@tromey.com>
10046
10047 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10048 (create_quick_file_names_table): Return htab_up.
10049 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10050 Update.
10051 * dwarf2/read.h (struct dwarf2_per_objfile)
10052 <quick_file_names_table>: Now htab_up.
10053
b3b32279
TT
100542020-02-08 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10057
1d33d811
TT
100582020-02-08 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10061 Rewrite.
10062 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10063 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10064 (abbrev_table::abbrev_table): No longer inline.
10065 (ABBREV_HASH_SIZE): Remove.
10066 (abbrev_table::m_abbrevs): Now an htab_up.
10067
86de1d91
TT
100682020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10071 (cutu_reader): Update.
10072 (build_type_psymtabs_1): Update.
10073 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10074 (abbrev_table::alloc_abbrev): Update.
10075 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10076 (abbrev_table::read): New static method, renamed from
10077 abbrev_table_read_table.
10078 (abbrev_table::alloc_abbrev)
10079 (abbrev_table::add_abbrev): Now private.
10080 (abbrev_table::abbrev_table): Now private.
10081 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10082
0335378b
TT
100832020-02-08 Tom Tromey <tom@tromey.com>
10084
10085 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10086 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10087 htab_up.
10088
48b490f2
TT
100892020-02-08 Tom Tromey <tom@tromey.com>
10090
10091 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10092 htab_up.
10093 (lookup_dwo_unit_in_dwp): Update.
10094 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10095 on obstack.
10096
bc68fb19
TT
100972020-02-08 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10100 obstack.
10101
d15acc42
TT
101022020-02-08 Tom Tromey <tom@tromey.com>
10103
10104 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10105 line_header_hash.
10106 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10107 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10108 Change type to htab_up.
10109
eaa5fa8b
TT
101102020-02-08 Tom Tromey <tom@tromey.com>
10111
10112 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10113 htab_up. Don't allocate on obstack.
10114 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10115 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10116 Change type to htab_up.
10117
b0b6a987
TT
101182020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10121 Change type to htab_up.
10122 * dwarf2/read.c (create_signatured_type_table_from_index)
10123 (create_signatured_type_table_from_debug_names)
10124 (create_all_type_units, add_type_unit)
10125 (lookup_dwo_signatured_type, lookup_signatured_type)
10126 (process_skeletonless_type_unit): Update.
10127 (create_debug_type_hash_table, create_debug_types_hash_table):
10128 Change type of types_htab.
10129 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10130 htab_up. Don't allocate on obstack.
10131 (create_cus_hash_table): Change type of cus_htab parameter.
10132 (struct dwo_file) <cus, tus>: Now htab_up.
10133 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10134 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10135 (queue_and_load_all_dwo_tus): Update.
10136 * dwarf2/index-write.c (write_gdbindex): Update.
10137 (write_debug_names): Update.
10138
39856def
TT
101392020-02-08 Tom Tromey <tom@tromey.com>
10140
10141 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10142 dwarf2/read.c. Remove "next" member. Add constructor ntad
10143 destructor.
10144 (struct dwarf2_per_objfile) <queue>: New member.
10145 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10146 dwarf2/read.h.
10147 (dwarf2_queue, dwarf2_queue_tail): Remove.
10148 (class dwarf2_queue_guard): Add parameter to constructor. Use
10149 DISABLE_COPY_AND_ASSIGN.
10150 <m_per_objfile>: New member.
10151 <~dwarf2_queue_guard>: Rewrite.
10152 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10153 Update.
10154 (~dwarf2_queue_item): New.
10155
3e225074
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2/read.c (struct die_info) <has_children>: New member.
10159 (dw2_get_file_names_reader): Remove has_children.
10160 (dw2_get_file_names): Update.
10161 (read_cutu_die_from_dwo): Remove has_children.
10162 (cutu_reader::init_tu_and_read_dwo_dies)
10163 (cutu_reader::cutu_reader): Update.
10164 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10165 Remove has_children.
10166 (build_type_psymtabs_1, process_skeletonless_type_unit)
10167 (load_partial_comp_unit, load_full_comp_unit): Update.
10168 (create_dwo_cu_reader): Remove has_children.
10169 (create_cus_hash_table, read_die_and_children): Update.
10170 (read_full_die_1,read_full_die): Remove has_children.
10171 (read_signatured_type): Update.
10172 (class cutu_reader) <has_children>: Remove.
10173
82ca8957
TT
101742020-02-08 Tom Tromey <tom@tromey.com>
10175
10176 * dwarf2/expr.c: Rename from dwarf2expr.c.
10177 * dwarf2/expr.h: Rename from dwarf2expr.h.
10178 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10179 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10180 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10181 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10182 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10183 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10184 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10185 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10186 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10187 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10188 * dwarf2/loc.c: Rename from dwarf2loc.c.
10189 * dwarf2/loc.h: Rename from dwarf2loc.h.
10190 * dwarf2/read.c: Rename from dwarf2read.c.
10191 * dwarf2/read.h: Rename from dwarf2read.h.
10192 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10193 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10194 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10195 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10196 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10197 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10198 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10199 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10200 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10201 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10202 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10203 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10204 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10205 Update.
10206 * Makefile.in (COMMON_SFILES): Update.
10207 (HFILES_NO_SRCDIR): Update.
10208
9e35d499
TT
102092020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10212 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10213
1eba2311
TT
102142020-02-08 Tom Tromey <tom@tromey.com>
10215
10216 * dwarf2read.h (struct die_info): Don't declare.
10217
e41c2da2
TT
102182020-02-08 Tom Tromey <tom@tromey.com>
10219
10220 * dwarf2read.h (die_info_ptr): Remove typedef.
10221
4fc6c0d5
TT
102222020-02-08 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2read.c (read_call_site_scope)
10225 (handle_data_member_location, dwarf2_add_member_fn)
10226 (mark_common_block_symbol_computed, read_common_block)
10227 (attr_to_dynamic_prop, partial_die_info::read)
10228 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10229 (dwarf2_symbol_mark_computed, set_die_type): Update.
10230 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10231 method.
10232 (attr_form_is_block): Don't declare.
10233 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10234
cd6c91b4
TT
102352020-02-08 Tom Tromey <tom@tromey.com>
10236
10237 * dwarf2read.c (dwarf2_find_base_address, )
10238 (read_call_site_scope, rust_containing_type)
10239 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10240 (handle_data_member_location, dwarf2_add_member_fn)
10241 (get_alignment, read_structure_type, process_structure_scope)
10242 (mark_common_block_symbol_computed, read_common_block)
10243 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10244 (partial_die_info::read, read_attribute_value, new_symbol)
10245 (lookup_die_type, dwarf2_get_ref_die_offset)
10246 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10247 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10248 (dwarf2_symbol_mark_computed): Update.
10249 * dwarf2/attribute.h (struct attribute) <value_as_address,
10250 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10251 methods.
10252 (value_as_address, attr_form_is_section_offset)
10253 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10254 * dwarf2/attribute.c (attribute::value_as_address)
10255 (attribute::form_is_section_offset, attribute::form_is_constant)
10256 (attribute::form_is_ref): Now methods.
10257
162dce55
TT
102582020-02-08 Tom Tromey <tom@tromey.com>
10259
10260 * dwarf2read.c (struct attribute, DW_STRING)
10261 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10262 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10263 (attr_form_is_block, attr_form_is_section_offset)
10264 (attr_form_is_constant, attr_form_is_ref): Move.
10265 * dwarf2/attribute.h: New file.
10266 * dwarf2/attribute.c: New file, from dwarf2read.c.
10267 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10268
3054dd54
TT
102692020-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10272 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10273 Move.
10274 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10275 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10276 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10277 abbrev.c.
10278 * dwarf2/abbrev.h: New file.
10279 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10280 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10281
96b79293
TT
102822020-02-08 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10285 (dwarf2_section_size, dwarf2_get_section_info)
10286 (create_signatured_type_table_from_debug_names)
10287 (create_addrmap_from_aranges, read_debug_names_from_section)
10288 (get_gdb_index_contents_from_section, read_comp_unit_head)
10289 (error_check_comp_unit_head, read_abbrev_offset)
10290 (create_debug_type_hash_table, init_cu_die_reader)
10291 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10292 (read_comp_units_from_section, create_cus_hash_table)
10293 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10294 (create_dwp_v2_section, dwarf2_rnglists_process)
10295 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10296 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10297 (read_indirect_string_from_dwz, read_addr_index_1)
10298 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10299 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10300 (fill_in_loclist_baton): Update.
10301 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10302 get_containing_section, get_bfd_owner, get_bfd_section,
10303 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10304 (dwarf2_read_section, get_section_name, get_section_file_name)
10305 (get_containing_section, get_section_bfd_owner)
10306 (get_section_bfd_section, get_section_name, get_section_file_name)
10307 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10308 declare.
10309 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10310 (dwarf2_section_info::get_bfd_owner)
10311 (dwarf2_section_info::get_bfd_section)
10312 (dwarf2_section_info::get_name)
10313 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10314 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10315 (dwarf2_section_info::read): Now methods.
10316 * dwarf-index-write.c (class debug_names): Update.
10317
2c86cff9
TT
103182020-02-08 Tom Tromey <tom@tromey.com>
10319
10320 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10321 Move to dwarf2/section.h.
10322 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10323 (get_section_bfd_section, get_section_name)
10324 (get_section_file_name, get_section_id, get_section_flags)
10325 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10326 dwarf2/section.c.
10327 * dwarf2/section.h: New file.
10328 * dwarf2/section.c: New file, from dwarf2read.c.
10329 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10330
f4382c45
TT
103312020-02-08 Tom Tromey <tom@tromey.com>
10332
10333 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10334 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10335 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10336 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10337 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10338 * dwarf2/leb.h: New file, from dwarf2read.c.
10339 * dwarf2/leb.c: New file, from dwarf2read.c.
10340 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10341 Remove.
10342 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10343 (COMMON_SFILES): Add dwarf2/leb.c.
10344
01840b7a
JB
103452020-02-08 Joel Brobecker <brobecker@adacore.com>
10346
10347 GDB 9.1 released.
10348
dfcb27e4
IB
103492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10350
10351 PR gdb/25190:
aac66a4c
SM
10352 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10353 * gdb/remote.c (remote_console_output): Update.
10354 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10355 (ui_file_puts): ...this.
10356 * gdb/ui-file.h (ui_file_puts): Add declaration.
10357 * gdb/utils.c (emit_style_escape): Update.
10358 (flush_wrap_buffer): Update.
10359 (fputs_maybe_filtered): Update.
10360 (fputs_unfiltered): Add function.
dfcb27e4 10361
faa17681
IB
103622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10363
aac66a4c
SM
10364 * gdb/event-loop.c (gdb_wait_for_event): Update.
10365 * gdb/printcmd.c (printf_command): Update.
10366 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10367 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10368 (gdb_os_flush_stderr): Update.
10369 * gdb/remote.c (remote_console_output): Update.
10370 * gdb/ui-file.c (gdb_flush): Rename to...
10371 (ui_file_flush): ...this.
10372 (stderr_file::write): Update.
10373 (stderr_file::puts): Update.
10374 * gdb/ui-file.h (gdb_flush): Rename to...
10375 (ui_file_flush): ...this.
10376 * gdb/utils.c (gdb_flush): Add function.
10377 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10378
5abbbe1d
TT
103792020-02-07 Tom Tromey <tromey@adacore.com>
10380
10381 PR breakpoints/24915:
10382 * source.c (find_and_open_source): Do not check basenames_may_differ.
10383
919adfe8
TT
103842020-02-07 Tom Tromey <tom@tromey.com>
10385
10386 * README: Update gdbserver documentation.
10387 * gdbserver: Move to top level.
10388 * configure.tgt (build_gdbserver): Remove.
10389 * configure.ac: Remove --enable-gdbserver.
10390 * configure: Rebuild.
10391 * Makefile.in (distclean): Don't mention gdbserver.
10392
1d5d29e7
SV
103932020-02-06 Shahab Vahedi <shahab@synopsys.com>
10394
10395 * source-cache.c (source_cache::ensure): Surround
10396 get_plain_source_lines with a try/catch.
10397 (source_cache::get_line_charpos): Get rid of try/catch
10398 and only check for the return value of "ensure".
10399 * tui/tui-source.c (tui_source_window::set_contents):
10400 Simplify "nlines" calculation.
10401
6eb1129c
SV
104022020-02-06 Shahab Vahedi <shahab@synopsys.com>
10403
10404 * MAINTAINERS (Write After Approval): Add myself.
10405
c6a42d11
CB
104062020-02-05 Christian Biesinger <cbiesinger@google.com>
10407
10408 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10409 function call.
10410
c8ecdda6
CB
104112020-02-05 Christian Biesinger <cbiesinger@google.com>
10412
10413 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10414
f6480e70
MR
104152020-02-05 Maciej W. Rozycki <macro@wdc.com>
10416
10417 * nat/riscv-linux-tdesc.h: New file.
10418 * nat/riscv-linux-tdesc.c: New file, taking code from...
10419 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10420 ... here.
10421 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10422 NATDEPFILES.
10423
dcc9fbc6
AB
104242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10425
10426 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10427 we don't set the fake simulator ptid to the null_ptid.
10428
719546c4
SM
104292020-02-03 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10432 * gdbthread.h (class thread_info) <resumed>: Likewise.
10433 * infrun.c (resume_1): Likewise.
10434 (proceed): Likewise.
10435 (infrun_thread_stop_requested): Likewise.
10436 (stop_all_threads): Likewise.
10437 (handle_inferior_event): Likewise.
10438 (restart_threads): Likewise.
10439 (finish_step_over): Likewise.
10440 (keep_going_stepped_thread): Likewise.
10441 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10442 (linux_handle_extended_wait): Likewise.
10443 * record-btrace.c (get_thread_current_frame_id): Likewise.
10444 * record-full.c (record_full_wait_1): Likewise.
10445 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10446 * target.c (target_resume): Likewise.
10447 * thread.c (set_running_thread): Likewise.
10448
e409c542
AKS
104492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10450
10451 * f-valprint.c (f77_print_array_1): Changed datatype of index
10452 variable to LONGEST from int to enable it to contain bound
10453 values correctly.
10454
ee98c0da
MR
104552020-02-03 Maciej W. Rozycki <macro@wdc.com>
10456
10457 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10458 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10459 offsets according to FLEN determined.
10460 (riscv_linux_nat_target::read_description): Determine FLEN
10461 dynamically.
10462 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10463 according to FLEN determined.
10464 (riscv_linux_nat_target::store_registers): Likewise.
10465
aa66aac4
SV
104662020-02-01 Shahab Vahedi <shahab@synopsys.com>
10467
10468 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10469 when reg->group is empty and reggroup is not.
10470
fd9faca8
TT
104712020-01-31 Tom Tromey <tromey@adacore.com>
10472
10473 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10474 Call beneath target's mourn_inferior after unpushing.
10475
42330a68
AB
104762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 PR tui/9765
10479 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10480 have enough lines to fill the screen, still return the lowest
10481 address we found.
10482
7a27a45b
AB
104832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10484
10485 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10486 '-', '<', and '>' commands.
10487
c47f70e2
PA
104882020-01-29 Pedro Alves <palves@redhat.com>
10489 Sergio Durigan Junior <sergiodj@redhat.com>
10490
10491 * infcmd.c (construct_inferior_arguments): Assert that
10492 'argc' is greater than 0.
10493
5133a315
LM
104942020-01-29 Luis Machado <luis.machado@linaro.org>
10495
10496 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10497 (BRK_INSN_MASK): Define to 0xd4200000.
10498 (aarch64_program_breakpoint_here_p): New function.
10499 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10500 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10501 breakpoint.c.
10502 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10503 breakpoint.h
10504 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10505 call gdbarch_program_breakpoint_here_p.
10506 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10507 default_program_breakpoint_here_p, changed return type to bool and
10508 simplified.
10509 * breakpoint.h (program_breakpoint_here): Moved prototype to
10510 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10511 return type to bool.
10512 * gdbarch.c: Regenerate.
10513 * gdbarch.h: Regenerate.
10514 * gdbarch.sh (program_breakpoint_here_p): New method.
10515 * infrun.c (handle_signal_stop): Call
10516 gdbarch_program_breakpoint_here_p.
10517
168f8c6b
TT
105182020-01-26 Tom Tromey <tom@tromey.com>
10519
10520 * ctfread.c (struct ctf_fp_info): Reindent.
10521 (_initialize_ctfread): Remove.
10522
128a391f
TT
105232020-01-26 Tom Tromey <tom@tromey.com>
10524
10525 * psymtab.c (partial_map_expand_apply)
10526 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10527 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10528 (psym_print_stats, psym_expand_symtabs_for_function)
10529 (psym_map_symbol_filenames, psym_map_matching_symbols)
10530 (psym_expand_symtabs_matching)
10531 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10532 (maintenance_check_psymtabs): Use new methods.
10533 * psympriv.h (struct partial_symtab) <readin_p,
10534 get_compunit_symtab>: New methods.
10535 <readin, compunit_symtab>: Remove members.
10536 (struct standard_psymtab): New.
10537 (struct legacy_psymtab): Derive from standard_psymtab.
10538 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10539 standard_psymtab.
10540 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10541
0494dbec
TT
105422020-01-26 Tom Tromey <tom@tromey.com>
10543
10544 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10545 read_dependencies. Add assert.
10546 * psymtab.c (partial_symtab::read_dependencies): New method.
10547 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10548 method.
10549 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10550 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10551 read_dependencies.
10552 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10553 Add assert.
10554
8566b89b
TT
105552020-01-26 Tom Tromey <tom@tromey.com>
10556
10557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10558 Call expand_psymtab.
10559 (xcoff_read_symtab): Call expand_psymtab.
10560 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10561 legacy_expand_psymtab.
10562 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10563 method.
10564 (struct legacy_psymtab) <expand_psymtab>: Implement.
10565 <legacy_expand_psymtab>: New member.
10566 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10567 (parse_partial_symbols): Set legacy_expand_psymtab.
10568 (psymtab_to_symtab_1): Change argument order. Call
10569 expand_psymtab.
10570 (new_psymtab): Set legacy_expand_psymtab.
10571 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10572 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10573 expand_psymtab.
10574 (dwarf2_psymtab::expand_psymtab): Rename from
10575 psymtab_to_symtab_1. Call expand_psymtab.
10576 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10577 (dbx_end_psymtab): Likewise.
10578 (dbx_psymtab_to_symtab_1): Change argument order. Call
10579 expand_psymtab.
10580 (dbx_read_symtab): Call expand_psymtab.
10581 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10582 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10583 (ctf_psymtab::read_symtab): Call expand_psymtab.
10584
077cbab2
TT
105852020-01-26 Tom Tromey <tom@tromey.com>
10586
10587 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10588 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10589 messages.
10590 * mdebugread.c (mdebug_read_symtab): Remove prints.
10591 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10592 assert.
10593 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10594
891813be
TT
105952020-01-26 Tom Tromey <tom@tromey.com>
10596
10597 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10598 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10599 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10600 legacy_symtab.
10601 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10602 * psymtab.c (psymtab_to_symtab): Call method.
10603 (dump_psymtab): Update.
10604 * psympriv.h (struct partial_symtab): Add virtual destructor.
10605 <read_symtab>: New method.
10606 (struct legacy_symtab): New.
10607 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10608 (struct pst_map) <pst>: Now a legacy_psymtab.
10609 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10610 (new_psymtab): Use legacy_psymtab.
10611 * dwarf2read.h (struct dwarf2_psymtab): New.
10612 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10613 * dwarf2read.c (dwarf2_create_include_psymtab)
10614 (dwarf2_build_include_psymtabs, create_type_unit_group)
10615 (create_partial_symtab, process_psymtab_comp_unit_reader)
10616 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10617 (set_partial_user): Use dwarf2_psymtab.
10618 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10619 (psymtab_to_symtab_1, process_full_comp_unit)
10620 (process_full_type_unit, dwarf2_ranges_read)
10621 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10622 (dwarf_decode_lines): Use dwarf2_psymtab.
10623 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10624 (add_address_entry_worker, write_one_signatured_type)
10625 (recursively_count_psymbols, recursively_write_psymbols)
10626 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10627 (write_debug_names): Likewise.
10628 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10629 <pst>: Now a legacy_psymtab.
10630 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10631 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10632 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10633 * ctfread.c (struct ctf_psymtab): New.
10634 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10635 ctf_psymtab.
10636 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10637 (create_partial_symtab): Return a ctf_psymtab.
10638 (scan_partial_symbols): Update.
10639
c3693a1d
TT
106402020-01-26 Tom Tromey <tom@tromey.com>
10641
10642 * xcoffread.c (xcoff_start_psymtab): Use new.
10643 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10644 renamed from start_psymtab_common.
10645 * psympriv.h (struct partial_symtab): Add new constructor.
10646 (start_psymtab_common): Don't declare.
10647 * mdebugread.c (parse_partial_symbols): Use new.
10648 * dwarf2read.c (create_partial_symtab): Use new.
10649 * dbxread.c (start_psymtab): Use new.
10650 * ctfread.c (create_partial_symtab): Use new.
10651
32caafd0
TT
106522020-01-26 Tom Tromey <tom@tromey.com>
10653
10654 * xcoffread.c (xcoff_end_psymtab): Use new.
10655 * psymtab.c (start_psymtab_common): Use new.
10656 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10657 Update.
10658 * psympriv.h (struct partial_symtab): Add parameters to
10659 constructor. Don't inline.
10660 (allocate_psymtab): Don't declare.
10661 * mdebugread.c (new_psymtab): Use new.
10662 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10663 * dbxread.c (dbx_end_psymtab): Use new.
10664
abaa2f23
TT
106652020-01-26 Tom Tromey <tom@tromey.com>
10666
10667 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10668 allocate_psymtab. Update documentation.
10669 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10670 allocate_psymtab. Do not use new.
10671 (allocate_psymtab): Use new. Update.
10672
6d94535f
TT
106732020-01-26 Tom Tromey <tom@tromey.com>
10674
10675 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10676 * psymtab.c (psym_print_stats): Update.
10677 * psympriv.h (struct partial_symtab) <readin,
10678 psymtabs_addrmap_supported, anonymous>: Now bool.
10679 * mdebugread.c (psymtab_to_symtab_1): Update.
10680 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10681 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10682 (process_full_comp_unit, process_full_type_unit): Update.
10683 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10684 * ctfread.c (psymtab_to_symtab): Update.
10685
6f17252b
TT
106862020-01-26 Tom Tromey <tom@tromey.com>
10687
10688 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10689 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10690 * psymtab.c (psymtab_storage): Delete psymtabs.
10691 (psymtab_storage::allocate_psymtab): Use new.
10692 (psymtab_storage::discard_psymtab): Use delete.
10693 * psympriv.h (struct partial_symtab): Add constructor and
10694 initializers.
10695
f6f1cebc
TT
106962020-01-26 Tom Tromey <tom@tromey.com>
10697
10698 * machoread.c: Do not include psympriv.h.
10699
e47e48f6
PW
107002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10701
10702 * NEWS: Mention the new option and the set/show commands.
10703
a2fedca9
PW
107042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10705
10706 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10707 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10708 (validate_exec_file): New variables, enums, functions.
10709 (exec_file_locate_attach, print_section_info): Style the filenames.
10710 (_initialize_exec): Install show_exec_file_mismatch_command and
10711 set_exec_file_mismatch_command.
10712 * gdbcore.h (validate_exec_file): Declare.
10713 * infcmd.c (attach_command): Call validate_exec_file.
10714 * remote.c ( remote_target::remote_add_inferior): Likewise.
10715
7ffa82e1
AB
107162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * frame.c (find_frame_sal): Move call to get_next_frame into more
10719 inner scope.
10720 * inline-frame.c (inilne_state) <inline_state>: Update argument
10721 types.
10722 (inilne_state) <skipped_symbol>: Rename to...
10723 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10724 (skip_inline_frames): Build vector of skipped symbols and use this
10725 to reate the inline_state.
10726 (inline_skipped_symbol): Add a comment and some assertions, fetch
10727 skipped symbol from the list.
10728
3d92a3e3
AB
107292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * buildsym.c (lte_is_less_than): Delete.
10732 (buildsym_compunit::end_symtab_with_blockvector): Create local
10733 lambda function to sort line table entries, and use
10734 std::stable_sort instead of std::sort.
10735 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10736 markers when looking for a previous line.
10737
94a72be7
AB
107382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * dwarf2read.c (lnp_state_machine::record_line): Include
10741 end_sequence parameter in debug print out. Record the line if we
10742 are at an end_sequence marker even if it's not the start of a
10743 statement.
10744 * symmisc.c (maintenance_print_one_line_table): Print end of
10745 sequence markers with 'END' not '0'.
10746
53af73bf
PA
107472020-01-24 Pedro Alves <palves@redhat.com>
10748
10749 PR gdb/25410
10750 * thread.c (scoped_restore_current_thread::restore): Use
10751 switch_to_inferior_no_thread.
10752 * exec.c: Include "progspace-and-thread.h".
10753 (add_target_sections, remove_target_sections):
10754 scoped_restore_current_pspace_and_thread instead of
10755 scoped_restore_current_thread.
10756 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10757 and aspace to the inferior before calling clone_program_space.
10758 Remove stale comment.
10759
3050c6f4
CB
107602020-01-24 Christian Biesinger <cbiesinger@google.com>
10761
10762 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10763 (arm_netbsd_nat_target::fetch_registers): ...this.
10764 (arm_nbsd_nat_target::store_registers): Rename to...
10765 (arm_netbsd_nat_target::store_registers): ...this.
10766
73685c7e
CB
107672020-01-24 Christian Biesinger <cbiesinger@google.com>
10768
10769 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10770 register_t.
10771
89203d40
CB
107722020-01-24 Christian Biesinger <cbiesinger@google.com>
10773
10774 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10775 Update comment.
10776 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10777 Likewise.
10778 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10779 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10780 the correct replacement (iterate_over_regset_sections).
10781 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10782 Update comment.
10783
1ba1ac88
AB
107842020-01-24 Graham Markall <graham.markall@embecosm.com>
10785
10786 PR gdb/23718
10787 * gdb/python/python.c (execute_gdb_command): Call
10788 async_enable_stdin in catch block.
10789
f3364a6d
AB
107902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10791
10792 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10793 SWITCH_THRU_ALL_UIS.
10794
733d0a67
AB
107952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10796
10797 PR tui/9765
10798 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10799 comment, add extra parameter, and update to store previous symbol
10800 when appropriate.
10801 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10802 add extra parameter.
10803 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10804 remove unneeded parameter, add try/catch around gdb_print_insn,
10805 rewrite to add items to asm_lines vector.
10806 (tui_find_backward_disassembly_start_address): New function.
10807 (tui_find_disassembly_address): Updated throughout.
10808 (tui_disasm_window::set_contents): Update for changes to
10809 tui_disassemble.
10810 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10811 number of lines to scroll.
10812
b3b3bada
SM
108132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10814
10815 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10816 (SECT_OFF_DATA): Likewise.
10817 (SECT_OFF_RODATA): Likewise.
10818 (SECT_OFF_TEXT): Likewise.
10819 (SECT_OFF_BSS): Likewise.
10820 (struct objfile) <text_section_offset, data_section_offset>: New
10821 methods.
10822 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10823 objfile::text_section_offset.
10824 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10825 * coffread.c (coff_symtab_read): Likewise.
10826 (enter_linenos): Likewise.
10827 (process_coff_symbol): Likewise.
10828 * ctfread.c (get_objfile_text_range): Likewise.
10829 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10830 Use objfile::data_section_offset.
10831 * dwarf2-frame.c (execute_cfa_program): Use
10832 objfile::text_section_offset.
10833 (dwarf2_frame_find_fde): Likewise.
10834 * dwarf2read.c (create_addrmap_from_index): Likewise.
10835 (create_addrmap_from_aranges): Likewise.
10836 (dw2_find_pc_sect_compunit_symtab): Likewise.
10837 (process_psymtab_comp_unit_reader): Likewise.
10838 (add_partial_symbol): Likewise.
10839 (add_partial_subprogram): Likewise.
10840 (process_full_comp_unit): Likewise.
10841 (read_file_scope): Likewise.
10842 (read_func_scope): Likewise.
10843 (read_lexical_block_scope): Likewise.
10844 (read_call_site_scope): Likewise.
10845 (dwarf2_rnglists_process): Likewise.
10846 (dwarf2_ranges_process): Likewise.
10847 (dwarf2_ranges_read): Likewise.
10848 (dwarf_decode_lines_1): Likewise.
10849 (new_symbol): Likewise.
10850 (dwarf2_fetch_die_loc_sect_off): Likewise.
10851 (dwarf2_per_cu_text_offset): Likewise.
10852 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10853 * hppa-tdep.c (read_unwind_info): Likewise.
10854 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10855 * psympriv.h (struct partial_symtab): Likewise.
10856 * psymtab.c (find_pc_sect_psymtab): Likewise.
10857 * solib-svr4.c (enable_break): Likewise.
10858 * stap-probe.c (relocate_address): Use
10859 objfile::data_section_offset.
10860 * xcoffread.c (enter_line_range): Use
10861 objfile::text_section_offset.
10862 (read_xcoff_symtab): Likewise.
10863
ab53f382
SM
108642020-01-23 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10867 declaration to narrower scopes.
10868
e7eee665
SM
108692020-01-23 Simon Marchi <simon.marchi@efficios.com>
10870
10871 * darwin-nat.h (struct darwin_exception_msg, enum
10872 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10873 Move up.
10874 (class darwin_nat_target) <wait_1, check_new_threads,
10875 decode_exception_message, decode_message, stop_inferior,
10876 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10877 * darwin-nat.c (darwin_check_new_threads): Rename to...
10878 (darwin_nat_target::check_new_threads): ... this.
10879 (darwin_suspend_inferior_it): Remove.
10880 (darwin_decode_exception_message): Rename to...
10881 (darwin_nat_target::decode_exception_message): ... this.
10882 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10883 (darwin_decode_message): Rename to...
10884 (darwin_nat_target::decode_message): ... this.
10885 (cancel_breakpoint): Rename to...
10886 (darwin_nat_target::cancel_breakpoint): ... this.
10887 (darwin_wait): Rename to...
10888 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10889 instead of iterate_over_inferiors.
10890 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10891 (darwin_stop_inferior): Rename to...
10892 (darwin_nat_target::stop_inferior): ... this.
10893 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10894 (darwin_init_thread_list): Rename to...
10895 (darwin_nat_target::init_thread_list): ... this.
10896 (darwin_ptrace_him): Rename to...
10897 (darwin_nat_target::ptrace_him): ... this.
10898 (darwin_nat_target::create_inferior): Pass lambda function to
10899 fork_inferior.
10900 (darwin_nat_target::detach): Call stop_inferior instead of
10901 darwin_stop_inferior.
10902 * fork-inferior.h (fork_inferior): Change init_trace_fun
10903 parameter to gdb::function_view.
10904 * fork-inferior.c (fork_inferior): Likewise.
10905
c162ed3e
HD
109062020-01-23 Hannes Domani <ssbssa@yahoo.de>
10907
10908 * i386-cygwin-tdep.c (core_process_module_section): Update.
10909 * windows-nat.c (struct lm_info_windows): Add text_offset.
10910 (windows_xfer_shared_libraries): Update.
10911 * windows-tdep.c (windows_xfer_shared_library):
10912 Add text_offset_cached argument.
10913 * windows-tdep.h (windows_xfer_shared_library): Update.
10914
a1237872
SM
109152020-01-21 Simon Marchi <simon.marchi@efficios.com>
10916
10917 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10918
b3ee6dd9
SM
109192020-01-21 Simon Marchi <simon.marchi@efficios.com>
10920
10921 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10922 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10923 replace with range-based for.
10924 (gdbsim_interrupt_inferior): Remove.
10925 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10926 with a range-based for. Inline code from
10927 gdbsim_interrupt_inferior.
10928
f9fac3c8
SM
109292020-01-21 Simon Marchi <simon.marchi@efficios.com>
10930
10931 * infrun.c (proceed): Fix indentation.
10932
f6474de9
TT
109332020-01-21 Tom Tromey <tromey@adacore.com>
10934
10935 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10936 * python/python.c (python_extension_ops): Update.
10937 (gdbpy_colorize): New function.
10938 * python/lib/gdb/__init__.py (colorize): New function.
10939 * extension.h (ext_lang_colorize): Declare.
10940 * extension.c (ext_lang_colorize): New function.
10941 * extension-priv.h (struct extension_language_ops) <colorize>: New
10942 member.
10943 * cli/cli-style.c (_initialize_cli_style): Update help text.
10944
f0c702d4
LM
109452020-01-21 Luis Machado <luis.machado@linaro.org>
10946
10947 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10948 <cond>: Change type to bool.
10949 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10950 (aarch64_displaced_step_cb): Likewise.
10951 (aarch64_displaced_step_tb): Likewise.
10952
1ab139e5
LM
109532020-01-21 Luis Machado <luis.machado@linaro.org>
10954
10955 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10956 output.
10957
0c271889
LM
109582020-01-21 Luis Machado <luis.machado@linaro.org>
10959
10960 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10961 <pc_adjust>: Adjust the documentation.
10962 (aarch64_displaced_step_fixup): Check if PC really moved before
10963 adjusting it.
10964
4d89c1c7
TT
109652020-01-19 Tom Tromey <tom@tromey.com>
10966
10967 * disasm.c (~gdb_disassembler): New destructor.
10968 (gdb_buffered_insn_length): Call disassemble_free_target.
10969 * disasm.h (class gdb_disassembler): Declare destructor. Use
10970 DISABLE_COPY_AND_ASSIGN.
10971
c0ab21c2
TT
109722020-01-19 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10975 (die_reader_func_ftype): Remove.
10976 (cutu_reader): New class.
10977 (dw2_get_file_names_reader): Remove "data" parameter.
10978 (dw2_get_file_names): Use cutu_reader.
10979 (create_debug_type_hash_table): Update.
10980 (read_cutu_die_from_dwo): Update comment.
10981 (lookup_dwo_unit): Add dwo_name parameter.
10982 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10983 die_reader_func_ftype and data parameters.
10984 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10985 Remove die_reader_func_ftype and data parameters.
10986 (~cutu_reader): New; from init_cutu_and_read_dies.
10987 (cutu_reader::cutu_reader): Rename from
10988 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10989 and data parameters.
10990 (init_cutu_and_read_dies_simple): Remove.
10991 (struct process_psymtab_comp_unit_data): Remove.
10992 (process_psymtab_comp_unit_reader): Remove data parameter; add
10993 want_partial_unit and pretend_language parameters.
10994 (process_psymtab_comp_unit): Use cutu_reader.
10995 (build_type_psymtabs_reader): Remove data parameter.
10996 (build_type_psymtabs_1): Use cutu_reader.
10997 (process_skeletonless_type_unit): Likewise.
10998 (load_partial_comp_unit_reader): Remove.
10999 (load_partial_comp_unit): Use cutu_reader.
11000 (load_full_comp_unit_reader): Remove.
11001 (load_full_comp_unit): Use cutu_reader.
11002 (struct create_dwo_cu_data): Remove.
11003 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11004 dwo_unit parameters.
11005 (create_cus_hash_table): Use cutu_reader.
11006 (struct dwarf2_read_addr_index_data): Remove.
11007 (dwarf2_read_addr_index_reader): Remove.
11008 (dwarf2_read_addr_index): Use cutu_reader.
11009 (read_signatured_type_reader): Remove.
11010 (read_signatured_type): Use cutu_reader.
11011
45bbae5c
TT
110122020-01-19 Tom Tromey <tom@tromey.com>
11013
11014 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11015 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11016 (tui_wrefresh): Declare.
11017 * tui/tui-wingeneral.c (suppress_output): New global.
11018 (tui_suppress_output, ~tui_suppress_output): New constructor and
11019 destructor.
11020 (tui_wrefresh): New function.
11021 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11022 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11023 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11024 method.
11025 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11026 tui_wrefresh.
11027 (tui_data_window::no_refresh): New method.
11028 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11029 (tui_reg_command): Use tui_suppress_output
11030 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11031 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11032 method.
11033 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11034
4f13c1c0
TT
110352020-01-19 Tom Tromey <tom@tromey.com>
11036
11037 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11038 Handle case where symtab is null.
11039
fa47e446
SM
110402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11041
11042 * linux-fork.c (one_fork_p): Simplify.
11043
26f42329
SM
110442020-01-17 Simon Marchi <simon.marchi@efficios.com>
11045
11046 * top.c (struct qt_args): Remove.
11047 (kill_or_detach): Change return type to void, replace `void *`
11048 parameter with a proper one.
11049 (print_inferior_quit_action): Likewise.
11050 (quit_confirm): Use range-based for loop to iterate over inferiors.
11051 (quit_force): Likewise.
11052
a9ac81b1
SM
110532020-01-17 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11056 `void *` parameter with proper parameters.
11057 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11058 (print_one_inferior): Change return type to void, replace `void *`
11059 parameter with proper parameters.
11060 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11061 inferiors.
11062 (get_other_inferior): Remove.
11063 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11064 inferiors.
11065
788eca49
SM
110662020-01-17 Simon Marchi <simon.marchi@efficios.com>
11067
11068 * mi/mi-interp.c (report_initial_inferior): Remove.
11069 (mi_interp::init): Use range-based for to iterate over inferiors.
11070
d9bc85b6
SM
110712020-01-17 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * python/py-inferior.c (build_inferior_list): Remove.
11074 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11075
40c94099
CB
110762020-01-16 Christian Biesinger <cbiesinger@google.com>
11077
11078 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11079 (btrace_stitch_trace): Likewise.
11080 * charset.c (intermediate_encoding): Likewise (vaild).
11081 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11082 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11083 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11084
e0cdfe3c
HD
110852020-01-16 Hannes Domani <ssbssa@yahoo.de>
11086
11087 * windows-tdep.c (windows_get_tlb_type):
11088 Add rtl_user_process_parameters type.
11089
790f1718 110902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11091 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11092
11093 PR build/24805
11094 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11095 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11096 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11097 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11098 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11099 (ps_plog): Redeclare exported functions with default visibility.
11100
3112ed97
NA
111012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11102
11103 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11104 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11105
8dc3273e
SM
111062020-01-15 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * infcmd.c (post_create_inferior): Use get_thread_regcache
11109 instead of get_current_regcache.
11110
ff47f4f0
TT
111112020-01-14 Tom Tromey <tom@tromey.com>
11112
11113 PR symtab/12535:
11114 * python/python.c (gdbpy_decode_line): Treat empty string the same
11115 as no argument.
11116
975f45b7
TT
111172020-01-14 Tom Tromey <tom@tromey.com>
11118
11119 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11120
25e57356
TT
111212020-01-14 Tom Tromey <tom@tromey.com>
11122
11123 * nat/linux-btrace.c: Don't include <config.h>.
11124 * nat/linux-ptrace.c: Don't include <config.h>.
11125 * nat/x86-linux-dregs.c: Don't include <config.h>.
11126
05ea2a05
TT
111272020-01-14 Tom Tromey <tom@tromey.com>
11128
11129 * configure: Rebuild.
11130 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11131
01027315
TT
111322020-01-14 Tom Tromey <tom@tromey.com>
11133
11134 * nat/x86-linux-dregs.c: Include configh.h.
11135 * nat/linux-ptrace.c: Include configh.h.
11136 * nat/linux-btrace.c: Include configh.h.
11137 * defs.h: Include config.h, bfd.h.
11138 * configure.ac: Don't source common.host.
11139 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11140 * configure: Rebuild.
11141 * acinclude.m4: Update path.
11142 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11143 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11144 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11145 (CLIBS): Add LIBSUPPORT.
11146 (CDEPS): Likewise.
11147 (COMMON_SFILES): Remove gdbsupport files.
11148 (HFILES_NO_SRCDIR): Likewise.
11149 (stamp-version): Update path to create-version.sh.
11150 (ALLDEPFILES): Remove gdbsupport files.
11151
b2ceabe8
TT
111522020-01-14 Tom Tromey <tom@tromey.com>
11153
11154 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11155 USE_WIN32API when needed.
11156 * configure.ac (USE_WIN32API): Don't define.
11157 (WIN32LIBS): Use WIN32APILIBS.
11158 * configure: Rebuild.
11159
25c51f71
TT
111602020-01-14 Tom Tromey <tom@tromey.com>
11161
11162 * configure: Rebuild.
11163 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11164
717c684d
BE
111652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11166
11167 * skip.c (skip_function_command): Make skip w/o arguments use the
11168 name of the inlined function if pc is inside any inlined function.
11169
7da6a5b9
LM
111702020-01-14 Luis Machado <luis.machado@linaro.org>
11171
11172 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11173 * infrun.c (resume_1): Likewise.
11174 (handle_inferior_event): Remove stale comment.
11175 * linux-nat.c (linux_nat_target::resume): Update comments.
11176 (save_stop_reason): Likewise.
11177 (linux_nat_filter_event): Likewise.
11178 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11179
44e4c775
AB
111802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11181
11182 * elfread.c (record_minimal_symbol): Set section index to 0 for
11183 non-allocatable sections.
11184
18a8505e
AT
11185
111862020-01-13 Ali Tamur <tamur@google.com>
11187
11188 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11189 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11190 to gdb::optional. Update comments.
11191 (dwo_file): Update comments.
11192 (read_attribute): Update API to take an additional out parameter,
11193 need_reprocess. This is used to mark attributes that need other
11194 attributes (e.g. str_offsets_base) for correct computation which may not
11195 have been read yet.
11196 (read_attribute_reprocess): New function declaration.
11197 (read_addr_index): Likewise.
11198 (read_dwo_str_index): Likewise.
11199 (read_stub_str_index): Likewise.
11200 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11201 (lookup_addr_base): New function definition.
11202 (lookup_ranges_base): Likewise.
11203 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11204 lookup_ranges_base.
11205 (init_cutu_and_read_dies): Update comments.
11206 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11207 unit. This is used to inherit parent's str_offsets_base and addr_base.
11208 Update comments.
11209 (init_cutu_and_read_dies_simple): Reflect API changes.
11210 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11211 (create_cus_hash_table): Change API to take parent compile unit.
11212 Reflect API changes.
11213 (open_and_init_dwo_file): Reflect API changes.
11214 (dwarf2_get_pc_bounds): Update comments.
11215 (dwarf2_record_block_ranges): Likewise.
11216 (read_full_die_1): Change implementation to reprocess attributes that
11217 need str_offsets_base and addr_base.
11218 (partial_die_info::read): Likewise.
11219 (read_attribute_reprocess): New function definition.
11220 (read_attribute_value): Change API to take an additional out parameter,
11221 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11222 when a non-dwo compile unit has index based attributes.
11223 (read_attribute): Reflect API changes.
11224 (read_addr_index_1): Reflect API changes. Update comments.
11225 (dwarf2_read_addr_index_data): Reflect API changes.
11226 (dwarf2_read_addr_index): Likewise.
11227 (read_str_index): Change API and implementation. This becomes a helper
11228 to be used by the new string index related methods. Update error
11229 message and comments.
11230 (read_dwo_str_index): New function definition.
11231 (read_stub_str_index): Likewise.
11232 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11233 * symfile.h (dwarf2_debug_sections): Likewise.
11234 * xcoffread.c (dwarf2_debug_sections): Likewise.
11235
0cac9354
SM
112362020-01-13 Simon Marchi <simon.marchi@efficios.com>
11237
11238 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11239 core_reg_sect type to gdb_byte *.
11240 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11241 * cris-tdep.c (fetch_core_registers): Likewise.
11242 * corelow.c (core_target::get_core_register_section): Change
11243 type of `contents` to gdb::byte_vector.
11244
9a6d629c
AB
112452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * tui/tui-wingeneral.c (box_win): Position the title in the center
11248 of the border.
11249
d8b2f9e3
SM
112502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11251
11252 * corelow.c (core_target::get_core_register_section): Use
11253 std::vector instead of alloca.
11254
bb564c58
SM
112552020-01-13 Simon Marchi <simon.marchi@efficios.com>
11256
11257 * warning.m4: Add -Wmissing-declarations to build_warnings.
11258 * configure: Re-generate.
11259
6b366111
SM
112602020-01-13 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * python/python.c (init__gdb_module): Add declaration.
11263
6c265988
SM
112642020-01-13 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11267 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11268 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11269 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11270 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11271 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11272 * ada-exp.y (_initialize_ada_exp): Add declaration.
11273 * ada-lang.c (_initialize_ada_language): Add declaration.
11274 * ada-tasks.c (_initialize_tasks): Add declaration.
11275 * agent.c (_initialize_agent): Add declaration.
11276 * aix-thread.c (_initialize_aix_thread): Add declaration.
11277 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11278 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11279 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11280 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11281 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11282 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11283 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11284 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11285 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11286 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11287 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11288 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11289 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11290 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11291 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11292 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11293 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11294 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11295 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11296 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11297 * annotate.c (_initialize_annotate): Add declaration.
11298 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11299 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11300 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11301 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11302 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11303 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11304 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11305 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11306 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11307 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11308 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11309 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11310 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11311 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11312 * auto-load.c (_initialize_auto_load): Add declaration.
11313 * auxv.c (_initialize_auxv): Add declaration.
11314 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11315 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11316 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11317 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11318 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11319 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11320 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11321 * breakpoint.c (_initialize_breakpoint): Add declaration.
11322 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11323 * btrace.c (_initialize_btrace): Add declaration.
11324 * charset.c (_initialize_charset): Add declaration.
11325 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11326 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11327 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11328 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11329 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11330 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11331 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11332 * coffread.c (_initialize_coffread): Add declaration.
11333 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11334 * compile/compile.c (_initialize_compile): Add declaration.
11335 * complaints.c (_initialize_complaints): Add declaration.
11336 * completer.c (_initialize_completer): Add declaration.
11337 * copying.c (_initialize_copying): Add declaration.
11338 * corefile.c (_initialize_core): Add declaration.
11339 * corelow.c (_initialize_corelow): Add declaration.
11340 * cp-abi.c (_initialize_cp_abi): Add declaration.
11341 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11342 * cp-support.c (_initialize_cp_support): Add declaration.
11343 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11344 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11345 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11346 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11347 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11348 * ctfread.c (_initialize_ctfread): Add declaration.
11349 * d-lang.c (_initialize_d_language): Add declaration.
11350 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11351 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11352 * dbxread.c (_initialize_dbxread): Add declaration.
11353 * dcache.c (_initialize_dcache): Add declaration.
11354 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11355 * disasm.c (_initialize_disasm): Add declaration.
11356 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11357 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11358 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11359 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11360 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11361 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11362 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11363 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11364 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11365 * elfread.c (_initialize_elfread): Add declaration.
11366 * exec.c (_initialize_exec): Add declaration.
11367 * extension.c (_initialize_extension): Add declaration.
11368 * f-lang.c (_initialize_f_language): Add declaration.
11369 * f-valprint.c (_initialize_f_valprint): Add declaration.
11370 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11371 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11372 * filesystem.c (_initialize_filesystem): Add declaration.
11373 * findcmd.c (_initialize_mem_search): Add declaration.
11374 * findvar.c (_initialize_findvar): Add declaration.
11375 * fork-child.c (_initialize_fork_child): Add declaration.
11376 * frame-base.c (_initialize_frame_base): Add declaration.
11377 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11378 * frame.c (_initialize_frame): Add declaration.
11379 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11380 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11381 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11382 * gcore.c (_initialize_gcore): Add declaration.
11383 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11384 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11385 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11386 * gdbarch.c (_initialize_gdbarch): Add declaration.
11387 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11388 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11389 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11390 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11391 * go-lang.c (_initialize_go_language): Add declaration.
11392 * go32-nat.c (_initialize_go32_nat): Add declaration.
11393 * guile/guile.c (_initialize_guile): Add declaration.
11394 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11395 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11396 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11397 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11398 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11399 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11400 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11401 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11402 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11403 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11404 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11405 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11406 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11407 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11408 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11409 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11410 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11411 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11412 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11413 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11414 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11415 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11416 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11417 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11418 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11419 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11420 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11421 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11422 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11423 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11424 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11425 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11426 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11427 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11428 * infcall.c (_initialize_infcall): Add declaration.
11429 * infcmd.c (_initialize_infcmd): Add declaration.
11430 * inflow.c (_initialize_inflow): Add declaration.
11431 * infrun.c (_initialize_infrun): Add declaration.
11432 * interps.c (_initialize_interpreter): Add declaration.
11433 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11434 * jit.c (_initialize_jit): Add declaration.
11435 * language.c (_initialize_language): Add declaration.
11436 * linux-fork.c (_initialize_linux_fork): Add declaration.
11437 * linux-nat.c (_initialize_linux_nat): Add declaration.
11438 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11439 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11440 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11441 * m2-lang.c (_initialize_m2_language): Add declaration.
11442 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11443 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11444 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11445 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11446 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11447 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11448 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11449 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11450 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11451 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11452 * machoread.c (_initialize_machoread): Add declaration.
11453 * macrocmd.c (_initialize_macrocmd): Add declaration.
11454 * macroscope.c (_initialize_macroscope): Add declaration.
11455 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11456 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11457 * maint.c (_initialize_maint_cmds): Add declaration.
11458 * mdebugread.c (_initialize_mdebugread): Add declaration.
11459 * memattr.c (_initialize_mem): Add declaration.
11460 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11461 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11462 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11463 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11464 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11465 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11466 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11467 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11468 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11469 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11470 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11471 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11472 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11473 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11474 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11475 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11476 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11477 * mipsread.c (_initialize_mipsread): Add declaration.
11478 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11479 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11480 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11481 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11482 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11483 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11484 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11485 * nto-procfs.c (_initialize_procfs): Add declaration.
11486 * objc-lang.c (_initialize_objc_language): Add declaration.
11487 * observable.c (_initialize_observer): Add declaration.
11488 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11489 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11490 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11491 * osabi.c (_initialize_gdb_osabi): Add declaration.
11492 * osdata.c (_initialize_osdata): Add declaration.
11493 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11494 * parse.c (_initialize_parse): Add declaration.
11495 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11496 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11497 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11498 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11499 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11500 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11501 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11502 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11503 * printcmd.c (_initialize_printcmd): Add declaration.
11504 * probe.c (_initialize_probe): Add declaration.
11505 * proc-api.c (_initialize_proc_api): Add declaration.
11506 * proc-events.c (_initialize_proc_events): Add declaration.
11507 * proc-service.c (_initialize_proc_service): Add declaration.
11508 * procfs.c (_initialize_procfs): Add declaration.
11509 * producer.c (_initialize_producer): Add declaration.
11510 * psymtab.c (_initialize_psymtab): Add declaration.
11511 * python/python.c (_initialize_python): Add declaration.
11512 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11513 * record-btrace.c (_initialize_record_btrace): Add declaration.
11514 * record-full.c (_initialize_record_full): Add declaration.
11515 * record.c (_initialize_record): Add declaration.
11516 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11517 * regcache.c (_initialize_regcache): Add declaration.
11518 * reggroups.c (_initialize_reggroup): Add declaration.
11519 * remote-notif.c (_initialize_notif): Add declaration.
11520 * remote-sim.c (_initialize_remote_sim): Add declaration.
11521 * remote.c (_initialize_remote): Add declaration.
11522 * reverse.c (_initialize_reverse): Add declaration.
11523 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11524 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11525 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11526 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11527 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11528 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11529 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11530 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11531 Add declaration.
11532 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11533 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11534 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11535 * rust-exp.y (_initialize_rust_exp): Add declaration.
11536 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11537 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11538 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11539 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11540 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11541 * score-tdep.c (_initialize_score_tdep): Add declaration.
11542 * ser-go32.c (_initialize_ser_dos): Add declaration.
11543 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11544 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11545 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11546 * ser-uds.c (_initialize_ser_socket): Add declaration.
11547 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11548 * serial.c (_initialize_serial): Add declaration.
11549 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11550 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11551 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11552 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11553 * skip.c (_initialize_step_skip): Add declaration.
11554 * sol-thread.c (_initialize_sol_thread): Add declaration.
11555 * solib-aix.c (_initialize_solib_aix): Add declaration.
11556 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11557 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11558 * solib-frv.c (_initialize_frv_solib): Add declaration.
11559 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11560 * solib-target.c (_initialize_solib_target): Add declaration.
11561 * solib.c (_initialize_solib): Add declaration.
11562 * source-cache.c (_initialize_source_cache): Add declaration.
11563 * source.c (_initialize_source): Add declaration.
11564 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11565 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11566 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11567 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11568 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11569 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11570 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11571 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11572 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11573 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11574 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11575 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11576 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11577 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11578 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11579 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11580 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11581 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11582 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11583 * stabsread.c (_initialize_stabsread): Add declaration.
11584 * stack.c (_initialize_stack): Add declaration.
11585 * stap-probe.c (_initialize_stap_probe): Add declaration.
11586 * std-regs.c (_initialize_frame_reg): Add declaration.
11587 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11588 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11589 * symfile.c (_initialize_symfile): Add declaration.
11590 * symmisc.c (_initialize_symmisc): Add declaration.
11591 * symtab.c (_initialize_symtab): Add declaration.
11592 * target.c (_initialize_target): Add declaration.
11593 * target-connection.c (_initialize_target_connection): Add
11594 declaration.
11595 * target-dcache.c (_initialize_target_dcache): Add declaration.
11596 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11597 * thread.c (_initialize_thread): Add declaration.
11598 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11599 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11600 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11601 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11602 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11603 * tracectf.c (_initialize_ctf): Add declaration.
11604 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11605 * tracefile.c (_initialize_tracefile): Add declaration.
11606 * tracepoint.c (_initialize_tracepoint): Add declaration.
11607 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11608 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11609 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11610 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11611 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11612 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11613 * tui/tui.c (_initialize_tui): Add declaration.
11614 * typeprint.c (_initialize_typeprint): Add declaration.
11615 * ui-style.c (_initialize_ui_style): Add declaration.
11616 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11617 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11618 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11619 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11620 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11621 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11622 * unittests/filtered_iterator-selftests.c
11623 (_initialize_filtered_iterator_selftests): Add declaration.
11624 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11625 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11626 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11627 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11628 * unittests/main-thread-selftests.c
11629 (_initialize_main_thread_selftests): Add declaration.
11630 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11631 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11632 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11633 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11634 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11635 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11636 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11637 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11638 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11639 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11640 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11641 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11642 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11643 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11644 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11645 declaration.
11646 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11647 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11648 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11649 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11650 * user-regs.c (_initialize_user_regs): Add declaration.
11651 * utils.c (_initialize_utils): Add declaration.
11652 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11653 * valops.c (_initialize_valops): Add declaration.
11654 * valprint.c (_initialize_valprint): Add declaration.
11655 * value.c (_initialize_values): Add declaration.
11656 * varobj.c (_initialize_varobj): Add declaration.
11657 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11658 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11659 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11660 * windows-nat.c (_initialize_windows_nat): Add declaration.
11661 (_initialize_check_for_gdb_ini): Add declaration.
11662 (_initialize_loadable): Add declaration.
11663 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11664 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11665 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11666 * xcoffread.c (_initialize_xcoffread): Add declaration.
11667 * xml-support.c (_initialize_xml_support): Add declaration.
11668 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11669 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11670 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11671 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11672
e2de1eec
SM
116732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11674
11675 * regformats/regdat.sh: Generate declaration for init function.
11676
e0037b4c
SM
116772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11678
11679 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11680 up.
11681 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11682 close_one_inferior>: New methods.
11683 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11684 pass down target to find_inferior_pid.
11685 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11686 Pass down target to find_inferior_ptid.
11687 (gdbsim_target::create_inferior): Pass down target to
11688 add_thread_silent.
11689 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11690 target down to find_inferior_ptid and switch_to_thread.
11691 (gdbsim_target::close): Update to call close_one_inferior.
11692 (struct resume_data): Remove.
11693 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11694 directly, rather than through a void pointer.
11695 (gdbsim_target::resume): Update to call resume_one_inferior.
11696
58920b5b
SM
116972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11698
11699 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11700
4ec89149
PA
117012020-01-12 Pedro Alves <palves@redhat.com>
11702
11703 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11704 directly for the current inferior instead of
11705 discard_all_inferiors.
11706 (discard_all_inferiors): Delete.
11707
7c392d1d
TT
117082020-01-11 Tom Tromey <tom@tromey.com>
11709
11710 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11711 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11712 deprecated_safe_get_selected_frame.
11713
d9ebdab7
TBA
117142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11715
11716 * inferior.c (print_inferior): Switch inferior before printing it.
11717
f3c469b9
PA
117182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11719 Pedro Alves <palves@redhat.com>
11720
11721 * progspace-and-thread.c (switch_to_program_space_and_thread):
11722 Assert there's an inferior for PSPACE. Use
11723 switch_to_inferior_no_thread to switch the inferior too.
11724 * progspace.c (program_space::~program_space): Call
11725 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11726 (program_space::free_all_objfiles): Don't call clear_symtab_users
11727 here.
11728 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11729
65c574f6
PA
117302020-01-10 Pedro Alves <palves@redhat.com>
11731
11732 * NEWS: Mention multi-target debugging, "info connections", and
11733 "add-inferior -no-connection".
11734
2f4fcf00
PA
117352020-01-10 Pedro Alves <palves@redhat.com>
11736
11737 * infrun.c: Include "target-connection.h".
11738 (check_multi_target_resumption): New.
11739 (proceed): Call it.
11740 * target-connection.c (make_target_connection_string): Make
11741 extern.
11742 * target-connection.h (make_target_connection_string): Declare.
11743
121b3efd
PA
117442020-01-10 Pedro Alves <palves@redhat.com>
11745
11746 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11747 * inferior.c (uiout_field_connection): New function.
11748 (print_inferior): Add new "connection-id" column.
11749 (add_inferior_command): Show connection number/string of added
11750 inferior.
11751 * process-stratum-target.h
11752 (process_stratum_target::connection_string): New virtual method.
11753 (process_stratum_target::connection_number): New field.
11754 * remote.c (remote_target::connection_string): New override.
11755 * target-connection.c: New file.
11756 * target-connection.h: New file.
11757 * target.c (decref_target): Remove process_stratum targets from
11758 the connection list.
11759 (target_stack::push): Add process_stratum targets to the
11760 connection list.
11761
4f837581
PA
117622020-01-10 Pedro Alves <palves@redhat.com>
11763
11764 Revert:
11765 2016-04-12 Pedro Alves <palves@redhat.com>
11766 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11767 Remove references to name.
11768 * serial.h (struct serial) <name>: Delete.
11769
f4ec508e
PA
117702020-01-10 Pedro Alves <palves@redhat.com>
11771
11772 * gdbarch-selftests.c (register_to_value_test): Remove "target
11773 already pushed" check.
11774
5b6d1e4f
PA
117752020-01-10 Pedro Alves <palves@redhat.com>
11776 John Baldwin <jhb@FreeBSD.org>
11777
11778 * aarch64-linux-nat.c
11779 (aarch64_linux_nat_target::thread_architecture): Adjust.
11780 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11781 (task_command_1): Likewise.
11782 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11783 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11784 (aix_thread_target::store_registers)
11785 (aix_thread_target::thread_alive): Adjust.
11786 * amd64-fbsd-tdep.c: Include "inferior.h".
11787 (amd64fbsd_get_thread_local_address): Pass down target.
11788 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11789 thread's gdbarch instead of target_gdbarch.
11790 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11791 get_last_target_status.
11792 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11793 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11794 inferiors.
11795 (update_inserted_breakpoint_locations): Skip if inferiors with no
11796 execution.
11797 (update_global_location_list): When handling moribund locations,
11798 find representative inferior for location's pspace, and use thread
11799 count of its process_stratum target.
11800 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11801 * bsd-uthread.c (bsd_uthread_target::wait): Use
11802 as_process_stratum_target and adjust thread_change_ptid and
11803 add_thread calls.
11804 (bsd_uthread_target::update_thread_list): Use
11805 as_process_stratum_target and adjust find_thread_ptid,
11806 thread_change_ptid and add_thread calls.
11807 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11808 find_thread_ptid call.
11809 * corelow.c (add_to_thread_list): Adjust add_thread call.
11810 (core_target_open): Adjust add_thread_silent and thread_count
11811 calls.
11812 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11813 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11814 * event-top.c (async_disconnect): Pop targets from all inferiors.
11815 * exec.c (add_target_sections): Push exec target on all inferiors
11816 sharing the program space.
11817 (remove_target_sections): Remove the exec target from all
11818 inferiors sharing the program space.
11819 (exec_on_vfork): New.
11820 * exec.h (exec_on_vfork): Declare.
11821 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11822 Pass it down.
11823 (fbsd_nat_target::update_thread_list): Adjust.
11824 (fbsd_nat_target::resume): Adjust.
11825 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11826 down.
11827 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11828 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11829 get_thread_arch_regcache call.
11830 * fork-child.c (gdb_startup_inferior): Pass target down to
11831 startup_inferior and set_executing.
11832 * gdbthread.h (struct process_stratum_target): Forward declare.
11833 (add_thread, add_thread_silent, add_thread_with_info)
11834 (in_thread_list): Add process_stratum_target parameter.
11835 (find_thread_ptid(inferior*, ptid_t)): New overload.
11836 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11837 parameter.
11838 (all_threads()): Delete overload.
11839 (all_threads, all_non_exited_threads): Add process_stratum_target
11840 parameter.
11841 (all_threads_safe): Use brace initialization.
11842 (thread_count): Add process_stratum_target parameter.
11843 (set_resumed, set_running, set_stop_requested, set_executing)
11844 (threads_are_executing, finish_thread_state): Add
11845 process_stratum_target parameter.
11846 (switch_to_thread): Use is_current_thread.
11847 * i386-fbsd-tdep.c: Include "inferior.h".
11848 (i386fbsd_get_thread_local_address): Pass down target.
11849 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11850 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11851 have_inferiors check.
11852 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11853 (inf_ptrace_target::attach): Adjust.
11854 * infcall.c (run_inferior_call): Adjust.
11855 * infcmd.c (run_command_1): Pass target to
11856 scoped_finish_thread_state.
11857 (proceed_thread_callback): Skip inferiors with no execution.
11858 (continue_command): Rename 'all_threads' local to avoid hiding
11859 'all_threads' function. Adjust get_last_target_status call.
11860 (prepare_one_step): Adjust set_running call.
11861 (signal_command): Use user_visible_resume_target. Compare thread
11862 pointers instead of inferior_ptid.
11863 (info_program_command): Adjust to pass down target.
11864 (attach_command): Mark target's 'thread_executing' flag.
11865 (stop_current_target_threads_ns): New, factored out from ...
11866 (interrupt_target_1): ... this. Switch inferior before making
11867 target calls.
11868 * inferior-iter.h
11869 (struct all_inferiors_iterator, struct all_inferiors_range)
11870 (struct all_inferiors_safe_range)
11871 (struct all_non_exited_inferiors_range): Filter on
11872 process_stratum_target too. Remove explicit.
11873 * inferior.c (inferior::inferior): Push dummy target on target
11874 stack.
11875 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11876 Add process_stratum_target parameter, and pass it down.
11877 (have_live_inferiors): Adjust.
11878 (switch_to_inferior_and_push_target): New.
11879 (add_inferior_command, clone_inferior_command): Handle
11880 "-no-connection" parameter. Use
11881 switch_to_inferior_and_push_target.
11882 (_initialize_inferior): Mention "-no-connection" option in
11883 the help of "add-inferior" and "clone-inferior" commands.
11884 * inferior.h: Include "process-stratum-target.h".
11885 (interrupt_target_1): Use bool.
11886 (struct inferior) <push_target, unpush_target, target_is_pushed,
11887 find_target_beneath, top_target, process_target, target_at,
11888 m_stack>: New.
11889 (discard_all_inferiors): Delete.
11890 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11891 (all_inferiors, all_non_exited_inferiors): Add
11892 process_stratum_target parameter.
11893 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11894 (target_last_proc_target): New global.
11895 (follow_fork_inferior): Push target on new inferior. Pass target
11896 to add_thread_silent. Call exec_on_vfork. Handle target's
11897 reference count.
11898 (follow_fork): Adjust get_last_target_status call. Also consider
11899 target.
11900 (follow_exec): Push target on new inferior.
11901 (struct execution_control_state) <target>: New field.
11902 (user_visible_resume_target): New.
11903 (do_target_resume): Call target_async.
11904 (resume_1): Set target's threads_executing flag. Consider resume
11905 target.
11906 (commit_resume_all_targets): New.
11907 (proceed): Also consider resume target. Skip threads of inferiors
11908 with no execution. Commit resumtion in all targets.
11909 (start_remote): Pass current inferior to wait_for_inferior.
11910 (infrun_thread_stop_requested): Consider target as well. Pass
11911 thread_info pointer to clear_inline_frame_state instead of ptid.
11912 (infrun_thread_thread_exit): Consider target as well.
11913 (random_pending_event_thread): New inferior parameter. Use it.
11914 (do_target_wait): Rename to ...
11915 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11916 down.
11917 (threads_are_resumed_pending_p, do_target_wait): New.
11918 (prepare_for_detach): Adjust calls.
11919 (wait_for_inferior): New inferior parameter. Handle it. Use
11920 do_target_wait_1 instead of do_target_wait.
11921 (fetch_inferior_event): Adjust. Switch to representative
11922 inferior. Pass target down.
11923 (set_last_target_status): Add process_stratum_target parameter.
11924 Save target in global.
11925 (get_last_target_status): Add process_stratum_target parameter and
11926 handle it.
11927 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11928 (context_switch): Check inferior_ptid == null_ptid before calling
11929 inferior_thread().
11930 (get_inferior_stop_soon): Pass down target.
11931 (wait_one): Rename to ...
11932 (poll_one_curr_target): ... this.
11933 (struct wait_one_event): New.
11934 (wait_one): New.
11935 (stop_all_threads): Adjust.
11936 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11937 event's target.
11938 (switch_back_to_stepped_thread): Also consider target.
11939 (print_stop_event): Update.
11940 (normal_stop): Update. Also consider the resume target.
11941 * infrun.h (wait_for_inferior): Remove declaration.
11942 (user_visible_resume_target): New declaration.
11943 (get_last_target_status, set_last_target_status): New
11944 process_stratum_target parameter.
11945 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11946 process_stratum_target parameter, and use it.
11947 (clear_inline_frame_state (thread_info*)): New.
11948 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11949 process_stratum_target parameter.
11950 (clear_inline_frame_state (thread_info*)): Declare.
11951 * linux-fork.c (delete_checkpoint_command): Pass target down to
11952 find_thread_ptid.
11953 (checkpoint_command): Adjust.
11954 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11955 instead of just tweaking inferior_ptid.
11956 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11957 (exit_lwp): Pass target down to find_thread_ptid.
11958 (attach_proc_task_lwp_callback): Pass target down to
11959 add_thread/set_running/set_executing.
11960 (linux_nat_target::attach): Pass target down to
11961 thread_change_ptid.
11962 (get_detach_signal): Pass target down to find_thread_ptid.
11963 Consider last target status's target.
11964 (linux_resume_one_lwp_throw, resume_lwp)
11965 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11966 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11967 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11968 (linux_nat_target::async_wait_fd): New.
11969 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11970 target down.
11971 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11972 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11973 * linux-thread-db.c (struct thread_db_info::process_target): New
11974 field.
11975 (add_thread_db_info): Save target.
11976 (get_thread_db_info): New process_stratum_target parameter. Also
11977 match target.
11978 (delete_thread_db_info): New process_stratum_target parameter.
11979 Also match target.
11980 (thread_from_lwp): Adjust to pass down target.
11981 (thread_db_notice_clone): Pass down target.
11982 (check_thread_db_callback): Pass down target.
11983 (try_thread_db_load_1): Always push the thread_db target.
11984 (try_thread_db_load, record_thread): Pass target down.
11985 (thread_db_target::detach): Pass target down. Always unpush the
11986 thread_db target.
11987 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11988 target down. Always unpush the thread_db target.
11989 (find_new_threads_callback, thread_db_find_new_threads_2)
11990 (thread_db_target::update_thread_list): Pass target down.
11991 (thread_db_target::pid_to_str): Pass current inferior down.
11992 (thread_db_target::get_thread_local_address): Pass target down.
11993 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11994 target down.
11995 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11996 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11997 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11998 (procfs_init_inferior): Rename to ...
11999 (procfs_target::procfs_init_inferior): ... this and adjust.
12000 (procfs_target::create_inferior, procfs_notice_thread)
12001 (procfs_do_thread_registers): Adjust.
12002 * ppc-fbsd-tdep.c: Include "inferior.h".
12003 (ppcfbsd_get_thread_local_address): Pass down target.
12004 * proc-service.c (ps_xfer_memory): Switch current inferior and
12005 program space as well.
12006 (get_ps_regcache): Pass target down.
12007 * process-stratum-target.c
12008 (process_stratum_target::thread_address_space)
12009 (process_stratum_target::thread_architecture): Pass target down.
12010 * process-stratum-target.h
12011 (process_stratum_target::threads_executing): New field.
12012 (as_process_stratum_target): New.
12013 * ravenscar-thread.c
12014 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12015 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12016 down.
12017 * record-btrace.c (record_btrace_target::info_record): Adjust.
12018 (record_btrace_target::record_method)
12019 (record_btrace_target::record_is_replaying)
12020 (record_btrace_target::fetch_registers)
12021 (get_thread_current_frame_id, record_btrace_target::resume)
12022 (record_btrace_target::wait, record_btrace_target::stop): Pass
12023 target down.
12024 * record-full.c (record_full_wait_1): Switch to event thread.
12025 Pass target down.
12026 * regcache.c (regcache::regcache)
12027 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12028 process_stratum_target parameter and handle it.
12029 (current_thread_target): New global.
12030 (get_thread_regcache): Add process_stratum_target parameter and
12031 handle it. Switch inferior before calling target method.
12032 (get_thread_regcache): Pass target down.
12033 (get_thread_regcache_for_ptid): Pass target down.
12034 (registers_changed_ptid): Add process_stratum_target parameter and
12035 handle it.
12036 (registers_changed_thread, registers_changed): Pass target down.
12037 (test_get_thread_arch_aspace_regcache): New.
12038 (current_regcache_test): Define a couple local test_target_ops
12039 instances and use them for testing.
12040 (readwrite_regcache): Pass process_stratum_target parameter.
12041 (cooked_read_test, cooked_write_test): Pass mock_target down.
12042 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12043 (get_thread_arch_aspace_regcache): Add process_stratum_target
12044 parameter.
12045 (regcache::target): New method.
12046 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12047 (regcache::registers_changed_ptid): Add process_stratum_target
12048 parameter.
12049 (regcache::m_target): New field.
12050 (registers_changed_ptid): Add process_stratum_target parameter.
12051 * remote.c (remote_state::supports_vCont_probed): New field.
12052 (remote_target::async_wait_fd): New method.
12053 (remote_unpush_and_throw): Add remote_target parameter.
12054 (get_current_remote_target): Adjust.
12055 (remote_target::remote_add_inferior): Push target.
12056 (remote_target::remote_add_thread)
12057 (remote_target::remote_notice_new_inferior)
12058 (get_remote_thread_info): Pass target down.
12059 (remote_target::update_thread_list): Skip threads of inferiors
12060 bound to other targets. (remote_target::close): Don't discard
12061 inferiors. (remote_target::add_current_inferior_and_thread)
12062 (remote_target::process_initial_stop_replies)
12063 (remote_target::start_remote)
12064 (remote_target::remote_serial_quit_handler): Pass down target.
12065 (remote_target::remote_unpush_target): New remote_target
12066 parameter. Unpush the target from all inferiors.
12067 (remote_target::remote_unpush_and_throw): New remote_target
12068 parameter. Pass it down.
12069 (remote_target::open_1): Check whether the current inferior has
12070 execution instead of checking whether any inferior is live. Pass
12071 target down.
12072 (remote_target::remote_detach_1): Pass down target. Use
12073 remote_unpush_target.
12074 (extended_remote_target::attach): Pass down target.
12075 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12076 (remote_target::append_resumption): Pass down target.
12077 (remote_target::append_pending_thread_resumptions)
12078 (remote_target::remote_resume_with_hc, remote_target::resume)
12079 (remote_target::commit_resume): Pass down target.
12080 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12081 (remote_target::interrupt_query)
12082 (remote_target::remove_new_fork_children)
12083 (remote_target::check_pending_events_prevent_wildcard_vcont)
12084 (remote_target::remote_parse_stop_reply)
12085 (remote_target::process_stop_reply): Pass down target.
12086 (first_remote_resumed_thread): New remote_target parameter. Pass
12087 it down.
12088 (remote_target::wait_as): Pass down target.
12089 (unpush_and_perror): New remote_target parameter. Pass it down.
12090 (remote_target::readchar, remote_target::remote_serial_write)
12091 (remote_target::getpkt_or_notif_sane_1)
12092 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12093 down target.
12094 (remote_target::mourn_inferior): Pass down target. Use
12095 remote_unpush_target.
12096 (remote_target::core_of_thread)
12097 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12098 (remote_target::pid_to_exec_file)
12099 (remote_target::thread_handle_to_thread_info): Pass down target.
12100 (remote_target::async_wait_fd): New.
12101 * riscv-fbsd-tdep.c: Include "inferior.h".
12102 (riscv_fbsd_get_thread_local_address): Pass down target.
12103 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12104 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12105 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12106 Adjust.
12107 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12108 * solib-svr4.c (enable_break): Pass down target.
12109 * spu-multiarch.c (parse_spufs_run): Pass down target.
12110 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12111 * target-delegates.c: Regenerate.
12112 * target.c (g_target_stack): Delete.
12113 (current_top_target): Return the current inferior's top target.
12114 (target_has_execution_1): Refer to the passed-in inferior's top
12115 target.
12116 (target_supports_terminal_ours): Check whether the initial
12117 inferior was already created.
12118 (decref_target): New.
12119 (target_stack::push): Incref/decref the target.
12120 (push_target, push_target, unpush_target): Adjust.
12121 (target_stack::unpush): Defref target.
12122 (target_is_pushed): Return bool. Adjust to refer to the current
12123 inferior's target stack.
12124 (dispose_inferior): Delete, and inline parts ...
12125 (target_preopen): ... here. Only dispose of the current inferior.
12126 (target_detach): Hold strong target reference while detaching.
12127 Pass target down.
12128 (target_thread_name): Add assertion.
12129 (target_resume): Pass down target.
12130 (target_ops::beneath, find_target_at): Adjust to refer to the
12131 current inferior's target stack.
12132 (get_dummy_target): New.
12133 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12134 has a thread running.
12135 (initialize_targets): Rename to ...
12136 (_initialize_target): ... this.
12137 * target.h: Include "gdbsupport/refcounted-object.h".
12138 (struct target_ops): Inherit refcounted_object.
12139 (target_ops::shortname, target_ops::longname): Make const.
12140 (target_ops::async_wait_fd): New method.
12141 (decref_target): Declare.
12142 (struct target_ops_ref_policy): New.
12143 (target_ops_ref): New typedef.
12144 (get_dummy_target): Declare function.
12145 (target_is_pushed): Return bool.
12146 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12147 (all_matching_threads_iterator::all_matching_threads_iterator):
12148 Handle filter target.
12149 * thread-iter.h (struct all_matching_threads_iterator, struct
12150 all_matching_threads_range, class all_non_exited_threads_range):
12151 Filter by target too. Remove explicit.
12152 * thread.c (threads_executing): Delete.
12153 (inferior_thread): Pass down current inferior.
12154 (clear_thread_inferior_resources): Pass down thread pointer
12155 instead of ptid_t.
12156 (add_thread_silent, add_thread_with_info, add_thread): Add
12157 process_stratum_target parameter. Use it for thread and inferior
12158 searches.
12159 (is_current_thread): New.
12160 (thread_info::deletable): Use it.
12161 (find_thread_ptid, thread_count, in_thread_list)
12162 (thread_change_ptid, set_resumed, set_running): New
12163 process_stratum_target parameter. Pass it down.
12164 (set_executing): New process_stratum_target parameter. Pass it
12165 down. Adjust reference to 'threads_executing'.
12166 (threads_are_executing): New process_stratum_target parameter.
12167 Adjust reference to 'threads_executing'.
12168 (set_stop_requested, finish_thread_state): New
12169 process_stratum_target parameter. Pass it down.
12170 (switch_to_thread): Also match inferior.
12171 (switch_to_thread): New process_stratum_target parameter. Pass it
12172 down.
12173 (update_threads_executing): Reimplement.
12174 * top.c (quit_force): Pop targets from all inferior.
12175 (gdb_init): Don't call initialize_targets.
12176 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12177 Declare.
12178 (windows_add_thread, windows_delete_thread): Adjust.
12179 (get_windows_debug_event): Rename to ...
12180 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12181 * tracefile-tfile.c (tfile_target_open): Pass down target.
12182 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12183 Forward declare.
12184 (switch_to_thread): Add process_stratum_target parameter.
12185 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12186 parameter. Use it.
12187 (mi_on_resume): Pass target down.
12188 * nat/fork-inferior.c (startup_inferior): Add
12189 process_stratum_target parameter. Pass it down.
12190 * nat/fork-inferior.h (startup_inferior): Add
12191 process_stratum_target parameter.
12192 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12193
75c6c844
PA
121942020-01-10 Pedro Alves <palves@redhat.com>
12195
12196 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12197 directly. Instead find the first thread in the thread list and
12198 use switch_to_thread.
12199
78f2c40a
PA
122002020-01-10 Pedro Alves <palves@redhat.com>
12201
12202 * remote.c (remote_target::remote_add_inferior): Don't bind a
12203 process to the current inferior if the current inferior is already
12204 bound to a process.
12205
e7af6c70
TBA
122062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12207 Pedro Alves <palves@redhat.com>
12208
12209 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12210 If no process is specified, return null_ptid instead of
12211 inferior_ptid.
12212 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12213 TARGET_WAITKIND_SIGNALLED with no pid.
12214
31ba933e
PA
122152020-01-10 Pedro Alves <palves@redhat.com>
12216
12217 * remote.c (first_remote_resumed_thread): New.
12218 (remote_target::wait_as): Use it as default event_ptid instead of
12219 inferior_ptid.
12220
735fc2ca
PA
122212020-01-10 Pedro Alves <palves@redhat.com>
12222
12223 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12224
c17e02e1
PA
122252020-01-10 Pedro Alves <palves@redhat.com>
12226
12227 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12228 not -1.
12229
ab1ddbcf
PA
122302020-01-10 Pedro Alves <palves@redhat.com>
12231
12232 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12233 ptid to get_last_target_status.
12234 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12235 ptid to get_last_target_status.
12236 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12237 get_last_target_status.
12238 (info_program_command): Don't pass a target_waitstatus to
12239 get_last_target_status.
12240 * infrun.c (init_wait_for_inferior): Use
12241 nullify_last_target_wait_ptid.
12242 (get_last_target_status): Handle nullptr arguments.
12243 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12244 (print_stop_event): Don't pass a ptid to get_last_target_status.
12245 (normal_stop): Don't pass a ptid to get_last_target_status.
12246 * infrun.h (get_last_target_status, set_last_target_status): Move
12247 comments here and update.
12248 (nullify_last_target_wait_ptid): Declare.
12249 * linux-fork.c (fork_load_infrun_state): Remove local extern
12250 declaration of nullify_last_target_wait_ptid.
12251 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12252 to get_last_target_status.
12253
f3f8ece4
PA
122542020-01-10 Pedro Alves <palves@redhat.com>
12255
12256 * gdbthread.h (scoped_restore_current_thread)
12257 <dont_restore, restore, m_dont_restore>: Declare.
12258 * thread.c (thread_alive): Add assertion. Return bool.
12259 (switch_to_thread_if_alive): New.
12260 (prune_threads): Switch inferior/thread.
12261 (print_thread_info_1): Switch thread before calling target methods.
12262 (scoped_restore_current_thread::restore): New, factored out from
12263 ...
12264 (scoped_restore_current_thread::~scoped_restore_current_thread):
12265 ... this.
12266 (scoped_restore_current_thread::scoped_restore_current_thread):
12267 Add assertion.
12268 (thread_apply_all_command, thread_select): Use
12269 switch_to_thread_if_alive.
12270 * infrun.c (proceed, restart_threads, handle_signal_stop)
12271 (switch_back_to_stepped_thread): Switch current thread before
12272 calling target methods.
12273
db2d40f7
PA
122742020-01-10 Pedro Alves <palves@redhat.com>
12275
12276 * inferior.c (switch_to_inferior_no_thread): New function,
12277 factored out from ...
12278 (inferior_command): ... here.
12279 * inferior.h (switch_to_inferior_no_thread): Declare.
12280 * mi/mi-main.c (run_one_inferior): Use
12281 switch_to_inferior_no_thread.
12282
bd420a2d
PA
122832020-01-10 Pedro Alves <palves@redhat.com>
12284
12285 * infcmd.c (kill_command): Remove dead code.
12286
ddf5db90
PA
122872020-01-10 Pedro Alves <palves@redhat.com>
12288
12289 * remote.c (remote_target::mourn_inferior): No longer check
12290 whether the target is running.
12291
5018ce90
PA
122922020-01-10 Pedro Alves <palves@redhat.com>
12293
12294 * corelow.c (core_target::has_execution): Change parameter type to
12295 inferior pointer.
12296 * inferior.c (number_of_live_inferiors): Use
12297 inferior::has_execution instead of target_has_execution_1.
12298 * inferior.h (inferior::has_execution): New.
12299 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12300 inferior::has_execution instead of target_has_execution_1.
12301 * process-stratum-target.c
12302 (process_stratum_target::has_execution): Change parameter type to
12303 inferior pointer. Check the inferior's PID instead of
12304 inferior_ptid.
12305 * process-stratum-target.h
12306 (process_stratum_target::has_execution): Change parameter type to
12307 inferior pointer.
12308 * record-full.c (record_full_core_target::has_execution): Change
12309 parameter type to inferior pointer.
12310 * target.c (target_has_execution_1): Change parameter type to
12311 inferior pointer.
12312 (target_has_execution_current): Adjust.
12313 * target.h (target_ops::has_execution): Change parameter type to
12314 inferior pointer.
12315 (target_has_execution_1): Change parameter type to inferior
12316 pointer. Change return type to bool.
12317 * tracefile.h (tracefile_target::has_execution): Change parameter
12318 type to inferior pointer.
12319
74375d18
PA
123202020-01-10 Pedro Alves <palves@redhat.com>
12321
12322 * exceptions.c (print_flush): Remove current_top_target() check.
12323
acdf84a6
PA
123242020-01-10 Pedro Alves <palves@redhat.com>
12325
12326 * remote.c (show_remote_exec_file): Show the current inferior's
12327 exec-file instead of the command variable's value.
12328
ec506636
PA
123292020-01-10 Pedro Alves <palves@redhat.com>
12330
12331 * record-full.c (record_full_resume_ptid): New global.
12332 (record_full_target::resume): Set it.
12333 (record_full_wait_1): Use record_full_resume_ptid instead of
12334 inferior_ptid.
12335
873657b9
PA
123362020-01-10 Pedro Alves <palves@redhat.com>
12337
12338 * gdbthread.h (scoped_restore_current_thread)
12339 <dont_restore, restore, m_dont_restore>: Declare.
12340 * thread.c (thread_alive): Add assertion. Return bool.
12341 (switch_to_thread_if_alive): New.
12342 (prune_threads): Switch inferior/thread.
12343 (print_thread_info_1): Switch thread before calling target methods.
12344 (scoped_restore_current_thread::restore): New, factored out from
12345 ...
12346 (scoped_restore_current_thread::~scoped_restore_current_thread):
12347 ... this.
12348 (scoped_restore_current_thread::scoped_restore_current_thread):
12349 Add assertion.
12350 (thread_apply_all_command, thread_select): Use
12351 switch_to_thread_if_alive.
12352
7f0ae84c
GB
123532020-01-10 George Barrett <bob@bob131.so>
12354
12355 * stap-probe.c (stap_modify_semaphore): Don't check for null
12356 semaphores.
12357 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12358 for null semaphores.
12359
f5a7c406
AB
123602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12361
12362 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12363 all source windows, and maintain horizontal scroll status while
12364 doing so.
12365
9ae6bf64
TT
123662020-01-09 Tom Tromey <tom@tromey.com>
12367
12368 PR tui/18932:
12369 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12370 update_source_window, not print_source_lines.
12371
b2efe70c
AB
123722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * tui/tui.c (tui_enable): Register tui hooks after calling
12375 tui_display_main.
12376
5f23a082
CB
123772020-01-09 Christian Biesinger <cbiesinger@google.com>
12378
12379 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12380
3061113b
SM
123812020-01-08 Simon Marchi <simon.marchi@efficios.com>
12382
12383 * thread.c (print_thread_info_1): Fix indentation.
12384
57d75002
CB
123852020-01-09 Christian Biesinger <cbiesinger@google.com>
12386
12387 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12388 unique_xmalloc_ptr outside the if to always free the demangled name.
12389
6a053cb1
TT
123902020-01-08 Tom Tromey <tromey@adacore.com>
12391
12392 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12393 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12394 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12395 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12396 Remove.
12397 (section_offsets): New typedef.
12398 * symtab.c (fixup_section, get_msymbol_address): Update.
12399 * symmisc.c (dump_msymbols): Update.
12400 * symfile.h (relative_addr_info_to_section_offsets)
12401 (symfile_map_offsets_to_segments): Update.
12402 * symfile.c (build_section_addr_info_from_objfile)
12403 (init_objfile_sect_indices): Update.
12404 (struct place_section_arg): Change type of "offsets".
12405 (place_section): Update.
12406 (relative_addr_info_to_section_offsets): Change type of
12407 "section_offsets". Remove "num_sections" parameter.
12408 (default_symfile_offsets, syms_from_objfile_1)
12409 (set_objfile_default_section_offset): Update.
12410 (reread_symbols): No need to preserve section offsets by hand.
12411 (symfile_map_offsets_to_segments): Change type of "offsets".
12412 * stap-probe.c (relocate_address): Update.
12413 * stabsread.h (process_one_symbol): Update.
12414 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12415 (solib_target_relocate_section_addresses): Update.
12416 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12417 Update.
12418 * solib-frv.c (frv_relocate_main_executable): Update.
12419 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12420 * solib-aix.c (solib_aix_get_section_offsets): Change return
12421 type.
12422 (solib_aix_solib_create_inferior_hook): Update.
12423 * remote.c (remote_target::get_offsets): Update.
12424 * psymtab.c (find_pc_sect_psymtab): Update.
12425 * psympriv.h (struct partial_symbol) <address, text_low,
12426 text_high>: Update.
12427 * objfiles.h (obj_section_offset): Update.
12428 (struct objfile) <section_offsets>: Change type.
12429 <num_sections>: Remove.
12430 (objfile_relocate): Update.
12431 * objfiles.c (entry_point_address_query): Update
12432 (relocate_one_symbol): Change type of "section_offsets".
12433 (objfile_relocate1, objfile_relocate1): Change type of
12434 "new_offsets".
12435 (objfile_rebase1): Update.
12436 * mipsread.c (mipscoff_symfile_read): Update.
12437 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12438 parameter.
12439 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12440 (parse_external, psymtab_to_symtab_1): Update.
12441 * machoread.c (macho_symfile_offsets): Update.
12442 * ia64-tdep.c (ia64_find_unwind_table): Update.
12443 * hppa-tdep.c (read_unwind_info): Update.
12444 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12445 * dwarf2read.c (create_addrmap_from_index)
12446 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12447 (process_psymtab_comp_unit_reader, add_partial_symbol)
12448 (add_partial_subprogram, process_full_comp_unit)
12449 (read_file_scope, read_func_scope, read_lexical_block_scope)
12450 (read_call_site_scope, dwarf2_rnglists_process)
12451 (dwarf2_ranges_process, dwarf2_ranges_read)
12452 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12453 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12454 Update.
12455 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12456 Update.
12457 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12458 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12459 (process_one_symbol): Change type of "section_offsets".
12460 * ctfread.c (get_objfile_text_range): Update.
12461 * coffread.c (coff_symtab_read, enter_linenos)
12462 (process_coff_symbol): Update.
12463 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12464 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12465
456e800a
TT
124662020-01-08 Tom Tromey <tromey@adacore.com>
12467
12468 * dwarf2read.c (parse_macro_definition): Use std::string.
12469 (parse_macro_definition): Likewise.
12470
6dfa2fc2
TT
124712020-01-08 Tom Tromey <tromey@adacore.com>
12472
12473 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12474 (ATTR_ALLOC_CHUNK): Remove.
12475
421d1616
TT
124762020-01-08 Tom Tromey <tromey@adacore.com>
12477
12478 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12479
43816ebc
TT
124802020-01-08 Tom Tromey <tromey@adacore.com>
12481
12482 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12483 (dwarf2_compute_name, open_dwo_file): Likewise.
12484 (process_enumeration_scope): Use std::vector.
12485 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12486 (partial_die_info::fixup, dwarf2_start_subfile)
12487 (guess_full_die_structure_name, dwarf2_name): Likewise.
12488 (determine_prefix): Update.
12489 (guess_full_die_structure_name): Make return type const.
12490 (partial_die_full_name): Return unique_xmalloc_ptr.
12491 (DW_FIELD_ALLOC_CHUNK): Remove.
12492
4212d509
TT
124932020-01-07 Tom Tromey <tromey@adacore.com>
12494
12495 PR build/24937:
12496 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12497
06a6207a
JT
124982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12499
12500 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12501
153d79c4
AB
125022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12503
12504 * stack.c (print_frame_info): Move disassemble_next_line code
12505 inside source_print block.
12506
66182876
EZ
125072020-01-06 Eli Zaretskii <eliz@gnu.org>
12508
12509 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12510 gdb/signals.h, as we are now using native signal symbols.
12511
cbfa8581
SV
125122020-01-06 Shahab Vahedi <shahab@synopsys.com>
12513
12514 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12515 overflow by an early check of content vs threshold.
aac66a4c 12516 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12517 Likewise.
12518
3f602821
EZ
125192020-01-06 Eli Zaretskii <eliz@gnu.org>
12520
12521 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12522
a08c904d
JT
125232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12524
12525 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12526 export table if no section contains it's RVA.
12527
89a65580
EZ
125282020-01-06 Eli Zaretskii <eliz@gnu.org>
12529
12530 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12531
8b7fcda2
HD
125322020-01-06 Hannes Domani <ssbssa@yahoo.de>
12533
12534 * source.c (print_source_lines_base): Set last_line_listed.
12535
a61b4f69
SV
125362020-01-06 Shahab Vahedi <shahab@synopsys.com>
12537
12538 * tui/tui-disasm.c: Remove trailing spaces.
12539
559e7e50
EZ
125402020-01-06 Eli Zaretskii <eliz@gnu.org>
12541 Pedro Alves <palves@redhat.com>
12542
12543 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12544 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12545 (windows_gdb_signal_to_target): New function, uses the above
12546 enumeration to convert GDB internal signal codes to equivalent
12547 Windows codes.
12548 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12549 * windows-nat.c: Include "gdb_wait.h".
12550 (get_windows_debug_event): Extract the fatal exception from the
12551 exit status and convert to the equivalent Posix signal number.
12552 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12553 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12554 * gdbsupport/gdb_wait.c: New file, implements
12555 windows_status_to_termsig.
12556 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12557 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12558
f2302a34
AB
125592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12560
12561 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12562 show_layout.
12563
6a5206eb
LM
125642020-01-05 Luis Machado <luis.machado@linaro.org>
12565
12566 * aarch64-linux-nat.c
12567 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12568 and bfd_mach_aarch64.
12569
6ec1d75e
PW
125702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12571
12572 * ui-file.c (stdio_file::can_emit_style_escape)
12573 (tee_file::can_emit_style_escape): Ensure style is used also on
12574 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12575 to gdb_stdout.
12576 * main.c (set_gdb_data_directory): Use file style to output the
12577 warning that the given pathname is not a directory.
12578 * top.c (show_history_filename, gdb_safe_append_history)
12579 (show_gdb_datadir): Use file style.
12580
44f81a76
HD
125812020-01-03 Hannes Domani <ssbssa@yahoo.de>
12582
12583 * solib-target.c (struct lm_info_target):
12584 Change offsets to be a unique_xmalloc_ptr.
12585 (solib_target_relocate_section_addresses): Update.
12586
25057eb0
HD
125872020-01-03 Hannes Domani <ssbssa@yahoo.de>
12588
12589 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12590
6e2118f5
BE
125912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12592
12593 * MAINTAINERS (Write After Approval): Add myself.
12594
8133c7dc
LM
125952020-01-02 Luis Machado <luis.machado@linaro.org>
12596
12597 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12598 Cell BE architecture.
12599 * target.h (struct target_ops) <thread_architecture>: Likewise.
12600
48189bec
HD
126012020-01-01 Hannes Domani <ssbssa@yahoo.de>
12602
12603 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12604
ead1063b
HD
126052020-01-01 Hannes Domani <ssbssa@yahoo.de>
12606
12607 * MAINTAINERS (Write After Approval): Add myself.
12608
e5d78223
JB
126092020-01-01 Joel Brobecker <brobecker@adacore.com>
12610
12611 * gdbarch.sh: Update copyright year range of generated files.
12612
b811d2c2
JB
126132020-01-01 Joel Brobecker <brobecker@adacore.com>
12614
12615 Update copyright year range in all GDB files.
12616
5f4def5c
JB
126172020-01-01 Joel Brobecker <brobecker@adacore.com>
12618
12619 * copyright.py: Convert to Python 3.
12620
51fd4002
JB
126212020-01-01 Joel Brobecker <brobecker@adacore.com>
12622
12623 * copyright.py: Adapt after move of gnulib directory from gdb
12624 directory to toplevel directory.
12625
5fb651f2
JB
126262020-01-01 Joel Brobecker <brobecker@adacore.com>
12627
12628 * copyright.py (main): Exit if run from the wrong directory.
12629
5dd8bf88
JB
126302020-01-01 Joel Brobecker <brobecker@adacore.com>
12631
12632 * top.c (print_gdb_version): Change copyright year to 2020.
12633
9f71dacb 126342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12635
9f71dacb 12636 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12637
9f71dacb 12638For older changes see ChangeLog-2019.
c906108c
SS
12639\f
12640Local Variables:
12641mode: change-log
12642left-margin: 8
12643fill-column: 74
12644version-control: never
57da7796 12645coding: utf-8
c906108c 12646End: